[
{
"question": "What is the email address for the customer named Jane Doe?",
"sql": "SELECT email FROM customer_entity WHERE firstname = 'Jane' AND lastname = 'Doe';",
"answer": [
"jane.doe@hotmail.com",
"jane.doe@gmail.com"
],
"sql_execute_result": [
[
"jane.doe@hotmail.com"
],
[
"jane.doe@gmail.com"
]
]
},
{
"question": "Find the total base grand total for orders with the status 'complete'.",
"sql": "SELECT SUM(base_grand_total) FROM sales_order_grid WHERE status = 'complete';",
"answer": [
"20625.5000"
],
"sql_execute_result": [
[
"20625.5000"
]
]
},
{
"question": "What is the shipping address for order with increment_id '000000100'?",
"sql": "SELECT shipping_address FROM sales_order_grid WHERE increment_id = '000000100';",
"answer": [
"789 W Olympic Blvd, Los Angeles, California, 90015"
],
"sql_execute_result": [
[
"789 W Olympic Blvd,Los Angeles,California,90015"
]
]
},
{
"question": "List all customer group codes available in the system.",
"sql": "SELECT customer_group_code FROM customer_group;",
"answer": [
"NOT LOGGED IN",
"General",
"Wholesale",
"Retailer"
],
"sql_execute_result": [
[
"NOT LOGGED IN"
],
[
"General"
],
[
"Wholesale"
],
[
"Retailer"
]
]
},
{
"question": "How many orders have been placed by the customer with email 'michael.nguyen@yahoo.com'?",
"sql": "SELECT COUNT(entity_id) FROM sales_order_grid WHERE customer_email = 'michael.nguyen@yahoo.com';",
"answer": [
"12"
],
"sql_execute_result": [
[
12
]
]
},
{
"question": "What is the product description for the product with entity_id 1636?",
"sql": "SELECT value FROM catalog_product_entity_text WHERE entity_id = 1636;",
"answer": [
"
Whatever your goals for the day's workout, the Celeste Sports Bra lets you do it in comfort and coolness, plus enhanced support and shaping. A power mesh back zone and moisture-wicking fabric ensure you stay dry.
\n• Mint bra top.
• Seam-free interior molded cups
• Odor control.
• UV protection.
• Machine wash/dry.
"
],
"sql_execute_result": [
[
"Whatever your goals for the day's workout, the Celeste Sports Bra lets you do it in comfort and coolness, plus enhanced support and shaping. A power mesh back zone and moisture-wicking fabric ensure you stay dry.
\n• Mint bra top.
• Seam-free interior molded cups
• Odor control.
• UV protection.
• Machine wash/dry.
"
],
[
"142,153"
],
[
"130"
],
[
"196"
],
[
"204,208"
]
]
},
{
"question": "What is the billing name for the order with entity_id 229?",
"sql": "SELECT billing_name FROM sales_order_grid WHERE entity_id = 229;",
"answer": [
"Sarah Miller"
],
"sql_execute_result": [
[
"Sarah Miller"
]
]
},
{
"question": "Find the store name where the order with increment_id '000000258' was placed.",
"sql": "SELECT store_name FROM sales_order_grid WHERE increment_id = '000000258';",
"answer": [
"Main Website",
"Main Website Store",
"Default Store View"
],
"sql_execute_result": [
[
"Main Website\nMain Website Store\nDefault Store View"
]
]
},
{
"question": "What is the base currency code for the order placed by 'Bob Jones'?",
"sql": "SELECT base_currency_code FROM sales_order_grid WHERE shipping_name = 'Bob Jones';",
"answer": [
"USD"
],
"sql_execute_result": [
[
"USD"
],
[
"USD"
],
[
"USD"
],
[
"USD"
],
[
"USD"
],
[
"USD"
],
[
"USD"
],
[
"USD"
],
[
"USD"
],
[
"USD"
]
]
},
{
"question": "List the attribute values for the category with entity ID 3.",
"sql": "SELECT value FROM catalog_category_entity_varchar WHERE entity_id = 3;",
"answer": [
"Gear",
"PAGE",
"gear"
],
"sql_execute_result": [
[
"Gear"
],
[
"PAGE"
],
[
"gear"
],
[
"gear"
]
]
},
{
"question": "What is the tax amount for the product 'Iris Workout Top'?",
"sql": "SELECT tax_amount FROM sales_invoice_item WHERE name = 'Iris Workout Top';",
"answer": [
"2.3900"
],
"sql_execute_result": [
[
"2.3900"
]
]
},
{
"question": "How many option values were found for attribute ID 144?",
"sql": "SELECT value FROM eav_attribute_option_value WHERE option_id IN (SELECT option_id FROM eav_attribute_option WHERE attribute_id = 144);",
"answer": [
"20"
],
"sql_execute_result": [
[
"55 cm"
],
[
"65 cm"
],
[
"75 cm"
],
[
"6 foot"
],
[
"8 foot"
],
[
"10 foot"
],
[
"XS"
],
[
"S"
],
[
"M"
],
[
"L"
],
[
"XL"
],
[
"28"
],
[
"29"
],
[
"30"
],
[
"31"
],
[
"32"
],
[
"33"
],
[
"34"
],
[
"36"
],
[
"38"
]
]
},
{
"question": "What is the base price for the product with SKU 'WS03-XS-Red'?",
"sql": "SELECT base_price FROM sales_invoice_item WHERE sku = 'WS03-XS-Red';",
"answer": [
"29.0000"
],
"sql_execute_result": [
[
"29.0000"
]
]
},
{
"question": "How many sort orders are there for the attribute option with ID 152?",
"sql": "SELECT sort_order FROM eav_attribute_option WHERE attribute_id = 152;",
"answer": [
"26"
],
"sql_execute_result": [
[
0
],
[
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
]
]
},
{
"question": "Retrieve the product ID for the category 'collections/performance-new'.",
"sql": "SELECT entity_id FROM catalog_category_entity_varchar WHERE value = 'collections/performance-new';",
"answer": [
"39"
],
"sql_execute_result": [
[
39
]
]
}
]