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 \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Tell me the number of bronze for silver of 0 and total less than 1" }, { "role": "assistant", "content": "SELECT COUNT(\"bronze\") FROM \"medal_table\" WHERE \"silver\"=0 AND \"total\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Tell me the sum of total for rank of 1" }, { "role": "assistant", "content": "SELECT SUM(\"total\") FROM \"medal_table\" WHERE \"rank\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Tell me the total number for costa rica and rank more than 8" }, { "role": "assistant", "content": "SELECT COUNT(\"total\") FROM \"medal_table\" WHERE \"nation\"='costa rica' AND \"rank\">8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_ukraine_goalscorers\" (\n \"player\" text,\n \"career\" text,\n \"goals\" real,\n \"caps\" real,\n \"average\" real\n);\n\nQuestion: What years did Tymerlan Huseynov, whose average is larger than 0.361, play?" }, { "role": "assistant", "content": "SELECT \"career\" FROM \"top_ukraine_goalscorers\" WHERE \"average\">0.361 AND \"player\"='tymerlan huseynov';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_ukraine_goalscorers\" (\n \"player\" text,\n \"career\" text,\n \"goals\" real,\n \"caps\" real,\n \"average\" real\n);\n\nQuestion: Who scored more than 8 goals, had more than 75 caps, and averaged 0.432?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"top_ukraine_goalscorers\" WHERE \"goals\">8 AND \"caps\">75 AND \"average\"=0.432;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_ukraine_goalscorers\" (\n \"player\" text,\n \"career\" text,\n \"goals\" real,\n \"caps\" real,\n \"average\" real\n);\n\nQuestion: What is the sum of the averages when there are 68 caps and less than 9 goals?" }, { "role": "assistant", "content": "SELECT SUM(\"average\") FROM \"top_ukraine_goalscorers\" WHERE \"caps\"=68 AND \"goals\"<9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_tournament_timeline\" (\n \"tournament\" text,\n \"1966\" text,\n \"1967\" text,\n \"1968\" text,\n \"1969\" text,\n \"1970\" text,\n \"1971\" text,\n \"1972\" text,\n \"1973\" text,\n \"1974\" text,\n \"1975\" text,\n \"1976\" text,\n \"career_sr\" text\n);\n\nQuestion: Tell me the 1968 for 1r" }, { "role": "assistant", "content": "SELECT \"1968\" FROM \"grand_slam_singles_tournament_timeline\" WHERE \"1967\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"record_by_conference\" (\n \"conference\" text,\n \"num_of_bids\" real,\n \"record\" text,\n \"win_pct\" text,\n \"round_of_32\" text,\n \"sweet_sixteen\" text,\n \"elite_eight\" text,\n \"final_four\" text,\n \"championship_game\" text\n);\n\nQuestion: Tell me the round of 32 for conference of southland" }, { "role": "assistant", "content": "SELECT \"round_of_32\" FROM \"record_by_conference\" WHERE \"conference\"='southland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"record_by_conference\" (\n \"conference\" text,\n \"num_of_bids\" real,\n \"record\" text,\n \"win_pct\" text,\n \"round_of_32\" text,\n \"sweet_sixteen\" text,\n \"elite_eight\" text,\n \"final_four\" text,\n \"championship_game\" text\n);\n\nQuestion: Tell me the lowest # of bids for win percent of .667" }, { "role": "assistant", "content": "SELECT MIN(\"num_of_bids\") FROM \"record_by_conference\" WHERE \"win_pct\"='.667';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lifts\" (\n \"lift_name\" text,\n \"type\" text,\n \"length\" real,\n \"vertical\" real,\n \"cap_hour\" real\n);\n\nQuestion: Tell me the sum of cap/hor for double chair and vertical less than 479" }, { "role": "assistant", "content": "SELECT SUM(\"cap_hour\") FROM \"lifts\" WHERE \"type\"='double chair' AND \"vertical\"<479;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1975_engines\" (\n \"engine\" text,\n \"horsepower\" text,\n \"torque\" text,\n \"carburetor\" text,\n \"compression_ratio\" text,\n \"bore_stroke\" text,\n \"vin_code\" text\n);\n\nQuestion: What's the compression ratio when the vin code is c?" }, { "role": "assistant", "content": "SELECT \"compression_ratio\" FROM \"1975_engines\" WHERE \"vin_code\"='c';" } ]
[ { "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: Tell me the sum of year for extra of junior team competition" }, { "role": "assistant", "content": "SELECT SUM(\"year\") FROM \"achievements\" WHERE \"extra\"='junior team competition';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"style_series\" (\n \"model\" text,\n \"sensor_res_size\" text,\n \"lens_35mmequiv_zoom_aperture\" text,\n \"screen_size_pixels\" text,\n \"dimensions_w_h_d_mm\" text,\n \"weight\" text\n);\n\nQuestion: Tell me the lens zoom for aperture of model s2600" }, { "role": "assistant", "content": "SELECT \"lens_35mmequiv_zoom_aperture\" FROM \"style_series\" WHERE \"model\"='s2600';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"style_series\" (\n \"model\" text,\n \"sensor_res_size\" text,\n \"lens_35mmequiv_zoom_aperture\" text,\n \"screen_size_pixels\" text,\n \"dimensions_w_h_d_mm\" text,\n \"weight\" text\n);\n\nQuestion: Tell me the screen size for pixels of model s6400" }, { "role": "assistant", "content": "SELECT \"screen_size_pixels\" FROM \"style_series\" WHERE \"model\"='s6400';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"style_series\" (\n \"model\" text,\n \"sensor_res_size\" text,\n \"lens_35mmequiv_zoom_aperture\" text,\n \"screen_size_pixels\" text,\n \"dimensions_w_h_d_mm\" text,\n \"weight\" text\n);\n\nQuestion: Name the sensor res for model of s9200" }, { "role": "assistant", "content": "SELECT \"sensor_res_size\" FROM \"style_series\" WHERE \"model\"='s9200';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Tell me the nation for bronze more than 0 and total more than 8 with gold of 4" }, { "role": "assistant", "content": "SELECT \"nation\" FROM \"medal_table\" WHERE \"bronze\">0 AND \"total\">8 AND \"gold\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1970_isle_of_man_production_250_cc_tt_fi\" (\n \"rank\" real,\n \"rider\" text,\n \"team\" text,\n \"speed\" text,\n \"time\" text\n);\n\nQuestion: Who is Team Suzuki's rider and ranks higher than 6?" }, { "role": "assistant", "content": "SELECT \"rider\" FROM \"1970_isle_of_man_production_250_cc_tt_fi\" WHERE \"rank\">6 AND \"team\"='suzuki';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" real,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text\n);\n\nQuestion: Who was the lowest division in the 7th season?" }, { "role": "assistant", "content": "SELECT MIN(\"division\") FROM \"year_by_year\" WHERE \"reg_season\"='7th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" real,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text\n);\n\nQuestion: In 1924/25, who was in the playoffs?" }, { "role": "assistant", "content": "SELECT \"playoffs\" FROM \"year_by_year\" WHERE \"year\"='1924/25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" real,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text\n);\n\nQuestion: Which division has no playoff but has a 12th game in their season?" }, { "role": "assistant", "content": "SELECT MAX(\"division\") FROM \"year_by_year\" WHERE \"playoffs\"='no playoff' AND \"reg_season\"='12th';" } ]
[ { "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 \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"notes\" text\n);\n\nQuestion: What was the venue of the competition that held the 1st position in 2011?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"achievements\" WHERE \"position\"='1st' AND \"year\"=2011;" } ]
[ { "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 \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"notes\" text\n);\n\nQuestion: What was the position of the Olympic Games in the year 2008?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"achievements\" WHERE \"competition\"='olympic games' AND \"year\"=2008;" } ]
[ { "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 \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"notes\" text\n);\n\nQuestion: Which competition held the 1st position in 2009?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"achievements\" WHERE \"position\"='1st' AND \"year\"=2009;" } ]
[ { "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 \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"notes\" text\n);\n\nQuestion: Which venue did the African Championships have after 2006 with a position of 2nd and 3000 m s'chase in notes?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"achievements\" WHERE \"year\">2006 AND \"notes\"='3000 m s''chase' AND \"position\"='2nd' AND \"competition\"='african championships';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" real,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Tell me the label for US region and catalog of 10008-2" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release_history\" WHERE \"region\"='us' AND \"catalog\"='10008-2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" real,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Tell me the date for format of cd/dvd" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"release_history\" WHERE \"format\"='cd/dvd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" real,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Tell me the format for european union" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"release_history\" WHERE \"region\"='european union';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" real,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Tell me the catalog for date larger than 2004" }, { "role": "assistant", "content": "SELECT \"catalog\" FROM \"release_history\" WHERE \"date\">2004;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" real,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: I want the lowest date for catalog of 6561910008-1" }, { "role": "assistant", "content": "SELECT MIN(\"date\") FROM \"release_history\" WHERE \"catalog\"='6561910008-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What date was there a crowd larger than 30,343?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_13\" WHERE \"crowd\">'30,343';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which venue was played in when the Away team scored 11.5 (71)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_13\" WHERE \"away_team_score\"='11.5 (71)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the lowest Crowd total from a game in which Essendon was the Away team?" }, { "role": "assistant", "content": "SELECT MIN(\"crowd\") FROM \"round_13\" WHERE \"away_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which Venue was played in when the Away team scored 13.13 (91)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_13\" WHERE \"away_team_score\"='13.13 (91)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which Venue was used when the Home team was geelong?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_13\" WHERE \"home_team\"='geelong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_career\" (\n \"date\" text,\n \"venue\" text,\n \"result\" text,\n \"scored\" real,\n \"competition\" text\n);\n\nQuestion: What is the highest scored in the 2010 east asian football championship?" }, { "role": "assistant", "content": "SELECT MAX(\"scored\") FROM \"international_career\" WHERE \"competition\"='2010 east asian football championship';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"rank\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"city\" text,\n \"country\" text\n);\n\nQuestion: Which country is Wellington located in?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"see_also\" WHERE \"city\"='wellington';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: What label is in download format in the United States?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release\" WHERE \"region\"='united states' AND \"format\"='download';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: What label is in download format in the United States?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release\" WHERE \"region\"='united states' AND \"format\"='download';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: What label has RTRADLP 346 as catalogue?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release\" WHERE \"catalogue\"='rtradlp 346';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: What label has 22 January 2008 date?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release\" WHERE \"date\"='22 january 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue\" text\n);\n\nQuestion: What is the label for catalogue of RT-346-5?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release\" WHERE \"catalogue\"='rt-346-5';" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What position is mentioned for Rice school?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"nfl_draft\" WHERE \"school_club_team\"='rice';" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the average round for Wisconsin when the overall is larger than 238 and there is a defensive end?" }, { "role": "assistant", "content": "SELECT AVG(\"round\") FROM \"nfl_draft\" WHERE \"overall\">238 AND \"position\"='defensive end' AND \"school_club_team\"='wisconsin';" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the average round when there is a defensive back and an overall smaller than 199?" }, { "role": "assistant", "content": "SELECT AVG(\"round\") FROM \"nfl_draft\" WHERE \"position\"='defensive back' AND \"overall\"<199;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"stadium\" text,\n \"city\" text,\n \"crowd\" real\n);\n\nQuestion: What was the date of game with a score of 42-6?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_3\" WHERE \"score\"='42-6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"stadium\" text,\n \"city\" text,\n \"crowd\" real\n);\n\nQuestion: What stadium was the game played at when the result was hunter mariners def. sheffield eagles?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"round_3\" WHERE \"result\"='hunter mariners def. sheffield eagles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"stadium\" text,\n \"city\" text,\n \"crowd\" real\n);\n\nQuestion: What city has a Result of brisbane broncos def. halifax blue sox?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"round_3\" WHERE \"result\"='brisbane broncos def. halifax blue sox';" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which player was drafted after round 9 and number 464 overall?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"round\">9 AND \"overall\"=464;" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What was James Reed's draft round number?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"nfl_draft\" WHERE \"player\"='james reed';" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What was the overall draft number of Tom Fleming, a wide receiver?" }, { "role": "assistant", "content": "SELECT COUNT(\"overall\") FROM \"nfl_draft\" WHERE \"position\"='wide receiver' AND \"player\"='tom fleming';" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which player is from Dartmouth?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"school_club_team\"='dartmouth';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"k\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" text,\n \"school_country\" text\n);\n\nQuestion: What position does the player from tulsa play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"k\" WHERE \"school_country\"='tulsa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"20th_century\" (\n \"date\" text,\n \"epicenter\" text,\n \"magnitude\" real,\n \"fatalities\" text,\n \"name\" text\n);\n\nQuestion: What is the sum of Magnitude on february 12, 1953?" }, { "role": "assistant", "content": "SELECT SUM(\"magnitude\") FROM \"20th_century\" WHERE \"date\"='february 12, 1953';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_winners\" (\n \"year\" real,\n \"date_contested\" text,\n \"sport\" text,\n \"winning_team\" text,\n \"losing_team\" text,\n \"final_score\" text\n);\n\nQuestion: What was the final score of a baseball game that happened before 2005?" }, { "role": "assistant", "content": "SELECT \"final_score\" FROM \"list_of_winners\" WHERE \"sport\"='baseball' AND \"year\"<2005;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What venue did Richmond play as the away team?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_18\" WHERE \"away_team\"='richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the team of Essendon's score in the game where they were the home team?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_18\" WHERE \"home_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who is the away side when st kilda is the home side?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_19\" WHERE \"home_team\"='st kilda';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the away side score when footscray is the home side?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_19\" WHERE \"home_team\"='footscray';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home team's score at kardinia park?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_19\" WHERE \"venue\"='kardinia park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the lowest crowd seen at a game that Richmond was the Away team in?" }, { "role": "assistant", "content": "SELECT MIN(\"crowd\") FROM \"round_5\" WHERE \"away_team\"='richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the highest crowd count seen in the Windy Hill venue?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_5\" WHERE \"venue\"='windy hill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: On what date did Brunswick Street Oval see more than 19,500 people?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_5\" WHERE \"crowd\">'19,500' AND \"venue\"='brunswick street oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the score of the Away team that played against the Home team of Fitzroy?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_5\" WHERE \"home_team\"='fitzroy';" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which was the lowest overall that Wisconsin's team managed?" }, { "role": "assistant", "content": "SELECT MIN(\"overall\") FROM \"nfl_draft\" WHERE \"school_club_team\"='wisconsin';" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which team was Roy de Walt a player on?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"nfl_draft\" WHERE \"player\"='roy de walt';" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: In which round did Paul McDonald have an overall greater than 109?" }, { "role": "assistant", "content": "SELECT MAX(\"round\") FROM \"nfl_draft\" WHERE \"player\"='paul mcdonald' AND \"overall\">109;" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the total overall in round 1, in which Charles White was a player?" }, { "role": "assistant", "content": "SELECT SUM(\"overall\") FROM \"nfl_draft\" WHERE \"player\"='charles white' AND \"round\"<1;" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the name of a running back in a round before round 3?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"round\"<3 AND \"position\"='running back';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season_records\" (\n \"year\" real,\n \"team_name\" text,\n \"wins\" real,\n \"losses\" real,\n \"w_l_pct\" text,\n \"manager\" text\n);\n\nQuestion: What is the win/loss percentage with wins of 63 and losses smaller than 76?" }, { "role": "assistant", "content": "SELECT \"w_l_pct\" FROM \"season_by_season_records\" WHERE \"wins\"=63 AND \"losses\"<76;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_14\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the away team score when the home team is Geelong?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_14\" WHERE \"home_team\"='geelong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"weeks_at_number_one\" (\n \"rank\" real,\n \"player\" text,\n \"country\" text,\n \"weeks\" real,\n \"order\" real,\n \"majors\" real\n);\n\nQuestion: What was the highest order amount in weeks prier to 15 and a major less than 1?" }, { "role": "assistant", "content": "SELECT MAX(\"order\") FROM \"weeks_at_number_one\" WHERE \"weeks\"<15 AND \"majors\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"m\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" real,\n \"school_country\" text\n);\n\nQuestion: What is the position of the player from Temple?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"m\" WHERE \"school_country\"='temple';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"m\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" real,\n \"school_country\" text\n);\n\nQuestion: What is the most recent year from Creighton?" }, { "role": "assistant", "content": "SELECT MAX(\"from\") FROM \"m\" WHERE \"school_country\"='creighton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"m\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" real,\n \"school_country\" text\n);\n\nQuestion: What is the most recent year with a United States nationality and the school Hamline?" }, { "role": "assistant", "content": "SELECT MAX(\"from\") FROM \"m\" WHERE \"nationality\"='united states' AND \"school_country\"='hamline';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"j\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" text,\n \"school_country\" text\n);\n\nQuestion: Which player is from 2012 and North Carolina?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"j\" WHERE \"from\"='2012' AND \"school_country\"='north carolina';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"j\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" text,\n \"school_country\" text\n);\n\nQuestion: Which player is associated with Temple?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"j\" WHERE \"school_country\"='temple';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"j\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" text,\n \"school_country\" text\n);\n\nQuestion: Which nationality is associated with Temple?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"j\" WHERE \"school_country\"='temple';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"j\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" text,\n \"school_country\" text\n);\n\nQuestion: Which player was a forward/center from 1960?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"j\" WHERE \"from\"='1960' AND \"position\"='forward/center';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"goalscoring\" (\n \"rank\" real,\n \"all_time_rank\" text,\n \"name\" text,\n \"debut_year\" real,\n \"current_club\" text,\n \"goals\" real,\n \"apps\" real\n);\n\nQuestion: How many goals were achieved when Chievo was the club and the debut year was before 2002?" }, { "role": "assistant", "content": "SELECT COUNT(\"goals\") FROM \"goalscoring\" WHERE \"current_club\"='chievo' AND \"debut_year\"<2002;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"goalscoring\" (\n \"rank\" real,\n \"all_time_rank\" text,\n \"name\" text,\n \"debut_year\" real,\n \"current_club\" text,\n \"goals\" real,\n \"apps\" real\n);\n\nQuestion: How many goals occurred with Diego Milito in a debut year later than 2008?" }, { "role": "assistant", "content": "SELECT COUNT(\"goals\") FROM \"goalscoring\" WHERE \"name\"='diego milito' AND \"debut_year\">2008;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"goalscoring\" (\n \"rank\" real,\n \"all_time_rank\" text,\n \"name\" text,\n \"debut_year\" real,\n \"current_club\" text,\n \"goals\" real,\n \"apps\" real\n);\n\nQuestion: Which value for Apps is associated with the all-time rank of 53?" }, { "role": "assistant", "content": "SELECT \"apps\" FROM \"goalscoring\" WHERE \"all_time_rank\"='53';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_8\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who is the home team at the Punt Road Oval?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_8\" WHERE \"venue\"='punt road oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_8\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who is the away team at Windy Hill?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_8\" WHERE \"venue\"='windy hill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the date of the game that had a crowd larger than 25,000?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_18\" WHERE \"crowd\">'25,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was South Melbourne's score as the home team?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_18\" WHERE \"home_team\"='south melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the away team when the home team scored 13.12 (90)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_18\" WHERE \"home_team_score\"='13.12 (90)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the date of the game where the home team scored 7.7 (49)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_18\" WHERE \"home_team_score\"='7.7 (49)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the largest crowd of a game where Collingwood was the away team?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_18\" WHERE \"away_team\"='collingwood';" } ]
[ { "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's the lowest round with the opponent John Howard that had a method of Decision (unanimous)?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"method\"='decision (unanimous)' AND \"opponent\"='john howard';" } ]
[ { "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's the time for the match with a record of 2-0?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"mixed_martial_arts_record\" WHERE \"record\"='2-0';" } ]
[ { "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: Where was the match with a method of submission (standing guillotine choke)?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='submission (standing guillotine choke)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"united_kingdom\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: What language is the moviein that is on UMP movies network through Sky service?" }, { "role": "assistant", "content": "SELECT \"language\" FROM \"united_kingdom\" WHERE \"genre\"='movies' AND \"service\"='sky' AND \"network\"='ump movies';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"united_kingdom\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: What language is the movie in that is on SAB network through Sky service?" }, { "role": "assistant", "content": "SELECT \"language\" FROM \"united_kingdom\" WHERE \"network\"='sab' AND \"service\"='sky';" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What was the overall pick for the player who was a guard and had a round less than 9?" }, { "role": "assistant", "content": "SELECT AVG(\"overall\") FROM \"nfl_draft\" WHERE \"position\"='guard' AND \"round\"<9;" } ]
[ { "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 \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What was the lowest round number that had an overall pick up 92?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"nfl_draft\" WHERE \"overall\"=92;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"published_films\" (\n \"type\" text,\n \"released\" text,\n \"cc_license\" text,\n \"sources_available\" text,\n \"open_source_movie\" text,\n \"commercial_reuse\" text\n);\n\nQuestion: What open source movie has a CC License of by-nc-sa 1.0?" }, { "role": "assistant", "content": "SELECT \"open_source_movie\" FROM \"published_films\" WHERE \"cc_license\"='by-nc-sa 1.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Which venue had the result 7-1?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"result\"='7-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What date was the Competition of rothmans cup?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"international_goals\" WHERE \"competition\"='rothmans cup';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the result of the Competition of friendly?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"international_goals\" WHERE \"competition\"='friendly';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Which competition was played on 8 June 2005?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"international_goals\" WHERE \"date\"='8 june 2005';" } ]