create table S (id integer primary key, val text);
create table T (s integer, value text);
create table U (s integer references S(id), value text);

insert into S values (1,'John'), (2,'Andrew'), (3,'Susan'), (4,'Sapna');

insert into T values (1, 'old'), (1, 'fat'), (2,'smart');

insert into U values (1, 'old'), (1, 'fat'), (2,'smart');
