CREATE TABLE products (
product_id number ,
product_name text ,
product_details text,
primary key ( product_id )
)
insert into products (product_id, product_name, product_details) values (1,
’food’, NULL);

CREATE TABLE order_items (
order_item_id number ,
product_id number ,
order_id number ,
order_item_status text ,
order_item_details text ,
primary key ( order_item_id ) ,
foreign key ( product_id ) references product ( product_id ) ,
foreign key ( order_id ) references orders ( order_id )
)
insert into order_items (order_item_id, product_id, order_id,
order_item_status, order_item_details) values (1, 4, 6, ’Finish’, NULL) ;

CREATE TABLE shipments (
shipment_id number ,
order_id number ,

25
Teaching Large Language Models to Self-Debug