Aman6917's picture
Upload AutoTrain files
a22c2b3
Natural Language,Golden Query
List all PO lineitem with a valid product source record in database ,"select * from RETAILBUYER_POLINEITEM P inner join RETAILBUYER_ PRODUCT_SOURCE V
on P.product_id = V.product_id"
List all details of PO lineitem which have a product in product source table,"select * from RETAILBUYER_POLINEITEM P inner join RETAILBUYER_ PRODUCT_SOURCE V
on P.product_id = V.product_id"
List all columns of PO lineitem that have a product present in product source table,"select * from RETAILBUYER_POLINEITEM P inner join RETAILBUYER_ PRODUCT_SOURCE V
on P.product_id = V.product_id"
List all product who have atleast 1 quantity issued to them,"select * from PRODUCT_SOURCE V inner join RETAILBUYER_ PRODUCT_SOURCE V RETAILBUYER_POLINEITEM P
on P.product_id = V.product_id"
List all details of product source who have quantity issued to them,"select * from PRODUCT_SOURCE V inner join RETAILBUYER_ PRODUCT_SOURCE V RETAILBUYER_POLINEITEM P
on P.product_id = V.product_id"
List all columns of product source table who have been assigned quantity,"select * from PRODUCT_SOURCE V inner join RETAILBUYER_ PRODUCT_SOURCE V RETAILBUYER_POLINEITEM P
on P.product_id = V.product_id"
I would like to know the lineitem id and quantity for POs that have a product present in product source table,"select P.lineitem_id
, P.quantity from RETAILBUYER_POLINEITEM P inner join RETAILBUYER_PRODUCT_ SOURCE V
on P.product_id = V.product_id"
"List all product id, product description, and product unit price for product who have POs","select V.product_id, V.product_description, V.product_unitprice from RETAILBUYER_PRODUCT_SOURCE V inner join RETAILBUYER_POLINEITEM P
on P.PRODUCT_ID = V.PRODUCT_ID
(500 rows, 5 columns)"
I would like to know the lineitem and po id for product that have a valid product that have quantity more than 15,"select P.LINEITEM_ID, P.PO_ID from RETAILBUYER_POLINEITEM P inner join RETAILBUYER_PRODUCT_SOURCE V
on P.PRODUCT_ID = V.PRODUCT_ID
where P.QUANTITY > 15"
I would like to know the lineitem and quantity for product where unit price is more 5,"select P.LINEITEM_ID, P.QUANTITY from RETAILBUYER_POLINEITEM P inner join RETAILBUYER_PRODUCT_SOURCE V
on P.PRODUCT_ID = V.PRODUCT_ID
where V.PRODUCT_UNITPRICE > 5"
"List lineitem, quantity, product id for product where unit price is more than 5 and contains soup in product description","select P.LINEITEM_ID, P.QUANTITY from RETAILBUYER_POLINEITEM P inner join RETAILBUYER_PRODUCT_SOURCE V
on P.PRODUCT_ID = V.PRODUCT_ID
where V.PRODUCT_DESC LIKE '%Soup%' AND V.PRODUCT_UNITPRICE > 5"
"List lineitem, quantity, product id for product where unit price is more than 5 and quantity is more than 15.","select P.LINEITEM_ID, P.QUANTITY from RETAILBUYER_POLINEITEM P inner join RETAILBUYER_PRODUCT_SOURCE V
on P.PRODUCT_ID = V.PRODUCT_ID
where P.QUANTITY > 15 AND V.PRODUCT_UNITPRICE >5"
What is the maximum product id for Product quantity greater than 25 ,"select max(v.product_id) from RETAILBUYER_POLINEITEM P
inner join
RETAILBUYER_PRODUCT_SOURCE V
on
P.PRODUCT_ID = V.PRODUCT_ID
where P.QUANTITY > 25"
What is the maximum product id of product that contains soup in product description who has been quantity greater than 25.,"select max(v.product_id) from RETAILBUYER_POLINEITEM P
inner join
RETAILBUYER_PRODUCT_SOURCE V
on
P.PRODUCT_ID = V.PRODUCT_ID
where V.PRODUCT_DESC LIKE '%Soup%' AND P.QUANTITY > 25"
What is the maximum lineitem id by unit price whose unit price is more 5,"select max(P.lineitem_id) from RETAILBUYER_POLINEITEM P inner join RETAILBUYER_PRODUCT_SOURCE V
ON P.product_id = V.product_id
group by v.product_unitprice
having V.PRODUCT_unitprice > 5"
"What are the product ids, descriptions and sum of quantities ordered for the products in purchase order line items
","select L.product_id, P.product_desc, sum(L.quantity) from
RETAILBUYER_PRODUCT_SOURCE P
INNER JOIN
RETAILBUYER_POLINEITEM L
ON P.PRODUCT_ID = L.PRODUCT_ID
GROUP BY L.PRODUCT_ID, P.product_desc"
List all product and their details where no product quantity is less than 30,"select * from RETAILBUYER_PRODUCT_SOURCE
where product_id not in (select product_id from RETAILBUYER_POLINEITEM where quantity < 30)"