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 \"by_school\" (\n \"school\" text,\n \"years_of_participation\" text,\n \"occ_championships\" real,\n \"last_occ_championship\" text,\n \"last_outright_occ_championship\" text\n);\n\nQuestion: How many times have Central Crossing won the OCC Championship?" }, { "role": "assistant", "content": "SELECT SUM(\"occ_championships\") FROM \"by_school\" WHERE \"school\"='central crossing';" } ]
[ { "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 \"round\" real\n);\n\nQuestion: How many rounds is the fight against Michael Chavez?" }, { "role": "assistant", "content": "SELECT AVG(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='michael chavez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runners_up\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What date was the match where Daniel Gimeno-Traver's partner was pere riba?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"runners_up\" WHERE \"partner\"='pere riba';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reserves_academy\" (\n \"exit_date\" text,\n \"pos\" text,\n \"player\" text,\n \"to_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Ashley Grimes had what to club?" }, { "role": "assistant", "content": "SELECT \"to_club\" FROM \"reserves_academy\" WHERE \"player\"='ashley grimes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reserves_academy\" (\n \"exit_date\" text,\n \"pos\" text,\n \"player\" text,\n \"to_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Who had a transfer fee of released and played the position of DF?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"reserves_academy\" WHERE \"transfer_fee\"='released' AND \"pos\"='df';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reserves_academy\" (\n \"exit_date\" text,\n \"pos\" text,\n \"player\" text,\n \"to_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: When was the exit date KiatPrawut Saiwaeo who had a transfer fee of released?" }, { "role": "assistant", "content": "SELECT \"exit_date\" FROM \"reserves_academy\" WHERE \"transfer_fee\"='released' AND \"player\"='kiatprawut saiwaeo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reserves_academy\" (\n \"exit_date\" text,\n \"pos\" text,\n \"player\" text,\n \"to_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: What was the date that a player went to the club Doncaster Rovers?" }, { "role": "assistant", "content": "SELECT \"exit_date\" FROM \"reserves_academy\" WHERE \"to_club\"='doncaster rovers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"reserves_academy\" (\n \"exit_date\" text,\n \"pos\" text,\n \"player\" text,\n \"to_club\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Teerasil Dangda who had a to club of released plays what position?" }, { "role": "assistant", "content": "SELECT \"pos\" FROM \"reserves_academy\" WHERE \"to_club\"='released' AND \"player\"='teerasil dangda';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation_round\" (\n \"position\" real,\n \"name\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points\" real\n);\n\nQuestion: What was the average points for someone who has played more than 10?" }, { "role": "assistant", "content": "SELECT AVG(\"points\") FROM \"relegation_round\" WHERE \"played\">10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250_nm\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"mult\" text,\n \"voltage\" text,\n \"socket\" text\n);\n\nQuestion: What is L2 Cache, when Model Number is Pentium II 350?" }, { "role": "assistant", "content": "SELECT \"l2_cache\" FROM \"250_nm\" WHERE \"model_number\"='pentium ii 350';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250_nm\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"mult\" text,\n \"voltage\" text,\n \"socket\" text\n);\n\nQuestion: What is Mult, when Model Number is Pentium II 450?" }, { "role": "assistant", "content": "SELECT \"mult\" FROM \"250_nm\" WHERE \"model_number\"='pentium ii 450';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250_nm\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"mult\" text,\n \"voltage\" text,\n \"socket\" text\n);\n\nQuestion: What is Frequency, when Model Number is Pentium II 400?" }, { "role": "assistant", "content": "SELECT \"frequency\" FROM \"250_nm\" WHERE \"model_number\"='pentium ii 400';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250_nm\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"mult\" text,\n \"voltage\" text,\n \"socket\" text\n);\n\nQuestion: What is Socket, when Voltage is 2.0V, and when Model Number is Pentium II 333?" }, { "role": "assistant", "content": "SELECT \"socket\" FROM \"250_nm\" WHERE \"voltage\"='2.0v' AND \"model_number\"='pentium ii 333';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250_nm\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"mult\" text,\n \"voltage\" text,\n \"socket\" text\n);\n\nQuestion: What is Model Number, when Voltage is 2.0V, and when Frequency is 350 mhz?" }, { "role": "assistant", "content": "SELECT \"model_number\" FROM \"250_nm\" WHERE \"voltage\"='2.0v' AND \"frequency\"='350 mhz';" } ]
[ { "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 \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: How many attended during the game with a score of 80-94?" }, { "role": "assistant", "content": "SELECT SUM(\"attendance\") FROM \"season_schedule\" WHERE \"score\"='80-94';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"u_s\" text,\n \"u_s_r_b\" text,\n \"u_s_rap\" text,\n \"album\" text\n);\n\nQuestion: What is the U.S. rap ranking in 2000 of the U.S. 105 single?" }, { "role": "assistant", "content": "SELECT \"u_s_rap\" FROM \"singles\" WHERE \"year\"=2000 AND \"u_s\"='105';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"u_s\" text,\n \"u_s_r_b\" text,\n \"u_s_rap\" text,\n \"album\" text\n);\n\nQuestion: What is the U.S. rap rank for the song with a U.S. R&B 23 rank?" }, { "role": "assistant", "content": "SELECT \"u_s_rap\" FROM \"singles\" WHERE \"u_s_r_b\"='23';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"u_s\" text,\n \"u_s_r_b\" text,\n \"u_s_rap\" text,\n \"album\" text\n);\n\nQuestion: What is the U.S. R&B rank in 2003?" }, { "role": "assistant", "content": "SELECT \"u_s_r_b\" FROM \"singles\" WHERE \"year\"=2003;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"score\" text,\n \"record\" text,\n \"location\" text,\n \"attendance\" real\n);\n\nQuestion: For the game ending with a score of 28-43, what is the listed as the final record?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"score\"='28-43';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"score\" text,\n \"record\" text,\n \"location\" text,\n \"attendance\" real\n);\n\nQuestion: For the game showing a final record of 0-5, what was the attendance level?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"record\"='0-5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"score\" text,\n \"record\" text,\n \"location\" text,\n \"attendance\" real\n);\n\nQuestion: For the game where the opponent is listed as At Los Angeles Rams, what was the final score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"schedule\" WHERE \"opponent\"='at los angeles rams';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"score\" text,\n \"record\" text,\n \"location\" text,\n \"attendance\" real\n);\n\nQuestion: For the game played on August 25, with attendance at more than 20,837 people, what was the final score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"schedule\" WHERE \"attendance\">'20,837' AND \"date\"='august 25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"score\" text,\n \"record\" text,\n \"location\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result for the game with final record listed as 0-1?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"record\"='0-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"name\" text,\n \"country\" text,\n \"total\" text,\n \"60m_h\" real,\n \"800m\" real\n);\n\nQuestion: What is the 60mH that has a Country of russia, and a 800m of 883?" }, { "role": "assistant", "content": "SELECT \"60m_h\" FROM \"summary\" WHERE \"country\"='russia' AND \"800m\"=883;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"name\" text,\n \"country\" text,\n \"total\" text,\n \"60m_h\" real,\n \"800m\" real\n);\n\nQuestion: What is the Total that has a 60mH of 1073?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"summary\" WHERE \"60m_h\"=1073;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"name\" text,\n \"country\" text,\n \"total\" text,\n \"60m_h\" real,\n \"800m\" real\n);\n\nQuestion: What is the Name that has a 60mH littler than 1002, and a 800m littler than 985, and a Country of lithuania?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"summary\" WHERE \"60m_h\"<1002 AND \"800m\"<985 AND \"country\"='lithuania';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012_13_season_standings\" (\n \"team\" text,\n \"sets\" real,\n \"sets\" real,\n \"points\" real,\n \"points\" real\n);\n\nQuestion: What is the Sets- for Team ushua\u00efa ibiza voley when the Points- were less than 1418 and the Sets+ were less than 41?" }, { "role": "assistant", "content": "SELECT \"sets\" FROM \"2012_13_season_standings\" WHERE \"points\"<1418 AND \"sets\"<41 AND \"team\"='ushua\u00efa ibiza voley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012_13_season_standings\" (\n \"team\" text,\n \"sets\" real,\n \"sets\" real,\n \"points\" real,\n \"points\" real\n);\n\nQuestion: What is the Sets+ for Team unicaja almer\u00eda where the Sets- were less than 21 and the Points+ were less than 1497?" }, { "role": "assistant", "content": "SELECT SUM(\"sets\") FROM \"2012_13_season_standings\" WHERE \"sets\"<21 AND \"team\"='unicaja almer\u00eda' AND \"points\"<1497;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012_13_season_standings\" (\n \"team\" text,\n \"sets\" real,\n \"sets\" real,\n \"points\" real,\n \"points\" real\n);\n\nQuestion: What is the total number of Sets+ where the Points- are 1435 and the Points+ are less than 1228?" }, { "role": "assistant", "content": "SELECT COUNT(\"sets\") FROM \"2012_13_season_standings\" WHERE \"points\"=1435 AND \"points\"<1228;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Which player has fewer than 3 rounds and the position of (g)?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"draft_picks\" WHERE \"round\"<3 AND \"position\"='(g)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: How many rounds does Colby Robak have with a position of (d)?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"draft_picks\" WHERE \"position\"='(d)' AND \"player\"='colby robak';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Which College/Junior/Club Team (league) does Matthew Bartkowski play for?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team_league\" FROM \"draft_picks\" WHERE \"player\"='matthew bartkowski';" } ]
[ { "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);\n\nQuestion: What date was the game when the liberty had a record of 12-9?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"season_schedule\" WHERE \"record\"='12-9';" } ]
[ { "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);\n\nQuestion: What was the record for the game that had a score of 105-72?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"season_schedule\" WHERE \"score\"='105-72';" } ]
[ { "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);\n\nQuestion: What was the date of the game where the record was 4-4?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"season_schedule\" WHERE \"record\"='4-4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Who was the away team when Manchester United played at home on 10 February 1951?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"fifth_round_proper\" WHERE \"date\"='10 february 1951' AND \"home_team\"='manchester united';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Which tie did Huddersfield Town play as an away team?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"fifth_round_proper\" WHERE \"away_team\"='huddersfield town';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What Player had a Score of 75-73-68-65=281 and more than 19,009 in Money?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"final_round\" WHERE \"money\">'19,009' AND \"score\"='75-73-68-65=281';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is the Country of T6 Place Player Ben Crenshaw?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"final_round\" WHERE \"place\"='t6' AND \"player\"='ben crenshaw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is the Money of the Player with a To par of +3 and Score of 76-69-69-69=283?" }, { "role": "assistant", "content": "SELECT MAX(\"money\") FROM \"final_round\" WHERE \"to_par\"='+3' AND \"score\"='76-69-69-69=283';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"january\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is the score of the game before January 22 with a 30-7-7 record?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"schedule_and_results\" WHERE \"january\"<22 AND \"record\"='30-7-7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"january\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is the sum of the games before January 19 with a 27-6-6 record?" }, { "role": "assistant", "content": "SELECT SUM(\"game\") FROM \"schedule_and_results\" WHERE \"january\"<19 AND \"record\"='27-6-6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l1_cache\" text,\n \"mult\" real,\n \"voltage\" text\n);\n\nQuestion: What is the Frequency, when the Voltage is 3.3 V?" }, { "role": "assistant", "content": "SELECT \"frequency\" FROM \"models\" WHERE \"voltage\"='3.3 v';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l1_cache\" text,\n \"mult\" real,\n \"voltage\" text\n);\n\nQuestion: What is the L1 Cache, when the Model Number is X5-133 ADY?" }, { "role": "assistant", "content": "SELECT \"l1_cache\" FROM \"models\" WHERE \"model_number\"='x5-133 ady';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l1_cache\" text,\n \"mult\" real,\n \"voltage\" text\n);\n\nQuestion: What is the Model Number, when the Voltage is 3.45 V, and when the Frequency is 133 MHZ?" }, { "role": "assistant", "content": "SELECT \"model_number\" FROM \"models\" WHERE \"voltage\"='3.45 v' AND \"frequency\"='133 mhz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary_of_raiding_history\" (\n \"date\" text,\n \"ship\" text,\n \"nationality\" text,\n \"tonnage\" real,\n \"fate\" text\n);\n\nQuestion: What is the Nationality of the Aracataca Ship?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"summary_of_raiding_history\" WHERE \"ship\"='aracataca';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparative_table_showing_corresponding_\" (\n \"months_in_malayalam_era\" text,\n \"in_malayalam\" text,\n \"gregorian_calendar\" text,\n \"tamil_calendar\" text,\n \"saka_era\" text,\n \"sign_of_zodiac\" text\n);\n\nQuestion: WHAT IS THE SAKA ERA WITH MONTHS IN MEDAM?" }, { "role": "assistant", "content": "SELECT \"saka_era\" FROM \"comparative_table_showing_corresponding_\" WHERE \"months_in_malayalam_era\"='medam';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparative_table_showing_corresponding_\" (\n \"months_in_malayalam_era\" text,\n \"in_malayalam\" text,\n \"gregorian_calendar\" text,\n \"tamil_calendar\" text,\n \"saka_era\" text,\n \"sign_of_zodiac\" text\n);\n\nQuestion: WHAT IS THE SIGN OF ZODIAC OF \u0d2e\u0d40\u0d28\u0d02?" }, { "role": "assistant", "content": "SELECT \"sign_of_zodiac\" FROM \"comparative_table_showing_corresponding_\" WHERE \"in_malayalam\"='\u0d2e\u0d40\u0d28\u0d02';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparative_table_showing_corresponding_\" (\n \"months_in_malayalam_era\" text,\n \"in_malayalam\" text,\n \"gregorian_calendar\" text,\n \"tamil_calendar\" text,\n \"saka_era\" text,\n \"sign_of_zodiac\" text\n);\n\nQuestion: WHAT IS THE SAKA ERA OF VIRGO?" }, { "role": "assistant", "content": "SELECT \"saka_era\" FROM \"comparative_table_showing_corresponding_\" WHERE \"sign_of_zodiac\"='virgo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparative_table_showing_corresponding_\" (\n \"months_in_malayalam_era\" text,\n \"in_malayalam\" text,\n \"gregorian_calendar\" text,\n \"tamil_calendar\" text,\n \"saka_era\" text,\n \"sign_of_zodiac\" text\n);\n\nQuestion: WHAT IS THE GREGORIAN CALENDAR FOR AQUARIUS?" }, { "role": "assistant", "content": "SELECT \"gregorian_calendar\" FROM \"comparative_table_showing_corresponding_\" WHERE \"sign_of_zodiac\"='aquarius';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparative_table_showing_corresponding_\" (\n \"months_in_malayalam_era\" text,\n \"in_malayalam\" text,\n \"gregorian_calendar\" text,\n \"tamil_calendar\" text,\n \"saka_era\" text,\n \"sign_of_zodiac\" text\n);\n\nQuestion: WHAT IS THE IN MALAYALAM WITH kartika\u2013agrahayana?" }, { "role": "assistant", "content": "SELECT \"in_malayalam\" FROM \"comparative_table_showing_corresponding_\" WHERE \"saka_era\"='kartika\u2013agrahayana';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What is the airport when the iata is tbj?" }, { "role": "assistant", "content": "SELECT \"airport\" FROM \"destinations\" WHERE \"iata\"='tbj';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: what is the iata for malta international airport?" }, { "role": "assistant", "content": "SELECT \"iata\" FROM \"destinations\" WHERE \"airport\"='malta international airport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: what is the airport for the country tunisia with the icao dtaa?" }, { "role": "assistant", "content": "SELECT \"airport\" FROM \"destinations\" WHERE \"country\"='tunisia' AND \"icao\"='dtaa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: what is the city when the country is libya and the iata is ben?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"destinations\" WHERE \"country\"='libya' AND \"iata\"='ben';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: what is the country when the city is gafsa?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"destinations\" WHERE \"city\"='gafsa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: what is the iata when the city is tripoli?" }, { "role": "assistant", "content": "SELECT \"iata\" FROM \"destinations\" WHERE \"city\"='tripoli';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"score\" text,\n \"team_2\" text,\n \"1st_round\" text,\n \"2nd_round\" text\n);\n\nQuestion: Who is the 2nd round opponent when Team 2 is Red Star (D1)?" }, { "role": "assistant", "content": "SELECT \"2nd_round\" FROM \"round_of_16\" WHERE \"team_2\"='red star (d1)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"score\" text,\n \"team_2\" text,\n \"1st_round\" text,\n \"2nd_round\" text\n);\n\nQuestion: When Team 2 was USL Dunkerque (D2), what was the score" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"round_of_16\" WHERE \"team_2\"='usl dunkerque (d2)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"score\" text,\n \"team_2\" text,\n \"1st_round\" text,\n \"2nd_round\" text\n);\n\nQuestion: What was the team 1 when Red Star (D1) was team 2?" }, { "role": "assistant", "content": "SELECT \"team_1\" FROM \"round_of_16\" WHERE \"team_2\"='red star (d1)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: Which team has home game with tie of 4?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"sixth_round_proper\" WHERE \"tie_no\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: what is score of a team with tie of 4?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"sixth_round_proper\" WHERE \"tie_no\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What is the score of the game with 39,592 attendance?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"sixth_round_proper\" WHERE \"attendance\"='39,592';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: How many attended the game when the score was tie at 4?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"sixth_round_proper\" WHERE \"tie_no\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which player was defensive back after round 3?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"position\"='defensive back' AND \"round\">3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What was the pick for Bill Gramatica after round 2?" }, { "role": "assistant", "content": "SELECT \"pick\" FROM \"nfl_draft\" WHERE \"round\">2 AND \"player\"='bill gramatica';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 was the record on june 29?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"regular_season\" WHERE \"date\"='june 29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 were the high points on june 20?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"regular_season\" WHERE \"date\"='june 20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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: Which Record has a Location/Attendance of palace of auburn hills 8,108?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"regular_season\" WHERE \"location_attendance\"='palace of auburn hills 8,108';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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: Which Game is the lowest one that has a Record of 11-4?" }, { "role": "assistant", "content": "SELECT MIN(\"game\") FROM \"regular_season\" WHERE \"record\"='11-4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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: Which Date has a Location/Attendance of verizon center 7,587?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"regular_season\" WHERE \"location_attendance\"='verizon center 7,587';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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: Which High rebounds has a High points of douglas (23)?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"regular_season\" WHERE \"high_points\"='douglas (23)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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: Which Score has an Opponent of seattle?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"regular_season\" WHERE \"opponent\"='seattle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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: Which Record has a High points of hoffman (16)?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"regular_season\" WHERE \"high_points\"='hoffman (16)';" } ]
[ { "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 \"location\" text\n);\n\nQuestion: Which round has a record of 5-3 (1)?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"record\"='5-3 (1)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"svenska_cupen_2004\" (\n \"date\" text,\n \"venue\" text,\n \"opponents\" text,\n \"score\" text,\n \"comp\" text,\n \"djurg_rden_scorers\" text,\n \"attendance\" text\n);\n\nQuestion: Who were the Djurgarden scorers when the venue was Idrottsparken?" }, { "role": "assistant", "content": "SELECT \"djurg_rden_scorers\" FROM \"svenska_cupen_2004\" WHERE \"venue\"='idrottsparken';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sponsorship\" (\n \"year\" real,\n \"series\" text,\n \"make\" text,\n \"driver\" text,\n \"team\" text,\n \"schedule\" text,\n \"role\" text\n);\n\nQuestion: what is the series when the team is gunbroker racing?" }, { "role": "assistant", "content": "SELECT \"series\" FROM \"nascar_sponsorship\" WHERE \"team\"='gunbroker racing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sponsorship\" (\n \"year\" real,\n \"series\" text,\n \"make\" text,\n \"driver\" text,\n \"team\" text,\n \"schedule\" text,\n \"role\" text\n);\n\nQuestion: what is the team when the make is dodge and the year is after 2008?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"nascar_sponsorship\" WHERE \"make\"='dodge' AND \"year\">2008;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sponsorship\" (\n \"year\" real,\n \"series\" text,\n \"make\" text,\n \"driver\" text,\n \"team\" text,\n \"schedule\" text,\n \"role\" text\n);\n\nQuestion: what is the make for the year 2008?" }, { "role": "assistant", "content": "SELECT \"make\" FROM \"nascar_sponsorship\" WHERE \"year\"=2008;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sponsorship\" (\n \"year\" real,\n \"series\" text,\n \"make\" text,\n \"driver\" text,\n \"team\" text,\n \"schedule\" text,\n \"role\" text\n);\n\nQuestion: what is the year when the driver was kevin lepage?" }, { "role": "assistant", "content": "SELECT SUM(\"year\") FROM \"nascar_sponsorship\" WHERE \"driver\"='kevin lepage';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sponsorship\" (\n \"year\" real,\n \"series\" text,\n \"make\" text,\n \"driver\" text,\n \"team\" text,\n \"schedule\" text,\n \"role\" text\n);\n\nQuestion: what is the team when the schedule is limited, year is earlier than 2007 and the driver is jason white?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"nascar_sponsorship\" WHERE \"schedule\"='limited' AND \"year\"<2007 AND \"driver\"='jason white';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"points\" (\n \"rank\" real,\n \"name\" text,\n \"team\" text,\n \"games\" real,\n \"points\" real\n);\n\nQuestion: Which rank is the lowest with 37 games and more than 613 points?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"points\" WHERE \"games\"=37 AND \"points\">613;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"points\" (\n \"rank\" real,\n \"name\" text,\n \"team\" text,\n \"games\" real,\n \"points\" real\n);\n\nQuestion: What is Grupo Capitol Valladolid's highest rank with more than 34 games?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"points\" WHERE \"team\"='grupo capitol valladolid' AND \"games\">34;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"points\" (\n \"rank\" real,\n \"name\" text,\n \"team\" text,\n \"games\" real,\n \"points\" real\n);\n\nQuestion: How many points are there for rank 5 with more than 34 games?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"points\" WHERE \"rank\"=5 AND \"games\">34;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"completed_cable_stayed_bridges\" (\n \"name\" text,\n \"location\" text,\n \"country\" text,\n \"longest_span\" text,\n \"comp\" real,\n \"pylons\" text\n);\n\nQuestion: Where is the kap shui mun bridge?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"completed_cable_stayed_bridges\" WHERE \"name\"='kap shui mun bridge';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: What tournament shows 2013 as 2r, and a 2010 as 1r?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_performance_timeline\" WHERE \"2013\"='2r' AND \"2010\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: What shows for 2013 when the 2008 is 1r?" }, { "role": "assistant", "content": "SELECT \"2013\" FROM \"singles_performance_timeline\" WHERE \"2008\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: What shows for 2011 when 2012 is q1, and a 2010 is 4r?" }, { "role": "assistant", "content": "SELECT \"2011\" FROM \"singles_performance_timeline\" WHERE \"2012\"='q1' AND \"2010\"='4r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: What tournament has a 2010 of 1r, and a 2008 of 1r?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_performance_timeline\" WHERE \"2010\"='1r' AND \"2008\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: What shows for 2011 at the French open?" }, { "role": "assistant", "content": "SELECT \"2011\" FROM \"singles_performance_timeline\" WHERE \"tournament\"='french open';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: What shows for 2013 when 2012 is 2r?" }, { "role": "assistant", "content": "SELECT \"2013\" FROM \"singles_performance_timeline\" WHERE \"2012\"='2r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population\" (\n \"province\" text,\n \"south_asians_2001\" real,\n \"pct_2001\" text,\n \"south_asians_2011\" real,\n \"pct_2011\" text\n);\n\nQuestion: How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?" }, { "role": "assistant", "content": "SELECT COUNT(\"south_asians_2011\") FROM \"population\" WHERE \"province\"='quebec' AND \"south_asians_2001\"<'59,510';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population\" (\n \"province\" text,\n \"south_asians_2001\" real,\n \"pct_2001\" text,\n \"south_asians_2011\" real,\n \"pct_2011\" text\n);\n\nQuestion: Which province had fewer than 190 South Asians in 2001 and 115 South Asians in 2011?" }, { "role": "assistant", "content": "SELECT \"province\" FROM \"population\" WHERE \"south_asians_2001\"<190 AND \"south_asians_2011\"=115;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population\" (\n \"province\" text,\n \"south_asians_2001\" real,\n \"pct_2001\" text,\n \"south_asians_2011\" real,\n \"pct_2011\" text\n);\n\nQuestion: What % of South Asians were in Nova Scotia in 2001 with 115 and 2011 with 12,620?" }, { "role": "assistant", "content": "SELECT \"pct_2001\" FROM \"population\" WHERE \"south_asians_2001\">115 AND \"south_asians_2011\">'12,620' AND \"province\"='nova scotia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population\" (\n \"province\" text,\n \"south_asians_2001\" real,\n \"pct_2001\" text,\n \"south_asians_2011\" real,\n \"pct_2011\" text\n);\n\nQuestion: How many South Asians on average were in Alberta in 2001 and in 2011 had 159,055?" }, { "role": "assistant", "content": "SELECT AVG(\"south_asians_2001\") FROM \"population\" WHERE \"province\"='alberta' AND \"south_asians_2011\">'159,055';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"extra\" text\n);\n\nQuestion: What is Result, when Extra is \"Heptathlon\", and when Venue is \"G\u00f6tzis , Austria\"?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"achievements\" WHERE \"extra\"='heptathlon' AND \"venue\"='g\u00f6tzis , austria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"extra\" text\n);\n\nQuestion: What is the total number of Year(s), when Tournament is \"World Championships\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"achievements\" WHERE \"tournament\"='world championships';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"extra\" text\n);\n\nQuestion: What is Venue, when Year is 2005, and when Result is 8th?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"achievements\" WHERE \"year\"=2005 AND \"result\"='8th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"extra\" text\n);\n\nQuestion: What is Tournament, when Result is 18th?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"achievements\" WHERE \"result\"='18th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"extra\" text\n);\n\nQuestion: What is Venue, when Year is after 2003, and when Tournament is \"Hypo-Meeting\"?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"achievements\" WHERE \"year\">2003 AND \"tournament\"='hypo-meeting';" } ]