japat123 commited on
Commit
d61a3bc
·
verified ·
1 Parent(s): b0175cb

Upload llama_fine_tuning_utf8.csv

Browse files
Files changed (1) hide show
  1. llama_fine_tuning_utf8.csv +670 -0
llama_fine_tuning_utf8.csv ADDED
@@ -0,0 +1,670 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 "
213
+ The task is to determine the top 10 dates in terms of revenue .,Which 10 days had the most revenue ?,"SELECT TOP 10 CONVERT(date,o.order_date) AS Date , sum(od.quantity*p.order_price) AS Revenue
214
+ FROM order_details$ AS od
215
+ JOIN pizzas$ AS p
216
+ ON od.pizza_id=p.pizza_id
217
+ JOIN orders$ AS o
218
+ ON o.order_id = od.order_id
219
+ GROUP BY CONVERT(date,o.order_date)
220
+ ORDER BY sum(od.quantity*p.order_price) DESC"
221
+ The task is to determine the revenue corresponding to the pizza id .,What is the revenue corresponding to the pizza id ?,"SELECT od.pizza_id , sum(od.quantity*p.order_price) AS Revenue
222
+ FROM order_details$ AS od , pizzas$ AS p
223
+ WHERE od.pizza_id = p.pizza_id
224
+ GROUP BY od.pizza_id
225
+ ORDER BY od.pizza_id"
226
+ The task is to determine the pizza which brought the most revenue .,Which pizza brought the most revenue ?,"SELECT TOP 1 od.pizza_id , sum(od.quantity*p.order_price) AS Revenue
227
+ FROM order_details$ AS od , pizzas$ AS p
228
+ WHERE od.pizza_id = p.pizza_id
229
+ GROUP BY od.pizza_id
230
+ ORDER BY sum(od.quantity*p.order_price) DESC"
231
+ The task is to determine the 5 pizzas which brought the most revenue .,Which 5 pizzas brought the most revenue ?,"SELECT TOP 5 od.pizza_id , sum(od.quantity*p.order_price) AS Revenue
232
+ FROM order_details$ AS od , pizzas$ AS p
233
+ WHERE od.pizza_id = p.pizza_id
234
+ GROUP BY od.pizza_id
235
+ ORDER BY sum(od.quantity*p.order_price) DESC"
236
+ The task is to determine the 5 pizza which were sold the highest .,Which 5 pizzas were sold the highest ?,"SELECT TOP 5 od.pizza_id , sum(od.quantity) AS pizzas_sold
237
+ FROM order_details$ AS od , pizzas$ AS p
238
+ WHERE od.pizza_id = p.pizza_id
239
+ GROUP BY od.pizza_id
240
+ ORDER BY sum(od.quantity*p.order_price) DESC"
241
+ The task is to determine the average order revenue,What is the average order revenue ?,"SELECT (sum(od.quantity*p.order_price)/MAX(order_id)) AS Average_order_revenue
242
+ FROM order_details$ AS od , pizzas$ AS p
243
+ WHERE od.pizza_id= p.pizza_id"
244
+ The task is to determine the pizza which was sold the least .,Which is the least favourable pizza by sales quantity ?,"SELECT TOP 1 pizza_id , sum(quantity) AS Orders
245
+ FROM order_details$
246
+ GROUP BY pizza_id
247
+ ORDER BY sum(quantity) "
248
+ The task is to determine the pizza which brought the least revenue .,Which is the least favourable pizza by revenue earning ?,"SELECT TOP 1 od.pizza_id , sum(od.quantity*p.order_price) AS Revenue
249
+ FROM order_details$ AS od , pizzas$ AS p
250
+ WHERE od.pizza_id = p.pizza_id
251
+ GROUP BY od.pizza_id
252
+ ORDER BY sum(od.quantity*p.order_price) "
253
+ The task is to determine the number of times that each pizza size has been ordered .,How many times has each pizza size been ordered ?,"SELECT p.order_size , SUM(od.quantity) AS Num_orders
254
+ FROM pizzas$ AS p
255
+ JOIN order_details$ AS od
256
+ ON p.pizza_id=od.pizza_id
257
+ GROUP BY p.order_size"
258
+ The task is to determine the day of the week with the highest revenue ,which day of the week has the highest revenue ?,"with table1 AS
259
+ (
260
+ SELECT distinct(o.order_date) , DATENAME(dw,o.order_date) AS week_day , sum(od.quantity*p.order_price) AS Revenue
261
+ FROM orders$ AS o
262
+ JOIN order_details$ AS od
263
+ ON o.order_id=od.order_id
264
+ JOIN pizzas$ AS p
265
+ ON od.pizza_id=p.pizza_id
266
+ GROUP BY o.order_date
267
+ )
268
+ SELECT TOP 1 week_day , sum(Revenue) AS Total_revenue_of_weekday
269
+ FROM table1
270
+ GROUP BY week_day
271
+ ORDER BY week_day DESC"
272
+ The task is to determine the day of the week with the most number of orders .,Which day of the week has the most number of orders ?,"with table1 AS
273
+ (
274
+ SELECT distinct(o.order_date) , DATENAME(dw,o.order_date) AS week_day , COUNT(o.order_id) AS Orders
275
+ FROM orders$ AS o
276
+ GROUP BY o.order_date
277
+ )
278
+ SELECT TOP 1 week_day , sum(Orders) AS Total_orders_of_weekday
279
+ FROM table1
280
+ GROUP BY week_day
281
+ ORDER BY week_day DESC"
282
+ The task is to detrmine the most ordered pizza.,Which pizza size is ordered the highest ?,"SELECT TOP 1 p.order_size , SUM(od.quantity) AS Num_orders
283
+ FROM pizzas$ AS p
284
+ JOIN order_details$ AS od
285
+ ON p.pizza_id=od.pizza_id
286
+ GROUP BY p.order_size
287
+ ORDER BY SUM(od.quantity) DESC"
288
+ The task is to determine the revenue corresponding to pizza sizes .,What is the revenue corresponding to pizza sizes ?,"SELECT p.order_size, sum(od.quantity*p.order_price) AS Revenue
289
+ FROM pizzas$ AS p
290
+ JOIN order_details$ AS od
291
+ ON od.pizza_id=p.pizza_id
292
+ GROUP BY p.order_size"
293
+ The task is to determine the 5 months with the most 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
294
+ FROM order_details$ AS od
295
+ JOIN pizzas$ AS p
296
+ ON od.pizza_id=p.pizza_id
297
+ JOIN orders$ AS o
298
+ ON o.order_id = od.order_id
299
+ GROUP BY DATENAME(MONTH,o.order_date) , MONTH(o.order_date)
300
+ ORDER BY sum(od.quantity*p.order_price) DESC"
301
+ The task is to determine the 5 days with the highest revenue .,Which 5 dates had the most revenue ?,"SELECT TOP 5 CONVERT(date,o.order_date) , sum(od.quantity*p.order_price) AS Revenue
302
+ FROM order_details$ AS od
303
+ JOIN pizzas$ AS p
304
+ ON od.pizza_id=p.pizza_id
305
+ JOIN orders$ AS o
306
+ ON o.order_id = od.order_id
307
+ GROUP BY CONVERT(date,o.order_date)
308
+ ORDER BY Revenue DESC"
309
+ The task is to determine the 2 dates with the least number of orders ,Which 2 days have the least number of orders ?,"with table1 AS
310
+ (
311
+ SELECT distinct(o.order_date) , DATENAME(dw,o.order_date) AS week_day , COUNT(o.order_id) AS Orders
312
+ FROM orders$ AS o
313
+ GROUP BY o.order_date
314
+ )
315
+ SELECT TOP 2 week_day , sum(Orders) AS Total_orders_of_weekday
316
+ FROM table1
317
+ GROUP BY week_day
318
+ ORDER BY week_day "
319
+ The task is to determine 2 days having the least number of pizzas ordered .,Which 2 days have the least number of pizzas ordered ?,"with table1 AS
320
+ (
321
+ SELECT distinct(o.order_date) , DATENAME(dw,o.order_date) AS week_day , COUNT(od.quantity) AS PizzAS
322
+ FROM orders$ AS o
323
+ JOIN order_details$ AS od
324
+ ON o.order_id=od.order_id
325
+ GROUP BY o.order_date
326
+ )
327
+ SELECT TOP 2 week_day , sum(pizzas) AS PizzAS_on_weekday
328
+ FROM table1
329
+ GROUP BY week_day
330
+ ORDER BY sum(pizzas)"
331
+ The task is to determine the frequency of each pizza ordered .,How frequently is each pizza ordered?,"SELECT pizza_id , sum(quantity) AS Number_of_pizzas
332
+ FROM order_details$ AS od
333
+ GROUP BY pizza_id"
334
+ The task is to determine the frequency of each category of pizza ordered .,How frequently is each pizza category ordered?,"SELECT pt.pizza_category , sum (od.quantity)
335
+ FROM pizza_types$ AS pt
336
+ JOIN pizzas$ AS p
337
+ ON p.pizza_type_id=pt.pizza_type_id
338
+ JOIN order_details$ AS od
339
+ ON od.pizza_id=p.pizza_id
340
+ GROUP BY pt.pizza_category"
341
+ The task is to determine the frequency of each size of pizza ordered .,How frequently is each pizza size ordered ?,"SELECT p.order_size , sum (od.quantity) AS Num_of_pizzas
342
+ FROM pizzas$ AS p
343
+ JOIN order_details$ AS od
344
+ ON od.pizza_id=p.pizza_id
345
+ GROUP BY p.order_size"
346
+ The task is to determine the revenue with respect to different sizes of pizza ordered .,What is the total revenue by pizza sizes ?,"SELECT p.order_size, sum (od.quantity*p.order_price) AS Revenue
347
+ FROM pizzas$ AS p
348
+ JOIN order_details$ AS od
349
+ ON od.pizza_id=p.pizza_id
350
+ GROUP BY p.order_size"
351
+ The task is to detremine the average price difference between pizzas belonging to categories Supreme and Veggie .,What’s the average order price difference between a Supreme and a Vegggie? ,"SELECT
352
+ (
353
+ AVG(CASE WHEN pt.pizza_category = 'Supreme' THEN (p.order_price) END) -
354
+ AVG(CASE WHEN pt.pizza_category = 'Veggie' THEN (p.order_price) END)
355
+ ) AS avg_price_difference
356
+ FROM pizza_types$ AS pt
357
+ JOIN pizzas$ AS p
358
+ ON pt.pizza_type_id=p.pizza_type_id
359
+ WHERE pt.pizza_category IN ('Supreme', 'Veggie');"
360
+ The task is to determine the best size-pizza combination in terms of revenue .,Which size fares better for which pizza in terms of revenue ?," with table1 AS
361
+ (
362
+ SELECT
363
+ pt.pizza_name ,
364
+ p.order_size ,
365
+ SUM(od.quantity*p.order_price) AS Revenue ,
366
+ ROW_NUMBER() over (partitiON by pt.pizza_name ORDER BY SUM(od.quantity) DESC) AS row_num
367
+ FROM pizza_types$ AS pt
368
+ JOIN pizzas$ AS p
369
+ ON p.pizza_type_id=pt.pizza_type_id
370
+ JOIN order_details$ AS od
371
+ ON od.pizza_id=p.pizza_id
372
+ GROUP BY pt.pizza_name , p.order_size
373
+ --ORDER BY Num_Orders DESC
374
+ )
375
+ SELECT pizza_name , order_size , Revenue
376
+ FROM table1
377
+ WHERE row_num=1
378
+ ORDER BY pizza_name"
379
+ The tassk is to determine the best size-pizza combination in terms of number of orders .,Which size fares better for which pizza in terms of number of orders ?,"with table1 AS
380
+ (
381
+ SELECT
382
+ pt.pizza_name ,
383
+ p.order_size ,
384
+ SUM(od.quantity) AS Num_orders ,
385
+ ROW_NUMBER() over (partitiON by pt.pizza_name ORDER BY SUM(od.quantity) DESC) AS row_num
386
+ FROM pizza_types$ AS pt
387
+ JOIN pizzas$ AS p
388
+ ON p.pizza_type_id=pt.pizza_type_id
389
+ JOIN order_details$ AS od
390
+ ON od.pizza_id=p.pizza_id
391
+ GROUP BY pt.pizza_name , p.order_size
392
+ --ORDER BY Num_Orders DESC
393
+ )
394
+ SELECT pizza_name , order_size , Num_orders
395
+ FROM table1
396
+ WHERE row_num=1
397
+ ORDER BY pizza_name"
398
+ The task is to detrmine the number of orders with rewspect to the pizza category,Which pizza category has how many orders ?,"SELECT pt.pizza_category , sum(od.quantity) AS Orders
399
+ FROM pizza_types$ AS pt
400
+ JOIN pizzas$ AS p
401
+ ON p.pizza_type_id=pt.pizza_type_id
402
+ JOIN order_details$ AS od
403
+ ON od.pizza_id=p.pizza_id
404
+ GROUP BY pt.pizza_category
405
+ "
406
+ The task is to determine the revenue with respect to different categories of pizza ordered .,Which pizza category brought how much revenue ?,"SELECT pt.pizza_category , sum(od.quantity*p.order_price) AS Revenue
407
+ FROM pizza_types$ AS pt
408
+ JOIN pizzas$ AS p
409
+ ON p.pizza_type_id=pt.pizza_type_id
410
+ JOIN order_details$ AS od
411
+ ON od.pizza_id=p.pizza_id
412
+ GROUP BY pt.pizza_category
413
+ "
414
+ The task is to determine the category of pizza with the highest number of orders .,which pizza category has the highest number of orders ?,"SELECT TOP 1 pt.pizza_category , COUNT(od.order_id) AS PizzAS
415
+ FROM pizza_types$ AS pt
416
+ JOIN pizzas$ AS p
417
+ ON p.pizza_type_id=pt.pizza_type_id
418
+ JOIN order_details$ AS od
419
+ ON od.pizza_id=p.pizza_id
420
+ GROUP BY pt.pizza_category
421
+ ORDER BY PizzAS DESC"
422
+ The task is to determine the pizz category with the highest revenue .,Which pizza category has the highest revenue ?,"SELECT TOP 1 pt.pizza_category , sum(od.quantity*p.order_price) AS Revenue
423
+ FROM pizza_types$ AS pt
424
+ JOIN pizzas$ AS p
425
+ ON p.pizza_type_id=pt.pizza_type_id
426
+ JOIN order_details$ AS od
427
+ ON od.pizza_id=p.pizza_id
428
+ GROUP BY pt.pizza_category
429
+ ORDER BY Revenue DESC"
430
+ The task is to determine the pizza category with the highest number of pizzas ordered .,Which pizza category has the highest number of pizzas ordered ?,"SELECT TOP 1 pt.pizza_category , sum(od.quantity) AS PizzAS
431
+ FROM pizza_types$ AS pt
432
+ JOIN pizzas$ AS p
433
+ ON p.pizza_type_id=pt.pizza_type_id
434
+ JOIN order_details$ AS od
435
+ ON od.pizza_id=p.pizza_id
436
+ GROUP BY pt.pizza_category
437
+ ORDER BY PizzAS DESC"
438
+ The task is to determine the ingredients in pizzas belonging to pizza category 'Chicken', What are the ingredients used in Chicken pizzas?,"SELECT pizza_name , pizza_ingredients
439
+ FROM pizza_types$
440
+ WHERE pizza_category='Chicken'"
441
+ The task is to determine the ingredients in pizzas belonging to pizza category 'Supreme',What are the ingredients used in Classic pizzas?,"SELECT pizza_name , pizza_ingredients
442
+ FROM pizza_types$
443
+ WHERE pizza_category='Classic'"
444
+ The task is to determine the ingredients in pizzas belonging to pizza category 'Supreme',What are the ingredients used in Supreme pizzas?,"SELECT pizza_name , pizza_ingredients
445
+ FROM pizza_types$
446
+ WHERE pizza_category='Supreme'"
447
+ The task is to determine the ingredients used in Veggie pizzas.,What are the ingredients used in Veggie pizzas?,"SELECT pizza_name , pizza_ingredients
448
+ FROM pizza_types$
449
+ WHERE pizza_category='Veggie'"
450
+ "The task is to determine the average, maximum, and minimum prices for each order size.","What are the average ,maximum and minimum prices for different pizza sizes?","SELECT p.order_size ,
451
+ AVG(od.quantity*p.order_price) AS Average_revenue,
452
+ MAX(od.quantity*p.order_price) Maximum_revenue,
453
+ MIN(od.quantity*p.order_price) AS Minimum_revenue
454
+ FROM pizzas$ AS p
455
+ JOIN order_details$ AS od
456
+ ON od.pizza_id=p.pizza_id
457
+ GROUP BY p.order_size"
458
+ "The task is to determine the average, maximum, and minimum prices for each pizza category.","What are the average ,maximum and minimum prices for different pizza categories?","SELECT pt.pizza_category,
459
+ AVG(od.quantity*p.order_price) AS Average_revenue,
460
+ MAX(od.quantity*p.order_price) Maximum_revenue,
461
+ MIN(od.quantity*p.order_price) AS Minimum_revenue
462
+ FROM pizza_types$ AS pt
463
+ JOIN pizzas$ AS p
464
+ ON p.pizza_type_id = pt.pizza_type_id
465
+ JOIN order_details$ AS od
466
+ ON od.pizza_id=p.pizza_id
467
+ GROUP BY pt.pizza_category"
468
+ The task is to determine the price list for the Veggie pizza based on size.,What is the price list for the Veggie pizza in size 'L' ?,"SELECT p.order_price
469
+ FROM pizzas$ AS p
470
+ JOIN pizza_types$ AS pt
471
+ ON pt.pizza_type_id=p.pizza_type_id
472
+ WHERE pt.pizza_category='Veggie' AND p.order_size='L'"
473
+ The task is to determine the price list for the Supreme pizza based on size.,What is the price list for the Supreme pizza by pizza size?,"SELECT p.order_size , p.order_price
474
+ FROM pizzas$ AS p
475
+ JOIN pizza_types$ AS pt
476
+ ON pt.pizza_type_id=p.pizza_type_id
477
+ WHERE pt.pizza_category='Supreme' "
478
+ The task is to determine the cheapest pizza available within category 'Chicken'.,What’s the cheapest pizza available in pizza category 'Chicken'?,"SELECT TOP 1 pt.pizza_name ,p.order_size, p.order_price
479
+ FROM pizzas$ AS p
480
+ JOIN pizza_types$ AS pt
481
+ ON pt.pizza_type_id=p.pizza_type_id
482
+ WHERE pt.pizza_category='Chicken'
483
+ ORDER BY p.order_price"
484
+ The task is to determine the cheapest pizza available in size 'L' in pizza category 'Classic' .,Which is the cheapest pizza of size 'L' available in pizza category 'Classic' ?,"SELECT TOP 1 pt.pizza_name , p.order_price
485
+ FROM pizzas$ AS p
486
+ JOIN pizza_types$ AS pt
487
+ ON pt.pizza_type_id=p.pizza_type_id
488
+ WHERE pt.pizza_category='Classic' AND p.order_size='L'
489
+ ORDER BY p.order_price"
490
+ The task is to determine the most expensive pizza available within pizza category 'Chicken'.,What is the most expensive pizza available in pizza category 'Chicken'?,"SELECT TOP 1 pt.pizza_name ,p.order_size, p.order_price
491
+ FROM pizzas$ AS p
492
+ JOIN pizza_types$ AS pt
493
+ ON pt.pizza_type_id=p.pizza_type_id
494
+ WHERE pt.pizza_category='Chicken'
495
+ ORDER BY p.order_price DESC"
496
+ The task is to determine the average price difference between medium and large sized pizzas.,What’s the average price difference between a medium and a large sized pizza?,"SELECT
497
+ (
498
+ AVG(CASE WHEN p.order_size = 'M' THEN p.order_price END) -
499
+ AVG(CASE WHEN p.order_size = 'L' THEN p.order_price END)
500
+ ) AS avg_price_difference
501
+ FROM pizzas$ AS p
502
+ WHERE p.order_size IN ('M', 'L');"
503
+ The task is to determine the average price difference between small and large sized pizzas.,What’s the average price difference between a small and a large sized pizza?,"SELECT
504
+ (
505
+ AVG(CASE WHEN p.order_size = 'S' THEN p.order_price END) -
506
+ AVG(CASE WHEN p.order_size = 'L' THEN p.order_price END)
507
+ ) AS avg_price_difference
508
+ FROM pizzas$ AS p
509
+ WHERE p.order_size IN ('S', 'L');"
510
+ The task is to determine the average price difference between small and large medium sized pizzas.,What’s the average price difference between a small and medium pizza?,"SELECT
511
+ (
512
+ AVG(CASE WHEN p.order_size = 'S' THEN p.order_price END) -
513
+ AVG(CASE WHEN p.order_size = 'M' THEN p.order_price END)
514
+ ) AS avg_price_difference
515
+ FROM pizzas$ AS p
516
+ WHERE p.order_size IN ('S', 'M');"
517
+ The task is to identify the most popular pizza type based on pizza sales for pizza category 'Veggie',Which type of pizza is most favourable in terms of pizza sales for pizza category Veggie?,"SELECT TOP 1 pt.pizza_name , MAX(od.quantity) AS Num_pizzas
518
+ FROM pizza_types$ AS pt
519
+ JOIN pizzas$ AS p
520
+ ON p.pizza_type_id=pt.pizza_type_id
521
+ JOIN order_details$ AS od
522
+ ON od.pizza_id=p.pizza_id
523
+ WHERE pt.pizza_category='Veggie'
524
+ GROUP BY pt.pizza_name
525
+ ORDER BY Num_pizzas DESC"
526
+ The task is to identify the most popular pizza type based on revenue for pizza category 'Supreme'.,Which type of pizza is most favourable in terms of revenue for pizza category Supreme?,"SELECT TOP 1 pt.pizza_name , MAX(od.quantity*p.order_price) AS Revenue
527
+ FROM pizza_types$ AS pt
528
+ JOIN pizzas$ AS p
529
+ ON p.pizza_type_id=pt.pizza_type_id
530
+ JOIN order_details$ AS od
531
+ ON od.pizza_id=p.pizza_id
532
+ WHERE pt.pizza_category='Supreme'
533
+ GROUP BY pt.pizza_name
534
+ ORDER BY Revenue DESC"
535
+ The task is to identify the most popular pizza type based on orders for pizza category 'Chicken'.,Which type of pizza is most favourable in tems of orders for pizza category Chicken?,"SELECT TOP 1 pt.pizza_name , COUNT(od.order_id) AS Num_orders
536
+ FROM pizza_types$ AS pt
537
+ JOIN pizzas$ AS p
538
+ ON p.pizza_type_id=pt.pizza_type_id
539
+ JOIN order_details$ AS od
540
+ ON od.pizza_id=p.pizza_id
541
+ WHERE pt.pizza_category='Chicken'
542
+ GROUP BY pt.pizza_name
543
+ ORDER BY Num_orders DESC"
544
+ The task is to determine the pizzas which contain chicken as an ingredient ,Which pizzas contain chicken as part ?,"SELECT pizza_name
545
+ FROM pizza_types$
546
+ WHERE pizza_ingredients LIKE '%chicken%'"
547
+ The task is to determine the pizzas which contain 'tomato' as an ingredient ,Which pizzas contain tomatoes as part ?,"SELECT pizza_name
548
+ FROM pizza_types$
549
+ WHERE pizza_ingredients LIKE '%tomato%'"
550
+ The task is to fetch details about pizzas categorized as 'Veggie'.,What is the information about pizzas which categories in the category Veggie ?,"SELECT *
551
+ FROM pizza_types$
552
+ WHERE pizza_category='Veggie'"
553
+ The task is to identify pizza names that fall under the category 'Supreme'.,What are the pizza name which categories in the category Supreme?,"SELECT pizza_name
554
+ FROM pizza_types$
555
+ WHERE pizza_category='Supreme'"
556
+ The task is to identify the order size with the highest prices.,Which order size have highest order prices?,"SELECT TOP 1 order_size , MAX(order_price) AS Max_price
557
+ FROM pizzas$
558
+ GROUP BY order_size
559
+ ORDER BY Max_price DESC"
560
+ The task is to identify the top 5 pizzas that contain the most ingredients.,Which 5 pizzas contains maximum number of ingredients?,"SELECT TOP 5
561
+ pizza_name ,
562
+ (LEN(pizza_ingredients)-LEN(REPLACE(pizza_ingredients,',',''))
563
+ ) AS num_ingredients
564
+ FROM pizza_types$
565
+ ORDER BY num_ingredients DESC"
566
+ The task is to identify which pizza category contains the most ingredients.,Which pizza category contains maximum number of ingredients?,"SELECT TOP 1
567
+ pizza_category ,
568
+ SUM(len(pizza_ingredients)-LEN(REPLACE(pizza_ingredients,',',''))
569
+ ) AS num_ingredients
570
+ FROM pizza_types$
571
+ GROUP BY pizza_category
572
+ ORDER BY num_ingredients DESC"
573
+ The task is to determine the average price difference between pizzas of category 'Classic' and 'Supreme'.,What’s the average order price difference between a Classic and a Supreme?,"SELECT
574
+ (
575
+ AVG(CASE WHEN pt.pizza_category = 'Classic' THEN p.order_price END) -
576
+ AVG(CASE WHEN pt.pizza_category = 'Supreme' THEN p.order_price END)
577
+ ) AS avg_price_difference
578
+ FROM pizza_types$ AS pt
579
+ JOIN pizzas$ AS p
580
+ ON pt.pizza_type_id = p.pizza_type_id
581
+ WHERE pt.pizza_category IN ('Classic', 'Supreme');
582
+ "
583
+ The task is to determine the average price difference between pizzas of category 'Chicken' and 'Supreme'.,What’s the average order price difference between a Chicken and a Supreme?,"SELECT
584
+ (
585
+ AVG(CASE WHEN pt.pizza_category = 'Chicken' THEN p.order_price END) -
586
+ AVG(CASE WHEN pt.pizza_category = 'Supreme' THEN p.order_price END)
587
+ ) AS avg_price_difference
588
+ FROM pizza_types$ AS pt
589
+ JOIN pizzas$ AS p
590
+ ON pt.pizza_type_id = p.pizza_type_id
591
+ WHERE pt.pizza_category IN ('Chicken', 'Supreme');
592
+ "
593
+ The task is to determine the average price difference between pizzas of category 'Classic' and 'Chicken'.,What’s the average order price difference between a Classic and a Chicken?,"SELECT
594
+ (
595
+ AVG(CASE WHEN pt.pizza_category = 'Classic' THEN p.order_price END) -
596
+ AVG(CASE WHEN pt.pizza_category = 'Chicken' THEN p.order_price END)
597
+ ) AS avg_price_difference
598
+ FROM pizza_types$ AS pt
599
+ JOIN pizzas$ AS p
600
+ ON pt.pizza_type_id = p.pizza_type_id
601
+ WHERE pt.pizza_category IN ('Classic', 'Chicken');
602
+ "
603
+ The task is to determine the average price difference between pizzas of category 'Classic' and 'Veggie'.,What’s the average order price difference between a Classic and a Vegggie?,"SELECT
604
+ (
605
+ AVG(CASE WHEN pt.pizza_category = 'Classic' THEN p.order_price END) -
606
+ AVG(CASE WHEN pt.pizza_category = 'Vegggie' THEN p.order_price END)
607
+ ) AS avg_price_difference
608
+ FROM pizza_types$ AS pt
609
+ JOIN pizzas$ AS p
610
+ ON pt.pizza_type_id = p.pizza_type_id
611
+ WHERE pt.pizza_category IN ('Classic', 'Vegggie');
612
+ "
613
+ The task is to determine the average price difference between pizzas of category 'Chicken' and 'Veggie'.,What’s the average order price difference between a Chicken and a Vegggie?,"SELECT
614
+ (
615
+ AVG(CASE WHEN pt.pizza_category = 'Chicken' THEN p.order_price END) -
616
+ AVG(CASE WHEN pt.pizza_category = 'Vegggie' THEN p.order_price END)
617
+ ) AS avg_price_difference
618
+ FROM pizza_types$ AS pt
619
+ JOIN pizzas$ AS p
620
+ ON pt.pizza_type_id = p.pizza_type_id
621
+ WHERE pt.pizza_category IN ('Chicken', 'Vegggie');
622
+ "
623
+ The task is to determine the average price difference between pizzas of category 'Supreme' and 'Veggie'.,What’s the average order price difference between a Supreme and a Vegggie? ,"SELECT
624
+ (
625
+ AVG(CASE WHEN pt.pizza_category = 'Supreme' THEN p.order_price END) -
626
+ AVG(CASE WHEN pt.pizza_category = 'Vegggie' THEN p.order_price END)
627
+ ) AS avg_price_difference
628
+ FROM pizza_types$ AS pt
629
+ JOIN pizzas$ AS p
630
+ ON pt.pizza_type_id = p.pizza_type_id
631
+ WHERE pt.pizza_category IN ('Supreme', 'Vegggie');
632
+ "
633
+ The task is to find the pizza with the highest order price in each size.,Which pizza name have a highest order price in respect of order size?,"SELECT TOP 1
634
+ p.order_price,
635
+ p.order_size,
636
+ pt.pizza_name
637
+ FROM pizzas$ AS p
638
+ JOIN pizza_types$ AS pt
639
+ ON pt.pizza_type_id = p.pizza_type_id
640
+ ORDER BY p.order_price DESC
641
+
642
+ "
643
+ The task is to determine the average revenue difference between pizzas of category 'Classic' and 'Supreme'.,What is the average revenue difference between Classic and a supreme?,"SELECT
644
+ (
645
+ AVG(CASE WHEN pt.pizza_category = 'Classic' THEN od.quantity * p.order_price END) -
646
+ AVG(CASE WHEN pt.pizza_category = 'Supreme' THEN od.quantity * p.order_price END)
647
+ ) AS avg_revenue_difference
648
+ FROM pizza_types$ AS pt
649
+ JOIN pizzas$ AS p
650
+ ON pt.pizza_type_id = p.pizza_type_id
651
+ JOIN order_details$ AS od
652
+ ON p.pizza_id = od.pizza_id
653
+ WHERE pt.pizza_category IN ('Classic', 'Supreme');
654
+ "
655
+ The task is to determine the average revenue difference between small and large sized pizzas.,What is the average revenue diffenrce between order size 'S' and 'L'?,"SELECT
656
+ (
657
+ AVG(CASE WHEN p.order_size = 'S' THEN (p.order_price*od.quantity) END) -
658
+ AVG(CASE WHEN p.order_size = 'L' THEN (p.order_price*od.quantity) END)
659
+ ) AS avg_price_difference
660
+ FROM pizzas$ AS p
661
+ JOIN order_details$ AS od
662
+ ON od.pizza_id=p.pizza_id
663
+ WHERE p.order_size IN ('S', 'L');"
664
+ The task is to retrieve pizza details for order ID 57.,What are the pizza details for order id 57 ?,"SELECT CONVERT(date,o.order_date) AS Order_date , CONVERT(time,o.order_time) AS Order_time , od.pizza_id , od.quantity , (od.quantity*p.order_price) AS Revenue
665
+ FROM orders$ AS o
666
+ JOIN order_details$ AS od
667
+ ON o.order_id=od.order_id
668
+ JOIN pizzas$ AS p
669
+ ON p.pizza_id=od.pizza_id
670
+ WHERE o.order_id=57"