chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the attendance during the november 16, 1975 game?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"schedule\" WHERE \"date\"='november 16, 1975';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"owner\" text,\n \"class\" text,\n \"number_in_class\" real,\n \"road_numbers\" text,\n \"built\" text\n);\n\nQuestion: What is the total number in class for the Whitehaven Coal?" }, { "role": "assistant", "content": "SELECT SUM(\"number_in_class\") FROM \"summary\" WHERE \"owner\"='whitehaven coal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"owner\" text,\n \"class\" text,\n \"number_in_class\" real,\n \"road_numbers\" text,\n \"built\" text\n);\n\nQuestion: What was built in a class with less than 10, and the Downer Rail owner?" }, { "role": "assistant", "content": "SELECT \"built\" FROM \"summary\" WHERE \"number_in_class\"<10 AND \"owner\"='downer rail';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"owner\" text,\n \"class\" text,\n \"number_in_class\" real,\n \"road_numbers\" text,\n \"built\" text\n);\n\nQuestion: Which class has more than 15 people in the class?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"summary\" WHERE \"number_in_class\">15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"owner\" text,\n \"class\" text,\n \"number_in_class\" real,\n \"road_numbers\" text,\n \"built\" text\n);\n\nQuestion: Who is the owner that built in 2009-2011?" }, { "role": "assistant", "content": "SELECT \"owner\" FROM \"summary\" WHERE \"built\"='2009-2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"125cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: Count the Grid which has a Manufacturer of aprilia, and a Rider of bradley smith?" }, { "role": "assistant", "content": "SELECT AVG(\"grid\") FROM \"125cc_classification\" WHERE \"manufacturer\"='aprilia' AND \"rider\"='bradley smith';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"125cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: Name the Time which has Laps of 19, and a Grid larger than 19, and a Manufacturer of ktm, and a Rider of randy krummenacher?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"125cc_classification\" WHERE \"laps\"=19 AND \"grid\">19 AND \"manufacturer\"='ktm' AND \"rider\"='randy krummenacher';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"125cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: Name the Time which has a Manufacturer of aprilia, and a Grid smaller than 16, and a Rider of sandro cortese?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"125cc_classification\" WHERE \"manufacturer\"='aprilia' AND \"grid\"<16 AND \"rider\"='sandro cortese';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Name the Silver which has a Bronze of 19, and a Total larger than 58?" }, { "role": "assistant", "content": "SELECT MIN(\"silver\") FROM \"medal_table\" WHERE \"bronze\"=19 AND \"total\">58;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What kind of Silver has a Rank of 3, and a Gold smaller than 2?" }, { "role": "assistant", "content": "SELECT COUNT(\"silver\") FROM \"medal_table\" WHERE \"rank\"='3' AND \"gold\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: COunt the silver that has a Bronze smaller than 1?" }, { "role": "assistant", "content": "SELECT SUM(\"silver\") FROM \"medal_table\" WHERE \"bronze\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Name the Total which has a Silver larger than 19?" }, { "role": "assistant", "content": "SELECT MAX(\"total\") FROM \"medal_table\" WHERE \"silver\">19;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Name the Silver that has a Total smaller than 2, and a Nation of south korea?" }, { "role": "assistant", "content": "SELECT AVG(\"silver\") FROM \"medal_table\" WHERE \"total\"<2 AND \"nation\"='south korea';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is the location of the match with chad armstrong as the opponent?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='chad armstrong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Scott Verplank's score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"third_round\" WHERE \"player\"='scott verplank';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What place is United States player Corey Pavin in?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"country\"='united states' AND \"player\"='corey pavin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Which country has a score of 70-71-72=213?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"third_round\" WHERE \"score\"='70-71-72=213';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Where does Bob Tway Place?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"player\"='bob tway';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the place with a to par of E and a score of 69-69-72=210?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"to_par\"='e' AND \"score\"='69-69-72=210';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: WHAT IS THE COUNTRY WITH DAVE BARR?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"second_round\" WHERE \"player\"='dave barr';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: WHAT IS THE TO PAR WITH A T7 PLACE, SCORE OF 72-67=139, AND PLAYER RAYMOND FLOYD?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"place\"='t7' AND \"score\"='72-67=139' AND \"player\"='raymond floyd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: WHAT IS THE PLACE WITH PLAYER mark o'meara?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"player\"='mark o''meara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"position\" real,\n \"name\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points\" real\n);\n\nQuestion: Which Drawn is the highest one that has a Position smaller than 4, and a Lost smaller than 2?" }, { "role": "assistant", "content": "SELECT MAX(\"drawn\") FROM \"first_round\" WHERE \"position\"<4 AND \"lost\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"position\" real,\n \"name\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points\" real\n);\n\nQuestion: How many Points have a Position larger than 3, and a Played smaller than 14?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"first_round\" WHERE \"position\">3 AND \"played\"<14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"position\" real,\n \"name\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points\" real\n);\n\nQuestion: Which Lost has a Position of 4, and a Drawn smaller than 3?" }, { "role": "assistant", "content": "SELECT AVG(\"lost\") FROM \"first_round\" WHERE \"position\"=4 AND \"drawn\"<3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"position\" real,\n \"name\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points\" real\n);\n\nQuestion: Which Position has a Lost larger than 4, and a Played larger than 14?" }, { "role": "assistant", "content": "SELECT AVG(\"position\") FROM \"first_round\" WHERE \"lost\">4 AND \"played\">14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: On which week was the opponent the oakland raiders?" }, { "role": "assistant", "content": "SELECT SUM(\"week\") FROM \"schedule\" WHERE \"opponent\"='oakland raiders';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the attendance at the game where the opponent was the denver broncos?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"opponent\"='denver broncos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"west_conference\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text\n);\n\nQuestion: How many people are enrolled in platteville, wi?" }, { "role": "assistant", "content": "SELECT SUM(\"enrollment\") FROM \"west_conference\" WHERE \"location\"='platteville, wi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"west_conference\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text\n);\n\nQuestion: What is the team nickname of university of wisconsin-platteville?" }, { "role": "assistant", "content": "SELECT \"nickname\" FROM \"west_conference\" WHERE \"institution\"='university of wisconsin-platteville';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is To Par, when Place is 3?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"place\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Country, when Player is \"Rives McBee\"?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"third_round\" WHERE \"player\"='rives mcbee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Place, when Player is \"Tony Lema\"?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"player\"='tony lema';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Score, when To Par is \"E\"?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"third_round\" WHERE \"to_par\"='e';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Country, when Score is 71-71-69=211?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"third_round\" WHERE \"score\"='71-71-69=211';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Country, when Score is 71-74-70=215?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"third_round\" WHERE \"score\"='71-74-70=215';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_and_rankings_timeline\" (\n \"2004_05\" text,\n \"2007_08\" text,\n \"2010_11\" text,\n \"2011_12\" text,\n \"2012_13\" text\n);\n\nQuestion: What shows for 2004/ 05 when 2007/ 08 shows not held, 2012/ 13 is A, 2011/ 12 of A, and a 2010/ 11 of not held?" }, { "role": "assistant", "content": "SELECT \"2004_05\" FROM \"performance_and_rankings_timeline\" WHERE \"2007_08\"='not held' AND \"2012_13\"='a' AND \"2011_12\"='a' AND \"2010_11\"='not held';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_and_rankings_timeline\" (\n \"2004_05\" text,\n \"2007_08\" text,\n \"2010_11\" text,\n \"2011_12\" text,\n \"2012_13\" text\n);\n\nQuestion: What shows for 2012/ 13 when the 2007/ 08 is not held, and the 2011/ 12 is non-ranking?" }, { "role": "assistant", "content": "SELECT \"2012_13\" FROM \"performance_and_rankings_timeline\" WHERE \"2007_08\"='not held' AND \"2011_12\"='non-ranking';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_and_rankings_timeline\" (\n \"2004_05\" text,\n \"2007_08\" text,\n \"2010_11\" text,\n \"2011_12\" text,\n \"2012_13\" text\n);\n\nQuestion: What is the 2011/ 12 when the 2010/ 11 is not held, and the 2012/ 13 is A?" }, { "role": "assistant", "content": "SELECT \"2011_12\" FROM \"performance_and_rankings_timeline\" WHERE \"2010_11\"='not held' AND \"2012_13\"='a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_and_rankings_timeline\" (\n \"2004_05\" text,\n \"2007_08\" text,\n \"2010_11\" text,\n \"2011_12\" text,\n \"2012_13\" text\n);\n\nQuestion: What is the 2004/ 05 when the 2011/ 12 is non-ranking?" }, { "role": "assistant", "content": "SELECT \"2004_05\" FROM \"performance_and_rankings_timeline\" WHERE \"2011_12\"='non-ranking';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_and_rankings_timeline\" (\n \"2004_05\" text,\n \"2007_08\" text,\n \"2010_11\" text,\n \"2011_12\" text,\n \"2012_13\" text\n);\n\nQuestion: What is the 2012/ 13 when the 2011/ 12 is non-ranking?" }, { "role": "assistant", "content": "SELECT \"2012_13\" FROM \"performance_and_rankings_timeline\" WHERE \"2011_12\"='non-ranking';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_and_rankings_timeline\" (\n \"2004_05\" text,\n \"2007_08\" text,\n \"2010_11\" text,\n \"2011_12\" text,\n \"2012_13\" text\n);\n\nQuestion: What is the 2010/ 11 when the 2011/ 12 is ranking tournaments?" }, { "role": "assistant", "content": "SELECT \"2010_11\" FROM \"performance_and_rankings_timeline\" WHERE \"2011_12\"='ranking tournaments';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" real\n);\n\nQuestion: what is the lost when played is less than 42?" }, { "role": "assistant", "content": "SELECT SUM(\"lost\") FROM \"final_table\" WHERE \"played\"<42;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" real\n);\n\nQuestion: what is the goal difference when drawn is more than 11, goals against is less than 63, goals for is less than 87 and lost is more than 16?" }, { "role": "assistant", "content": "SELECT \"goal_difference\" FROM \"final_table\" WHERE \"drawn\">11 AND \"goals_against\"<63 AND \"goals_for\"<87 AND \"lost\">16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" real\n);\n\nQuestion: how many times is lost less than 7 and the position 2?" }, { "role": "assistant", "content": "SELECT COUNT(\"goals_for\") FROM \"final_table\" WHERE \"lost\"<7 AND \"position\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" real\n);\n\nQuestion: what is the position when the points 1 is less than 36, goals for is less than 40 and drawn is less than 9?" }, { "role": "assistant", "content": "SELECT SUM(\"position\") FROM \"final_table\" WHERE \"points_1\"<36 AND \"goals_for\"<40 AND \"drawn\"<9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_of_sentences\" (\n \"tribunal\" text,\n \"number_of_autos_da_f_with_known_sentences\" text,\n \"executions_in_persona\" text,\n \"executions_in_effigie\" text,\n \"penanced\" text,\n \"total\" text\n);\n\nQuestion: How many executions in persona have a number with known sentences of 2 (1543\u20131544)?" }, { "role": "assistant", "content": "SELECT \"executions_in_persona\" FROM \"table_of_sentences\" WHERE \"number_of_autos_da_f_with_known_sentences\"='2 (1543\u20131544)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_of_sentences\" (\n \"tribunal\" text,\n \"number_of_autos_da_f_with_known_sentences\" text,\n \"executions_in_persona\" text,\n \"executions_in_effigie\" text,\n \"penanced\" text,\n \"total\" text\n);\n\nQuestion: How many were penanced when the number with known sentences was 71 (1600\u20131773)?" }, { "role": "assistant", "content": "SELECT \"penanced\" FROM \"table_of_sentences\" WHERE \"number_of_autos_da_f_with_known_sentences\"='71 (1600\u20131773)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_of_sentences\" (\n \"tribunal\" text,\n \"number_of_autos_da_f_with_known_sentences\" text,\n \"executions_in_persona\" text,\n \"executions_in_effigie\" text,\n \"penanced\" text,\n \"total\" text\n);\n\nQuestion: How many were penanced for a total of 7666?" }, { "role": "assistant", "content": "SELECT \"penanced\" FROM \"table_of_sentences\" WHERE \"total\"='7666';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_of_sentences\" (\n \"tribunal\" text,\n \"number_of_autos_da_f_with_known_sentences\" text,\n \"executions_in_persona\" text,\n \"executions_in_effigie\" text,\n \"penanced\" text,\n \"total\" text\n);\n\nQuestion: How man executions in effigie took place at the Lamego tribunal?" }, { "role": "assistant", "content": "SELECT \"executions_in_effigie\" FROM \"table_of_sentences\" WHERE \"tribunal\"='lamego';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_of_sentences\" (\n \"tribunal\" text,\n \"number_of_autos_da_f_with_known_sentences\" text,\n \"executions_in_persona\" text,\n \"executions_in_effigie\" text,\n \"penanced\" text,\n \"total\" text\n);\n\nQuestion: How many were penanced with 0 executions in effigie for a total of 21?" }, { "role": "assistant", "content": "SELECT \"penanced\" FROM \"table_of_sentences\" WHERE \"executions_in_effigie\"='0' AND \"total\"='21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_of_sentences\" (\n \"tribunal\" text,\n \"number_of_autos_da_f_with_known_sentences\" text,\n \"executions_in_persona\" text,\n \"executions_in_effigie\" text,\n \"penanced\" text,\n \"total\" text\n);\n\nQuestion: Which tribunal had a total of 4167?" }, { "role": "assistant", "content": "SELECT \"tribunal\" FROM \"table_of_sentences\" WHERE \"total\"='4167';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"result\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What is the Opponent of the Game on October 20?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"season_schedule\" WHERE \"date\"='october 20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_division\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" real,\n \"established\" real\n);\n\nQuestion: Which institution is located in Reading, PA?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"national_division\" WHERE \"location\"='reading, pa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_division\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" real,\n \"established\" real\n);\n\nQuestion: What was the nick name for the school established in 1958?" }, { "role": "assistant", "content": "SELECT \"nickname\" FROM \"national_division\" WHERE \"established\"=1958;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"points\" real\n);\n\nQuestion: When the grid is under 5 and justin wilson is driving for the team mi-jack conquest racing, what's the highest number of laps driven?" }, { "role": "assistant", "content": "SELECT MAX(\"laps\") FROM \"race\" WHERE \"team\"='mi-jack conquest racing' AND \"driver\"='justin wilson' AND \"grid\"<5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"points\" real\n);\n\nQuestion: When the team is newman/haas racing and the grid size is 3, what's the time/retired?" }, { "role": "assistant", "content": "SELECT \"time_retired\" FROM \"race\" WHERE \"team\"='newman/haas racing' AND \"grid\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"competitive_matches\" (\n \"date\" text,\n \"tournament\" text,\n \"round\" text,\n \"ground\" text,\n \"opponent\" text,\n \"score_1\" text\n);\n\nQuestion: What tournament took place on Ground A with 8 rounds?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"competitive_matches\" WHERE \"ground\"='a' AND \"round\"='8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_cast\" (\n \"actor\" text,\n \"character\" text,\n \"title_rank\" text,\n \"series\" text,\n \"years\" text\n);\n\nQuestion: What series had the title rank of various?" }, { "role": "assistant", "content": "SELECT \"series\" FROM \"regular_cast\" WHERE \"title_rank\"='various';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_cast\" (\n \"actor\" text,\n \"character\" text,\n \"title_rank\" text,\n \"series\" text,\n \"years\" text\n);\n\nQuestion: What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?" }, { "role": "assistant", "content": "SELECT \"title_rank\" FROM \"regular_cast\" WHERE \"series\"='1-8, 13' AND \"character\"='arthur hastings';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_cast\" (\n \"actor\" text,\n \"character\" text,\n \"title_rank\" text,\n \"series\" text,\n \"years\" text\n);\n\nQuestion: What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?" }, { "role": "assistant", "content": "SELECT \"title_rank\" FROM \"regular_cast\" WHERE \"series\"='1-8, 13' AND \"character\"='arthur hastings';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_cast\" (\n \"actor\" text,\n \"character\" text,\n \"title_rank\" text,\n \"series\" text,\n \"years\" text\n);\n\nQuestion: What is the title rank of actor pauline moran?" }, { "role": "assistant", "content": "SELECT \"title_rank\" FROM \"regular_cast\" WHERE \"actor\"='pauline moran';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_cast\" (\n \"actor\" text,\n \"character\" text,\n \"title_rank\" text,\n \"series\" text,\n \"years\" text\n);\n\nQuestion: Which character had a title rank of various?" }, { "role": "assistant", "content": "SELECT \"character\" FROM \"regular_cast\" WHERE \"title_rank\"='various';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the highest rebounds of the game with a game number higher than 65 on March 28?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"game\">65 AND \"date\"='march 28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: WHAT DATE HAD A GAME SMALLER THAN 58, AND FROM BOSTON?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"game\"<58 AND \"team\"='boston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3_2009_ratings\" (\n \"episode\" real,\n \"original_airdate\" text,\n \"timeslot_approx\" text,\n \"viewers_millions\" real,\n \"nightly_rank\" text\n);\n\nQuestion: Original airdate for #6 with 1.246 viewers?" }, { "role": "assistant", "content": "SELECT \"original_airdate\" FROM \"series_3_2009_ratings\" WHERE \"nightly_rank\"='#6' AND \"viewers_millions\"=1.246;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3_2009_ratings\" (\n \"episode\" real,\n \"original_airdate\" text,\n \"timeslot_approx\" text,\n \"viewers_millions\" real,\n \"nightly_rank\" text\n);\n\nQuestion: Rank for viewers larger than 1.244?" }, { "role": "assistant", "content": "SELECT \"nightly_rank\" FROM \"series_3_2009_ratings\" WHERE \"viewers_millions\">1.244;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: How many weeks had a Result of w 20\u20136?" }, { "role": "assistant", "content": "SELECT SUM(\"week\") FROM \"schedule\" WHERE \"result\"='w 20\u20136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Which Opponent has an Attendance of bye?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"attendance\"='bye';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_seasons\" (\n \"season\" text,\n \"races\" real,\n \"podiums\" real,\n \"pole\" real,\n \"f_laps\" real\n);\n\nQuestion: WHAT IS THE FLAPS WITH PODIUMS OF 24 AND RACES BIGGER THAN 143?" }, { "role": "assistant", "content": "SELECT MAX(\"f_laps\") FROM \"by_seasons\" WHERE \"podiums\"=24 AND \"races\">143;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_seasons\" (\n \"season\" text,\n \"races\" real,\n \"podiums\" real,\n \"pole\" real,\n \"f_laps\" real\n);\n\nQuestion: WHAT ARE THE RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AND POLE SMALLER THAN 1?" }, { "role": "assistant", "content": "SELECT SUM(\"races\") FROM \"by_seasons\" WHERE \"f_laps\"=0 AND \"podiums\">0 AND \"season\"='2008' AND \"pole\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_seasons\" (\n \"season\" text,\n \"races\" real,\n \"podiums\" real,\n \"pole\" real,\n \"f_laps\" real\n);\n\nQuestion: WHAT ARE THE RACES WITH A POLE SMALLER THAN 2 IN 2007?" }, { "role": "assistant", "content": "SELECT MIN(\"races\") FROM \"by_seasons\" WHERE \"pole\"<2 AND \"season\"='2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_seasons\" (\n \"season\" text,\n \"races\" real,\n \"podiums\" real,\n \"pole\" real,\n \"f_laps\" real\n);\n\nQuestion: WHAT ARE THE RACES FOR 2010 WITH FLAPS LARGER THAN 6?" }, { "role": "assistant", "content": "SELECT MAX(\"races\") FROM \"by_seasons\" WHERE \"season\"='2010' AND \"f_laps\">6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ground_history\" (\n \"name_of_ground\" text,\n \"location\" text,\n \"year\" text,\n \"fc_matches\" text,\n \"la_matches\" text,\n \"t20_matches\" text,\n \"total\" text\n);\n\nQuestion: What T20 Match has a total of 23?" }, { "role": "assistant", "content": "SELECT \"t20_matches\" FROM \"ground_history\" WHERE \"total\"='23';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ground_history\" (\n \"name_of_ground\" text,\n \"location\" text,\n \"year\" text,\n \"fc_matches\" text,\n \"la_matches\" text,\n \"t20_matches\" text,\n \"total\" text\n);\n\nQuestion: What FC Match was played in Darlington?" }, { "role": "assistant", "content": "SELECT \"fc_matches\" FROM \"ground_history\" WHERE \"location\"='darlington';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ground_history\" (\n \"name_of_ground\" text,\n \"location\" text,\n \"year\" text,\n \"fc_matches\" text,\n \"la_matches\" text,\n \"t20_matches\" text,\n \"total\" text\n);\n\nQuestion: What T20 match was played in 1979?" }, { "role": "assistant", "content": "SELECT \"t20_matches\" FROM \"ground_history\" WHERE \"year\"='1979';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ground_history\" (\n \"name_of_ground\" text,\n \"location\" text,\n \"year\" text,\n \"fc_matches\" text,\n \"la_matches\" text,\n \"t20_matches\" text,\n \"total\" text\n);\n\nQuestion: Which FC match has a total of 24?" }, { "role": "assistant", "content": "SELECT \"fc_matches\" FROM \"ground_history\" WHERE \"total\"='24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ground_history\" (\n \"name_of_ground\" text,\n \"location\" text,\n \"year\" text,\n \"fc_matches\" text,\n \"la_matches\" text,\n \"t20_matches\" text,\n \"total\" text\n);\n\nQuestion: Where was the FC match with a score of 12 played?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"ground_history\" WHERE \"fc_matches\"='12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"romaji_title\" text,\n \"japanese_title\" text,\n \"release_date\" text,\n \"reference\" text,\n \"oricon\" real\n);\n\nQuestion: How many oricon's have a romaji title of rakuen -memorial tracks- (maxi-single)?" }, { "role": "assistant", "content": "SELECT COUNT(\"oricon\") FROM \"singles\" WHERE \"romaji_title\"='rakuen -memorial tracks- (maxi-single)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"romaji_title\" text,\n \"japanese_title\" text,\n \"release_date\" text,\n \"reference\" text,\n \"oricon\" real\n);\n\nQuestion: What reference is used with the title \u30a2\u30a4\u30b7\u30c6\u30eb?" }, { "role": "assistant", "content": "SELECT \"reference\" FROM \"singles\" WHERE \"japanese_title\"='\u30a2\u30a4\u30b7\u30c6\u30eb';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"romaji_title\" text,\n \"japanese_title\" text,\n \"release_date\" text,\n \"reference\" text,\n \"oricon\" real\n);\n\nQuestion: What is the reference for the romani title da.i.su.ki?" }, { "role": "assistant", "content": "SELECT \"reference\" FROM \"singles\" WHERE \"romaji_title\"='da.i.su.ki';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"romaji_title\" text,\n \"japanese_title\" text,\n \"release_date\" text,\n \"reference\" text,\n \"oricon\" real\n);\n\nQuestion: What title to the japanese give the romani title ashita wa ashita no kaze ga fuku?" }, { "role": "assistant", "content": "SELECT \"japanese_title\" FROM \"singles\" WHERE \"romaji_title\"='ashita wa ashita no kaze ga fuku';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sport\" (\n \"club\" text,\n \"sport\" text,\n \"founded\" real,\n \"league\" text,\n \"venue\" text\n);\n\nQuestion: Which club was founded after 1998?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"sport\" WHERE \"founded\">1998;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002_squad_statistics\" (\n \"player\" text,\n \"position\" text,\n \"tries\" real,\n \"goals\" real,\n \"points\" real\n);\n\nQuestion: Which Tries has a Goal smaller than 0?" }, { "role": "assistant", "content": "SELECT MIN(\"tries\") FROM \"2002_squad_statistics\" WHERE \"goals\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specimen_set_variant_dollars\" (\n \"year\" real,\n \"theme\" text,\n \"artist\" text,\n \"mintage\" text,\n \"issue_price\" text\n);\n\nQuestion: What was the issue price for the Trumpeter Swan set?" }, { "role": "assistant", "content": "SELECT \"issue_price\" FROM \"specimen_set_variant_dollars\" WHERE \"theme\"='trumpeter swan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specimen_set_variant_dollars\" (\n \"year\" real,\n \"theme\" text,\n \"artist\" text,\n \"mintage\" text,\n \"issue_price\" text\n);\n\nQuestion: Who was the artist with a mintage of 40,000 and an issue price of $45.95?" }, { "role": "assistant", "content": "SELECT \"artist\" FROM \"specimen_set_variant_dollars\" WHERE \"mintage\"='40,000' AND \"issue_price\"='45.95';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What is the highest number of points a player got during the game on May 25?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"playoffs\" WHERE \"date\"='may 25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010s\" (\n \"player\" text,\n \"position\" text,\n \"first_team_appearances\" text,\n \"first_team_goals\" text,\n \"current_club\" text\n);\n\nQuestion: What is the position of the player who has ongoing first-team goals and currently plays for the Aston Villa club?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"2010s\" WHERE \"first_team_goals\"='ongoing' AND \"current_club\"='aston villa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010s\" (\n \"player\" text,\n \"position\" text,\n \"first_team_appearances\" text,\n \"first_team_goals\" text,\n \"current_club\" text\n);\n\nQuestion: Who is the player who has had 7 first team appearances?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"2010s\" WHERE \"first_team_appearances\"='7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010s\" (\n \"player\" text,\n \"position\" text,\n \"first_team_appearances\" text,\n \"first_team_goals\" text,\n \"current_club\" text\n);\n\nQuestion: What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers?" }, { "role": "assistant", "content": "SELECT \"current_club\" FROM \"2010s\" WHERE \"first_team_appearances\"='ongoing' AND \"position\"='midfielder' AND \"player\"='samir carruthers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010s\" (\n \"player\" text,\n \"position\" text,\n \"first_team_appearances\" text,\n \"first_team_goals\" text,\n \"current_club\" text\n);\n\nQuestion: How many first-team goals does the team have whose player is Samir Carruthers?" }, { "role": "assistant", "content": "SELECT \"first_team_goals\" FROM \"2010s\" WHERE \"player\"='samir carruthers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010s\" (\n \"player\" text,\n \"position\" text,\n \"first_team_appearances\" text,\n \"first_team_goals\" text,\n \"current_club\" text\n);\n\nQuestion: What position has ongoing first-team appearances, Graham Burke for a player, and whose club is Aston Villa?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"2010s\" WHERE \"first_team_appearances\"='ongoing' AND \"current_club\"='aston villa' AND \"player\"='graham burke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010s\" (\n \"player\" text,\n \"position\" text,\n \"first_team_appearances\" text,\n \"first_team_goals\" text,\n \"current_club\" text\n);\n\nQuestion: Which position has had 7 first-team appearances?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"2010s\" WHERE \"first_team_appearances\"='7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"18_k_gold_proof_lunar_hologram_coin_seri\" (\n \"year\" real,\n \"theme\" text,\n \"artist\" text,\n \"composition\" text,\n \"mintage\" real,\n \"issue_price\" text\n);\n\nQuestion: What was the theme when the issue price was $508.95?" }, { "role": "assistant", "content": "SELECT \"theme\" FROM \"18_k_gold_proof_lunar_hologram_coin_seri\" WHERE \"issue_price\"='$508.95';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"18_k_gold_proof_lunar_hologram_coin_seri\" (\n \"year\" real,\n \"theme\" text,\n \"artist\" text,\n \"composition\" text,\n \"mintage\" real,\n \"issue_price\" text\n);\n\nQuestion: What's the mintage when the theme was year of the rabbit?" }, { "role": "assistant", "content": "SELECT \"mintage\" FROM \"18_k_gold_proof_lunar_hologram_coin_seri\" WHERE \"theme\"='year of the rabbit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"18_k_gold_proof_lunar_hologram_coin_seri\" (\n \"year\" real,\n \"theme\" text,\n \"artist\" text,\n \"composition\" text,\n \"mintage\" real,\n \"issue_price\" text\n);\n\nQuestion: What year was the year of the pig theme?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"18_k_gold_proof_lunar_hologram_coin_seri\" WHERE \"theme\"='year of the pig';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"18_k_gold_proof_lunar_hologram_coin_seri\" (\n \"year\" real,\n \"theme\" text,\n \"artist\" text,\n \"composition\" text,\n \"mintage\" real,\n \"issue_price\" text\n);\n\nQuestion: Who was the artist for the year of the snake?" }, { "role": "assistant", "content": "SELECT \"artist\" FROM \"18_k_gold_proof_lunar_hologram_coin_seri\" WHERE \"theme\"='year of the snake';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: What is the total Frequency MHz Port Charlotte, Florida, which has an ERP W larger than 10, has?" }, { "role": "assistant", "content": "SELECT COUNT(\"frequency_m_hz\") FROM \"translators\" WHERE \"city_of_license\"='port charlotte, florida' AND \"erp_w\">10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: What is the call sign for the translator with an ERP W larger than 10?" }, { "role": "assistant", "content": "SELECT \"call_sign\" FROM \"translators\" WHERE \"erp_w\">10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: What is the highest ERP W of the translator with a call sign of w284av?" }, { "role": "assistant", "content": "SELECT MAX(\"erp_w\") FROM \"translators\" WHERE \"call_sign\"='w284av';" } ]