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 \"fourth_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 attendance date of the game home team Shrewsbury Town played?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"fourth_round_proper\" WHERE \"home_team\"='shrewsbury town';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: Who is the home team that attended on 7 February 1996 and had a tie no of 1?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"fourth_round_proper\" WHERE \"attendance\"='7 february 1996' AND \"tie_no\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_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 final score of the game home team Bolton Wanderers played?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"fourth_round_proper\" WHERE \"home_team\"='bolton wanderers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_cup_history\" (\n \"season\" text,\n \"competition\" text,\n \"round\" text,\n \"opponent\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: Which round has an opponent of Freiburg?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"european_cup_history\" WHERE \"opponent\"='freiburg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_cup_history\" (\n \"season\" text,\n \"competition\" text,\n \"round\" text,\n \"opponent\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: Who was the home when the opponent was slovan liberec?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"european_cup_history\" WHERE \"opponent\"='slovan liberec';" } ]
[ { "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 \"decision\" text,\n \"record\" text\n);\n\nQuestion: Which Game has a January larger than 18, and a Decision of valiquette?" }, { "role": "assistant", "content": "SELECT MAX(\"game\") FROM \"schedule_and_results\" WHERE \"january\">18 AND \"decision\"='valiquette';" } ]
[ { "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 \"decision\" text,\n \"record\" text\n);\n\nQuestion: Who has a Game smaller than 43, and a Record of 23-14-3?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule_and_results\" WHERE \"game\"<43 AND \"record\"='23-14-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: What is the time for qual 2 that has the best time of 59.266?" }, { "role": "assistant", "content": "SELECT \"qual_2\" FROM \"qualifying_results\" WHERE \"best\"='59.266';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: Who is the driver for the Forsythe Racing team that has the best time of 1:00.099?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"qualifying_results\" WHERE \"team\"='forsythe racing' AND \"best\"='1:00.099';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: Justin Wilson has what has his best time?" }, { "role": "assistant", "content": "SELECT \"best\" FROM \"qualifying_results\" WHERE \"name\"='justin wilson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: Team Rusport has the best of 59.654 and what qual 1?" }, { "role": "assistant", "content": "SELECT \"qual_1\" FROM \"qualifying_results\" WHERE \"team\"='rusport' AND \"best\"='59.654';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: S\u00e9bastien Bourdais of the team Newman/Haas Racing has what qual 1?" }, { "role": "assistant", "content": "SELECT \"qual_1\" FROM \"qualifying_results\" WHERE \"team\"='newman/haas racing' AND \"name\"='s\u00e9bastien bourdais';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: What is Alex Tagliani's qual 1?" }, { "role": "assistant", "content": "SELECT \"qual_1\" FROM \"qualifying_results\" WHERE \"name\"='alex tagliani';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"women_s\" (\n \"school\" text,\n \"bask\" real,\n \"golf\" text,\n \"soccer\" text,\n \"soft\" text,\n \"swimming\" text,\n \"tennis\" real,\n \"indoor_track\" text,\n \"outdoor_track\" text,\n \"volleyball\" text,\n \"total\" real\n);\n\nQuestion: Which Bask has Soft of 18, and a Total larger than 35?" }, { "role": "assistant", "content": "SELECT AVG(\"bask\") FROM \"women_s\" WHERE \"soft\"='18' AND \"total\">35;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"women_s\" (\n \"school\" text,\n \"bask\" real,\n \"golf\" text,\n \"soccer\" text,\n \"soft\" text,\n \"swimming\" text,\n \"tennis\" real,\n \"indoor_track\" text,\n \"outdoor_track\" text,\n \"volleyball\" text,\n \"total\" real\n);\n\nQuestion: Which Volleyball has a Golf of 2, and an Indoor track of 3?" }, { "role": "assistant", "content": "SELECT \"volleyball\" FROM \"women_s\" WHERE \"golf\"='2' AND \"indoor_track\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"women_s\" (\n \"school\" text,\n \"bask\" real,\n \"golf\" text,\n \"soccer\" text,\n \"soft\" text,\n \"swimming\" text,\n \"tennis\" real,\n \"indoor_track\" text,\n \"outdoor_track\" text,\n \"volleyball\" text,\n \"total\" real\n);\n\nQuestion: Which Bask has an Indoor track of 0, and a Swimming of 5?" }, { "role": "assistant", "content": "SELECT MIN(\"bask\") FROM \"women_s\" WHERE \"indoor_track\"='0' AND \"swimming\"='5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"women_s\" (\n \"school\" text,\n \"bask\" real,\n \"golf\" text,\n \"soccer\" text,\n \"soft\" text,\n \"swimming\" text,\n \"tennis\" real,\n \"indoor_track\" text,\n \"outdoor_track\" text,\n \"volleyball\" text,\n \"total\" real\n);\n\nQuestion: Which Swimming has a Total larger than 35, and a Volleyball of 1?" }, { "role": "assistant", "content": "SELECT \"swimming\" FROM \"women_s\" WHERE \"total\">35 AND \"volleyball\"='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 \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Date for scotiabank place with less than 20 points, game larger than 16, and an opponent of montreal canadiens?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"location\"='scotiabank place' AND \"points\"<20 AND \"game\">16 AND \"opponent\"='montreal canadiens';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Total games for smaller than 15 points, date of november 15, and larger that 13,722 in attendance?" }, { "role": "assistant", "content": "SELECT COUNT(\"game\") FROM \"game_log\" WHERE \"points\"<15 AND \"date\"='november 15' AND \"attendance\">'13,722';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What was the results on September 24, 1995?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='september 24, 1995';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What was the results against the Philadelphia Eagles?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponent\"='philadelphia eagles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What is the date with 68,463 in attendance?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"attendance\"='68,463';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What was the attendance for week 15?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"week\"=15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"in\" (\n \"name\" text,\n \"country\" text,\n \"type\" text,\n \"moving_from\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: What is the name when winter is the transfer window?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"in\" WHERE \"transfer_window\"='winter';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"in\" (\n \"name\" text,\n \"country\" text,\n \"type\" text,\n \"moving_from\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: What is the transfer fee when summer is the transfer window, the type is transfer and the country is Hun?" }, { "role": "assistant", "content": "SELECT \"transfer_fee\" FROM \"in\" WHERE \"transfer_window\"='summer' AND \"type\"='transfer' AND \"country\"='hun';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"in\" (\n \"name\" text,\n \"country\" text,\n \"type\" text,\n \"moving_from\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: What is the type when Rangers are the moving from?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"in\" WHERE \"moving_from\"='rangers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"in\" (\n \"name\" text,\n \"country\" text,\n \"type\" text,\n \"moving_from\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: What is the type when McCormack is the name?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"in\" WHERE \"name\"='mccormack';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"in\" (\n \"name\" text,\n \"country\" text,\n \"type\" text,\n \"moving_from\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: What is the type when \u00a3120,000 is the transfer fee?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"in\" WHERE \"transfer_fee\"='\u00a3120,000';" } ]
[ { "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: What date is aston villa away?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"fifth_round_proper\" WHERE \"away_team\"='aston villa';" } ]
[ { "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: what date did tie number 5 occur?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"fifth_round_proper\" WHERE \"tie_no\"='5';" } ]
[ { "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 number has Bolton Wanderers as away?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"fifth_round_proper\" WHERE \"away_team\"='bolton wanderers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"round\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text\n);\n\nQuestion: What round was the circuit portland international raceway?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"schedule\" WHERE \"circuit\"='portland international raceway';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"round\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text\n);\n\nQuestion: When was the circuit portland international raceway?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"circuit\"='portland international raceway';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"round\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text\n);\n\nQuestion: Which round had a city/location of Toronto, Ontario?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"schedule\" WHERE \"city_location\"='toronto, ontario';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"round\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text\n);\n\nQuestion: For which location was the round smaller than 11 and the circuit streets of denver?" }, { "role": "assistant", "content": "SELECT \"city_location\" FROM \"schedule\" WHERE \"round\"<11 AND \"circuit\"='streets of denver';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"round\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text\n);\n\nQuestion: What day was the location Cleveland, Ohio in Round 6?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"city_location\"='cleveland, ohio' AND \"round\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the sum of attendance for the games played at Los Angeles Rams?" }, { "role": "assistant", "content": "SELECT SUM(\"attendance\") 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 \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: In which week was the attendance 47,218?" }, { "role": "assistant", "content": "SELECT SUM(\"week\") FROM \"schedule\" WHERE \"attendance\"='47,218';" } ]
[ { "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 \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"decision\" text,\n \"record\" text\n);\n\nQuestion: How many Decembers have calgary flames as the opponent?" }, { "role": "assistant", "content": "SELECT COUNT(\"december\") FROM \"schedule_and_results\" WHERE \"opponent\"='calgary flames';" } ]
[ { "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 \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"decision\" text,\n \"record\" text\n);\n\nQuestion: What game has valiquette as the decision, with @ los angeles kings as the opponent?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"schedule_and_results\" WHERE \"decision\"='valiquette' AND \"opponent\"='@ los angeles kings';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3\" (\n \"official_num\" real,\n \"tf1_num\" real,\n \"french_title\" text,\n \"english_title\" text,\n \"air_date_france\" text,\n \"original_beechwood_bunny_tale_source_material\" text\n);\n\nQuestion: What is the most elevated TF1 # that has an Official # larger than 47, and an Air date (France) of 13 july 2010?" }, { "role": "assistant", "content": "SELECT MAX(\"tf1_num\") FROM \"season_3\" WHERE \"official_num\">47 AND \"air_date_france\"='13 july 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3\" (\n \"official_num\" real,\n \"tf1_num\" real,\n \"french_title\" text,\n \"english_title\" text,\n \"air_date_france\" text,\n \"original_beechwood_bunny_tale_source_material\" text\n);\n\nQuestion: What is the Original Beechwood Bunny Tale/Source material that has an Official # larger than 38, and a TF1 # larger than 50, and an English title of \"sweet fabiola\"?" }, { "role": "assistant", "content": "SELECT \"original_beechwood_bunny_tale_source_material\" FROM \"season_3\" WHERE \"official_num\">38 AND \"tf1_num\">50 AND \"english_title\"='\\\"sweet fabiola\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3\" (\n \"official_num\" real,\n \"tf1_num\" real,\n \"french_title\" text,\n \"english_title\" text,\n \"air_date_france\" text,\n \"original_beechwood_bunny_tale_source_material\" text\n);\n\nQuestion: What is the Official # that has a French title of \"Pierre de Lune\"?" }, { "role": "assistant", "content": "SELECT \"official_num\" FROM \"season_3\" WHERE \"french_title\"='\\\"pierre de lune\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scottish_cup\" (\n \"date\" text,\n \"round\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real,\n \"scorers\" text\n);\n\nQuestion: What venue had SF?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"scottish_cup\" WHERE \"round\"='sf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scottish_cup\" (\n \"date\" text,\n \"round\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real,\n \"scorers\" text\n);\n\nQuestion: What venue has more than 50,715 attending?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"scottish_cup\" WHERE \"attendance\">'50,715';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scottish_cup\" (\n \"date\" text,\n \"round\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real,\n \"scorers\" text\n);\n\nQuestion: What round was at the A venue with a attendance more than 14,314?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"scottish_cup\" WHERE \"venue\"='a' AND \"attendance\">'14,314';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sbn_mom_s_radio_stations\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"location\" text\n);\n\nQuestion: What's the callsign of Mom's Radio 101.9 Zamboanga?" }, { "role": "assistant", "content": "SELECT \"callsign\" FROM \"sbn_mom_s_radio_stations\" WHERE \"branding\"='mom''s radio 101.9 zamboanga';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sbn_mom_s_radio_stations\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"location\" text\n);\n\nQuestion: What's the power when the frequency is 101.5mhz?" }, { "role": "assistant", "content": "SELECT \"power_k_w\" FROM \"sbn_mom_s_radio_stations\" WHERE \"frequency\"='101.5mhz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sbn_mom_s_radio_stations\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"location\" text\n);\n\nQuestion: What's the location of Mom's Radio 95.9 Naga having a power of 10kw?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"sbn_mom_s_radio_stations\" WHERE \"power_k_w\"='10kw' AND \"branding\"='mom''s radio 95.9 naga';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sbn_mom_s_radio_stations\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"location\" text\n);\n\nQuestion: What's the callsign in Tacloban?" }, { "role": "assistant", "content": "SELECT \"callsign\" FROM \"sbn_mom_s_radio_stations\" WHERE \"location\"='tacloban';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sbn_mom_s_radio_stations\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"location\" text\n);\n\nQuestion: What's the power of Mom's Radio 101.5 Tacloban?" }, { "role": "assistant", "content": "SELECT \"power_k_w\" FROM \"sbn_mom_s_radio_stations\" WHERE \"branding\"='mom''s radio 101.5 tacloban';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"construction\" (\n \"1946_nos\" text,\n \"1947_nos\" text,\n \"date\" real,\n \"built_at\" text,\n \"lms_nos\" text,\n \"br_nos\" text\n);\n\nQuestion: Which Built at has a Date of 1946, and a 1947 Nos of 3556/7?" }, { "role": "assistant", "content": "SELECT \"built_at\" FROM \"construction\" WHERE \"date\"=1946 AND \"1947_nos\"='3556/7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"construction\" (\n \"1946_nos\" text,\n \"1947_nos\" text,\n \"date\" real,\n \"built_at\" text,\n \"lms_nos\" text,\n \"br_nos\" text\n);\n\nQuestion: Which Date has a 1946 Nos of 3156/7?" }, { "role": "assistant", "content": "SELECT AVG(\"date\") FROM \"construction\" WHERE \"1946_nos\"='3156/7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"construction\" (\n \"1946_nos\" text,\n \"1947_nos\" text,\n \"date\" real,\n \"built_at\" text,\n \"lms_nos\" text,\n \"br_nos\" text\n);\n\nQuestion: Which Date has a 1947 Nos of 3525-34?" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"construction\" WHERE \"1947_nos\"='3525-34';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"construction\" (\n \"1946_nos\" text,\n \"1947_nos\" text,\n \"date\" real,\n \"built_at\" text,\n \"lms_nos\" text,\n \"br_nos\" text\n);\n\nQuestion: Which 1947 Nos has a BR Nos of 48730-9?" }, { "role": "assistant", "content": "SELECT \"1947_nos\" FROM \"construction\" WHERE \"br_nos\"='48730-9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_summary\" (\n \"year\" text,\n \"matches\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"win_pct\" text\n);\n\nQuestion: What is the number of losses for the game with a win % of 71.43%, and No Result is more than 0?" }, { "role": "assistant", "content": "SELECT SUM(\"losses\") FROM \"performance_summary\" WHERE \"win_pct\"='71.43%' AND \"no_result\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_summary\" (\n \"year\" text,\n \"matches\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"win_pct\" text\n);\n\nQuestion: What is the total number of wins in 2010, when there were more than 14 matches?" }, { "role": "assistant", "content": "SELECT COUNT(\"wins\") FROM \"performance_summary\" WHERE \"year\"='2010' AND \"matches\">14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_summary\" (\n \"year\" text,\n \"matches\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"win_pct\" text\n);\n\nQuestion: What is the number of wins when there are 14 matches, and the No Result was less than 0?" }, { "role": "assistant", "content": "SELECT AVG(\"wins\") FROM \"performance_summary\" WHERE \"matches\"=14 AND \"no_result\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_summary\" (\n \"year\" text,\n \"matches\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"win_pct\" text\n);\n\nQuestion: What is the number of losses when there were 14 matches, and the No Result was larger than 0?" }, { "role": "assistant", "content": "SELECT SUM(\"losses\") FROM \"performance_summary\" WHERE \"matches\"=14 AND \"no_result\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_summary\" (\n \"year\" text,\n \"matches\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"win_pct\" text\n);\n\nQuestion: What is the number of matches when the wins are less than 8, and losses of 7, in 2011?" }, { "role": "assistant", "content": "SELECT SUM(\"matches\") FROM \"performance_summary\" WHERE \"wins\"<8 AND \"losses\"=7 AND \"year\"='2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_summary\" (\n \"year\" text,\n \"matches\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"win_pct\" text\n);\n\nQuestion: What year was the Win percentage 50.00%, with more than 14 matches, and wins more than 8?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"performance_summary\" WHERE \"win_pct\"='50.00%' AND \"matches\">14 AND \"wins\">8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regions_of_iceland\" (\n \"landsv_i\" text,\n \"english\" text,\n \"population_2011_01_01\" text,\n \"area_km\" text,\n \"pop_km\" real\n);\n\nQuestion: What area has less than 0.97 mil in population and is on the east?" }, { "role": "assistant", "content": "SELECT \"area_km\" FROM \"regions_of_iceland\" WHERE \"pop_km\"<0.97 AND \"english\"='east';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regions_of_iceland\" (\n \"landsv_i\" text,\n \"english\" text,\n \"population_2011_01_01\" text,\n \"area_km\" text,\n \"pop_km\" real\n);\n\nQuestion: What is the area for a population of 0.58 km?" }, { "role": "assistant", "content": "SELECT \"area_km\" FROM \"regions_of_iceland\" WHERE \"pop_km\"=0.58;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"post_show_success\" (\n \"result\" text,\n \"tuf_competitor\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" text\n);\n\nQuestion: what is the method when the result is loss on january 19, 2008?" }, { "role": "assistant", "content": "SELECT \"method\" FROM \"post_show_success\" WHERE \"result\"='loss' AND \"date\"='january 19, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"post_show_success\" (\n \"result\" text,\n \"tuf_competitor\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" text\n);\n\nQuestion: when is the opponent lyoto machida?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"post_show_success\" WHERE \"opponent\"='lyoto machida';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"post_show_success\" (\n \"result\" text,\n \"tuf_competitor\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" text\n);\n\nQuestion: who is the opponent when the method is tko (punches) at 4:26 of round 1?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"post_show_success\" WHERE \"method\"='tko (punches) at 4:26 of round 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"post_show_success\" (\n \"result\" text,\n \"tuf_competitor\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" text\n);\n\nQuestion: who is the tuf competitor when the method id decision (unanimous)?" }, { "role": "assistant", "content": "SELECT \"tuf_competitor\" FROM \"post_show_success\" WHERE \"method\"='decision (unanimous)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"post_show_success\" (\n \"result\" text,\n \"tuf_competitor\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" text\n);\n\nQuestion: who is the opponent when the method is submission (rear naked choke) at 4:02 of round 2?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"post_show_success\" WHERE \"method\"='submission (rear naked choke) at 4:02 of round 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What is the venue where the melbourne tigers play their home games?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_6\" WHERE \"home_team\"='melbourne tigers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What team has theoir home games in the venue of gold coast convention centre?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_6\" WHERE \"venue\"='gold coast convention centre';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What is the box score type for the game that has a score of 103-101?" }, { "role": "assistant", "content": "SELECT \"box_score\" FROM \"round_6\" WHERE \"score\"='103-101';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What was the box score for the game where the away team was the sydney spirit?" }, { "role": "assistant", "content": "SELECT \"box_score\" FROM \"round_6\" WHERE \"away_team\"='sydney spirit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What was the resolution of the fight when tim hague had a record of 15-7?" }, { "role": "assistant", "content": "SELECT \"res\" FROM \"mixed_martial_arts_record\" WHERE \"record\"='15-7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What event did Tim hague have a fight that had a time of 5:00 and a record of 10-4?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='5:00' AND \"record\"='10-4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What method of resolution was the fight that took place at hardcore championship fighting: destiny?" }, { "role": "assistant", "content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='hardcore championship fighting: destiny';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What event did tim Hague have a record of 3-0?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"record\"='3-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_mary_landrieu\" text,\n \"republican_john_kennedy\" text,\n \"lead_margin\" real\n);\n\nQuestion: On what date was the poll showing John Kennedy with 45% and Mary Landrieu with 38%?" }, { "role": "assistant", "content": "SELECT \"dates_administered\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"republican_john_kennedy\"='45%' AND \"democrat_mary_landrieu\"='38%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_mary_landrieu\" text,\n \"republican_john_kennedy\" text,\n \"lead_margin\" real\n);\n\nQuestion: What was the date of the poll from Survey USA that showed a lead margin smaller than 5.5?" }, { "role": "assistant", "content": "SELECT \"dates_administered\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"lead_margin\"<5.5 AND \"poll_source\"='survey usa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_mary_landrieu\" text,\n \"republican_john_kennedy\" text,\n \"lead_margin\" real\n);\n\nQuestion: Which organization administered the poll that showed a lead margin of 5.5?" }, { "role": "assistant", "content": "SELECT \"poll_source\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"lead_margin\"=5.5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_mary_landrieu\" text,\n \"republican_john_kennedy\" text,\n \"lead_margin\" real\n);\n\nQuestion: Which poll shows Democrat Mary Landrieu with 53% against Republican John Kennedy?" }, { "role": "assistant", "content": "SELECT \"republican_john_kennedy\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"democrat_mary_landrieu\"='53%';" } ]
[ { "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 \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the sum of Round, when Position is Forward, and when School/Club Team is Western Kentucky?" }, { "role": "assistant", "content": "SELECT SUM(\"round\") FROM \"draft_picks\" WHERE \"position\"='forward' AND \"school_club_team\"='western kentucky';" } ]
[ { "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 \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is Position, when Pick is 7?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"draft_picks\" WHERE \"pick\"='7';" } ]
[ { "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 \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is Pick, when Round is greater than 1, and when School/Club Team is South Carolina?" }, { "role": "assistant", "content": "SELECT \"pick\" FROM \"draft_picks\" WHERE \"round\">1 AND \"school_club_team\"='south carolina';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_14_5_9\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is the Date of the game with an Outcome of runner-up and Score of 5\u20137, 3\u20136, 6\u20133, 2\u20136?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_14_5_9\" WHERE \"outcome\"='runner-up' AND \"score\"='5\u20137, 3\u20136, 6\u20133, 2\u20136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_14_5_9\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is the Date of the game with a Score of 4\u20136, 4\u20136?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_14_5_9\" WHERE \"score\"='4\u20136, 4\u20136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_14_5_9\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is the Date of the game against Christo Van Rensburg?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_14_5_9\" WHERE \"opponent\"='christo van rensburg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" real\n);\n\nQuestion: Who was the home team for the game that has a Tie value of 3?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"fourth_round_proper\" WHERE \"tie_no\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" real\n);\n\nQuestion: How many in total were in attendance at games where Chelsea was the away team?" }, { "role": "assistant", "content": "SELECT SUM(\"attendance\") FROM \"fourth_round_proper\" WHERE \"away_team\"='chelsea';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"name\" text,\n \"hanzi\" text,\n \"hanyu_pinyin\" text,\n \"population_2004_est\" text,\n \"area_km\" text,\n \"density_km\" text\n);\n\nQuestion: What is the 2004 population for \u660c\u9ece\u53bf?" }, { "role": "assistant", "content": "SELECT \"population_2004_est\" FROM \"administrative_divisions\" WHERE \"hanzi\"='\u660c\u9ece\u53bf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"name\" text,\n \"hanzi\" text,\n \"hanyu_pinyin\" text,\n \"population_2004_est\" text,\n \"area_km\" text,\n \"density_km\" text\n);\n\nQuestion: What is the 2004 population for \u5c71\u6d77\u5173\u533a?" }, { "role": "assistant", "content": "SELECT \"population_2004_est\" FROM \"administrative_divisions\" WHERE \"hanzi\"='\u5c71\u6d77\u5173\u533a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"name\" text,\n \"hanzi\" text,\n \"hanyu_pinyin\" text,\n \"population_2004_est\" text,\n \"area_km\" text,\n \"density_km\" text\n);\n\nQuestion: Which Hanzi has a suburban population in 2004?" }, { "role": "assistant", "content": "SELECT \"hanzi\" FROM \"administrative_divisions\" WHERE \"population_2004_est\"='suburban';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"name\" text,\n \"hanzi\" text,\n \"hanyu_pinyin\" text,\n \"population_2004_est\" text,\n \"area_km\" text,\n \"density_km\" text\n);\n\nQuestion: What is the density of \u660c\u9ece\u53bf?" }, { "role": "assistant", "content": "SELECT \"density_km\" FROM \"administrative_divisions\" WHERE \"hanzi\"='\u660c\u9ece\u53bf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"name\" text,\n \"hanzi\" text,\n \"hanyu_pinyin\" text,\n \"population_2004_est\" text,\n \"area_km\" text,\n \"density_km\" text\n);\n\nQuestion: Which Hanyu Pinyin is labeled rural?" }, { "role": "assistant", "content": "SELECT \"hanyu_pinyin\" FROM \"administrative_divisions\" WHERE \"name\"='rural';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mean_free_path_in_kinetic_theory\" (\n \"vacuum_range\" text,\n \"pressure_in_h_pa_mbar\" text,\n \"molecules_cm_3\" text,\n \"molecules_m_3\" text,\n \"mean_free_path\" text\n);\n\nQuestion: What is the Pressure in hPa (mbar), when Vacuum Range is \"medium vacuum\"?" }, { "role": "assistant", "content": "SELECT \"pressure_in_h_pa_mbar\" FROM \"mean_free_path_in_kinetic_theory\" WHERE \"vacuum_range\"='medium vacuum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mean_free_path_in_kinetic_theory\" (\n \"vacuum_range\" text,\n \"pressure_in_h_pa_mbar\" text,\n \"molecules_cm_3\" text,\n \"molecules_m_3\" text,\n \"mean_free_path\" text\n);\n\nQuestion: What is Mean Free Path, when Vacuum Range is \"medium vacuum\"?" }, { "role": "assistant", "content": "SELECT \"mean_free_path\" FROM \"mean_free_path_in_kinetic_theory\" WHERE \"vacuum_range\"='medium vacuum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mean_free_path_in_kinetic_theory\" (\n \"vacuum_range\" text,\n \"pressure_in_h_pa_mbar\" text,\n \"molecules_cm_3\" text,\n \"molecules_m_3\" text,\n \"mean_free_path\" text\n);\n\nQuestion: What is Mean Free Path, when Vacuum Range is \"medium vacuum\"?" }, { "role": "assistant", "content": "SELECT \"mean_free_path\" FROM \"mean_free_path_in_kinetic_theory\" WHERE \"vacuum_range\"='medium vacuum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_26_17_9\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: what is the outcome when the date is 10 october 1994?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"singles_26_17_9\" WHERE \"date\"='10 october 1994';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_26_17_9\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: what is the score on 22 february 1993?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles_26_17_9\" WHERE \"date\"='22 february 1993';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_26_17_9\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: what is the outcome when the surface is grass on 23 june 1997?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"singles_26_17_9\" WHERE \"surface\"='grass' AND \"date\"='23 june 1997';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_26_17_9\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: what is the score when the surface is carpet (i) outcome is winner and the championship is rotterdam, netherlands?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles_26_17_9\" WHERE \"surface\"='carpet (i)' AND \"outcome\"='winner' AND \"championship\"='rotterdam, netherlands';" } ]