japat123 commited on
Commit
033706d
·
verified ·
1 Parent(s): e1c3f79

Upload fine_tuning_csv_small.csv

Browse files
Files changed (1) hide show
  1. fine_tuning_csv_small.csv +212 -0
fine_tuning_csv_small.csv ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ instruction,input,output
2
+ The task is to determine the order details of pizzas sold on '2015-01-01' .,"How many pizzas of each type were sold on ""2015-01-01"" ?","SELECT order_details$.pizza_id, COUNT(order_details$.pizza_id) FROM order_details$ , orders$
3
+ WHERE orders$.order_id=order_details$.order_id
4
+ AND orders$.order_date='2015-01-01'
5
+ GROUP BY order_details$.pizza_id
6
+ ORDER BY COUNT(order_details$.pizza_id) DESC"
7
+ The task is to determine the number of pizzas were sold daily .,How many pizzas were sold daily ?,"SELECT CONVERT(date,orders$.order_date) , COUNT(order_details$.order_details_id*order_details$.quantity)
8
+ FROM order_details$ ,orders$
9
+ WHERE order_details$.order_id=orders$.order_id
10
+ GROUP BY CONVERT(date,orders$.order_date)
11
+ ORDER BY CONVERT(date,orders$.order_date)"
12
+ The task is to determine the number of pizzas sold monthly .,How many pizzas were sold monthly ?,"SELECT month(CONVERT(date,orders$.order_date)) , COUNT(order_details$.order_details_id*order_details$.quantity)
13
+ FROM order_details$ ,orders$
14
+ WHERE order_details$.order_id=orders$.order_id
15
+ GROUP BY month(CONVERT(date,orders$.order_date))
16
+ ORDER BY month(CONVERT(date,orders$.order_date))"
17
+ The task is to determine the number of orders placed daily .,How many orders were there daily ?,"SELECT CONVERT(date,order_date) , COUNT(order_id)
18
+ FROM orders$
19
+ GROUP BY CONVERT(date,order_date)
20
+ ORDER BY CONVERT(date,order_date)"
21
+ The task is to determine the number of orders monthly .,How many orders were there monthly ?,"SELECT DATENAME(MONTH, order_date) ,COUNT(*)
22
+ FROM orders$
23
+ GROUP BY DATENAME(MONTH, order_date), MONTH(order_date)
24
+ ORDER BY MONTH(order_date)"
25
+ The task is to determine the number of pizzas of each type sold daily .,How many many pizzas of each type were sold ?,"SELECT pizza_id , COUNT(pizza_id)
26
+ FROM order_details$
27
+ GROUP BY pizza_id "
28
+ The task is to determine the number of pizzas of each type sold monthly .,How many pizzas of each type were sold every month ?,"SELECT DATENAME(month,o.order_date) AS Order_month, od.pizza_id , COUNT(od.pizza_id) AS Num_pizzas
29
+ FROM order_details$ AS od, orders$ AS o
30
+ WHERE od.order_id=o.order_id
31
+ GROUP BY od.pizza_id ,DATENAME(month,o.order_date),MONTH(CONVERT(date,o.order_date))
32
+ ORDER BY MONTH(CONVERT(date,o.order_date)) , COUNT(od.pizza_id) DESC"
33
+ The task is to determine the order details for order id 27 .,what are the order details for pizza of order_id 27 ?,"SELECT
34
+ pt.pizza_name,
35
+ p.order_size,
36
+ od.quantity
37
+ FROM order_details$ AS od
38
+ JOIN pizzas$ p ON od.pizza_id = p.pizza_id
39
+ JOIN pizza_types$ pt ON p.pizza_type_id = pt.pizza_type_id
40
+ WHERE od.order_id = 27;"
41
+ The task is to determine the most sold pizza each month .,which pizza was ordered the most each month ?,"with table1 AS
42
+ (
43
+ SELECT
44
+ DATENAME(month,o.order_date) AS Order_month,
45
+ MONTH(CONVERT(date,o.order_date)) AS Month_num ,
46
+ od.pizza_id ,
47
+ COUNT(od.pizza_id) AS Num_pizzas ,
48
+ ROW_NUMBER() over (partition by DATENAME(month,o.order_date) ORDER BY MONTH(CONVERT(date,o.order_date)) , COUNT(od.pizza_id) DESC) AS row_num
49
+ FROM order_details$ AS od, orders$ AS o
50
+ WHERE od.order_id=o.order_id
51
+ GROUP BY od.pizza_id ,DATENAME(month,o.order_date),MONTH(CONVERT(date,o.order_date))
52
+ )
53
+ SELECT Order_month , pizza_id , Num_pizzas
54
+ FROM table1
55
+ WHERE row_num=1
56
+ ORDER BY Month_num"
57
+ The task is to determine the number of average orders per month .,How many orders were there on average each month ?,"SELECT cast((max(order_id)/12)AS int)
58
+ FROM orders$"
59
+ the task is to determine the number of average orders per day .,How many orders were there on average each day ?,"SELECT cast((MAX(order_id)/COUNT(distinct order_date)) AS int)
60
+ FROM orders$"
61
+ The task is to determine the day on which most pizzas were sold .,Which day were the most pizzas sold ?,"SELECT TOP 1 CONVERT(date,orders$.order_date) , COUNT(order_details$.order_details_id*order_details$.quantity)
62
+ FROM order_details$ ,orders$
63
+ WHERE order_details$.order_id=orders$.order_id
64
+ GROUP BY CONVERT(date,orders$.order_date)
65
+ ORDER BY COUNT(order_details$.order_details_id*order_details$.quantity) DESC"
66
+ The task is to determine the month in which most pizzas were sold .,Which month were the most pizzas sold ?,"SELECT TOP 1 DATENAME(MONTH, order_date) ,COUNT(*)
67
+ FROM orders$
68
+ GROUP BY DATENAME(MONTH, order_date), MONTH(order_date)
69
+ ORDER BY COUNT(*) DESC"
70
+ "The task is to determine the day with the highest revenue ,",Which day had the highest revenue ?,"SELECT TOP 1 CONVERT(date,o.order_date) , sum(od.quantity*p.order_price)
71
+ FROM order_details$ AS od
72
+ JOIN pizzas$ AS p
73
+ ON od.pizza_id=p.pizza_id
74
+ JOIN orders$ AS o
75
+ ON o.order_id = od.order_id
76
+ GROUP BY CONVERT(date,o.order_date)
77
+ ORDER BY sum(od.quantity*p.order_price) DESC"
78
+ The task is to determine the month with the highest revenue .,Which month had the highest revenue ?,"SELECT TOP 1 DATENAME(MONTH,o.order_date) AS Month_Name , sum(od.quantity*p.order_price) AS Revenue
79
+ FROM order_details$ AS od
80
+ JOIN pizzas$ AS p
81
+ ON od.pizza_id=p.pizza_id
82
+ JOIN orders$ AS o
83
+ ON o.order_id = od.order_id
84
+ GROUP BY DATENAME(MONTH,o.order_date) , MONTH(o.order_date)
85
+ ORDER BY sum(od.quantity*p.order_price) DESC "
86
+ The task is to determine the total revenue each day .,What was the total revenue each day ?,"SELECT CONVERT(date,o.order_date) , sum(od.quantity*p.order_price)
87
+ FROM order_details$ AS od
88
+ JOIN pizzas$ AS p
89
+ ON od.pizza_id=p.pizza_id
90
+ JOIN orders$ AS o
91
+ ON o.order_id = od.order_id
92
+ GROUP BY CONVERT(date,o.order_date)
93
+ ORDER BY CONVERT(date,o.order_date) "
94
+ The task is to determine the total revenue each month .,What was the total revenue each month ?,"SELECT DATENAME(MONTH,o.order_date) , sum(od.quantity*p.order_price)
95
+ FROM order_details$ AS od
96
+ JOIN pizzas$ AS p
97
+ ON od.pizza_id=p.pizza_id
98
+ JOIN orders$ AS o
99
+ ON o.order_id = od.order_id
100
+ GROUP BY DATENAME(MONTH,o.order_date) , MONTH(o.order_date)
101
+ ORDER BY MONTH(o.order_date)"
102
+ The task is to determine the total revenue of the pizza place .,What was the total revenue of the pizza place?,"SELECT cast(sum(od.quantity*p.order_price) AS int)
103
+ FROM order_details$ AS od
104
+ full JOIN pizzas$ AS p
105
+ ON od.pizza_id=p.pizza_id"
106
+ The task is to determine how many pizzas were sold in each category .,Which pizza category has sold how many pizzas ?,"SELECT
107
+ pt.pizza_category ,
108
+ COUNT(pt.pizza_category) AS Number_of_pizzas
109
+ FROM order_details$ AS od
110
+ JOIN orders$ AS o
111
+ ON od.order_id=o.order_id
112
+ JOIN pizzas$ AS p
113
+ ON od.pizza_id=p.pizza_id
114
+ JOIN pizza_types$ AS pt
115
+ ON p.pizza_type_id=pt.pizza_type_id
116
+ GROUP BY pt.pizza_category"
117
+ The task is to determine the most sold pizza category in terms of sales .,Which pizza category is the most sold till now?,"SELECT TOP 1
118
+ pt.pizza_category ,
119
+ COUNT(pt.pizza_category) AS Number_of_pizzas
120
+ FROM order_details$ AS od
121
+ JOIN orders$ AS o
122
+ ON od.order_id=o.order_id
123
+ JOIN pizzas$ AS p
124
+ ON od.pizza_id=p.pizza_id
125
+ JOIN pizza_types$ AS pt
126
+ ON p.pizza_type_id=pt.pizza_type_id
127
+ GROUP BY pt.pizza_category
128
+ ORDER BY COUNT(pt.pizza_category) DESC"
129
+ The task is to determine the most sold pizza category in terms of sales each month .,Which pizza category is the most sold each month ?,"with table1 AS
130
+ (
131
+ SELECT
132
+ DATENAME(month,o.order_date) AS Order_month,
133
+ MONTH(CONVERT(date,o.order_date)) AS Month_num ,
134
+ pt.pizza_category ,
135
+ COUNT(pt.pizza_category) AS Num_pizzas ,
136
+ ROW_NUMBER() over (partitiON by DATENAME(month,o.order_date) ORDER BY MONTH(CONVERT(date,o.order_date)) , COUNT(pt.pizza_category) DESC) AS row_num
137
+ FROM orders$ AS o
138
+ JOIN order_details$ AS od
139
+ ON od.order_id=o.order_id
140
+ JOIN pizzas$ AS p
141
+ ON p.pizza_id=od.pizza_id
142
+ JOIN pizza_types$ AS pt
143
+ ON pt.pizza_type_id=p.pizza_type_id
144
+ GROUP BY pt.pizza_category ,DATENAME(month,o.order_date),MONTH(CONVERT(date,o.order_date))
145
+ )
146
+ SELECT Order_month , pizza_category , Num_pizzas
147
+ FROM table1
148
+ WHERE row_num=1
149
+ ORDER BY Month_num"
150
+ The task is to determine the month with the highest number of orders .,Which month had the highest number of orders ?,"SELECT TOP 1 DATENAME(month,CONVERT(date,order_date)) , COUNT(order_id)
151
+ FROM orders$
152
+ GROUP BY DATENAME(month,CONVERT(date,order_date))
153
+ ORDER BY COUNT(order_id) DESC"
154
+ The task is to determine the date with the highest number of orders .,Which day had the highest number of orders ?,"SELECT TOP 1 CONVERT(date,order_date) , COUNT(order_id)
155
+ FROM orders$
156
+ GROUP BY CONVERT(date,order_date)
157
+ ORDER BY COUNT(order_id) DESC"
158
+ The task is to determine the number of pizzas of each category sold everyday .,How much pizzas of each category were sold each day ?,"SELECT
159
+ CONVERT(date,o.order_date) AS Date_,
160
+ pt.pizza_category ,
161
+ COUNT(pt.pizza_category) AS Number_of_pizzas
162
+ FROM order_details$ AS od
163
+ JOIN orders$ AS o
164
+ ON od.order_id=o.order_id
165
+ JOIN pizzas$ AS p
166
+ ON od.pizza_id=p.pizza_id
167
+ JOIN pizza_types$ AS pt
168
+ ON p.pizza_type_id=pt.pizza_type_id
169
+ GROUP BY CONVERT(date,o.order_date) , pt.pizza_category
170
+ ORDER BY CONVERT(date,o.order_date)"
171
+ The task is to determine the number of pizzas of each category sold each month.,How much pizzas of each category were sold each month ?,"SELECT
172
+ DATENAME(MONTH,o.order_date) AS Month_name,
173
+ pt.pizza_category ,
174
+ COUNT(pt.pizza_category) AS Number_of_pizzas
175
+ FROM order_details$ AS od
176
+ JOIN orders$ AS o
177
+ ON od.order_id=o.order_id
178
+ JOIN pizzas$ AS p
179
+ ON od.pizza_id=p.pizza_id
180
+ JOIN pizza_types$ AS pt
181
+ ON p.pizza_type_id=pt.pizza_type_id
182
+ GROUP BY DATENAME(MONTH,o.order_date) , pt.pizza_category,MONTH(o.order_date)
183
+ ORDER BY MONTH(o.order_date)"
184
+ The task is to determine the number of orders placed each day .,How many orders were placed each day ?,"SELECT CONVERT(date,order_date) , COUNT(order_id)
185
+ FROM orders$
186
+ GROUP BY CONVERT(date,order_date)
187
+ ORDER BY CONVERT(date,order_date)"
188
+ The task is to determine the number of orders placed each month .,How many orders were placed each month ?,"SELECT DATENAME(month,CONVERT(date,order_date)) , COUNT(order_id)
189
+ FROM orders$
190
+ GROUP BY DATENAME(month,CONVERT(date,order_date)) , MONTH(order_date)
191
+ ORDER BY MONTH(order_date)"
192
+ The task is to determine the revenue corresponding to each order .,What is the revenue correponding to each order ?,"SELECT od.order_id , sum(od.quantity*p.order_price) AS revenue
193
+ FROM order_details$ AS od , pizzas$ AS p
194
+ WHERE od.pizza_id = p.pizza_id
195
+ GROUP BY od.order_id
196
+ ORDER BY od.order_id"
197
+ The task is to determine the top 5 months in terms of revenue .,Which 5 months had the most revenue ?,"SELECT TOP 5 DATENAME(MONTH,o.order_date) AS Month_Name , sum(od.quantity*p.order_price) AS Revenue
198
+ FROM order_details$ AS od
199
+ JOIN pizzas$ AS p
200
+ ON od.pizza_id=p.pizza_id
201
+ JOIN orders$ AS o
202
+ ON o.order_id = od.order_id
203
+ GROUP BY DATENAME(MONTH,o.order_date) , MONTH(o.order_date)
204
+ ORDER BY sum(od.quantity*p.order_price) DESC "
205
+ The task is to detemine the last 5 months in terms of revenue .,Which 5 months had the least revenue ?,"SELECT TOP 5 DATENAME(MONTH,o.order_date) AS Month_Name , sum(od.quantity*p.order_price) AS Revenue
206
+ FROM order_details$ AS od
207
+ JOIN pizzas$ AS p
208
+ ON od.pizza_id=p.pizza_id
209
+ JOIN orders$ AS o
210
+ ON o.order_id = od.order_id
211
+ GROUP BY DATENAME(MONTH,o.order_date) , MONTH(o.order_date)
212
+ ORDER BY sum(od.quantity*p.order_price) DESC "