Update raw/Training_dataset_table.csv
Browse files- raw/Training_dataset_table.csv +31 -94
raw/Training_dataset_table.csv
CHANGED
|
@@ -1,96 +1,33 @@
|
|
| 1 |
Natural Language,Golden Query
|
| 2 |
-
List all PO headers with a valid vendor record in database,select * from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID
|
| 3 |
-
List all details of PO headers which have a vendor in vendor table,select * from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID
|
| 4 |
-
List all columns of PO headers that have a vendor present in vendor table,select * from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID
|
| 5 |
-
List all vendors who have atleast 1 PO issued to them,select * from RETAILBUYER_VENDOR as t1 inner join RETAILBUYER_POHEADER as t2 on t2.VENDOR_ID = t1.VENDOR_ID
|
| 6 |
-
List all details of Vendors who have POs issued to them,select * from RETAILBUYER_VENDOR as t1 inner join RETAILBUYER_POHEADER as t2 on t2.VENDOR_ID = t1.VENDOR_ID
|
| 7 |
-
List all columns of vendor table who have been assigned POs,select * from RETAILBUYER_VENDOR as t1 inner join RETAILBUYER_POHEADER as t2 on t2.VENDOR_ID = t1.VENDOR_ID
|
| 8 |
-
I would like to know the PO issuer and PO issue date for POs that have a vendor present in vendor table,"select t2.PO_ISSUER, t2.PO_ISSUEDT from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1
|
| 9 |
-
on t2.VENDOR_ID = t1.VENDOR_ID"
|
| 10 |
-
|
| 11 |
-
on t2.VENDOR_ID = t1.VENDOR_ID"
|
| 12 |
-
List all vendor contact name and email ids for vendors who have been issued atleast 1 PO,"select t1.contact_first_name, t1.contact_last_name, t1.contact_email from RETAILBUYER_VENDOR as t1 inner join RETAILBUYER_POHEADER as t2 on t2.VENDOR_ID = t1.VENDOR_ID"
|
| 13 |
"List all vendor id, contact name, city and status for vendors who have POs","select t1.vendor_id, t1.contact_first_name, t1.contact_last_name, t1.vendor_city, t1.vendor_status from RETAILBUYER_VENDOR as t1 inner join RETAILBUYER_POHEADER as t2 on t2.VENDOR_ID = t1.VENDOR_ID"
|
| 14 |
-
"I would like to know the PO issuer and PO issue date for POs that have
|
| 15 |
-
|
| 16 |
-
"
|
| 17 |
-
|
| 18 |
-
on t2.VENDOR_ID = t1.VENDOR_ID
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
on t2.VENDOR_ID = t1.VENDOR_ID
|
| 22 |
-
|
| 23 |
-
"
|
| 24 |
-
on t2.VENDOR_ID = t1.VENDOR_ID
|
| 25 |
-
|
| 26 |
-
"
|
| 27 |
-
on t2.
|
| 28 |
-
where t1.
|
| 29 |
-
"
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
t1.
|
| 33 |
-
List
|
| 34 |
-
|
| 35 |
-
where t1.
|
| 36 |
-
t1.VENDOR_STATUS = 'active'"
|
| 37 |
-
"List PO id, issuer, issue date, ship by date for POs issued to vendors present in vendor table and PO issue and ship by date are in 2021","select t2.PO_ID, t2.PO_ISSUER, t2.PO_ISSUEDT, t2.PO_SHIPBY from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1
|
| 38 |
-
on t2.VENDOR_ID = t1.VENDOR_ID
|
| 39 |
-
where YEAR(t2.PO_ISSUEDT) = 2021 AND YEAR(t2.PO_SHIPBY) = 2021"
|
| 40 |
-
"List PO id, issuer, issue date, ship by date for POs issued to valid vendors and PO issue and ship by date are both in 2021","select t2.PO_ID, t2.PO_ISSUER, t2.PO_ISSUEDT, t2.PO_SHIPBY from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1
|
| 41 |
-
on t2.VENDOR_ID = t1.VENDOR_ID
|
| 42 |
-
where YEAR(t2.PO_ISSUEDT) = 2021 AND YEAR(t2.PO_SHIPBY) = 2021"
|
| 43 |
-
"List PO id, issuer and issue date for POs where vendor is based out of Houston and PO ship by date is in 2021","select t2.PO_ID, t2.PO_ISSUER, t2.PO_ISSUEDT from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1
|
| 44 |
-
on t2.VENDOR_ID = t1.VENDOR_ID
|
| 45 |
-
where YEAR(t2.PO_ISSUEDT) = 2021 AND YEAR(t2.PO_SHIPBY) = 2021"
|
| 46 |
-
"List PO id, issuer and issue date for POs where vendor is based out of Boston and PO issuer name starts with ""Dino""","select t2.PO_ID, t2.PO_ISSUER, t2.PO_ISSUEDT from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1
|
| 47 |
-
on t2.VENDOR_ID = t1.VENDOR_ID
|
| 48 |
-
where t2.PO_ISSUER like 'Dino%' AND t1.Vendor_City = 'Boston'"
|
| 49 |
-
What is the maximum vendor id of vendor present in vendor table who has been issued a PO in 2021,"select max(t1.vendor_id) from RETAILBUYER_POHEADER t2
|
| 50 |
-
inner join
|
| 51 |
-
RETAILBUYER_VENDOR as t1
|
| 52 |
-
on
|
| 53 |
-
t2.vendor_id = t1.vendor_id
|
| 54 |
-
where YEAR(t2.po_issuedt) = 2021"
|
| 55 |
-
From how many different cities were the vendors who were issued a PO in 2021?,"select count(distinct(t1.vendor_city)) from
|
| 56 |
-
RETAILBUYER_POHEADER t2
|
| 57 |
-
inner join
|
| 58 |
-
RETAILBUYER_VENDOR as t1
|
| 59 |
-
on
|
| 60 |
-
t2.vendor_id = t1.vendor_id
|
| 61 |
-
where YEAR(t2.po_issuedt) = 2021"
|
| 62 |
-
What is the maximum vendor id of vendor based out of Houston who has been issued a PO ,"select max(t1.vendor_id) from RETAILBUYER_POHEADER t2
|
| 63 |
-
inner join
|
| 64 |
-
RETAILBUYER_VENDOR as t1
|
| 65 |
-
on
|
| 66 |
-
t2.vendor_id = t1.vendor_id
|
| 67 |
-
where t1.Vendor_City = 'Houston'"
|
| 68 |
-
How many vendors based out of Houston have been issued a PO,"select max(t1.vendor_id) from RETAILBUYER_POHEADER t2
|
| 69 |
-
inner join
|
| 70 |
-
RETAILBUYER_VENDOR as t1
|
| 71 |
-
on
|
| 72 |
-
t2.vendor_id = t1.vendor_id
|
| 73 |
-
where t1.Vendor_City = 'Houston'"
|
| 74 |
-
How many vendors whose status is active or preferred have been issued a PO,"select count(t1.vendor_id) from RETAILBUYER_POHEADER t2
|
| 75 |
-
inner join
|
| 76 |
-
RETAILBUYER_VENDOR as t1
|
| 77 |
-
on
|
| 78 |
-
t2.vendor_id = t1.vendor_id
|
| 79 |
-
where t1.Vendor_status in ('active', 'preferred)"
|
| 80 |
-
What is the most recent ship by date for vendor who is based out of 'Houston',"select max(t2.po_shipby) from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1
|
| 81 |
-
ON t2.vendor_id = t1.vendor_id
|
| 82 |
-
group by t1.vendor_city
|
| 83 |
-
having t1.vendor_city = 'Houston'"
|
| 84 |
-
"What are the product ids, descriptions and sum of quantities ordered for the products in purchase order line items
|
| 85 |
-
","select L.product_id, t2.product_desc, sum(t1.quantity) from
|
| 86 |
-
RETAILBUYER_PRODUCT_SOURCE t2
|
| 87 |
-
INNER JOIN
|
| 88 |
-
RETAILBUYER_POLINEITEM as t1
|
| 89 |
-
ON t2.PRODUCT_ID = t1.PRODUCT_ID
|
| 90 |
-
GROUP BY t1.PRODUCT_ID, t2.product_desc"
|
| 91 |
-
"What are the product ids and descriptions, sum of quantities ordered for products in purchase order line items ordered in descending order of quantity","select L.product_id, t2.product_desc, sum(t1.quantity) from RETAILBUYER_PRODUCT_SOURCE as t2 INNER JOIN RETAILBUYER_POLINEITEM as t2 ON t2.PRODUCT_ID = L.PRODUCT_ID GROUP BY L.PRODUCT_ID, t2.product_desc order by sum(L.quantity) desc"
|
| 92 |
-
List all vendors and their details for whom no PO has been issued,"select * from RETAILBUYER_VENDOR
|
| 93 |
-
where as t1endor_id not in (select as t1.vendor_id from RETAILBUYER_POHEADER)"
|
| 94 |
-
List all vendors details who have never had Pos issued to them,"select * from RETAILBUYER_VENDOR
|
| 95 |
-
where as t1endor_id not in (select as t1.vendor_id from RETAILBUYER_POHEADER)"
|
| 96 |
-
List all vendors information who have never had Pos issued to them,select * from RETAILBUYER_VENDOR where as t1endor_id not in (select as t1.vendor_id from RETAILBUYER_POHEADER)
|
|
|
|
| 1 |
Natural Language,Golden Query
|
| 2 |
+
"List all PO headers with a valid vendor record in database","select * from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID"
|
| 3 |
+
"List all details of PO headers which have a vendor in vendor table","select * from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID"
|
| 4 |
+
"List all columns of PO headers that have a vendor present in vendor table","select * from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID"
|
| 5 |
+
"List all vendors who have atleast 1 PO issued to them","select * from RETAILBUYER_VENDOR as t1 inner join RETAILBUYER_POHEADER as t2 on t2.VENDOR_ID = t1.VENDOR_ID"
|
| 6 |
+
"List all details of Vendors who have POs issued to them","select * from RETAILBUYER_VENDOR as t1 inner join RETAILBUYER_POHEADER as t2 on t2.VENDOR_ID = t1.VENDOR_ID"
|
| 7 |
+
"List all columns of vendor table who have been assigned POs","select * from RETAILBUYER_VENDOR as t1 inner join RETAILBUYER_POHEADER as t2 on t2.VENDOR_ID = t1.VENDOR_ID"
|
| 8 |
+
"I would like to know the PO issuer and PO issue date for POs that have a vendor present in vendor table","select t2.PO_ISSUER, t2.PO_ISSUEDT from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID"
|
| 9 |
+
"Show me PO issuer and PO issue date for POs that have a vendor present in vendor table","select t2.PO_ISSUER, t2.PO_ISSUEDT from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID"
|
| 10 |
+
"List all vendor contact name and email ids for vendors who have been issued atleast 1 PO","select t1.contact_first_name, t1.contact_last_name, t1.contact_email from RETAILBUYER_VENDOR as t1 inner join RETAILBUYER_POHEADER as t2 on t2.VENDOR_ID = t1.VENDOR_ID"
|
|
|
|
|
|
|
| 11 |
"List all vendor id, contact name, city and status for vendors who have POs","select t1.vendor_id, t1.contact_first_name, t1.contact_last_name, t1.vendor_city, t1.vendor_status from RETAILBUYER_VENDOR as t1 inner join RETAILBUYER_POHEADER as t2 on t2.VENDOR_ID = t1.VENDOR_ID"
|
| 12 |
+
"I would like to know the PO issuer and PO issue date for POs that have a valid vendor that had to be shipped by 2021","select t2.PO_ISSUER, t2.PO_ISSUEDT from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID where YEAR(t2.PO_SHIPBY) = 2021"
|
| 13 |
+
"Show me PO id, PO issuer and PO Ship by date for POs that have vendor in vendor table and PO ship by date in 2021","select t2.PO_ID, t2.PO_ISSUER, t2.PO_SHIPBY from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID where YEAR(t2.PO_SHIPBY) = 2021"
|
| 14 |
+
"I would like to know the PO issuer and PO issue date for POs where vendor is based out of Houston","select t2.PO_ISSUER, t2.PO_ISSUEDT from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID where t1.VENDOR_CITY = 'Houston'"
|
| 15 |
+
"Show me PO id, PO issuer and PO Ship by date for POs whose vendors are in active status","select t2.PO_ID, t2.PO_ISSUER, t2.PO_SHIPBY from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID where t1.VENDOR_STATUS = 'active'"
|
| 16 |
+
"Show me PO id, PO issuer and PO Ship by date for POs whose vendors contact name starts with "Bar"","select t2.PO_ID, t2.PO_ISSUER, t2.PO_SHIPBY from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID where t1.CONTACT_FIRST_NAME LIKE '%Bar%'"
|
| 17 |
+
"List PO id, issuer and issue date for POs issued to vendors based out of Houston and status is active","select t2.PO_ID, t2.PO_ISSUER, t2.PO_ISSUEDT from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID where t1.VENDOR_CITY = 'Houston' and t1.VENDOR_STATUS = 'active'"
|
| 18 |
+
"List PO issuer and PO issue date for POs where vendor is based out of Houston and vendor is in active status","select t2.PO_ISSUER, t2.PO_ISSUEDT from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID where t1.VENDOR_CITY = 'Houston' and t1.VENDOR_STATUS = 'active'"
|
| 19 |
+
"List PO id, issuer, issue date, ship by date for POs issued to vendors present in vendor table and PO issue and ship by date are in 2021","select t2.PO_ID, t2.PO_ISSUER, t2.PO_ISSUEDT, t2.PO_SHIPBY from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID where YEAR(t2.PO_ISSUEDT) = 2021 AND YEAR(t2.PO_SHIPBY) = 2021"
|
| 20 |
+
"List PO id, issuer, issue date, ship by date for POs issued to valid vendors and PO issue and ship by date are both in 2021","select t2.PO_ID, t2.PO_ISSUER, t2.PO_ISSUEDT, t2.PO_SHIPBY from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID where YEAR(t2.PO_ISSUEDT) = 2021 AND YEAR(t2.PO_SHIPBY) = 2021"
|
| 21 |
+
"List PO id, issuer and issue date for POs where vendor is based out of Houston and PO ship by date is in 2021","select t2.PO_ID, t2.PO_ISSUER, t2.PO_ISSUEDT from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID where YEAR(t2.PO_ISSUEDT) = 2021 AND YEAR(t2.PO_SHIPBY) = 2021"
|
| 22 |
+
"List PO id, issuer and issue date for POs where vendor is based out of Boston and PO issuer name starts with 'Dino'Aman6917/autotrain-data-exact_data","select t2.PO_ID, t2.PO_ISSUER, t2.PO_ISSUEDT from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.VENDOR_ID = t1.VENDOR_ID where t2.PO_ISSUER like 'Dino%' AND t1.Vendor_City = 'Boston'"
|
| 23 |
+
"What is the maximum vendor id of vendor present in vendor table who has been issued a PO in 2021","select max(t1.vendor_id) from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.vendor_id = t1.vendor_id where YEAR(t2.po_issuedt) = 2021"
|
| 24 |
+
"From how many different cities were the vendors who were issued a PO in 2021?","select count(distinct(t1.vendor_city)) from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.vendor_id = t1.vendor_id where YEAR(t2.po_issuedt) = 2021"
|
| 25 |
+
"What is the maximum vendor id of vendor based out of Houston who has been issued a PO ","select max(t1.vendor_id) from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.vendor_id = t1.vendor_id where t1.Vendor_City = 'Houston'"
|
| 26 |
+
"How many vendors based out of Houston have been issued a PO","select max(t1.vendor_id) from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 on t2.vendor_id = t1.vendor_id where t1.Vendor_City = 'Houston'"
|
| 27 |
+
"How many vendors whose status is active or preferred have been issued a PO","select count(t1.vendor_id) from RETAILBUYER_POHEADER t2 inner join RETAILBUYER_VENDOR as t1 on t2.vendor_id = t1.vendor_id where t1.Vendor_status in ('active', 'preferred')"
|
| 28 |
+
"What is the most recent ship by date for vendor who is based out of 'Houston'","select max(t2.po_shipby) from RETAILBUYER_POHEADER as t2 inner join RETAILBUYER_VENDOR as t1 ON t2.vendor_id = t1.vendor_id group by t1.vendor_city having t1.vendor_city = 'Houston'"
|
| 29 |
+
"What are the product ids, descriptions and sum of quantities ordered for the products in purchase order line items","select L.product_id, t2.product_desc, sum(t1.quantity) from RETAILBUYER_PRODUCT_SOURCE as t2 INNER JOIN RETAILBUYER_POLINEITEM as t1 ON t2.PRODUCT_ID = t1.PRODUCT_ID GROUP BY t1.PRODUCT_ID, t2.product_desc"
|
| 30 |
+
"What are the product ids and descriptions, sum of quantities ordered for products in purchase order line items ordered in descending order of quantity","select t1.product_id, t2.product_desc, sum(t1.quantity) from RETAILBUYER_PRODUCT_SOURCE as t1 INNER JOIN RETAILBUYER_POLINEITEM as t2 ON t2.PRODUCT_ID = t1.PRODUCT_ID GROUP BY t1.PRODUCT_ID, t1.product_desc order by sum(t2.quantity) desc"
|
| 31 |
+
"List all vendors and their details for whom no PO has been issued","select * from RETAILBUYER_VENDOR where as t1endor_id not in (select as t1.vendor_id from RETAILBUYER_POHEADER)"
|
| 32 |
+
"List all vendors details who have never had Pos issued to them","select * from RETAILBUYER_VENDOR where as t1.vendor_id not in (select as t1.vendor_id from RETAILBUYER_POHEADER)"
|
| 33 |
+
"List all vendors information who have never had Pos issued to them","select * from RETAILBUYER_VENDOR where as t1.vendor_id not in (select as t1.vendor_id from RETAILBUYER_POHEADER)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|