show search_path;
set search_path to public;

drop table r;
drop table s;
drop table t;

create table R(A int, R int);
create table S(A int, S int);
create table T(A int, T int);

insert into R values(1,1);
insert into S values(2,1);
insert into T values(1,1);

select * from R;
select * from S;
select * from T;

select *
from (R natural left outer join S) natural left outer join T;

select *
from R natural left outer join (S natural left outer join T);
