Aman6917 commited on
Commit
852a88a
1 Parent(s): 71599c6

Upload AutoTrain files

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