with rec as (select "recordId" as rec_id from catalog_12_links where "catalogRecordId"=1) select field7,field8,field9,field10 from catalog_12_data where "id" in (select rec_id from rec) and field4 = '{2}';
field7 | field8 | field9 | field10
--------+--------+--------+---------
{2} | {2} | {2} | {2}
{2} | {2} | {2} | {2}
(2 rows)
?