create table a (
  a1 integer primary key,
  a2 integer
);

create table b (
  b1 integer primary key,
  b2 integer references a
);

insert into a values (1, 3);
insert into a values (2, 6);
insert into b values (13, 1);
insert into b values (14, 1);
insert into b values (15, 1);
