webrlvr/random_sample/generated_tasks.json.bak
2025-06-11 17:30:06 +08:00

3539 lines
56 KiB
JSON

[
{
"question": "What is the SKU of the product with entity_id 1304?",
"answer": "adrienne-trek-jacket-s-gray",
"sql": "SELECT value FROM catalog_product_entity_varchar WHERE entity_id = 1304 AND attribute_id = 121 AND store_id = 0;",
"sql_execute_result": [
[
"adrienne-trek-jacket-s-gray"
]
]
},
{
"question": "What is the shipping method for the order with increment ID '000000092'?",
"answer": "flatrate_flatrate",
"sql": "SELECT shipping_method FROM sales_order WHERE increment_id = '000000092';",
"sql_execute_result": [
[
"flatrate_flatrate"
]
]
},
{
"question": "What is the total quantity ordered for the order with entity ID 166?",
"answer": "5.0000",
"sql": "SELECT total_qty_ordered FROM sales_order WHERE entity_id = 166;",
"sql_execute_result": [
[
"5.0000"
]
]
},
{
"question": "What is the base grand total for the sales order with entity ID 190?",
"answer": "145.0000",
"sql": "SELECT base_grand_total FROM sales_order WHERE entity_id = 190;",
"sql_execute_result": [
[
"145.0000"
]
]
},
{
"question": "Has the email for the order with increment ID '000000092' been sent?",
"answer": "Yes, the email for the order with increment ID '000000092' has been sent.",
"sql": "SELECT email_sent FROM sales_order WHERE increment_id = '000000092';",
"sql_execute_result": [
[
1
]
]
},
{
"question": "List all complete orders with a flat rate shipping method.",
"answer": [
4,
9,
11,
13,
16,
17,
20,
21,
22,
23,
24,
27,
28,
31,
32,
33,
34,
35,
36,
37,
43,
45,
47,
48,
50,
51,
53,
54,
55,
57,
61,
62,
64,
69,
70,
71,
73,
75,
78,
79,
82,
83,
84,
87,
89,
90,
91,
92,
93,
96,
97,
99,
100,
102,
104,
105,
112,
113,
114,
115,
116,
119,
121,
127,
128,
130,
131,
133,
137,
138,
139,
140,
145,
146,
147,
148,
150,
154,
155,
156,
158,
160,
161,
163,
164,
166,
169,
179,
181,
182,
184,
186,
187,
188,
189,
190,
192,
196,
197,
199,
200,
201,
202,
203,
205,
207,
208,
213,
214,
215,
216,
217,
218,
223,
225,
228,
230,
231,
233,
235,
236,
237,
238,
239,
240,
243,
247,
250,
251,
253,
256,
257,
258,
260,
262,
263,
264,
268,
269,
270,
274,
276,
277,
281,
282,
284,
285,
286,
287,
288,
295,
297,
298
],
"sql": "SELECT entity_id FROM sales_order WHERE status = 'complete' AND shipping_method = 'flatrate_flatrate';",
"sql_execute_result": [
[
4
],
[
9
],
[
11
],
[
13
],
[
16
],
[
17
],
[
20
],
[
21
],
[
22
],
[
23
],
[
24
],
[
27
],
[
28
],
[
31
],
[
32
],
[
33
],
[
34
],
[
35
],
[
36
],
[
37
],
[
43
],
[
45
],
[
47
],
[
48
],
[
50
],
[
51
],
[
53
],
[
54
],
[
55
],
[
57
],
[
61
],
[
62
],
[
64
],
[
69
],
[
70
],
[
71
],
[
73
],
[
75
],
[
78
],
[
79
],
[
82
],
[
83
],
[
84
],
[
87
],
[
89
],
[
90
],
[
91
],
[
92
],
[
93
],
[
96
],
[
97
],
[
99
],
[
100
],
[
102
],
[
104
],
[
105
],
[
112
],
[
113
],
[
114
],
[
115
],
[
116
],
[
119
],
[
121
],
[
127
],
[
128
],
[
130
],
[
131
],
[
133
],
[
137
],
[
138
],
[
139
],
[
140
],
[
145
],
[
146
],
[
147
],
[
148
],
[
150
],
[
154
],
[
155
],
[
156
],
[
158
],
[
160
],
[
161
],
[
163
],
[
164
],
[
166
],
[
169
],
[
179
],
[
181
],
[
182
],
[
184
],
[
186
],
[
187
],
[
188
],
[
189
],
[
190
],
[
192
],
[
196
],
[
197
],
[
199
],
[
200
],
[
201
],
[
202
],
[
203
],
[
205
],
[
207
],
[
208
],
[
213
],
[
214
],
[
215
],
[
216
],
[
217
],
[
218
],
[
223
],
[
225
],
[
228
],
[
230
],
[
231
],
[
233
],
[
235
],
[
236
],
[
237
],
[
238
],
[
239
],
[
240
],
[
243
],
[
247
],
[
250
],
[
251
],
[
253
],
[
256
],
[
257
],
[
258
],
[
260
],
[
262
],
[
263
],
[
264
],
[
268
],
[
269
],
[
270
],
[
274
],
[
276
],
[
277
],
[
281
],
[
282
],
[
284
],
[
285
],
[
286
],
[
287
],
[
288
],
[
295
],
[
297
],
[
298
]
]
},
{
"question": "How many items are ordered in total for the order with increment ID '000000190'?",
"answer": 2.0,
"sql": "SELECT total_qty_ordered FROM sales_order WHERE increment_id = '000000190';",
"sql_execute_result": [
[
"2.0000"
]
]
},
{
"question": "What is the total weight of the order with entity ID 193?",
"answer": "4.0000",
"sql": "SELECT weight FROM sales_order WHERE entity_id = 193;",
"sql_execute_result": [
[
"4.0000"
]
]
},
{
"question": "Is the order with increment ID '000000023' a virtual order?",
"answer": "No, the order with increment ID '000000023' is not a virtual order.",
"sql": "SELECT is_virtual FROM sales_order WHERE increment_id = '000000023';",
"sql_execute_result": [
[
0
]
]
},
{
"question": "What is the total number of completed orders for customer Matt Baker?",
"answer": 7,
"sql": "SELECT COUNT(*) FROM sales_order_grid WHERE customer_id = 13 AND status = 'complete';",
"sql_execute_result": [
[
7
]
]
},
{
"question": "Find the email of the customer who placed the order with increment ID '000000290'.",
"answer": "jla_7781@gmail.com",
"sql": "SELECT customer_email FROM sales_order_grid WHERE increment_id = '000000290';",
"sql_execute_result": [
[
"jla_7781@gmail.com"
]
]
},
{
"question": "What is the name of the category with the entity ID 22?",
"answer": "bottoms-women",
"sql": "SELECT value FROM catalog_category_entity_varchar WHERE entity_id = 22 AND attribute_id = 119;",
"sql_execute_result": [
[
"bottoms-women"
]
]
},
{
"question": "What is the status of the order with increment ID '000000126'?",
"answer": "canceled",
"sql": "SELECT status FROM sales_order_grid WHERE increment_id = '000000126';",
"sql_execute_result": [
[
"canceled"
]
]
},
{
"question": "Determine the shipping method for Matt Baker's order created on '2022-03-31'.",
"answer": "Flat Rate - Fixed",
"sql": "SELECT shipping_information FROM sales_order_grid WHERE customer_email = 'matt.baker@yahoo.com' AND created_at = '2022-03-31 05:17:09';",
"sql_execute_result": [
[
"Flat Rate - Fixed"
]
]
},
{
"question": "What is the default state for the status 'complete'?",
"answer": "complete",
"sql": "SELECT state FROM sales_order_status_state WHERE status = 'complete';",
"sql_execute_result": [
[
"complete"
]
]
},
{
"question": "Find the customer group ID for the customer who placed the order with increment ID '000000092'.",
"answer": "1",
"sql": "SELECT customer_group FROM sales_order_grid WHERE increment_id = '000000092';",
"sql_execute_result": [
[
"1"
]
]
},
{
"question": "What is the label for the status 'processing'?",
"answer": "Processing",
"sql": "SELECT label FROM sales_order_status WHERE status = 'processing';",
"sql_execute_result": [
[
"Processing"
]
]
},
{
"question": "Find all orders for customer with email 'soccerfanatic22@gmail.com'.",
"answer": [
{
"entity_id": 123,
"increment_id": "000000123",
"grand_total": "209.0000"
},
{
"entity_id": 129,
"increment_id": "000000129",
"grand_total": "151.0000"
},
{
"entity_id": 155,
"increment_id": "000000155",
"grand_total": "191.0000"
},
{
"entity_id": 162,
"increment_id": "000000162",
"grand_total": "152.2000"
},
{
"entity_id": 170,
"increment_id": "000000170",
"grand_total": "66.0000"
},
{
"entity_id": 242,
"increment_id": "000000242",
"grand_total": "183.0000"
},
{
"entity_id": 285,
"increment_id": "000000285",
"grand_total": "82.0000"
},
{
"entity_id": 286,
"increment_id": "000000286",
"grand_total": "101.2500"
}
],
"sql": "SELECT entity_id, increment_id, grand_total FROM sales_order WHERE customer_email = 'soccerfanatic22@gmail.com';",
"sql_execute_result": [
[
123,
"000000123",
"209.0000"
],
[
129,
"000000129",
"151.0000"
],
[
155,
"000000155",
"191.0000"
],
[
162,
"000000162",
"152.2000"
],
[
170,
"000000170",
"66.0000"
],
[
242,
"000000242",
"183.0000"
],
[
285,
"000000285",
"82.0000"
],
[
286,
"000000286",
"101.2500"
]
]
},
{
"question": "What is the total quantity ordered for the order with increment ID '000000141'?",
"answer": "4.0000",
"sql": "SELECT total_qty_ordered FROM sales_order WHERE increment_id = '000000141';",
"sql_execute_result": [
[
"4.0000"
]
]
},
{
"question": "Find the region code for 'Kauno Apskritis' in Lithuania.",
"answer": "LT-KU",
"sql": "SELECT code FROM directory_country_region WHERE default_name = 'Kauno Apskritis' AND country_id = 'LT';",
"sql_execute_result": [
[
"LT-KU"
]
]
},
{
"question": "List the products with SKU containing 'Sprite Stasis Ball 75 cm'.",
"answer": [
"24-WG083-blue",
"24-WG083-gray",
"24-WG083-pink"
],
"sql": "SELECT product_id, sku, name FROM sales_order_item WHERE name LIKE '%Sprite Stasis Ball 75 cm%';",
"sql_execute_result": [
[
32,
"24-WG083-blue",
"Sprite Stasis Ball 75 cm"
],
[
30,
"24-WG083-gray",
"Sprite Stasis Ball 75 cm"
],
[
32,
"24-WG083-blue",
"Sprite Stasis Ball 75 cm"
],
[
31,
"24-WG083-pink",
"Sprite Stasis Ball 75 cm"
],
[
30,
"24-WG083-gray",
"Sprite Stasis Ball 75 cm"
],
[
31,
"24-WG083-pink",
"Sprite Stasis Ball 75 cm"
],
[
32,
"24-WG083-blue",
"Sprite Stasis Ball 75 cm"
],
[
32,
"24-WG083-blue",
"Sprite Stasis Ball 75 cm"
],
[
31,
"24-WG083-pink",
"Sprite Stasis Ball 75 cm"
],
[
31,
"24-WG083-pink",
"Sprite Stasis Ball 75 cm"
],
[
30,
"24-WG083-gray",
"Sprite Stasis Ball 75 cm"
],
[
30,
"24-WG083-gray",
"Sprite Stasis Ball 75 cm"
]
]
},
{
"question": "What is the average rating value for product ID 1620?",
"answer": 3.0,
"sql": "SELECT AVG(value) AS average_rating FROM rating_option_vote WHERE entity_pk_value = 1620;",
"sql_execute_result": [
[
"3.0000"
]
]
},
{
"question": "Find the order ID for the order that contains the product with SKU 'WJ04-M-Red'.",
"answer": [
124,
244
],
"sql": "SELECT order_id FROM sales_order_item WHERE sku = 'WJ04-M-Red';",
"sql_execute_result": [
[
124
],
[
124
],
[
244
],
[
244
]
]
},
{
"question": "What is the customer name for the billing address ID 570?",
"answer": "Olivia Lee",
"sql": "SELECT customer_firstname, customer_lastname FROM sales_order WHERE billing_address_id = 570;",
"sql_execute_result": [
[
"Olivia",
"Lee"
]
]
},
{
"question": "Find the order status for the order with increment ID '000000206'.",
"answer": "canceled",
"sql": "SELECT status FROM sales_order WHERE increment_id = '000000206';",
"sql_execute_result": [
[
"canceled"
]
]
},
{
"question": "List order IDs with the shipping method 'flatrate_flatrate'.",
"answer": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77,
78,
79,
80,
81,
82,
83,
84,
85,
86,
87,
88,
89,
90,
91,
92,
93,
94,
95,
96,
97,
98,
99,
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
110,
111,
112,
113,
114,
115,
116,
117,
118,
119,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
137,
138,
139,
140,
141,
142,
143,
144,
145,
146,
147,
148,
149,
150,
151,
152,
153,
154,
155,
156,
157,
158,
159,
160,
161,
162,
163,
164,
165,
166,
167,
168,
169,
170,
171,
172,
173,
174,
175,
176,
177,
178,
179,
180,
181,
182,
183,
184,
185,
186,
187,
188,
189,
190,
191,
192,
193,
194,
195,
196,
197,
198,
199,
200,
201,
202,
203,
204,
205,
206,
207,
208,
209,
210,
211,
212,
213,
214,
215,
216,
217,
218,
219,
220,
221,
222,
223,
224,
225,
226,
227,
228,
229,
230,
231,
232,
233,
234,
235,
236,
237,
238,
239,
240,
241,
242,
243,
244,
245,
246,
247,
248,
249,
250,
251,
252,
253,
254,
255,
256,
257,
258,
259,
260,
261,
262,
263,
264,
265,
266,
267,
268,
269,
270,
271,
272,
273,
274,
275,
276,
277,
278,
279,
280,
281,
282,
283,
284,
285,
286,
287,
288,
289,
290,
291,
292,
293,
294,
295,
296,
297,
298,
299,
300,
301,
302,
303,
304,
305,
306,
307,
308
],
"sql": "SELECT entity_id FROM sales_order WHERE shipping_method = 'flatrate_flatrate';",
"sql_execute_result": [
[
1
],
[
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
23
],
[
24
],
[
25
],
[
26
],
[
27
],
[
28
],
[
29
],
[
30
],
[
31
],
[
32
],
[
33
],
[
34
],
[
35
],
[
36
],
[
37
],
[
38
],
[
39
],
[
40
],
[
41
],
[
42
],
[
43
],
[
44
],
[
45
],
[
46
],
[
47
],
[
48
],
[
49
],
[
50
],
[
51
],
[
52
],
[
53
],
[
54
],
[
55
],
[
56
],
[
57
],
[
58
],
[
59
],
[
60
],
[
61
],
[
62
],
[
63
],
[
64
],
[
65
],
[
66
],
[
67
],
[
68
],
[
69
],
[
70
],
[
71
],
[
72
],
[
73
],
[
74
],
[
75
],
[
76
],
[
77
],
[
78
],
[
79
],
[
80
],
[
81
],
[
82
],
[
83
],
[
84
],
[
85
],
[
86
],
[
87
],
[
88
],
[
89
],
[
90
],
[
91
],
[
92
],
[
93
],
[
94
],
[
95
],
[
96
],
[
97
],
[
98
],
[
99
],
[
100
],
[
101
],
[
102
],
[
103
],
[
104
],
[
105
],
[
106
],
[
107
],
[
108
],
[
109
],
[
110
],
[
111
],
[
112
],
[
113
],
[
114
],
[
115
],
[
116
],
[
117
],
[
118
],
[
119
],
[
120
],
[
121
],
[
122
],
[
123
],
[
124
],
[
125
],
[
126
],
[
127
],
[
128
],
[
129
],
[
130
],
[
131
],
[
132
],
[
133
],
[
134
],
[
135
],
[
136
],
[
137
],
[
138
],
[
139
],
[
140
],
[
141
],
[
142
],
[
143
],
[
144
],
[
145
],
[
146
],
[
147
],
[
148
],
[
149
],
[
150
],
[
151
],
[
152
],
[
153
],
[
154
],
[
155
],
[
156
],
[
157
],
[
158
],
[
159
],
[
160
],
[
161
],
[
162
],
[
163
],
[
164
],
[
165
],
[
166
],
[
167
],
[
168
],
[
169
],
[
170
],
[
171
],
[
172
],
[
173
],
[
174
],
[
175
],
[
176
],
[
177
],
[
178
],
[
179
],
[
180
],
[
181
],
[
182
],
[
183
],
[
184
],
[
185
],
[
186
],
[
187
],
[
188
],
[
189
],
[
190
],
[
191
],
[
192
],
[
193
],
[
194
],
[
195
],
[
196
],
[
197
],
[
198
],
[
199
],
[
200
],
[
201
],
[
202
],
[
203
],
[
204
],
[
205
],
[
206
],
[
207
],
[
208
],
[
209
],
[
210
],
[
211
],
[
212
],
[
213
],
[
214
],
[
215
],
[
216
],
[
217
],
[
218
],
[
219
],
[
220
],
[
221
],
[
222
],
[
223
],
[
224
],
[
225
],
[
226
],
[
227
],
[
228
],
[
229
],
[
230
],
[
231
],
[
232
],
[
233
],
[
234
],
[
235
],
[
236
],
[
237
],
[
238
],
[
239
],
[
240
],
[
241
],
[
242
],
[
243
],
[
244
],
[
245
],
[
246
],
[
247
],
[
248
],
[
249
],
[
250
],
[
251
],
[
252
],
[
253
],
[
254
],
[
255
],
[
256
],
[
257
],
[
258
],
[
259
],
[
260
],
[
261
],
[
262
],
[
263
],
[
264
],
[
265
],
[
266
],
[
267
],
[
268
],
[
269
],
[
270
],
[
271
],
[
272
],
[
273
],
[
274
],
[
275
],
[
276
],
[
277
],
[
278
],
[
279
],
[
280
],
[
281
],
[
282
],
[
283
],
[
284
],
[
285
],
[
286
],
[
287
],
[
288
],
[
289
],
[
290
],
[
291
],
[
292
],
[
293
],
[
294
],
[
295
],
[
296
],
[
297
],
[
298
],
[
299
],
[
300
],
[
301
],
[
302
],
[
303
],
[
304
],
[
305
],
[
306
],
[
307
],
[
308
]
]
},
{
"question": "What is the email address for the customer named 'Hannah Lim'?",
"answer": "hannah.lim@gmail.com",
"sql": "SELECT email FROM customer_grid_flat WHERE name = 'Hannah Lim';",
"sql_execute_result": [
[
"hannah.lim@gmail.com"
]
]
},
{
"question": "How many search results are there for the query 'Joust Bag'?",
"answer": 10,
"sql": "SELECT num_results FROM search_query WHERE query_text = 'Joust Bag';",
"sql_execute_result": [
[
10
]
]
},
{
"question": "List all customers located in Hoboken, New Jersey.",
"answer": [
"Amanda Kim",
"Matthew Kim",
"Natalie Kim"
],
"sql": "SELECT name FROM customer_grid_flat WHERE billing_city = 'Hoboken' AND billing_region = 'New Jersey';",
"sql_execute_result": [
[
"Amanda Kim"
],
[
"Matthew Kim"
],
[
"Natalie Kim"
]
]
},
{
"question": "What is the ISO3 code for the country with ISO2 code 'AE'?",
"answer": "ARE",
"sql": "SELECT iso3_code FROM directory_country WHERE iso2_code = 'AE';",
"sql_execute_result": [
[
"ARE"
]
]
},
{
"question": "What is the name of the store group with ID 1?",
"answer": "Main Website Store",
"sql": "SELECT name FROM store_group WHERE group_id = 1;",
"sql_execute_result": [
[
"Main Website Store"
]
]
},
{
"question": "Find the rating value for the rating option with code '3'.",
"answer": 3,
"sql": "SELECT value FROM rating_option WHERE code = '3';",
"sql_execute_result": [
[
3
],
[
3
],
[
3
],
[
3
]
]
},
{
"question": "Is the search query 'Antonia Racer Tank' active?",
"answer": "Yes, the search query 'Antonia Racer Tank' is active.",
"sql": "SELECT is_active FROM search_query WHERE query_text = 'Antonia Racer Tank';",
"sql_execute_result": [
[
1
]
]
},
{
"question": "What is the default store ID for the group named 'Default'?",
"answer": 0,
"sql": "SELECT default_store_id FROM store_group WHERE name = 'Default';",
"sql_execute_result": [
[
0
]
]
},
{
"question": "What is the billing telephone number for the customer 'Matt Baker'?",
"answer": "4045551234",
"sql": "SELECT billing_telephone FROM customer_grid_flat WHERE name = 'Matt Baker';",
"sql_execute_result": [
[
"4045551234"
]
]
},
{
"question": "What is the stock quantity for product with ID 1502?",
"answer": "100.0000",
"sql": "SELECT qty FROM cataloginventory_stock_item WHERE product_id = 1502;",
"sql_execute_result": [
[
"100.0000"
]
]
},
{
"question": "List all order statuses and their labels.",
"answer": [
{
"status": "canceled",
"label": "Canceled"
},
{
"status": "closed",
"label": "Closed"
},
{
"status": "complete",
"label": "Complete"
},
{
"status": "fraud",
"label": "Suspected Fraud"
},
{
"status": "holded",
"label": "On Hold"
},
{
"status": "payment_review",
"label": "Payment Review"
},
{
"status": "paypal_canceled_reversal",
"label": "PayPal Canceled Reversal"
},
{
"status": "paypal_reversed",
"label": "PayPal Reversed"
},
{
"status": "pending",
"label": "Pending"
},
{
"status": "pending_payment",
"label": "Pending Payment"
},
{
"status": "pending_paypal",
"label": "Pending PayPal"
},
{
"status": "processing",
"label": "Processing"
}
],
"sql": "SELECT status, label FROM sales_order_status;",
"sql_execute_result": [
[
"canceled",
"Canceled"
],
[
"closed",
"Closed"
],
[
"complete",
"Complete"
],
[
"fraud",
"Suspected Fraud"
],
[
"holded",
"On Hold"
],
[
"payment_review",
"Payment Review"
],
[
"paypal_canceled_reversal",
"PayPal Canceled Reversal"
],
[
"paypal_reversed",
"PayPal Reversed"
],
[
"pending",
"Pending"
],
[
"pending_payment",
"Pending Payment"
],
[
"pending_paypal",
"Pending PayPal"
],
[
"processing",
"Processing"
]
]
},
{
"question": "What is the average rating value for product with ID 11 based on votes?",
"answer": "3.6667",
"sql": "SELECT AVG(value) AS average_rating FROM rating_option_vote WHERE entity_pk_value = 11;",
"sql_execute_result": [
[
"3.6667"
]
]
},
{
"question": "Find the sequence table for invoices in store with ID 1.",
"answer": "sequence_invoice_1",
"sql": "SELECT sequence_table FROM sales_sequence_meta WHERE entity_type = 'invoice' AND store_id = 1;",
"sql_execute_result": [
[
"sequence_invoice_1"
]
]
},
{
"question": "Is product with ID 889 in stock?",
"answer": "Yes, the product with ID 889 is in stock.",
"sql": "SELECT is_in_stock FROM cataloginventory_stock_item WHERE product_id = 889;",
"sql_execute_result": [
[
1
]
]
},
{
"question": "Retrieve all reviews and their percent rating for product with ID 11.",
"answer": [
{
"review_id": 169,
"percent": 100
},
{
"review_id": 170,
"percent": 100
},
{
"review_id": 171,
"percent": 20
}
],
"sql": "SELECT review_id, percent FROM rating_option_vote WHERE entity_pk_value = 11;",
"sql_execute_result": [
[
169,
100
],
[
170,
100
],
[
171,
20
]
]
},
{
"question": "How many sequence values are present in the order sequence table?",
"answer": 308,
"sql": "SELECT COUNT(sequence_value) FROM sequence_order_1;",
"sql_execute_result": [
[
308
]
]
},
{
"question": "What is the entity type for sequence table 'sequence_shipment_1'?",
"answer": "shipment",
"sql": "SELECT entity_type FROM sales_sequence_meta WHERE sequence_table = 'sequence_shipment_1';",
"sql_execute_result": [
[
"shipment"
]
]
},
{
"question": "Find the minimum sale quantity configuration for product with ID 598.",
"answer": "1.0000",
"sql": "SELECT min_sale_qty FROM cataloginventory_stock_item WHERE product_id = 598;",
"sql_execute_result": [
[
"1.0000"
]
]
},
{
"question": "Does the product with ID 1229 allow backorders?",
"answer": "No, the product with ID 1229 does not allow backorders.",
"sql": "SELECT backorders FROM cataloginventory_stock_item WHERE product_id = 1229;",
"sql_execute_result": [
[
0
]
]
},
{
"question": "What is the status of the order with increment ID '000000152'?",
"answer": "canceled",
"sql": "SELECT status FROM sales_order_grid WHERE increment_id = '000000152';",
"sql_execute_result": [
[
"canceled"
]
]
},
{
"question": "Find the total grand total for orders placed by customer with email 'jane.doe@hotmail.com'.",
"answer": 1634.72,
"sql": "SELECT SUM(grand_total) FROM sales_order_grid WHERE customer_email = 'jane.doe@hotmail.com';",
"sql_execute_result": [
[
"1634.7200"
]
]
},
{
"question": "Which CMS page is currently inactive?",
"answer": "Privacy Policy",
"sql": "SELECT title FROM cms_page WHERE is_active = 0;",
"sql_execute_result": [
[
"Privacy Policy"
]
]
},
{
"question": "What is the name of the website with code 'base'?",
"answer": "Main Website",
"sql": "SELECT name FROM store_website WHERE code = 'base';",
"sql_execute_result": [
[
"Main Website"
]
]
},
{
"question": "What is the value associated with EAV attribute option ID 71?",
"answer": "Hydration Pocket",
"sql": "SELECT value FROM eav_attribute_option_value WHERE option_id = 71;",
"sql_execute_result": [
[
"Hydration Pocket"
]
]
},
{
"question": "Find all orders for customer with ID 2.",
"answer": [
"000000009",
"000000059",
"000000068",
"000000079",
"000000093",
"000000095",
"000000096",
"000000107",
"000000115",
"000000144",
"000000217",
"000000257",
"000000273"
],
"sql": "SELECT increment_id FROM sales_order_grid WHERE customer_id = 2;",
"sql_execute_result": [
[
"000000009"
],
[
"000000059"
],
[
"000000068"
],
[
"000000079"
],
[
"000000093"
],
[
"000000095"
],
[
"000000096"
],
[
"000000107"
],
[
"000000115"
],
[
"000000144"
],
[
"000000217"
],
[
"000000257"
],
[
"000000273"
]
]
},
{
"question": "What is the payment method used for the order by 'Bob Johnson'?",
"answer": "checkmo",
"sql": "SELECT payment_method FROM sales_order_grid WHERE customer_name = 'Bob Johnson';",
"sql_execute_result": [
[
"checkmo"
],
[
"checkmo"
],
[
"checkmo"
],
[
"checkmo"
],
[
"checkmo"
],
[
"checkmo"
],
[
"checkmo"
],
[
"checkmo"
]
]
},
{
"question": "What is the layout of the CMS page titled '404 Not Found'?",
"answer": "2columns-right",
"sql": "SELECT page_layout FROM cms_page WHERE title = '404 Not Found';",
"sql_execute_result": [
[
"2columns-right"
]
]
},
{
"question": "Find the shipping address associated with the order increment ID '000000289'.",
"answer": "333 S Broad St, Philadelphia, Pennsylvania, 19102",
"sql": "SELECT shipping_address FROM sales_order_grid WHERE increment_id = '000000289';",
"sql_execute_result": [
[
"333 S Broad St,Philadelphia,Pennsylvania,19102"
]
]
},
{
"question": "What is the default name for the region with code 'CN-JX' in China?",
"answer": "Jiangxi Sheng",
"sql": "SELECT default_name FROM directory_country_region WHERE code = 'CN-JX' AND country_id = 'CN';",
"sql_execute_result": [
[
"Jiangxi Sheng"
]
]
},
{
"question": "Find all completed orders on 2023-05-04 in store with ID 1.",
"answer": 1,
"sql": "SELECT orders_count FROM sales_order_aggregated_created WHERE period = '2023-05-04' AND store_id = 1 AND order_status = 'complete';",
"sql_execute_result": [
[
1
]
]
},
{
"question": "What is the title of the review by nickname 'Ezra'?",
"answer": "I slipped on a rock on these shoes and I",
"sql": "SELECT title FROM review_detail WHERE nickname = 'Ezra';",
"sql_execute_result": [
[
"I slipped on a rock on these shoes and I"
]
]
},
{
"question": "How many orders were canceled on 2022-12-05 in store with ID 1?",
"answer": 1,
"sql": "SELECT orders_count FROM sales_order_aggregated_created WHERE period = '2022-12-05' AND store_id = 1 AND order_status = 'canceled';",
"sql_execute_result": [
[
1
]
]
},
{
"question": "What is the attribute code for the attribute with ID 152?",
"answer": "style_general",
"sql": "SELECT attribute_code FROM eav_attribute WHERE attribute_id = 152;",
"sql_execute_result": [
[
"style_general"
]
]
},
{
"question": "What is the backend type for the 'image' attribute?",
"answer": "varchar",
"sql": "SELECT backend_type FROM eav_attribute WHERE attribute_code = 'image';",
"sql_execute_result": [
[
"varchar"
],
[
"varchar"
]
]
},
{
"question": "What is the shipping amount for the complete order on 2022-06-18?",
"answer": "The shipping amount for the complete order on 2022-06-18 is 10.00.",
"sql": "SELECT total_shipping_amount FROM sales_order_aggregated_created WHERE period = '2022-06-18' AND order_status = 'complete';",
"sql_execute_result": [
[
"10.0000"
],
[
"10.0000"
]
]
},
{
"question": "What is the name of the region with ID 880 in Italy?",
"answer": "Medio Campidano",
"sql": "SELECT default_name FROM directory_country_region WHERE region_id = 880 AND country_id = 'IT';",
"sql_execute_result": [
[
"Medio Campidano"
]
]
},
{
"question": "List the sequence values in the shipment sequence table.",
"answer": [
1,
2,
3
],
"sql": "SELECT sequence_value FROM sequence_shipment_1;",
"sql_execute_result": [
[
1
],
[
2
],
[
3
]
]
},
{
"question": "What is the frontend input type for the 'email' attribute?",
"answer": "text",
"sql": "SELECT frontend_input FROM eav_attribute WHERE attribute_code = 'email';",
"sql_execute_result": [
[
"text"
]
]
},
{
"question": "Find the total quantity ordered for product with ID 315.",
"answer": 1.0,
"sql": "SELECT SUM(qty_ordered) FROM sales_order_item WHERE product_id = 315;",
"sql_execute_result": [
[
"1.0000"
]
]
},
{
"question": "What is the total grand total of all canceled orders?",
"answer": "17408.07",
"sql": "SELECT SUM(base_grand_total) FROM sales_order WHERE status = 'canceled';",
"sql_execute_result": [
[
"17408.0700"
]
]
},
{
"question": "How many orders have been canceled in store with ID 0?",
"answer": 125,
"sql": "SELECT COUNT(*) FROM sales_order_aggregated_created WHERE store_id = 0 AND order_status = 'canceled';",
"sql_execute_result": [
[
125
]
]
},
{
"question": "What is the product name for product with ID 315 in the daily bestsellers?",
"answer": "Orion Two-Tone Fitted Jacket-XL-Black",
"sql": "SELECT product_name FROM sales_bestsellers_aggregated_daily WHERE product_id = 315;",
"sql_execute_result": [
[
"Orion Two-Tone Fitted Jacket-XL-Black"
],
[
"Orion Two-Tone Fitted Jacket-XL-Black"
]
]
},
{
"question": "What is the order status of the order with ID 308?",
"answer": "pending",
"sql": "SELECT status FROM sales_order WHERE entity_id = 308;",
"sql_execute_result": [
[
"pending"
]
]
},
{
"question": "Check if the product with SKU 'MT02-M-Gray' is in stock.",
"answer": "The product with SKU 'MT02-M-Gray' is in stock.",
"sql": "SELECT is_in_stock FROM cataloginventory_stock_item WHERE product_id = (SELECT entity_id FROM catalog_product_entity WHERE sku = 'MT02-M-Gray');",
"sql_execute_result": [
[
1
]
]
},
{
"question": "How many orders were placed by the customer with email 'customer5@example.com'?",
"answer": 0,
"sql": "SELECT COUNT(*) FROM sales_order WHERE customer_email = 'customer5@example.com';",
"sql_execute_result": [
[
0
]
]
},
{
"question": "What is the total quantity ordered for order ID 308?",
"answer": "4.0000",
"sql": "SELECT total_qty_ordered FROM sales_order WHERE entity_id = 308;",
"sql_execute_result": [
[
"4.0000"
]
]
},
{
"question": "What is the email address for the customer with ID 24?",
"answer": "musiclover99@hotmail.com",
"sql": "SELECT email FROM customer_entity WHERE entity_id = 24;",
"sql_execute_result": [
[
"musiclover99@hotmail.com"
]
]
},
{
"question": "Find the total number of reviews for the product with ID 937.",
"answer": 3,
"sql": "SELECT COUNT(*) FROM review WHERE entity_pk_value = 937;",
"sql_execute_result": [
[
3
]
]
},
{
"question": "What is the rating value given in the review with ID 256?",
"answer": 4,
"sql": "SELECT value FROM rating_option_vote WHERE review_id = 256;",
"sql_execute_result": [
[
4
]
]
},
{
"question": "What is the first name of the customer with email 'jessica.wong@gmail.com'?",
"answer": "Jessica",
"sql": "SELECT firstname FROM customer_entity WHERE email = 'jessica.wong@gmail.com';",
"sql_execute_result": [
[
"Jessica"
]
]
},
{
"question": "Find the sequence table associated with shipments for store ID 1.",
"answer": "sequence_shipment_1",
"sql": "SELECT sequence_table FROM sales_sequence_meta WHERE entity_type = 'shipment' AND store_id = 1;",
"sql_execute_result": [
[
"sequence_shipment_1"
]
]
},
{
"question": "How many reviews are pending approval?",
"answer": 346,
"sql": "SELECT COUNT(*) FROM review WHERE status_id = 1;",
"sql_execute_result": [
[
346
]
]
},
{
"question": "What is the customer group ID for the customer named 'Isaac Rodriguez'?",
"answer": 1,
"sql": "SELECT group_id FROM customer_entity WHERE firstname = 'Isaac' AND lastname = 'Rodriguez';",
"sql_execute_result": [
[
1
]
]
},
{
"question": "What percentage rating did the product with ID 1412 receive in its review?",
"answer": [
80,
60,
80
],
"sql": "SELECT percent FROM rating_option_vote WHERE entity_pk_value = 1412;",
"sql_execute_result": [
[
80
],
[
60
],
[
80
]
]
},
{
"question": "Find the category ID for the product with ID 648.",
"answer": 17,
"sql": "SELECT category_id FROM catalog_category_product WHERE product_id = 648;",
"sql_execute_result": [
[
17
]
]
},
{
"question": "What is the email address for the customer associated with order ID 233?",
"answer": "daniel.jackson@hotmail.com",
"sql": "SELECT email FROM sales_order_address WHERE parent_id = 233 AND address_type = 'billing';",
"sql_execute_result": [
[
"daniel.jackson@hotmail.com"
]
]
},
{
"question": "Find all products with the attribute code 'pierce-gym-short-32-gray'.",
"answer": [
1017
],
"sql": "SELECT entity_id FROM catalog_product_entity_varchar WHERE value = 'pierce-gym-short-32-gray';",
"sql_execute_result": [
[
1017
]
]
},
{
"question": "List the categories that include the keyword 'bags'.",
"answer": [
"Bags",
"bags",
"gear/bags"
],
"sql": "SELECT value FROM catalog_category_entity_varchar WHERE value LIKE '%bags%';",
"sql_execute_result": [
[
"Bags"
],
[
"bags"
],
[
"gear/bags"
]
]
},
{
"question": "What is the rating value for the option code '5' from rating ID 2?",
"answer": 5,
"sql": "SELECT value FROM rating_option WHERE code = '5' AND rating_id = 2;",
"sql_execute_result": [
[
5
]
]
},
{
"question": "How many shipments have been created for customer ID 1?",
"answer": 2,
"sql": "SELECT COUNT(*) FROM sales_shipment WHERE customer_id = 1;",
"sql_execute_result": [
[
2
]
]
},
{
"question": "What is the total quantity shipped in shipment ID 3?",
"answer": "2.0000",
"sql": "SELECT total_qty FROM sales_shipment WHERE entity_id = 3;",
"sql_execute_result": [
[
"2.0000"
]
]
},
{
"question": "Find the customer first name associated with order ID 86.",
"answer": "John",
"sql": "SELECT firstname FROM sales_order_address WHERE parent_id = 86 AND address_type = 'shipping';",
"sql_execute_result": [
[
"John"
]
]
},
{
"question": "List all distinct regions from the sales order addresses.",
"answer": [
"Michigan",
"Nevada",
"California",
"Massachusetts",
"New York",
"Arizona",
"Texas",
"Alabama",
"Georgia",
"Washington",
"Colorado",
"Florida",
"Illinois",
"Pennsylvania"
],
"sql": "SELECT DISTINCT region FROM sales_order_address;",
"sql_execute_result": [
[
"Michigan"
],
[
"Nevada"
],
[
"California"
],
[
"Massachusetts"
],
[
"New York"
],
[
"Arizona"
],
[
"Texas"
],
[
"Alabama"
],
[
"Georgia"
],
[
"Washington"
],
[
"Colorado"
],
[
"Florida"
],
[
"Illinois"
],
[
"Pennsylvania"
]
]
},
{
"question": "What is the email address of the customer with ID 5?",
"answer": "helloworld@yahoo.com",
"sql": "SELECT email FROM customer_entity WHERE entity_id = 5;",
"sql_execute_result": [
[
"helloworld@yahoo.com"
]
]
},
{
"question": "List all orders for the customer with email david.lee@gmail.com.",
"answer": [
37,
151,
194
],
"sql": "SELECT entity_id FROM sales_order WHERE customer_email = 'david.lee@gmail.com';",
"sql_execute_result": [
[
37
],
[
151
],
[
194
]
]
},
{
"question": "What is the total quantity ordered for the product 'Daria Bikram Pant-28-Black' in store with ID 1 on 2022-06-19?",
"answer": 1.0,
"sql": "SELECT qty_ordered FROM sales_bestsellers_aggregated_daily WHERE product_id = 1876 AND store_id = 1 AND period = '2022-06-19';",
"sql_execute_result": [
[
"1.0000"
]
]
},
{
"question": "What is the status of the order with increment ID '000000151'?",
"answer": "canceled",
"sql": "SELECT status FROM sales_order_grid WHERE increment_id = '000000151';",
"sql_execute_result": [
[
"canceled"
]
]
},
{
"question": "Find out the product name of the product with entity ID 1876.",
"answer": "Daria Bikram Pant-28-Black",
"sql": "SELECT product_name FROM sales_bestsellers_aggregated_daily WHERE product_id = 1876;",
"sql_execute_result": [
[
"Daria Bikram Pant-28-Black"
],
[
"Daria Bikram Pant-28-Black"
],
[
"Daria Bikram Pant-28-Black"
],
[
"Daria Bikram Pant-28-Black"
]
]
},
{
"question": "Is the product with entity ID 2040 in stock?",
"answer": "Yes, the product with entity ID 2040 is in stock.",
"sql": "SELECT is_in_stock FROM cataloginventory_stock_item WHERE product_id = 2040;",
"sql_execute_result": [
[
1
]
]
},
{
"question": "Find the most popular product for store ID 1 on 2022-06-19.",
"answer": "Daria Bikram Pant-28-Black",
"sql": "SELECT product_name FROM sales_bestsellers_aggregated_daily WHERE store_id = 1 AND period = '2022-06-19' ORDER BY qty_ordered DESC LIMIT 1;",
"sql_execute_result": [
[
"Daria Bikram Pant-28-Black"
]
]
},
{
"question": "What is the creation date of the order with entity ID 177?",
"answer": "2022-07-13 18:02:34",
"sql": "SELECT created_at FROM sales_order_grid WHERE entity_id = 177;",
"sql_execute_result": [
[
"2022-07-13 18:02:34"
]
]
},
{
"question": "What is the status code for review status with ID 2?",
"answer": "Pending",
"sql": "SELECT status_code FROM review_status WHERE status_id = 2;",
"sql_execute_result": [
[
"Pending"
]
]
},
{
"question": "Find the email address associated with the sales order address having entity ID 543.",
"answer": "michael.nguyen@yahoo.com",
"sql": "SELECT email FROM sales_order_address WHERE entity_id = 543;",
"sql_execute_result": [
[
"michael.nguyen@yahoo.com"
]
]
},
{
"question": "What is the price of the product with entity ID 1997?",
"answer": "24.00",
"sql": "SELECT value FROM catalog_product_entity_decimal WHERE entity_id = 1997 AND attribute_id = 77;",
"sql_execute_result": [
[
"24.000000"
]
]
},
{
"question": "Find the product name for the product with entity ID 928.",
"answer": "Hawkeye Yoga Short-33-Black",
"sql": "SELECT value FROM catalog_product_entity_varchar WHERE entity_id = 928 AND attribute_id = 73;",
"sql_execute_result": [
[
"Hawkeye Yoga Short-33-Black"
]
]
},
{
"question": "Which attribute is visible and used in product listing according to the catalog_eav_attribute table?",
"answer": [
73,
76,
77,
78,
79,
80,
87,
88,
89,
93,
94,
95,
97,
121,
123,
124,
129,
131,
132,
133,
135,
136,
144
],
"sql": "SELECT attribute_id FROM catalog_eav_attribute WHERE is_visible = 1 AND used_in_product_listing = 1;",
"sql_execute_result": [
[
73
],
[
76
],
[
77
],
[
78
],
[
79
],
[
80
],
[
87
],
[
88
],
[
89
],
[
93
],
[
94
],
[
95
],
[
97
],
[
121
],
[
123
],
[
124
],
[
129
],
[
131
],
[
132
],
[
133
],
[
135
],
[
136
],
[
144
]
]
},
{
"question": "Find the postal code for the billing address of the sales order with parent ID 294.",
"answer": "90028",
"sql": "SELECT postcode FROM sales_order_address WHERE parent_id = 294 AND address_type = 'billing';",
"sql_execute_result": [
[
"90028"
]
]
},
{
"question": "What is the value of the attribute with ID 124 for the product with entity ID 1902?",
"answer": "0",
"sql": "SELECT value FROM catalog_product_entity_varchar WHERE entity_id = 1902 AND attribute_id = 124;",
"sql_execute_result": [
[
"0"
]
]
},
{
"question": "What is the global visibility status for the attribute with ID 78?",
"answer": 1,
"sql": "SELECT is_global FROM catalog_eav_attribute WHERE attribute_id = 78;",
"sql_execute_result": [
[
1
]
]
},
{
"question": "Find the first name of the customer associated with the billing address having email 'alexander.thomas@hotmail.com'.",
"answer": "Alexander",
"sql": "SELECT firstname FROM sales_order_address WHERE email = 'alexander.thomas@hotmail.com' AND address_type = 'billing';",
"sql_execute_result": [
[
"Alexander"
],
[
"Alexander"
],
[
"Alexander"
],
[
"Alexander"
],
[
"Alexander"
],
[
"Alexander"
],
[
"Alexander"
],
[
"Alexander"
],
[
"Alexander"
],
[
"Alexander"
]
]
},
{
"question": "What is the attribute ID of a catalog_eav_attribute that is searchable?",
"answer": [
73,
74,
75,
76,
77,
83,
97,
119,
121,
136
],
"sql": "SELECT attribute_id FROM catalog_eav_attribute WHERE is_searchable = 1;",
"sql_execute_result": [
[
73
],
[
74
],
[
75
],
[
76
],
[
77
],
[
83
],
[
97
],
[
119
],
[
121
],
[
136
]
]
}
]