The query works fine. The returned result is what I need. But this query can be rewritten
to this
SELECT r1.key,r1.value FROM xf_resources r WHERE r.type =
(SELECT type FROM xf_resources s where s.culture= 'sk' and s.key= 'test')
I have searched the doc under the expressions chapter, but there was only an example with a scalar query.