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 \"community_council\" (\n \"parties_and_voter_communities\" text,\n \"pct_2006\" real,\n \"seats_2006\" real,\n \"pct_2001\" real,\n \"seats_2001\" real\n);\n\nQuestion: What is the sum of % for 2001 if 2001 seats equals 7?" }, { "role": "assistant", "content": "SELECT COUNT(\"pct_2001\") FROM \"community_council\" WHERE \"seats_2001\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"community_council\" (\n \"parties_and_voter_communities\" text,\n \"pct_2006\" real,\n \"seats_2006\" real,\n \"pct_2001\" real,\n \"seats_2001\" real\n);\n\nQuestion: If 2006 is 13% and 2001 is greater than 12.1%, what is the greatest number of seats for 2001?" }, { "role": "assistant", "content": "SELECT MAX(\"seats_2001\") FROM \"community_council\" WHERE \"pct_2006\"=13 AND \"pct_2001\">12.1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007\" (\n \"date\" text,\n \"location\" text,\n \"nature_of_incident\" text,\n \"circumstances\" text,\n \"casualties\" text\n);\n\nQuestion: What were the circumstances of the Hostile incident on the road to Jalalabad?" }, { "role": "assistant", "content": "SELECT \"circumstances\" FROM \"2007\" WHERE \"nature_of_incident\"='hostile' AND \"location\"='road to jalalabad';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007\" (\n \"date\" text,\n \"location\" text,\n \"nature_of_incident\" text,\n \"circumstances\" text,\n \"casualties\" text\n);\n\nQuestion: What was the circumstance that happened on the road to Jalalabad?" }, { "role": "assistant", "content": "SELECT \"circumstances\" FROM \"2007\" WHERE \"location\"='road to jalalabad';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007\" (\n \"date\" text,\n \"location\" text,\n \"nature_of_incident\" text,\n \"circumstances\" text,\n \"casualties\" text\n);\n\nQuestion: What happened in Mazar-i-sharif?" }, { "role": "assistant", "content": "SELECT \"circumstances\" FROM \"2007\" WHERE \"location\"='mazar-i-sharif';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestant_information\" (\n \"index\" text,\n \"name\" text,\n \"chinese_name\" text,\n \"country\" text,\n \"status\" text\n);\n\nQuestion: What is the Index number of Chen Bangjun Andie from Singapore?" }, { "role": "assistant", "content": "SELECT \"index\" FROM \"contestant_information\" WHERE \"country\"='singapore' AND \"name\"='chen bangjun andie';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestant_information\" (\n \"index\" text,\n \"name\" text,\n \"chinese_name\" text,\n \"country\" text,\n \"status\" text\n);\n\nQuestion: What is the Chinese name of the Eliminated player from Singapore in Index f9?" }, { "role": "assistant", "content": "SELECT \"chinese_name\" FROM \"contestant_information\" WHERE \"status\"='eliminated' AND \"country\"='singapore' AND \"index\"='f9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestant_information\" (\n \"index\" text,\n \"name\" text,\n \"chinese_name\" text,\n \"country\" text,\n \"status\" text\n);\n\nQuestion: What is the Index number for \u53f6\u60e0\u6148?" }, { "role": "assistant", "content": "SELECT \"index\" FROM \"contestant_information\" WHERE \"chinese_name\"='\u53f6\u60e0\u6148';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestant_information\" (\n \"index\" text,\n \"name\" text,\n \"chinese_name\" text,\n \"country\" text,\n \"status\" text\n);\n\nQuestion: What is the Chinese name of the player in Index F10?" }, { "role": "assistant", "content": "SELECT \"chinese_name\" FROM \"contestant_information\" WHERE \"index\"='f10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestant_information\" (\n \"index\" text,\n \"name\" text,\n \"chinese_name\" text,\n \"country\" text,\n \"status\" text\n);\n\nQuestion: What is the name of the player from Malaysia, Kuala Lumpur in Index f8?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"contestant_information\" WHERE \"country\"='malaysia, kuala lumpur' AND \"index\"='f8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestant_information\" (\n \"index\" text,\n \"name\" text,\n \"chinese_name\" text,\n \"country\" text,\n \"status\" text\n);\n\nQuestion: What is the English name of the player \u674e\u7f8e\u73b2 from Malaysia, Kuala Lumpur?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"contestant_information\" WHERE \"country\"='malaysia, kuala lumpur' AND \"chinese_name\"='\u674e\u7f8e\u73b2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who was the opponent of the game on August 8?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"date\"='august 8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_championship_1977_1987\" (\n \"year\" text,\n \"venue\" text,\n \"winners\" text,\n \"runner_up\" text,\n \"3rd_place\" text\n);\n\nQuestion: Who took the winning slot at the Vojens venue?" }, { "role": "assistant", "content": "SELECT \"winners\" FROM \"european_championship_1977_1987\" WHERE \"venue\"='vojens';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_championship_1977_1987\" (\n \"year\" text,\n \"venue\" text,\n \"winners\" text,\n \"runner_up\" text,\n \"3rd_place\" text\n);\n\nQuestion: Who was the runner-up in 1980 at the Pocking venue?" }, { "role": "assistant", "content": "SELECT \"runner_up\" FROM \"european_championship_1977_1987\" WHERE \"venue\"='pocking' AND \"year\"='1980';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"youth_under_18_girls\" (\n \"rank\" real,\n \"fastest_time_s\" text,\n \"wind_m_s\" text,\n \"athlete\" text,\n \"nation\" text,\n \"date\" text,\n \"location\" text\n);\n\nQuestion: What rank did the United States swimmer come in who posted 11.26 seconds in the 100-meter youth female division?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"youth_under_18_girls\" WHERE \"fastest_time_s\"='11.26' AND \"nation\"='united states';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1976_raiders_draft_selections\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the lowest overall with more than 17 rounds?" }, { "role": "assistant", "content": "SELECT MIN(\"overall\") FROM \"1976_raiders_draft_selections\" WHERE \"round\">17;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1976_raiders_draft_selections\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position has 14 rounds?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"1976_raiders_draft_selections\" WHERE \"round\"=14;" } ]
[ { "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 United States player has a score of 69-73-68=210?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"third_round\" WHERE \"score\"='69-73-68=210' AND \"country\"='united states';" } ]
[ { "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 Argentina country is in t10 place?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"third_round\" WHERE \"place\"='t10' AND \"country\"='argentina';" } ]
[ { "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 the score of 71-71-68=210?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"third_round\" WHERE \"score\"='71-71-68=210';" } ]
[ { "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 To par scored 72-71-68=211?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"score\"='72-71-68=211';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominated_work\" text,\n \"result\" text\n);\n\nQuestion: Name the award won for category of choice tv villain in years after 2008" }, { "role": "assistant", "content": "SELECT \"award\" FROM \"awards_and_nominations\" WHERE \"result\"='won' AND \"category\"='choice tv villain' AND \"year\">2008;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominated_work\" text,\n \"result\" text\n);\n\nQuestion: Name the award for nominated result and year after 2011" }, { "role": "assistant", "content": "SELECT \"award\" FROM \"awards_and_nominations\" WHERE \"result\"='nominated' AND \"year\">2011;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013\" (\n \"sydney\" text,\n \"gold_coast\" text,\n \"adelaide\" text,\n \"melbourne\" text,\n \"perth\" text\n);\n\nQuestion: Which Perth also has Sydney yes, Gold Coast yes, and Adelaide no?" }, { "role": "assistant", "content": "SELECT \"perth\" FROM \"2013\" WHERE \"sydney\"='yes' AND \"gold_coast\"='yes' AND \"adelaide\"='no';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013\" (\n \"sydney\" text,\n \"gold_coast\" text,\n \"adelaide\" text,\n \"melbourne\" text,\n \"perth\" text\n);\n\nQuestion: Which Perth has Gold Coast yes, Sydney yes, Melbourne yes, and Adelaide yes?" }, { "role": "assistant", "content": "SELECT \"perth\" FROM \"2013\" WHERE \"gold_coast\"='yes' AND \"sydney\"='yes' AND \"melbourne\"='yes' AND \"adelaide\"='yes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013\" (\n \"sydney\" text,\n \"gold_coast\" text,\n \"adelaide\" text,\n \"melbourne\" text,\n \"perth\" text\n);\n\nQuestion: Which Adelaide has Sydney yes, Melbourne yes, and Perth no?" }, { "role": "assistant", "content": "SELECT \"adelaide\" FROM \"2013\" WHERE \"sydney\"='yes' AND \"melbourne\"='yes' AND \"perth\"='no';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013\" (\n \"sydney\" text,\n \"gold_coast\" text,\n \"adelaide\" text,\n \"melbourne\" text,\n \"perth\" text\n);\n\nQuestion: Which Adelaide has Perth no, Gold Coast no, and Sydney yes?" }, { "role": "assistant", "content": "SELECT \"adelaide\" FROM \"2013\" WHERE \"perth\"='no' AND \"gold_coast\"='yes' AND \"sydney\"='yes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013\" (\n \"sydney\" text,\n \"gold_coast\" text,\n \"adelaide\" text,\n \"melbourne\" text,\n \"perth\" text\n);\n\nQuestion: Which Melbourne has Gold Coast yes, Perth cancelled, and Adelaide cancelled?" }, { "role": "assistant", "content": "SELECT \"melbourne\" FROM \"2013\" WHERE \"gold_coast\"='yes' AND \"perth\"='cancelled' AND \"adelaide\"='cancelled';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013\" (\n \"sydney\" text,\n \"gold_coast\" text,\n \"adelaide\" text,\n \"melbourne\" text,\n \"perth\" text\n);\n\nQuestion: Which Melbourne has Sydney yes, Gold Coast yes, and Perth yes?" }, { "role": "assistant", "content": "SELECT \"melbourne\" FROM \"2013\" WHERE \"sydney\"='yes' AND \"gold_coast\"='yes' AND \"perth\"='yes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" text,\n \"venue\" text,\n \"winners\" text,\n \"2nd_place\" text,\n \"3rd_place\" text\n);\n\nQuestion: Who came in 3rd when Matej \u017eagar won?" }, { "role": "assistant", "content": "SELECT \"3rd_place\" FROM \"previous_winners\" WHERE \"winners\"='matej \u017eagar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" text,\n \"venue\" text,\n \"winners\" text,\n \"2nd_place\" text,\n \"3rd_place\" text\n);\n\nQuestion: In what year did Rafa\u0142 Kurma\u0144ski come in 2nd place?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"previous_winners\" WHERE \"2nd_place\"='rafa\u0142 kurma\u0144ski';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" text,\n \"venue\" text,\n \"winners\" text,\n \"2nd_place\" text,\n \"3rd_place\" text\n);\n\nQuestion: Who won at Kr\u0161ko?" }, { "role": "assistant", "content": "SELECT \"winners\" FROM \"previous_winners\" WHERE \"venue\"='kr\u0161ko';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" text,\n \"venue\" text,\n \"winners\" text,\n \"2nd_place\" text,\n \"3rd_place\" text\n);\n\nQuestion: Who came in 3rd when Nicolai Klindt won?" }, { "role": "assistant", "content": "SELECT \"3rd_place\" FROM \"previous_winners\" WHERE \"winners\"='nicolai klindt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" text,\n \"venue\" text,\n \"winners\" text,\n \"2nd_place\" text,\n \"3rd_place\" text\n);\n\nQuestion: Who won when Karol Z\u0105bik came in 2nd?" }, { "role": "assistant", "content": "SELECT \"winners\" FROM \"previous_winners\" WHERE \"2nd_place\"='karol z\u0105bik';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_winners\" (\n \"year\" text,\n \"venue\" text,\n \"winners\" text,\n \"2nd_place\" text,\n \"3rd_place\" text\n);\n\nQuestion: Who came in 3rd at Venue?" }, { "role": "assistant", "content": "SELECT \"3rd_place\" FROM \"previous_winners\" WHERE \"venue\"='venue';" } ]
[ { "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 \"kickoff_et\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: What is the total number of weeks that the Steelers had a record of 1\u20130?" }, { "role": "assistant", "content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"record\"='1\u20130';" } ]
[ { "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 \"kickoff_et\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: Who was the opponent at the Steelers game that had a result of l 20\u201317?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"result\"='l 20\u201317';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: Name the condition for partial thromboplastin time of prolonged and platelet count of unaffected with bleeding time of prolonged" }, { "role": "assistant", "content": "SELECT \"condition\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"partial_thromboplastin_time\"='prolonged' AND \"platelet_count\"='unaffected' AND \"bleeding_time\"='prolonged';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: Name the condition with partial thromboplastin time of prolonged or unaffected" }, { "role": "assistant", "content": "SELECT \"condition\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"partial_thromboplastin_time\"='prolonged or unaffected';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: Name the condition with partial thromboplastin time of unaffected and prothrombin time of unaffected with platelet count of decreased" }, { "role": "assistant", "content": "SELECT \"condition\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"partial_thromboplastin_time\"='unaffected' AND \"prothrombin_time\"='unaffected' AND \"platelet_count\"='decreased';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: Name the condition with platelet count of unaffected and bleeding time of unaffected with prothrombin time of prolonged and partial thromboplastin time of prolonged" }, { "role": "assistant", "content": "SELECT \"condition\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"platelet_count\"='unaffected' AND \"bleeding_time\"='unaffected' AND \"prothrombin_time\"='prolonged' AND \"partial_thromboplastin_time\"='prolonged';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: Name the bleeding time with platelet count of unaffected and condition of factor xii deficiency" }, { "role": "assistant", "content": "SELECT \"bleeding_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"platelet_count\"='unaffected' AND \"condition\"='factor xii deficiency';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"name\" text,\n \"period\" text,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"efficiency_pct\" text\n);\n\nQuestion: what is the number of losses with draws less than 1 and 6.3% efficiency?" }, { "role": "assistant", "content": "SELECT AVG(\"losses\") FROM \"coaches\" WHERE \"efficiency_pct\"='6.3%' AND \"draws\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"name\" text,\n \"period\" text,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"efficiency_pct\" text\n);\n\nQuestion: what is the number of draws for ali said gouled?" }, { "role": "assistant", "content": "SELECT COUNT(\"draws\") FROM \"coaches\" WHERE \"name\"='ali said gouled';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"name\" text,\n \"period\" text,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"efficiency_pct\" text\n);\n\nQuestion: what is the number of draws when there are 4 losses and 28.6% efficiency?" }, { "role": "assistant", "content": "SELECT COUNT(\"draws\") FROM \"coaches\" WHERE \"losses\"=4 AND \"efficiency_pct\"='28.6%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"language\" (\n \"language\" text,\n \"number\" text,\n \"percentage_pct\" text,\n \"males\" text,\n \"females\" text\n);\n\nQuestion: Name the females when males are 1 548" }, { "role": "assistant", "content": "SELECT \"females\" FROM \"language\" WHERE \"males\"='1 548';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"language\" (\n \"language\" text,\n \"number\" text,\n \"percentage_pct\" text,\n \"males\" text,\n \"females\" text\n);\n\nQuestion: Name the percentage with number of 1 343" }, { "role": "assistant", "content": "SELECT \"percentage_pct\" FROM \"language\" WHERE \"number\"='1 343';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"language\" (\n \"language\" text,\n \"number\" text,\n \"percentage_pct\" text,\n \"males\" text,\n \"females\" text\n);\n\nQuestion: Name the percentage which has females of 2" }, { "role": "assistant", "content": "SELECT \"percentage_pct\" FROM \"language\" WHERE \"females\"='2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"language\" (\n \"language\" text,\n \"number\" text,\n \"percentage_pct\" text,\n \"males\" text,\n \"females\" text\n);\n\nQuestion: Name the males for language of persons that didn't name their native language" }, { "role": "assistant", "content": "SELECT \"males\" FROM \"language\" WHERE \"language\"='persons that didn''t name their native language';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eastern_division\" (\n \"institution\" text,\n \"main_campus_location\" text,\n \"founded\" real,\n \"mascot\" text,\n \"school_colors\" text\n);\n\nQuestion: What are the school colors for the college whose main campus is overland park?" }, { "role": "assistant", "content": "SELECT \"school_colors\" FROM \"eastern_division\" WHERE \"main_campus_location\"='overland park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eastern_division\" (\n \"institution\" text,\n \"main_campus_location\" text,\n \"founded\" real,\n \"mascot\" text,\n \"school_colors\" text\n);\n\nQuestion: What is independence community college's newest campus?" }, { "role": "assistant", "content": "SELECT MIN(\"founded\") FROM \"eastern_division\" WHERE \"institution\"='independence community college';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eastern_division\" (\n \"institution\" text,\n \"main_campus_location\" text,\n \"founded\" real,\n \"mascot\" text,\n \"school_colors\" text\n);\n\nQuestion: What college was founded in 1967?" }, { "role": "assistant", "content": "SELECT \"main_campus_location\" FROM \"eastern_division\" WHERE \"founded\"=1967;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_negotiation_leaders\" (\n \"from\" text,\n \"until\" text,\n \"name\" text,\n \"party\" text,\n \"function\" text\n);\n\nQuestion: Which party is associated with a leader who began his tenure on June 13, 2007?" }, { "role": "assistant", "content": "SELECT \"party\" FROM \"list_of_negotiation_leaders\" WHERE \"from\"='june 13, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_negotiation_leaders\" (\n \"from\" text,\n \"until\" text,\n \"name\" text,\n \"party\" text,\n \"function\" text\n);\n\nQuestion: What is the beginning date associated with an ending date of July 4, 2007?" }, { "role": "assistant", "content": "SELECT \"from\" FROM \"list_of_negotiation_leaders\" WHERE \"until\"='july 4, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_negotiation_leaders\" (\n \"from\" text,\n \"until\" text,\n \"name\" text,\n \"party\" text,\n \"function\" text\n);\n\nQuestion: Who had a function of explorator?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"list_of_negotiation_leaders\" WHERE \"function\"='explorator';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_negotiation_leaders\" (\n \"from\" text,\n \"until\" text,\n \"name\" text,\n \"party\" text,\n \"function\" text\n);\n\nQuestion: What is the Until date associated with a beginning From date of July 5, 2007?" }, { "role": "assistant", "content": "SELECT \"until\" FROM \"list_of_negotiation_leaders\" WHERE \"from\"='july 5, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_negotiation_leaders\" (\n \"from\" text,\n \"until\" text,\n \"name\" text,\n \"party\" text,\n \"function\" text\n);\n\nQuestion: What is the Until date that has a party of VLD and a beginning from date of December 17, 2007?" }, { "role": "assistant", "content": "SELECT \"until\" FROM \"list_of_negotiation_leaders\" WHERE \"party\"='vld' AND \"from\"='december 17, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"competing_entities\" text,\n \"first_held\" real,\n \"current_holder\" text,\n \"next\" text,\n \"held_every\" text\n);\n\nQuestion: Can you tell me the Competing entities that has the First held smaller than 1970?" }, { "role": "assistant", "content": "SELECT \"competing_entities\" FROM \"references\" WHERE \"first_held\"<1970;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_10\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"tier\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What surface was played on on October 3, 2010?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_10\" WHERE \"date\"='october 3, 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_10\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"tier\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the tier versus Manana Shapakidze?" }, { "role": "assistant", "content": "SELECT \"tier\" FROM \"singles_10\" WHERE \"opponent_in_the_final\"='manana shapakidze';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_10\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"tier\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the score versus Michaela Pochabov\u00e1?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles_10\" WHERE \"opponent_in_the_final\"='michaela pochabov\u00e1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_10\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"tier\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Who was the opponent on May 8, 2006?" }, { "role": "assistant", "content": "SELECT \"opponent_in_the_final\" FROM \"singles_10\" WHERE \"date\"='may 8, 2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_10\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"tier\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the tier versus Annalisa bona?" }, { "role": "assistant", "content": "SELECT \"tier\" FROM \"singles_10\" WHERE \"opponent_in_the_final\"='annalisa bona';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eurolaul_26_january_2002\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"votes\" real,\n \"place\" real\n);\n\nQuestion: What is the average place for the song called \"homme\" that has voes larger than 1320?" }, { "role": "assistant", "content": "SELECT AVG(\"place\") FROM \"eurolaul_26_january_2002\" WHERE \"song\"='\\\"homme\\\"' AND \"votes\">1320;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eurolaul_26_january_2002\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"votes\" real,\n \"place\" real\n);\n\nQuestion: What is the sum of the draw for the song \"Beautiful Inside\" which has a place larger than 2?" }, { "role": "assistant", "content": "SELECT SUM(\"draw\") FROM \"eurolaul_26_january_2002\" WHERE \"song\"='\\\"beautiful inside\\\"' AND \"place\">2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eurolaul_26_january_2002\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"votes\" real,\n \"place\" real\n);\n\nQuestion: Which song has votes greater than 640 and a draw of 1?" }, { "role": "assistant", "content": "SELECT \"song\" FROM \"eurolaul_26_january_2002\" WHERE \"votes\">640 AND \"draw\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eurolaul_26_january_2002\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"votes\" real,\n \"place\" real\n);\n\nQuestion: What is the average place for a song with votes smaller than 8696, the song \"turn the tide\", and a draw larger than 3?" }, { "role": "assistant", "content": "SELECT AVG(\"place\") FROM \"eurolaul_26_january_2002\" WHERE \"votes\"<8696 AND \"song\"='\\\"turn the tide\\\"' AND \"draw\">3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"kerrypct\" text,\n \"kerrynum\" real,\n \"bushpct\" text,\n \"bushnum\" real,\n \"otherspct\" text,\n \"othersnum\" real\n);\n\nQuestion: When Keey has 58.1% what % does Bush have?" }, { "role": "assistant", "content": "SELECT \"bushpct\" FROM \"by_county\" WHERE \"kerrypct\"='58.1%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notable_players\" (\n \"nationality\" text,\n \"position\" text,\n \"real_betis_career\" text,\n \"appearances\" real,\n \"goals\" real\n);\n\nQuestion: Which of Real Betis career had appearances smaller than 98, nationality of Spain, and goals greater than 15?" }, { "role": "assistant", "content": "SELECT \"real_betis_career\" FROM \"notable_players\" WHERE \"appearances\"<98 AND \"nationality\"='spain' AND \"goals\">15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kapiti_coast_district\" (\n \"name\" text,\n \"years\" text,\n \"gender\" text,\n \"area\" text,\n \"authority\" text,\n \"decile\" real,\n \"roll\" real\n);\n\nQuestion: What Decile has State Authority and Raumati South Area?" }, { "role": "assistant", "content": "SELECT \"decile\" FROM \"kapiti_coast_district\" WHERE \"authority\"='state' AND \"area\"='raumati south';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kapiti_coast_district\" (\n \"name\" text,\n \"years\" text,\n \"gender\" text,\n \"area\" text,\n \"authority\" text,\n \"decile\" real,\n \"roll\" real\n);\n\nQuestion: What is the total Decile with Waikanae Area?" }, { "role": "assistant", "content": "SELECT SUM(\"decile\") FROM \"kapiti_coast_district\" WHERE \"area\"='waikanae';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What Player with a Place of T10 had a Score of 80-70-72-72=294?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"final_leaderboard\" WHERE \"place\"='t10' AND \"score\"='80-70-72-72=294';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What was the Money ($) amount for Lloyd Mangrum?" }, { "role": "assistant", "content": "SELECT \"money\" FROM \"final_leaderboard\" WHERE \"player\"='lloyd mangrum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What was the Money ($) amount for Cary Middlecoff?" }, { "role": "assistant", "content": "SELECT \"money\" FROM \"final_leaderboard\" WHERE \"player\"='cary middlecoff';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What date was the game with a score of 5\u20132, and a Loss of lilly (9\u20139)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"score\"='5\u20132' AND \"loss\"='lilly (9\u20139)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What team was the opponent when there was a score of 5\u20134 (11)?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"score\"='5\u20134 (11)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What date was the game with a record of 47\u201339?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='47\u201339';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"missed_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real\n);\n\nQuestion: What year did Tom Watson win?" }, { "role": "assistant", "content": "SELECT \"year_s_won\" FROM \"missed_the_cut\" WHERE \"player\"='tom watson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"missed_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real\n);\n\nQuestion: What is the total number that Tom Watson parred larger than 10?" }, { "role": "assistant", "content": "SELECT COUNT(\"total\") FROM \"missed_the_cut\" WHERE \"player\"='tom watson' AND \"to_par\">10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: Which date has a Record of 4-5?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='4-5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: Which score has a Loss of gubicza (0-1)?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"loss\"='gubicza (0-1)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: Which loss happened april 18?" }, { "role": "assistant", "content": "SELECT \"loss\" FROM \"game_log\" WHERE \"date\"='april 18';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: Which record has an Opponent of orioles and a Date of april 14?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"opponent\"='orioles' AND \"date\"='april 14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: Which record has a Date of april 25?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='april 25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: Which opponent has a Record of 4-5?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"record\"='4-5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"category\" text,\n \"film\" text,\n \"director_s\" text,\n \"country\" text,\n \"nominating_festival\" text\n);\n\nQuestion: Name the country which has prix uip venezia" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"2004\" WHERE \"nominating_festival\"='prix uip venezia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"category\" text,\n \"film\" text,\n \"director_s\" text,\n \"country\" text,\n \"nominating_festival\" text\n);\n\nQuestion: Name the nominating festival for director of 2004" }, { "role": "assistant", "content": "SELECT \"nominating_festival\" FROM \"2004\" WHERE \"director_s\"='2004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"category\" text,\n \"film\" text,\n \"director_s\" text,\n \"country\" text,\n \"nominating_festival\" text\n);\n\nQuestion: Name the category for prix uip berlin" }, { "role": "assistant", "content": "SELECT \"category\" FROM \"2004\" WHERE \"nominating_festival\"='prix uip berlin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"category\" text,\n \"film\" text,\n \"director_s\" text,\n \"country\" text,\n \"nominating_festival\" text\n);\n\nQuestion: Name the nominating festival for un cartus de kent si un pachet de cafea" }, { "role": "assistant", "content": "SELECT \"nominating_festival\" FROM \"2004\" WHERE \"film\"='un cartus de kent si un pachet de cafea';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"category\" text,\n \"film\" text,\n \"director_s\" text,\n \"country\" text,\n \"nominating_festival\" text\n);\n\nQuestion: Name the director of alt i alt" }, { "role": "assistant", "content": "SELECT \"director_s\" FROM \"2004\" WHERE \"film\"='alt i alt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What's the score of the game they played against a team with a record of 81-54?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='81-54';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What game score was there for the team with a record of 84-56?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='84-56';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: Who is the Winner for the City of Loutraki?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"european_poker_tour\" WHERE \"city\"='loutraki';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: What is the Date for the Event ept copenhagen?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"european_poker_tour\" WHERE \"event\"='ept copenhagen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: What Event did John dibella win?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"european_poker_tour\" WHERE \"winner\"='john dibella';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: What was the prize for winner benny spindler?" }, { "role": "assistant", "content": "SELECT \"prize\" FROM \"european_poker_tour\" WHERE \"winner\"='benny spindler';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: What was the Event in the city of copenhagen?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"european_poker_tour\" WHERE \"city\"='copenhagen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: What was the Event for the prize of \u20ac850,000?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"european_poker_tour\" WHERE \"prize\"='\u20ac850,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"population_total\" real,\n \"caboolture\" real,\n \"pine_rivers\" real,\n \"redcliffe\" real\n);\n\nQuestion: What is the Redcliffe population with a Pine Rivers population greater than 164,254 and a total population less than 103,669?" }, { "role": "assistant", "content": "SELECT SUM(\"redcliffe\") FROM \"population\" WHERE \"pine_rivers\">'164,254' AND \"population_total\"<'103,669';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"population_total\" real,\n \"caboolture\" real,\n \"pine_rivers\" real,\n \"redcliffe\" real\n);\n\nQuestion: What is the Pine Rivers total population after 1947 with a Redcliffe population smaller than 68,877, a total population greater than 50,785, and a Caboolture population greater than 12,207?" }, { "role": "assistant", "content": "SELECT COUNT(\"pine_rivers\") FROM \"population\" WHERE \"year\">1947 AND \"redcliffe\"<'68,877' AND \"population_total\">'50,785' AND \"caboolture\">'12,207';" } ]