Dataset Viewer
Auto-converted to Parquet
messages
listlengths
2
2
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: Tell me what the notes are for SOUTH AUSTRALIA \nColumns: ['State/territory', 'Text/background colour', 'Format', 'Current slogan', 'Current series', 'Notes']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Australian Capital Territory', 'blue/white', 'Yaa·nna', 'ACT · CELEBRATION OF A CENTURY 2013', 'YIL·00A', 'Slogan screenprinted on plate']\nSQL:", "role": "user" }, { "content": "SELECT \"Notes\" FROM \"1-1000181-1\" WHERE \"Current slogan\" = 'SOUTH AUSTRALIA';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What is the current series where the New series began in June 2011?\nColumns: ['State/territory', 'Text/background colour', 'Format', 'Current slogan', 'Current series', 'Notes']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Australian Capital Territory', 'blue/white', 'Yaa·nna', 'ACT · CELEBRATION OF A CENTURY 2013', 'YIL·00A', 'Slogan screenprinted on plate']\nSQL:", "role": "user" }, { "content": "SELECT \"Current series\" FROM \"1-1000181-1\" WHERE \"Notes\" = 'New series began in June 2011';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What is the format for South Australia?\nColumns: ['State/territory', 'Text/background colour', 'Format', 'Current slogan', 'Current series', 'Notes']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Australian Capital Territory', 'blue/white', 'Yaa·nna', 'ACT · CELEBRATION OF A CENTURY 2013', 'YIL·00A', 'Slogan screenprinted on plate']\nSQL:", "role": "user" }, { "content": "SELECT \"Format\" FROM \"1-1000181-1\" WHERE \"State/territory\" = 'South Australia';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: Name the background colour for the Australian Capital Territory\nColumns: ['State/territory', 'Text/background colour', 'Format', 'Current slogan', 'Current series', 'Notes']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Australian Capital Territory', 'blue/white', 'Yaa·nna', 'ACT · CELEBRATION OF A CENTURY 2013', 'YIL·00A', 'Slogan screenprinted on plate']\nSQL:", "role": "user" }, { "content": "SELECT \"Text/background colour\" FROM \"1-1000181-1\" WHERE \"State/territory\" = 'Australian Capital Territory';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: how many times is the fuel propulsion is CNG?\nColumns: ['Order Year', 'Manufacturer', 'Model', 'Fleet Series (Quantity)', 'Powertrain (Engine/Transmission)', 'Fuel Propulsion']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['1992-93', 'Gillig', 'Phantom (High Floor)', '444-464 (21)', 'DD S50EGR Allison WB-400R', 'Diesel']\nSQL:", "role": "user" }, { "content": "SELECT COUNT(\"Fleet Series (Quantity)\") FROM \"1-10007452-3\" WHERE \"Fuel Propulsion\" = 'CNG';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: what is the fuel propulsion where the fleet series (quantity) is 310-329 (20)?\nColumns: ['Order Year', 'Manufacturer', 'Model', 'Fleet Series (Quantity)', 'Powertrain (Engine/Transmission)', 'Fuel Propulsion']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['1992-93', 'Gillig', 'Phantom (High Floor)', '444-464 (21)', 'DD S50EGR Allison WB-400R', 'Diesel']\nSQL:", "role": "user" }, { "content": "SELECT \"Fuel Propulsion\" FROM \"1-10007452-3\" WHERE \"Fleet Series (Quantity)\" = '310-329 (20)';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: who is the manufacturer for the order year 1998?\nColumns: ['Order Year', 'Manufacturer', 'Model', 'Fleet Series (Quantity)', 'Powertrain (Engine/Transmission)', 'Fuel Propulsion']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['1992-93', 'Gillig', 'Phantom (High Floor)', '444-464 (21)', 'DD S50EGR Allison WB-400R', 'Diesel']\nSQL:", "role": "user" }, { "content": "SELECT \"Manufacturer\" FROM \"1-10007452-3\" WHERE \"Order Year\" = '1998';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: how many times is the model GE40LFR?\nColumns: ['Order Year', 'Manufacturer', 'Model', 'Fleet Series (Quantity)', 'Powertrain (Engine/Transmission)', 'Fuel Propulsion']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['1992-93', 'Gillig', 'Phantom (High Floor)', '444-464 (21)', 'DD S50EGR Allison WB-400R', 'Diesel']\nSQL:", "role": "user" }, { "content": "SELECT COUNT(\"Manufacturer\") FROM \"1-10007452-3\" WHERE \"Model\" = 'GE40LFR';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: how many times is the fleet series (quantity) is 468-473 (6)?\nColumns: ['Order Year', 'Manufacturer', 'Model', 'Fleet Series (Quantity)', 'Powertrain (Engine/Transmission)', 'Fuel Propulsion']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['1992-93', 'Gillig', 'Phantom (High Floor)', '444-464 (21)', 'DD S50EGR Allison WB-400R', 'Diesel']\nSQL:", "role": "user" }, { "content": "SELECT COUNT(\"Order Year\") FROM \"1-10007452-3\" WHERE \"Fleet Series (Quantity)\" = '468-473 (6)';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: what is the powertrain (engine/transmission) when the order year is 2000?\nColumns: ['Order Year', 'Manufacturer', 'Model', 'Fleet Series (Quantity)', 'Powertrain (Engine/Transmission)', 'Fuel Propulsion']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['1992-93', 'Gillig', 'Phantom (High Floor)', '444-464 (21)', 'DD S50EGR Allison WB-400R', 'Diesel']\nSQL:", "role": "user" }, { "content": "SELECT \"Powertrain (Engine/Transmission)\" FROM \"1-10007452-3\" WHERE \"Order Year\" = '2000';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What if the description of a CH-47D Chinook?\nColumns: ['Aircraft', 'Description', 'Max Gross Weight', 'Total disk area', 'Max disk Loading']\nTypes: ['text', 'text', 'text', 'text', 'text']\nSample row: ['Robinson R-22', 'Light utility helicopter', '1,370 lb (635 kg)', '497 ft² (46.2 m²)', '2.6 lb/ft² (14 kg/m²)']\nSQL:", "role": "user" }, { "content": "SELECT \"Description\" FROM \"1-10006830-1\" WHERE \"Aircraft\" = 'CH-47D Chinook';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What is the max gross weight of the Robinson R-22?\nColumns: ['Aircraft', 'Description', 'Max Gross Weight', 'Total disk area', 'Max disk Loading']\nTypes: ['text', 'text', 'text', 'text', 'text']\nSample row: ['Robinson R-22', 'Light utility helicopter', '1,370 lb (635 kg)', '497 ft² (46.2 m²)', '2.6 lb/ft² (14 kg/m²)']\nSQL:", "role": "user" }, { "content": "SELECT \"Max Gross Weight\" FROM \"1-10006830-1\" WHERE \"Aircraft\" = 'Robinson R-22';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What school did player number 6 come from?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Quincy Acy', '4', 'United States', 'Forward', '2012-present', 'Baylor']\nSQL:", "role": "user" }, { "content": "SELECT \"School/Club Team\" FROM \"1-10015132-1\" WHERE \"No.\" = '6';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What school did the player that has been in Toronto from 2012-present come from?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Quincy Acy', '4', 'United States', 'Forward', '2012-present', 'Baylor']\nSQL:", "role": "user" }, { "content": "SELECT \"School/Club Team\" FROM \"1-10015132-1\" WHERE \"Years in Toronto\" = '2012-present';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What school did the player that has been in Toronto from 2010-2012 go to?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Quincy Acy', '4', 'United States', 'Forward', '2012-present', 'Baylor']\nSQL:", "role": "user" }, { "content": "SELECT \"School/Club Team\" FROM \"1-10015132-1\" WHERE \"Years in Toronto\" = '2010-2012';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What position did the player from Baylor play?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Quincy Acy', '4', 'United States', 'Forward', '2012-present', 'Baylor']\nSQL:", "role": "user" }, { "content": "SELECT \"Position\" FROM \"1-10015132-1\" WHERE \"School/Club Team\" = 'Baylor';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: Who played in the Toronto Raptors from 1995-96?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: [\"Patrick O'Bryant\", 13.0, 'United States', 'Center', '2009-10', 'Bradley']\nSQL:", "role": "user" }, { "content": "SELECT \"Player\" FROM \"1-10015132-14\" WHERE \"Years in Toronto\" = '1995-96';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: Which number was Patrick O'Bryant?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: [\"Patrick O'Bryant\", 13.0, 'United States', 'Center', '2009-10', 'Bradley']\nSQL:", "role": "user" }, { "content": "SELECT \"No.\" FROM \"1-10015132-14\" WHERE \"Player\" = 'Patrick O''Bryant';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What school did Patrick O'Bryant play for?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: [\"Patrick O'Bryant\", 13.0, 'United States', 'Center', '2009-10', 'Bradley']\nSQL:", "role": "user" }, { "content": "SELECT \"School/Club Team\" FROM \"1-10015132-14\" WHERE \"Player\" = 'Patrick O''Bryant';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: How many number does Fordham school have?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: [\"Patrick O'Bryant\", 13.0, 'United States', 'Center', '2009-10', 'Bradley']\nSQL:", "role": "user" }, { "content": "SELECT COUNT(\"No.\") FROM \"1-10015132-14\" WHERE \"School/Club Team\" = 'Fordham';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: Which school was in Toronto in 2001-02?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: [\"Patrick O'Bryant\", 13.0, 'United States', 'Center', '2009-10', 'Bradley']\nSQL:", "role": "user" }, { "content": "SELECT \"School/Club Team\" FROM \"1-10015132-14\" WHERE \"Years in Toronto\" = '2001-02';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: Which school did the player that played 2004-05 attend?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: ['John Wallace', 44.0, 'United States', 'Forward', '1997-99', 'Syracuse']\nSQL:", "role": "user" }, { "content": "SELECT \"School/Club Team\" FROM \"1-10015132-21\" WHERE \"Years in Toronto\" = '2004-05';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: Which position does Loren Woods play?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: ['John Wallace', 44.0, 'United States', 'Forward', '1997-99', 'Syracuse']\nSQL:", "role": "user" }, { "content": "SELECT \"Position\" FROM \"1-10015132-21\" WHERE \"Player\" = 'Loren Woods';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What number is the player that played 1998-2001\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: ['John Wallace', 44.0, 'United States', 'Forward', '1997-99', 'Syracuse']\nSQL:", "role": "user" }, { "content": "SELECT MIN(\"No.\") FROM \"1-10015132-21\" WHERE \"Years in Toronto\" = '1998-2001';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: Which country is the player that went to Georgetown from?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: ['John Wallace', 44.0, 'United States', 'Forward', '1997-99', 'Syracuse']\nSQL:", "role": "user" }, { "content": "SELECT \"Nationality\" FROM \"1-10015132-21\" WHERE \"School/Club Team\" = 'Georgetown';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: Which school did Herb Williams go to?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: ['John Wallace', 44.0, 'United States', 'Forward', '1997-99', 'Syracuse']\nSQL:", "role": "user" }, { "content": "SELECT \"School/Club Team\" FROM \"1-10015132-21\" WHERE \"Player\" = 'Herb Williams';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: When did the player from Hawaii play for Toronto?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: ['José Calderón', 8.0, 'Spain', 'Guard', '2005-2013', 'TAU Cerámica (Spain)']\nSQL:", "role": "user" }, { "content": "SELECT \"Years in Toronto\" FROM \"1-10015132-3\" WHERE \"School/Club Team\" = 'Hawaii';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: During what period did Dell Curry play for Toronto?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: ['José Calderón', 8.0, 'Spain', 'Guard', '2005-2013', 'TAU Cerámica (Spain)']\nSQL:", "role": "user" }, { "content": "SELECT \"Years in Toronto\" FROM \"1-10015132-3\" WHERE \"Player\" = 'Dell Curry';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What's the number of the player from Boise State?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: ['José Calderón', 8.0, 'Spain', 'Guard', '2005-2013', 'TAU Cerámica (Spain)']\nSQL:", "role": "user" }, { "content": "SELECT \"No.\" FROM \"1-10015132-3\" WHERE \"School/Club Team\" = 'Boise State';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What's Dell Curry nationality?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: ['José Calderón', 8.0, 'Spain', 'Guard', '2005-2013', 'TAU Cerámica (Spain)']\nSQL:", "role": "user" }, { "content": "SELECT \"Nationality\" FROM \"1-10015132-3\" WHERE \"Player\" = 'Dell Curry';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: which player is from Georgia\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: ['Sundiata Gaines', 2.0, 'United States', 'Guard', '2011', 'Georgia']\nSQL:", "role": "user" }, { "content": "SELECT \"Player\" FROM \"1-10015132-7\" WHERE \"School/Club Team\" = 'Georgia';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: what school is Rudy Gay from\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: ['Sundiata Gaines', 2.0, 'United States', 'Guard', '2011', 'Georgia']\nSQL:", "role": "user" }, { "content": "SELECT \"School/Club Team\" FROM \"1-10015132-7\" WHERE \"Player\" = 'Rudy Gay';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: what nationality is the player who played from 1997-98\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: ['Sundiata Gaines', 2.0, 'United States', 'Guard', '2011', 'Georgia']\nSQL:", "role": "user" }, { "content": "SELECT \"Nationality\" FROM \"1-10015132-7\" WHERE \"Years in Toronto\" = '1997-98';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: what position did the player from Connecticut play\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'real', 'text', 'text', 'text', 'text']\nSample row: ['Sundiata Gaines', 2.0, 'United States', 'Guard', '2011', 'Georgia']\nSQL:", "role": "user" }, { "content": "SELECT \"Position\" FROM \"1-10015132-7\" WHERE \"School/Club Team\" = 'Connecticut';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: During which years was Marcus Banks in Toronto?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Mark Baker', '3', 'United States', 'Guard', '1998-99', 'Ohio State']\nSQL:", "role": "user" }, { "content": "SELECT \"Years in Toronto\" FROM \"1-10015132-2\" WHERE \"Player\" = 'Marcus Banks';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: Which positions were in Toronto in 2004?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Mark Baker', '3', 'United States', 'Guard', '1998-99', 'Ohio State']\nSQL:", "role": "user" }, { "content": "SELECT \"Position\" FROM \"1-10015132-2\" WHERE \"Years in Toronto\" = '2004';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What nationality is the player Muggsy Bogues?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Mark Baker', '3', 'United States', 'Guard', '1998-99', 'Ohio State']\nSQL:", "role": "user" }, { "content": "SELECT \"Nationality\" FROM \"1-10015132-2\" WHERE \"Player\" = 'Muggsy Bogues';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What years was the player Lonny Baxter in Toronto?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Mark Baker', '3', 'United States', 'Guard', '1998-99', 'Ohio State']\nSQL:", "role": "user" }, { "content": "SELECT \"Years in Toronto\" FROM \"1-10015132-2\" WHERE \"Player\" = 'Lonny Baxter';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: How many players were with the school or club team La Salle?\nColumns: ['Player', 'No.', 'Nationality', 'Position', 'Years in Toronto', 'School/Club Team']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Mark Baker', '3', 'United States', 'Guard', '1998-99', 'Ohio State']\nSQL:", "role": "user" }, { "content": "SELECT COUNT(\"Player\") FROM \"1-10015132-2\" WHERE \"School/Club Team\" = 'La Salle';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: When the scoring rank was 117, what was the best finish?\nColumns: ['Year', 'Tournaments played', 'Cuts made*', 'Wins', '2nd', 'Top 10s', 'Best finish', 'Earnings ($)', 'Money list rank', 'Scoring average', 'Scoring rank']\nTypes: ['real', 'real', 'real', 'real', 'real', 'real', 'text', 'real', 'text', 'text', 'text']\nSample row: [2005.0, 1.0, 1.0, 0.0, 0.0, 0.0, 'T69', 2525.0, 'n/a', '75.00', 'n/a']\nSQL:", "role": "user" }, { "content": "SELECT \"Best finish\" FROM \"1-10021158-3\" WHERE \"Scoring rank\" = '117';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: When the best finish was T69, how many people came in 2nd?\nColumns: ['Year', 'Tournaments played', 'Cuts made*', 'Wins', '2nd', 'Top 10s', 'Best finish', 'Earnings ($)', 'Money list rank', 'Scoring average', 'Scoring rank']\nTypes: ['real', 'real', 'real', 'real', 'real', 'real', 'text', 'real', 'text', 'text', 'text']\nSample row: [2005.0, 1.0, 1.0, 0.0, 0.0, 0.0, 'T69', 2525.0, 'n/a', '75.00', 'n/a']\nSQL:", "role": "user" }, { "content": "SELECT \"2nd\" FROM \"1-10021158-3\" WHERE \"Best finish\" = 'T69';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: How many wins were there when the money list rank was 183?\nColumns: ['Year', 'Tournaments played', 'Cuts made*', 'Wins', '2nd', 'Top 10s', 'Best finish', 'Earnings ($)', 'Money list rank', 'Scoring average', 'Scoring rank']\nTypes: ['real', 'real', 'real', 'real', 'real', 'real', 'text', 'real', 'text', 'text', 'text']\nSample row: [2005.0, 1.0, 1.0, 0.0, 0.0, 0.0, 'T69', 2525.0, 'n/a', '75.00', 'n/a']\nSQL:", "role": "user" }, { "content": "SELECT COUNT(\"Wins\") FROM \"1-10021158-3\" WHERE \"Money list rank\" = '183';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: When the money list rank was n/a, what was the scoring average?\nColumns: ['Year', 'Tournaments played', 'Cuts made*', 'Wins', '2nd', 'Top 10s', 'Best finish', 'Earnings ($)', 'Money list rank', 'Scoring average', 'Scoring rank']\nTypes: ['real', 'real', 'real', 'real', 'real', 'real', 'text', 'real', 'text', 'text', 'text']\nSample row: [2005.0, 1.0, 1.0, 0.0, 0.0, 0.0, 'T69', 2525.0, 'n/a', '75.00', 'n/a']\nSQL:", "role": "user" }, { "content": "SELECT \"Scoring average\" FROM \"1-10021158-3\" WHERE \"Money list rank\" = 'n/a';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What time was the highest for 2nd finishers?\nColumns: ['Year', 'Tournaments played', 'Cuts made*', 'Wins', '2nd', 'Top 10s', 'Best finish', 'Earnings ($)', 'Money list rank', 'Scoring average', 'Scoring rank']\nTypes: ['real', 'real', 'real', 'real', 'real', 'real', 'text', 'real', 'text', 'text', 'text']\nSample row: [2005.0, 1.0, 1.0, 0.0, 0.0, 0.0, 'T69', 2525.0, 'n/a', '75.00', 'n/a']\nSQL:", "role": "user" }, { "content": "SELECT MAX(\"2nd\") FROM \"1-10021158-3\";", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: When did the MetroStars have their first Rookie of the Year winner?\nColumns: ['Season', 'Player', 'Position', 'Nationality', 'Team', 'Draft Pick #', 'Draft Class', 'College']\nTypes: ['real', 'text', 'text', 'text', 'text', 'text', 'text', 'text']\nSample row: [1996.0, 'Steve Ralston Category:Articles with hCards', 'Midfielder', 'United States', 'Tampa Bay Mutiny', '18', '1996 MLS College Draft', 'Florida International']\nSQL:", "role": "user" }, { "content": "SELECT MIN(\"Season\") FROM \"1-1004033-1\" WHERE \"Team\" = 'MetroStars';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What college did the Rookie of the Year from the Columbus Crew attend?\nColumns: ['Season', 'Player', 'Position', 'Nationality', 'Team', 'Draft Pick #', 'Draft Class', 'College']\nTypes: ['real', 'text', 'text', 'text', 'text', 'text', 'text', 'text']\nSample row: [1996.0, 'Steve Ralston Category:Articles with hCards', 'Midfielder', 'United States', 'Tampa Bay Mutiny', '18', '1996 MLS College Draft', 'Florida International']\nSQL:", "role": "user" }, { "content": "SELECT \"College\" FROM \"1-1004033-1\" WHERE \"Team\" = 'Columbus Crew';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: How many teams had a #1 draft pick that won the Rookie of the Year Award?\nColumns: ['Season', 'Player', 'Position', 'Nationality', 'Team', 'Draft Pick #', 'Draft Class', 'College']\nTypes: ['real', 'text', 'text', 'text', 'text', 'text', 'text', 'text']\nSample row: [1996.0, 'Steve Ralston Category:Articles with hCards', 'Midfielder', 'United States', 'Tampa Bay Mutiny', '18', '1996 MLS College Draft', 'Florida International']\nSQL:", "role": "user" }, { "content": "SELECT COUNT(\"Team\") FROM \"1-1004033-1\" WHERE \"Draft Pick #\" = '1';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What position did the #10 draft pick play?\nColumns: ['Season', 'Player', 'Position', 'Nationality', 'Team', 'Draft Pick #', 'Draft Class', 'College']\nTypes: ['real', 'text', 'text', 'text', 'text', 'text', 'text', 'text']\nSample row: [1996.0, 'Steve Ralston Category:Articles with hCards', 'Midfielder', 'United States', 'Tampa Bay Mutiny', '18', '1996 MLS College Draft', 'Florida International']\nSQL:", "role": "user" }, { "content": "SELECT \"Position\" FROM \"1-1004033-1\" WHERE \"Draft Pick #\" = '10';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: what's the years played with singles w-l of 3–2\nColumns: ['Player', 'Years Played', 'Total W-L', 'Singles W-L', 'Doubles W-L']\nTypes: ['text', 'text', 'text', 'text', 'text']\nSample row: ['Cho Soong-Jae (630)', '1 (2011)', '2–0', '1–0', '1–0']\nSQL:", "role": "user" }, { "content": "SELECT \"Years Played\" FROM \"1-10023387-1\" WHERE \"Singles W-L\" = '3–2';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: what's the doubles w-l for player Seol Jae-Min (none)\nColumns: ['Player', 'Years Played', 'Total W-L', 'Singles W-L', 'Doubles W-L']\nTypes: ['text', 'text', 'text', 'text', 'text']\nSample row: ['Cho Soong-Jae (630)', '1 (2011)', '2–0', '1–0', '1–0']\nSQL:", "role": "user" }, { "content": "SELECT \"Doubles W-L\" FROM \"1-10023387-1\" WHERE \"Player\" = 'Seol Jae-Min (none)';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: what's the singles w-l for Kim Doo-Hwan\nColumns: ['Player', 'Years Played', 'Total W-L', 'Singles W-L', 'Doubles W-L']\nTypes: ['text', 'text', 'text', 'text', 'text']\nSample row: ['Cho Soong-Jae (630)', '1 (2011)', '2–0', '1–0', '1–0']\nSQL:", "role": "user" }, { "content": "SELECT \"Singles W-L\" FROM \"1-10023387-1\" WHERE \"Player\" = 'Kim Doo-Hwan';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: what's the total number of singles w-l with doubles w-l of 0–0 and total w-l of 3–1\nColumns: ['Player', 'Years Played', 'Total W-L', 'Singles W-L', 'Doubles W-L']\nTypes: ['text', 'text', 'text', 'text', 'text']\nSample row: ['Cho Soong-Jae (630)', '1 (2011)', '2–0', '1–0', '1–0']\nSQL:", "role": "user" }, { "content": "SELECT COUNT(\"Singles W-L\") FROM \"1-10023387-1\" WHERE \"Doubles W-L\" = '0–0' AND \"Total W-L\" = '3–1';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: what's the doubles w-l with years played value of 1 (1968)\nColumns: ['Player', 'Years Played', 'Total W-L', 'Singles W-L', 'Doubles W-L']\nTypes: ['text', 'text', 'text', 'text', 'text']\nSample row: ['Cho Soong-Jae (630)', '1 (2011)', '2–0', '1–0', '1–0']\nSQL:", "role": "user" }, { "content": "SELECT \"Doubles W-L\" FROM \"1-10023387-1\" WHERE \"Years Played\" = '1 (1968)';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: what years are played for player  Im Chung-Yang\nColumns: ['Player', 'Years Played', 'Total W-L', 'Singles W-L', 'Doubles W-L']\nTypes: ['text', 'text', 'text', 'text', 'text']\nSample row: ['Cho Soong-Jae (630)', '1 (2011)', '2–0', '1–0', '1–0']\nSQL:", "role": "user" }, { "content": "SELECT \"Years Played\" FROM \"1-10023387-1\" WHERE \"Player\" = 'Im Chung-Yang';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What is the name of the 375 crest length?\nColumns: ['Name', 'Canton', 'Height (meters)', 'Crest length (meters)', 'Type', 'Year of construction', 'Name of the Lake']\nTypes: ['text', 'text', 'real', 'real', 'text', 'real', 'text']\nSample row: ['Grande Dixence', 'Valais', 285.0, 695.0, 'Gravity', 1961.0, 'Lac des Dix']\nSQL:", "role": "user" }, { "content": "SELECT \"Name\" FROM \"1-10020178-1\" WHERE \"Crest length (meters)\" = 375.0;", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What is year of construction of Spitallamm?\nColumns: ['Name', 'Canton', 'Height (meters)', 'Crest length (meters)', 'Type', 'Year of construction', 'Name of the Lake']\nTypes: ['text', 'text', 'real', 'real', 'text', 'real', 'text']\nSample row: ['Grande Dixence', 'Valais', 285.0, 695.0, 'Gravity', 1961.0, 'Lac des Dix']\nSQL:", "role": "user" }, { "content": "SELECT MIN(\"Year of construction\") FROM \"1-10020178-1\" WHERE \"Name\" = 'Spitallamm';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What is the canton of Grande Dixence?\nColumns: ['Name', 'Canton', 'Height (meters)', 'Crest length (meters)', 'Type', 'Year of construction', 'Name of the Lake']\nTypes: ['text', 'text', 'real', 'real', 'text', 'real', 'text']\nSample row: ['Grande Dixence', 'Valais', 285.0, 695.0, 'Gravity', 1961.0, 'Lac des Dix']\nSQL:", "role": "user" }, { "content": "SELECT \"Canton\" FROM \"1-10020178-1\" WHERE \"Name\" = 'Grande Dixence';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What is the name where Lago di Luzzone is?\nColumns: ['Name', 'Canton', 'Height (meters)', 'Crest length (meters)', 'Type', 'Year of construction', 'Name of the Lake']\nTypes: ['text', 'text', 'real', 'real', 'text', 'real', 'text']\nSample row: ['Grande Dixence', 'Valais', 285.0, 695.0, 'Gravity', 1961.0, 'Lac des Dix']\nSQL:", "role": "user" }, { "content": "SELECT \"Name\" FROM \"1-10020178-1\" WHERE \"Name of the Lake\" = 'Lago di Luzzone';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What is the guardian mātṛkā for the guardian whose consort is Svāhā?\nColumns: ['Name', 'Direction', 'Mantra', 'Weapon', 'Consort', 'Graha (Planet)', 'Guardian Mātṛkā']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Kubera', 'North', 'Oṃ Śaṃ Kuberāya Namaḥ', 'Gadā (mace)', 'Kuberajāyā', 'Budha ( Mercury )', 'Kumārī']\nSQL:", "role": "user" }, { "content": "SELECT \"Guardian Mātṛkā\" FROM \"1-100518-1\" WHERE \"Consort\" = 'Svāhā';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: Where the mantra is \"Oṃ Yaṃ Vāyuve Namaḥ\", what is the direction of the guardian?\nColumns: ['Name', 'Direction', 'Mantra', 'Weapon', 'Consort', 'Graha (Planet)', 'Guardian Mātṛkā']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Kubera', 'North', 'Oṃ Śaṃ Kuberāya Namaḥ', 'Gadā (mace)', 'Kuberajāyā', 'Budha ( Mercury )', 'Kumārī']\nSQL:", "role": "user" }, { "content": "SELECT \"Direction\" FROM \"1-100518-1\" WHERE \"Mantra\" = 'Oṃ Yaṃ Vāyuve Namaḥ';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What weapon is used by the guardian whose consort is Śacī?\nColumns: ['Name', 'Direction', 'Mantra', 'Weapon', 'Consort', 'Graha (Planet)', 'Guardian Mātṛkā']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Kubera', 'North', 'Oṃ Śaṃ Kuberāya Namaḥ', 'Gadā (mace)', 'Kuberajāyā', 'Budha ( Mercury )', 'Kumārī']\nSQL:", "role": "user" }, { "content": "SELECT \"Weapon\" FROM \"1-100518-1\" WHERE \"Consort\" = 'Śacī';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What are the directions for the guardian whose weapon is Khaḍga (sword)?\nColumns: ['Name', 'Direction', 'Mantra', 'Weapon', 'Consort', 'Graha (Planet)', 'Guardian Mātṛkā']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Kubera', 'North', 'Oṃ Śaṃ Kuberāya Namaḥ', 'Gadā (mace)', 'Kuberajāyā', 'Budha ( Mercury )', 'Kumārī']\nSQL:", "role": "user" }, { "content": "SELECT \"Direction\" FROM \"1-100518-1\" WHERE \"Weapon\" = 'Khaḍga (sword)';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What are the weapons used by guardians for the direction East?\nColumns: ['Name', 'Direction', 'Mantra', 'Weapon', 'Consort', 'Graha (Planet)', 'Guardian Mātṛkā']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Kubera', 'North', 'Oṃ Śaṃ Kuberāya Namaḥ', 'Gadā (mace)', 'Kuberajāyā', 'Budha ( Mercury )', 'Kumārī']\nSQL:", "role": "user" }, { "content": "SELECT \"Weapon\" FROM \"1-100518-1\" WHERE \"Direction\" = 'East';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What are the directions for the guardian whose graha (planet) is Bṛhaspati (Jupiter)?\nColumns: ['Name', 'Direction', 'Mantra', 'Weapon', 'Consort', 'Graha (Planet)', 'Guardian Mātṛkā']\nTypes: ['text', 'text', 'text', 'text', 'text', 'text', 'text']\nSample row: ['Kubera', 'North', 'Oṃ Śaṃ Kuberāya Namaḥ', 'Gadā (mace)', 'Kuberajāyā', 'Budha ( Mercury )', 'Kumārī']\nSQL:", "role": "user" }, { "content": "SELECT \"Direction\" FROM \"1-100518-1\" WHERE \"Graha (Planet)\" = 'Bṛhaspati (Jupiter)';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What is the number of chapters listed for the Fraternity with a headquarters in Austin, Texas?\nColumns: ['Member', 'Headquarters', 'Classification', 'Chapters', 'Founded', 'UCCFS']\nTypes: ['text', 'text', 'text', 'real', 'text', 'real']\nSample row: ['Alpha Nu Omega', 'Baltimore, Maryland', 'Fraternity & Sorority', 26.0, '1988 at Morgan State University', 2006.0]\nSQL:", "role": "user" }, { "content": "SELECT MAX(\"Chapters\") FROM \"1-10054296-1\" WHERE \"Classification\" = 'Fraternity' AND \"Headquarters\" = 'Austin, Texas';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What are the members listed with the Sorority classification\nColumns: ['Member', 'Headquarters', 'Classification', 'Chapters', 'Founded', 'UCCFS']\nTypes: ['text', 'text', 'text', 'real', 'text', 'real']\nSample row: ['Alpha Nu Omega', 'Baltimore, Maryland', 'Fraternity & Sorority', 26.0, '1988 at Morgan State University', 2006.0]\nSQL:", "role": "user" }, { "content": "SELECT \"Member\" FROM \"1-10054296-1\" WHERE \"Classification\" = 'Sorority';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: Name the member that has 12 chapters\nColumns: ['Member', 'Headquarters', 'Classification', 'Chapters', 'Founded', 'UCCFS']\nTypes: ['text', 'text', 'text', 'real', 'text', 'real']\nSample row: ['Alpha Nu Omega', 'Baltimore, Maryland', 'Fraternity & Sorority', 26.0, '1988 at Morgan State University', 2006.0]\nSQL:", "role": "user" }, { "content": "SELECT \"Member\" FROM \"1-10054296-1\" WHERE \"Chapters\" = 12.0;", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: Where is the headquarters of Alpha Nu Omega\nColumns: ['Member', 'Headquarters', 'Classification', 'Chapters', 'Founded', 'UCCFS']\nTypes: ['text', 'text', 'text', 'real', 'text', 'real']\nSample row: ['Alpha Nu Omega', 'Baltimore, Maryland', 'Fraternity & Sorority', 26.0, '1988 at Morgan State University', 2006.0]\nSQL:", "role": "user" }, { "content": "SELECT \"Headquarters\" FROM \"1-10054296-1\" WHERE \"Member\" = 'Alpha Nu Omega';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: what is the number of relapsing fever when malaria is 3000\nColumns: ['Year', 'Typhus', 'Typhoid fever', 'Relapsing fever', 'Smallpox', 'Malaria']\nTypes: ['text', 'real', 'real', 'real', 'real', 'text']\nSample row: ['1913', 120.0, 424.0, 30.0, 67.0, '3600']\nSQL:", "role": "user" }, { "content": "SELECT MIN(\"Relapsing fever\") FROM \"1-1007688-1\" WHERE \"Malaria\" = '3000';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: what is the typhoid fever number for the year 1934\nColumns: ['Year', 'Typhus', 'Typhoid fever', 'Relapsing fever', 'Smallpox', 'Malaria']\nTypes: ['text', 'real', 'real', 'real', 'real', 'text']\nSample row: ['1913', 120.0, 424.0, 30.0, 67.0, '3600']\nSQL:", "role": "user" }, { "content": "SELECT \"Typhoid fever\" FROM \"1-1007688-1\" WHERE \"Year\" = '1934';", "role": "assistant" } ]
[ { "content": "You are an expert SQLite SQL query generator.\nYour task: Given a question and a table schema, output ONLY a valid SQL SELECT query.\n⚠️ STRICT RULES:\n - Output ONLY SQL (no explanations, no markdown, no ``` fences)\n - Use table name \"Table\"\n - Allowed functions: ['MAX', 'MIN', 'COUNT', 'SUM', 'AVG']\n - Allowed condition operators: ['=', '>', '<', '!=']\n - Allowed SQL keywords: ['SELECT', 'WHERE', 'AND']\n - Always use \"\" with all column names and table name, even one word: \"Price\", \"General column\", \"Something #\"\n\n### EXAMPLE 1:\nQuestion: What is the price of the Samsung Galaxy S23?\nColumns: ['Brand', 'Model', 'Price', 'Storage', 'Color']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Apple', 'iPhone 14', 899.99, '128GB', 'White']\nSQL: SELECT \"Price\" FROM \"Table\" WHERE \"Brand\" = \"Samsung\" AND \"Model\" = \"Galaxy S23\";\n\n### EXAMPLE 2:\nQuestion: How many books did Maya Chen publish?\nColumns: ['Author', 'Books Published', 'Genre', 'Country', 'Years Active']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['John Smith', 3, 'Non-fiction', 'Canada', '2005–2015']\nSQL: SELECT \"Books Published\" FROM \"Table\" WHERE \"Author\" = \"Maya Chen\";\n\n### EXAMPLE 3:\nQuestion: What is the total population of cities in California?\nColumns: ['City', 'State', 'Population', 'Area', 'Founded']\nTypes: ['text', 'text', 'real', 'real', 'text']\nSample row: ['Houston', 'Texas', 2304580, 1651.1, '1837']\nSQL: SELECT SUM(\"Population\") FROM \"Table\" WHERE \"State\" = \"California\";\n\n### EXAMPLE 4:\nQuestion: How many restaurants serve Italian cuisine?\nColumns: ['Restaurant', 'Cuisine', 'Rating', 'City', 'Price Range']\nTypes: ['text', 'text', 'real', 'text', 'text']\nSample row: ['Golden Dragon', 'Chinese', 4.2, 'Boston', '$$']\nSQL: SELECT COUNT(*) FROM \"Table\" WHERE \"Cuisine\" = \"Italian\";\n\n### EXAMPLE 5:\nQuestion: What is the average salary for Software Engineers?\nColumns: ['Job Title', 'Salary', 'Experience', 'Location', 'Company Size']\nTypes: ['text', 'real', 'text', 'text', 'text']\nSample row: ['Data Analyst', 70000, 'Junior', 'Chicago', '200–500']\nSQL: SELECT AVG(\"Salary\") FROM \"Table\" WHERE \"Job Title\" = \"Software Engineer\";\n\n### NOW ANSWER:\nQuestion: What are all the typhus number when smallpox is 4\nColumns: ['Year', 'Typhus', 'Typhoid fever', 'Relapsing fever', 'Smallpox', 'Malaria']\nTypes: ['text', 'real', 'real', 'real', 'real', 'text']\nSample row: ['1913', 120.0, 424.0, 30.0, 67.0, '3600']\nSQL:", "role": "user" }, { "content": "SELECT \"Typhus\" FROM \"1-1007688-1\" WHERE \"Smallpox\" = 4.0;", "role": "assistant" } ]
End of preview. Expand in Data Studio

LLMSQL Benchmark (Finetune-Ready)

This benchmark is designed to evaluate text-to-SQL models. For usage of this benchmark see https://github.com/LLMSQL/llmsql-benchmark.

This repository contains a finetune-ready version of the LLMSQL benchmark: LLMSQL on Hugging Face.

The dataset is structured in a messages format suitable for instruction-tuned models, where each example has a messages field. This field is a list of dictionaries with:

  • "role": "user" — the input question or prompt
  • "role": "assistant" — the expected SQL query

Files / Subsets

The dataset is organized into three shot-based subsets:

Subset Description Splits
0shot Zero-shot examples train, validation, test
1shot One-shot examples train, validation, test
5shot Five-shot examples train, validation, test

Each subset folder contains a DatasetDict saved in Hugging Face format, which can be loaded using:

from datasets import load_dataset

# Load 1-shot subset
ds = load_dataset("llmsql-bench/llmsql-benchmark-finetune-ready", name="1shot")
print(ds["train"][0])

Citation

If you use this benchmark, please cite:

@inproceedings{llmsql_bench,
  title={LLMSQL: Upgrading WikiSQL for the LLM Era of Text-to-SQL},
  author={Pihulski, Dzmitry and Charchut, Karol and Novogrodskaia, Viktoria and Koco{'n}, Jan},
  booktitle={2025 IEEE International Conference on Data Mining Workshops (ICDMW)},
  year={2025},
  organization={IEEE}
}
Downloads last month
97