282 lines
6.8 KiB
JSON
282 lines
6.8 KiB
JSON
[
|
|
{
|
|
"question": "What is the total income amount for orders completed on February 14, 2022, in store 1?",
|
|
"sql": "SELECT total_income_amount FROM sales_order_aggregated_created WHERE period = '2022-02-14' AND store_id = 1 AND order_status = 'complete';",
|
|
"answer": [
|
|
"240.0000"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"240.0000"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "Find the email address for the shipping address with entity ID 197.",
|
|
"sql": "SELECT email FROM sales_order_address WHERE entity_id = 197;",
|
|
"answer": [
|
|
"janesmith456@yahoo.com"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"janesmith456@yahoo.com"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "What is the name of the product with ID 16 that was a bestseller in March 2023?",
|
|
"sql": "SELECT product_name FROM sales_bestsellers_aggregated_monthly WHERE product_id = 16 AND period = '2023-03-01';",
|
|
"answer": [
|
|
"Dual Handle Cardio Ball"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"Dual Handle Cardio Ball"
|
|
],
|
|
[
|
|
"Dual Handle Cardio Ball"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "What is the value associated with the attribute option ID 80?",
|
|
"sql": "SELECT value FROM eav_attribute_option_value WHERE option_id = 80;",
|
|
"answer": [
|
|
"Men"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"Men"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "Find the percentage rating for the review with ID 219.",
|
|
"sql": "SELECT percent FROM rating_option_vote WHERE review_id = 219;",
|
|
"answer": [
|
|
"100"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
100
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "What is the total shipping amount for orders completed on July 1, 2022, in store 0?",
|
|
"sql": "SELECT total_shipping_amount FROM sales_order_aggregated_created WHERE period = '2022-07-01' AND store_id = 0 AND order_status = 'complete';",
|
|
"answer": [
|
|
"15.0000"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"15.0000"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "What is the product price for the 'Zoe Tank-S-Yellow' that was a bestseller in January 2023?",
|
|
"sql": "SELECT product_price FROM sales_bestsellers_aggregated_monthly WHERE product_name = 'Zoe Tank-S-Yellow' AND period = '2023-01-01';",
|
|
"answer": [
|
|
"29.0000"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"29.0000"
|
|
],
|
|
[
|
|
"29.0000"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "Find the total quantity ordered for orders that were canceled on February 24, 2023, in store 1.",
|
|
"sql": "SELECT total_qty_ordered FROM sales_order_aggregated_created WHERE period = '2023-02-24' AND store_id = 1 AND order_status = 'canceled';",
|
|
"answer": [
|
|
"5.0000"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"5.0000"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "What is the region associated with the sales order address with entity ID 228?",
|
|
"sql": "SELECT region FROM sales_order_address WHERE entity_id = 228;",
|
|
"answer": [
|
|
"Massachusetts"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"Massachusetts"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "Find the rating position for the product 'Sinbad Fitness Tank-M-Blue' in October 2022.",
|
|
"sql": "SELECT rating_pos FROM sales_bestsellers_aggregated_monthly WHERE product_name = 'Sinbad Fitness Tank-M-Blue' AND period = '2022-10-01';",
|
|
"answer": [
|
|
"5",
|
|
"2"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
5
|
|
],
|
|
[
|
|
2
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "What is the ISO-3 code for the country with ISO-2 code 'VC'?",
|
|
"sql": "SELECT iso3_code FROM directory_country WHERE iso2_code = 'VC';",
|
|
"answer": [
|
|
"VCT"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"VCT"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "How many orders were completed on 2022-01-17 in the default store?",
|
|
"sql": "SELECT orders_count FROM sales_order_aggregated_created WHERE period = '2022-01-17' AND store_id = 0 AND order_status = 'complete';",
|
|
"answer": [
|
|
"2"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
2
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "Find the total quantity ordered for the product 'Gobi HeatTec\u00ae Tee-XS-Orange' in April 2023.",
|
|
"sql": "SELECT qty_ordered FROM sales_bestsellers_aggregated_monthly WHERE product_name = 'Gobi HeatTec® Tee-XS-Orange' AND period = '2023-04-01';",
|
|
"answer": [
|
|
"4.0000"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"2.0000"
|
|
],
|
|
[
|
|
"2.0000"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "What is the product price for 'Cora Parachute Pant-29-Blue' in April 2023?",
|
|
"sql": "SELECT product_price FROM sales_bestsellers_aggregated_monthly WHERE product_name = 'Cora Parachute Pant-29-Blue' AND period = '2023-04-01';",
|
|
"answer": [
|
|
"60.0000"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"60.0000"
|
|
],
|
|
[
|
|
"60.0000"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "List all countries that have an ISO-2 code starting with 'F'.",
|
|
"sql": "SELECT country_id FROM directory_country WHERE iso2_code LIKE 'F%';",
|
|
"answer": [
|
|
"FI",
|
|
"FJ",
|
|
"FK",
|
|
"FM",
|
|
"FO",
|
|
"FR"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"FI"
|
|
],
|
|
[
|
|
"FJ"
|
|
],
|
|
[
|
|
"FK"
|
|
],
|
|
[
|
|
"FM"
|
|
],
|
|
[
|
|
"FO"
|
|
],
|
|
[
|
|
"FR"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "What is the rating position of 'Lando Gym Jacket-XS-Green' in May 2022?",
|
|
"sql": "SELECT rating_pos FROM sales_bestsellers_aggregated_monthly WHERE product_name = 'Lando Gym Jacket-XS-Green' AND period = '2022-05-01';",
|
|
"answer": [
|
|
"5",
|
|
"18"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
5
|
|
],
|
|
[
|
|
18
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "How many products have a value of '2' for attribute ID 136 in the default store?",
|
|
"sql": "SELECT COUNT(*) FROM catalog_product_entity_int WHERE attribute_id = 136 AND store_id = 0 AND value = 2;",
|
|
"answer": [
|
|
"2038"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
2038
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "Find the period for the order with ID 1003.",
|
|
"sql": "SELECT period FROM sales_order_aggregated_created WHERE id = 1003;",
|
|
"answer": [
|
|
"2023-01-13"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"2023-01-13"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "What is the total income amount for orders on 2022-09-23 in store ID 1?",
|
|
"sql": "SELECT total_income_amount FROM sales_order_aggregated_created WHERE period = '2022-09-23' AND store_id = 1;",
|
|
"answer": [
|
|
"210.0000"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
"210.0000"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"question": "Find the sequence value for the latest shipment entry.",
|
|
"sql": "SELECT sequence_value FROM sequence_shipment_1 ORDER BY sequence_value DESC LIMIT 1;",
|
|
"answer": [
|
|
"3"
|
|
],
|
|
"sql_execute_result": [
|
|
[
|
|
3
|
|
]
|
|
]
|
|
}
|
|
] |