--!syntax_pg
select * from (values (1,2),(3,4)) as a(x,y)
left join (values (1,2),(2,5)) as b(u,v)
on a.x = b.u;

select * from (values (1,2),(3,4)) as a(x,y)
left join (values (1,2),(2,5)) as b(u,v)
on a.x = b.u and b.v = a.y;
