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 \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Which Game has a Team of at phoenix, and a Score of 107-119?" }, { "role": "assistant", "content": "SELECT COUNT(\"game\") FROM \"playoffs\" WHERE \"team\"='at phoenix' AND \"score\"='107-119';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Which Location Attendance has a Game larger than 5?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"playoffs\" WHERE \"game\">5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Which Team has a Score of 89-123?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"playoffs\" WHERE \"score\"='89-123';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the average Game with a Date that is june 14?" }, { "role": "assistant", "content": "SELECT AVG(\"game\") FROM \"playoffs\" WHERE \"date\"='june 14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the Record with a Team that is detroit and a Date that is june 10?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"playoffs\" WHERE \"team\"='detroit' AND \"date\"='june 10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the Location Attendance with a Record that is 1-4?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"playoffs\" WHERE \"record\"='1-4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"country\" text,\n \"area_km\" text,\n \"population_2011_est\" text,\n \"population_density_per_km\" text,\n \"gdp_ppp_m_usd\" text\n);\n\nQuestion: How much is the GDP for a population density of 254.7?" }, { "role": "assistant", "content": "SELECT \"gdp_ppp_m_usd\" FROM \"demographics\" WHERE \"population_density_per_km\"='254.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"country\" text,\n \"area_km\" text,\n \"population_2011_est\" text,\n \"population_density_per_km\" text,\n \"gdp_ppp_m_usd\" text\n);\n\nQuestion: Which country has a population density of 50.3?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"demographics\" WHERE \"population_density_per_km\"='50.3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"country\" text,\n \"area_km\" text,\n \"population_2011_est\" text,\n \"population_density_per_km\" text,\n \"gdp_ppp_m_usd\" text\n);\n\nQuestion: How much is the GDP for an area of 61,395?" }, { "role": "assistant", "content": "SELECT \"gdp_ppp_m_usd\" FROM \"demographics\" WHERE \"area_km\"='61,395';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"country\" text,\n \"area_km\" text,\n \"population_2011_est\" text,\n \"population_density_per_km\" text,\n \"gdp_ppp_m_usd\" text\n);\n\nQuestion: How much is the population density with a GDP at $188,112?" }, { "role": "assistant", "content": "SELECT \"population_density_per_km\" FROM \"demographics\" WHERE \"gdp_ppp_m_usd\"='$188,112';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"country\" text,\n \"area_km\" text,\n \"population_2011_est\" text,\n \"population_density_per_km\" text,\n \"gdp_ppp_m_usd\" text\n);\n\nQuestion: How much is the GDP for an area of 116?" }, { "role": "assistant", "content": "SELECT \"gdp_ppp_m_usd\" FROM \"demographics\" WHERE \"area_km\"='116';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"country\" text,\n \"area_km\" text,\n \"population_2011_est\" text,\n \"population_density_per_km\" text,\n \"gdp_ppp_m_usd\" text\n);\n\nQuestion: Which country has a population of 3,221,216?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"demographics\" WHERE \"population_2011_est\"='3,221,216';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"tournament\" text,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"top_25\" real,\n \"events\" real,\n \"cuts_made\" real\n);\n\nQuestion: What was Miller Barber wins with Top-5 less than 2 and 19 Events?" }, { "role": "assistant", "content": "SELECT COUNT(\"wins\") FROM \"summary\" WHERE \"top_5\"<2 AND \"events\"=19;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"tournament\" text,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"top_25\" real,\n \"events\" real,\n \"cuts_made\" real\n);\n\nQuestion: What is the average number of Wins in a PGA Championship with a Top-5 less than 2?" }, { "role": "assistant", "content": "SELECT AVG(\"wins\") FROM \"summary\" WHERE \"tournament\"='pga championship' AND \"top_5\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"tournament\" text,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"top_25\" real,\n \"events\" real,\n \"cuts_made\" real\n);\n\nQuestion: What is the highest Top-5 ranking with Events less than 4?" }, { "role": "assistant", "content": "SELECT MAX(\"top_5\") FROM \"summary\" WHERE \"events\"<4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Which week's game was attended by 65,272 people?" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"schedule\" WHERE \"attendance\"='65,272';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: How many people attended the game in week 13?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"week\"=13;" } ]
[ { "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: During which week was the earliest game with an attendance of 65,904 people?" }, { "role": "assistant", "content": "SELECT MIN(\"week\") FROM \"schedule\" WHERE \"attendance\"='65,904';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_roster\" (\n \"nationality\" text,\n \"player\" text,\n \"birth_date\" text,\n \"height\" real,\n \"position\" text\n);\n\nQuestion: What height is the tallest for an outside hitter?" }, { "role": "assistant", "content": "SELECT MAX(\"height\") FROM \"team_roster\" WHERE \"position\"='outside hitter';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the highest silver rank with a total of 27?" }, { "role": "assistant", "content": "SELECT MAX(\"silver\") FROM \"medal_table\" WHERE \"total\"=27;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the total number of Silver when Bronze was smaller than 1 with a total smaller than 2 in Bulgaria?" }, { "role": "assistant", "content": "SELECT COUNT(\"silver\") FROM \"medal_table\" WHERE \"bronze\"<1 AND \"total\"<2 AND \"nation\"='bulgaria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"operation\" (\n \"maximum_ceiling_temperature\" text,\n \"temperature_rating\" text,\n \"temperature_classification\" text,\n \"color_code_with_fusible_link\" text,\n \"glass_bulb_color\" text\n);\n\nQuestion: What is the temperature classification of a purple colored glass bulb?" }, { "role": "assistant", "content": "SELECT \"temperature_classification\" FROM \"operation\" WHERE \"glass_bulb_color\"='purple';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"operation\" (\n \"maximum_ceiling_temperature\" text,\n \"temperature_rating\" text,\n \"temperature_classification\" text,\n \"color_code_with_fusible_link\" text,\n \"glass_bulb_color\" text\n);\n\nQuestion: What is the color code with a temperature classification of ordinary?" }, { "role": "assistant", "content": "SELECT \"color_code_with_fusible_link\" FROM \"operation\" WHERE \"temperature_classification\"='ordinary';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"operation\" (\n \"maximum_ceiling_temperature\" text,\n \"temperature_rating\" text,\n \"temperature_classification\" text,\n \"color_code_with_fusible_link\" text,\n \"glass_bulb_color\" text\n);\n\nQuestion: What is the temperature rating of the intermediate temperature classification?" }, { "role": "assistant", "content": "SELECT \"temperature_rating\" FROM \"operation\" WHERE \"temperature_classification\"='intermediate';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_career_stats\" (\n \"season\" text,\n \"team\" text,\n \"country\" text,\n \"league\" text,\n \"level\" real,\n \"apps\" real,\n \"goals\" real\n);\n\nQuestion: What is the average Goals for team Kairat, in the 2002 season with more than 29 apps?" }, { "role": "assistant", "content": "SELECT AVG(\"goals\") FROM \"club_career_stats\" WHERE \"team\"='kairat' AND \"season\"='2002' AND \"apps\">29;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_career_stats\" (\n \"season\" text,\n \"team\" text,\n \"country\" text,\n \"league\" text,\n \"level\" real,\n \"apps\" real,\n \"goals\" real\n);\n\nQuestion: What is the Country for the 2006-07 season?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"club_career_stats\" WHERE \"season\"='2006-07';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_career_stats\" (\n \"season\" text,\n \"team\" text,\n \"country\" text,\n \"league\" text,\n \"level\" real,\n \"apps\" real,\n \"goals\" real\n);\n\nQuestion: What is the average Apps for the team Kairat with level larger than 1?" }, { "role": "assistant", "content": "SELECT AVG(\"apps\") FROM \"club_career_stats\" WHERE \"team\"='kairat' AND \"level\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superbike_race_2_classification\" (\n \"rider\" text,\n \"bike\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: How many laps did the rider with a grid larger than 11, a Honda cbr1000rr bike, and a time of +42.633?" }, { "role": "assistant", "content": "SELECT \"laps\" FROM \"superbike_race_2_classification\" WHERE \"grid\">11 AND \"bike\"='honda cbr1000rr' AND \"time\"='+42.633';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superbike_race_2_classification\" (\n \"rider\" text,\n \"bike\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: Who was teh rider with 18 laps and a grid of 25?" }, { "role": "assistant", "content": "SELECT \"rider\" FROM \"superbike_race_2_classification\" WHERE \"laps\"=18 AND \"grid\"=25;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superbike_race_2_classification\" (\n \"rider\" text,\n \"bike\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: Who was the rider who had an accident time and a kawasaki zx-10r bike?" }, { "role": "assistant", "content": "SELECT \"rider\" FROM \"superbike_race_2_classification\" WHERE \"time\"='accident' AND \"bike\"='kawasaki zx-10r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superbike_race_2_classification\" (\n \"rider\" text,\n \"bike\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: What is the time of rider Loic Napoleone, who had less than 18 laps and a grid greater than 8?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"superbike_race_2_classification\" WHERE \"laps\"<18 AND \"grid\">8 AND \"rider\"='loic napoleone';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"superbike_race_2_classification\" (\n \"rider\" text,\n \"bike\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: How many laps did the rider with a grid larger than 14 and a time of +33.150 have?" }, { "role": "assistant", "content": "SELECT \"laps\" FROM \"superbike_race_2_classification\" WHERE \"grid\">14 AND \"time\"='+33.150';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"away\" text,\n \"score\" text,\n \"ground\" text\n);\n\nQuestion: What is Away, when Home is Guelph Gargoyles?" }, { "role": "assistant", "content": "SELECT \"away\" FROM \"round_one\" WHERE \"home\"='guelph gargoyles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"away\" text,\n \"score\" text,\n \"ground\" text\n);\n\nQuestion: What is Home, when Ground is Humber College North, and when Time is 15:00?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"round_one\" WHERE \"ground\"='humber college north' AND \"time\"='15:00';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"away\" text,\n \"score\" text,\n \"ground\" text\n);\n\nQuestion: What is Date, when Away is High Park Demons?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_one\" WHERE \"away\"='high park demons';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"away\" text,\n \"score\" text,\n \"ground\" text\n);\n\nQuestion: What is Date, when Away is High Park Demons?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_one\" WHERE \"away\"='high park demons';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"date\" text,\n \"time\" text,\n \"home\" text,\n \"away\" text,\n \"score\" text,\n \"ground\" text\n);\n\nQuestion: What is Time, when Away is Central Blues?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"round_one\" WHERE \"away\"='central blues';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"collections\" (\n \"volume\" text,\n \"series\" text,\n \"title\" text,\n \"cover\" text,\n \"published\" text,\n \"isbn\" text\n);\n\nQuestion: What cover has a published date of May 27, 2009 (hc) May 20, 2009 (tpb)?" }, { "role": "assistant", "content": "SELECT \"cover\" FROM \"collections\" WHERE \"published\"='may 27, 2009 (hc) may 20, 2009 (tpb)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"collections\" (\n \"volume\" text,\n \"series\" text,\n \"title\" text,\n \"cover\" text,\n \"published\" text,\n \"isbn\" text\n);\n\nQuestion: What is the number of the volume that has an ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)?" }, { "role": "assistant", "content": "SELECT \"volume\" FROM \"collections\" WHERE \"isbn\"='978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"collections\" (\n \"volume\" text,\n \"series\" text,\n \"title\" text,\n \"cover\" text,\n \"published\" text,\n \"isbn\" text\n);\n\nQuestion: What is the name of the series with an ISBN of 978-1-59582-523-0 (tpb)?" }, { "role": "assistant", "content": "SELECT \"series\" FROM \"collections\" WHERE \"isbn\"='978-1-59582-523-0 (tpb)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"collections\" (\n \"volume\" text,\n \"series\" text,\n \"title\" text,\n \"cover\" text,\n \"published\" text,\n \"isbn\" text\n);\n\nQuestion: What volume number has the ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)?" }, { "role": "assistant", "content": "SELECT \"volume\" FROM \"collections\" WHERE \"isbn\"='978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"collections\" (\n \"volume\" text,\n \"series\" text,\n \"title\" text,\n \"cover\" text,\n \"published\" text,\n \"isbn\" text\n);\n\nQuestion: What is the ISBN of the Conan the Barbarian series that has the title of Queen of the Black Coast?" }, { "role": "assistant", "content": "SELECT \"isbn\" FROM \"collections\" WHERE \"series\"='conan the barbarian' AND \"title\"='queen of the black coast';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"collections\" (\n \"volume\" text,\n \"series\" text,\n \"title\" text,\n \"cover\" text,\n \"published\" text,\n \"isbn\" text\n);\n\nQuestion: What cover has Throne of Aquilonia as the title?" }, { "role": "assistant", "content": "SELECT \"cover\" FROM \"collections\" WHERE \"title\"='throne of aquilonia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assists\" (\n \"rank\" real,\n \"name\" text,\n \"team\" text,\n \"games\" real,\n \"assists\" real\n);\n\nQuestion: With a Rank of less than 4, what is Pablo Prigioni's total number of Games?" }, { "role": "assistant", "content": "SELECT COUNT(\"games\") FROM \"assists\" WHERE \"name\"='pablo prigioni' AND \"rank\"<4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assists\" (\n \"rank\" real,\n \"name\" text,\n \"team\" text,\n \"games\" real,\n \"assists\" real\n);\n\nQuestion: How many Assists for the Player with more than 25 Games?" }, { "role": "assistant", "content": "SELECT SUM(\"assists\") FROM \"assists\" WHERE \"games\">25;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assists\" (\n \"rank\" real,\n \"name\" text,\n \"team\" text,\n \"games\" real,\n \"assists\" real\n);\n\nQuestion: What is the Rank of the Maccabi Tel Aviv Player with 25 Games?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"assists\" WHERE \"games\"=25 AND \"team\"='maccabi tel aviv';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assists\" (\n \"rank\" real,\n \"name\" text,\n \"team\" text,\n \"games\" real,\n \"assists\" real\n);\n\nQuestion: How many Assists for the Player with a Rank greater than 3 in less than 25 Games?" }, { "role": "assistant", "content": "SELECT AVG(\"assists\") FROM \"assists\" WHERE \"rank\">3 AND \"games\"<25;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assists\" (\n \"rank\" real,\n \"name\" text,\n \"team\" text,\n \"games\" real,\n \"assists\" real\n);\n\nQuestion: How many Games for Rank 2 Terrell McIntyre?" }, { "role": "assistant", "content": "SELECT MIN(\"games\") FROM \"assists\" WHERE \"name\"='terrell mcintyre' AND \"rank\">2;" } ]
[ { "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 is the Venue of the Heptathlon after 2006 where Tatyana Chernova comes in Position 7th?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"achievements\" WHERE \"year\">2006 AND \"position\"='7th' AND \"notes\"='heptathlon';" } ]
[ { "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: In what Year did Chernova come in 1st in G\u00f6tzis, Austria?" }, { "role": "assistant", "content": "SELECT SUM(\"year\") FROM \"achievements\" WHERE \"venue\"='g\u00f6tzis, austria' AND \"position\"='1st';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2003\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text\n);\n\nQuestion: Which Cover Model was featured on 8-03?" }, { "role": "assistant", "content": "SELECT \"cover_model\" FROM \"2003\" WHERE \"date\"='8-03';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2003\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text\n);\n\nQuestion: Who was the Centerfold model when O.J. Simpson was the Interview Subject?" }, { "role": "assistant", "content": "SELECT \"centerfold_model\" FROM \"2003\" WHERE \"interview_subject\"='o.j. simpson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2003\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text\n);\n\nQuestion: Who was the Cover model when the Centerfold Model was Marketa Janska?" }, { "role": "assistant", "content": "SELECT \"cover_model\" FROM \"2003\" WHERE \"centerfold_model\"='marketa janska';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2003\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text\n);\n\nQuestion: Who was the Cover model on 11-03?" }, { "role": "assistant", "content": "SELECT \"cover_model\" FROM \"2003\" WHERE \"date\"='11-03';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2003\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text\n);\n\nQuestion: Who was the Centerfold Model on 9-03?" }, { "role": "assistant", "content": "SELECT \"centerfold_model\" FROM \"2003\" WHERE \"date\"='9-03';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2003\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text\n);\n\nQuestion: Who was the Interview Subject when the 20 Questions was William H. Macy?" }, { "role": "assistant", "content": "SELECT \"interview_subject\" FROM \"2003\" WHERE \"20_questions\"='william h. macy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_class\" (\n \"round\" real,\n \"selection\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many rounds had a selection of 165?" }, { "role": "assistant", "content": "SELECT SUM(\"round\") FROM \"draft_class\" WHERE \"selection\"=165;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_united_states_national_ice_hocke\" (\n \"position\" text,\n \"jersey_num\" real,\n \"name\" text,\n \"height_cm\" real,\n \"weight_kg\" real,\n \"birthdate\" text,\n \"birthplace\" text,\n \"1990_1991_team\" text\n);\n\nQuestion: What is the highest Weight for the position of D, and the 1990\u20131991 Team was the chicago blackhawks?" }, { "role": "assistant", "content": "SELECT MAX(\"weight_kg\") FROM \"list_of_united_states_national_ice_hocke\" WHERE \"position\"='d' AND \"1990_1991_team\"='chicago blackhawks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_united_states_national_ice_hocke\" (\n \"position\" text,\n \"jersey_num\" real,\n \"name\" text,\n \"height_cm\" real,\n \"weight_kg\" real,\n \"birthdate\" text,\n \"birthplace\" text,\n \"1990_1991_team\" text\n);\n\nQuestion: What is the average Height for the Position of d, with a Birthplace of new hope, minnesota?" }, { "role": "assistant", "content": "SELECT AVG(\"height_cm\") FROM \"list_of_united_states_national_ice_hocke\" WHERE \"position\"='d' AND \"birthplace\"='new hope, minnesota';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_united_states_national_ice_hocke\" (\n \"position\" text,\n \"jersey_num\" real,\n \"name\" text,\n \"height_cm\" real,\n \"weight_kg\" real,\n \"birthdate\" text,\n \"birthplace\" text,\n \"1990_1991_team\" text\n);\n\nQuestion: What is the 1990\u20131991 Team when the Birthplace shows as new york?" }, { "role": "assistant", "content": "SELECT \"1990_1991_team\" FROM \"list_of_united_states_national_ice_hocke\" WHERE \"birthplace\"='new york';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_united_states_national_ice_hocke\" (\n \"position\" text,\n \"jersey_num\" real,\n \"name\" text,\n \"height_cm\" real,\n \"weight_kg\" real,\n \"birthdate\" text,\n \"birthplace\" text,\n \"1990_1991_team\" text\n);\n\nQuestion: What is the Position when the person's birthplace was toledo, ohio?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"list_of_united_states_national_ice_hocke\" WHERE \"birthplace\"='toledo, ohio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_united_states_national_ice_hocke\" (\n \"position\" text,\n \"jersey_num\" real,\n \"name\" text,\n \"height_cm\" real,\n \"weight_kg\" real,\n \"birthdate\" text,\n \"birthplace\" text,\n \"1990_1991_team\" text\n);\n\nQuestion: What is the 1990\u20131991 Team that had Joel Otto?" }, { "role": "assistant", "content": "SELECT \"1990_1991_team\" FROM \"list_of_united_states_national_ice_hocke\" WHERE \"name\"='joel otto';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gp2_series\" (\n \"year\" real,\n \"drivers\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_l\" real,\n \"points\" real,\n \"d_c\" text,\n \"t_c\" text\n);\n\nQuestion: Which T.C. has a Year larger than 2007, and a D.C. of 21st?" }, { "role": "assistant", "content": "SELECT \"t_c\" FROM \"gp2_series\" WHERE \"year\">2007 AND \"d_c\"='21st';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gp2_series\" (\n \"year\" real,\n \"drivers\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_l\" real,\n \"points\" real,\n \"d_c\" text,\n \"t_c\" text\n);\n\nQuestion: What kind of D.C. has Races smaller than 20, and Points larger than 0, and Drivers of christian vietoris, and Wins of 1?" }, { "role": "assistant", "content": "SELECT \"d_c\" FROM \"gp2_series\" WHERE \"races\"<20 AND \"points\">0 AND \"drivers\"='christian vietoris' AND \"wins\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gp2_series\" (\n \"year\" real,\n \"drivers\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_l\" real,\n \"points\" real,\n \"d_c\" text,\n \"t_c\" text\n);\n\nQuestion: Which Races has a T.C. of 3rd, and a D.C. of 7th?" }, { "role": "assistant", "content": "SELECT MIN(\"races\") FROM \"gp2_series\" WHERE \"t_c\"='3rd' AND \"d_c\"='7th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2007 of the Grand Slam Tournaments in 2008?" }, { "role": "assistant", "content": "SELECT \"2007\" FROM \"singles_performance_timeline\" WHERE \"2008\"='grand slam tournaments';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the Tournament with a 3r 2011 and A 2010?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_performance_timeline\" WHERE \"2011\"='3r' AND \"2010\"='a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2008 of the 2r 2011 and A 2010?" }, { "role": "assistant", "content": "SELECT \"2008\" FROM \"singles_performance_timeline\" WHERE \"2011\"='2r' AND \"2010\"='a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2010 of the Grand Slam Tournaments in 2011?" }, { "role": "assistant", "content": "SELECT \"2010\" FROM \"singles_performance_timeline\" WHERE \"2011\"='grand slam tournaments';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_by_club\" (\n \"club\" text,\n \"winners\" real,\n \"runners_up\" real,\n \"winning_years\" text,\n \"runner_up_years\" text\n);\n\nQuestion: What is the total number of runners-up for a club with winning years of 2010?" }, { "role": "assistant", "content": "SELECT COUNT(\"runners_up\") FROM \"performance_by_club\" WHERE \"winning_years\"='2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performance_by_club\" (\n \"club\" text,\n \"winners\" real,\n \"runners_up\" real,\n \"winning_years\" text,\n \"runner_up_years\" text\n);\n\nQuestion: Who were the runners-up for the FC Viktoria Plze\u0148 club?" }, { "role": "assistant", "content": "SELECT \"runners_up\" FROM \"performance_by_club\" WHERE \"club\"='fc viktoria plze\u0148';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"district\" text,\n \"con_gress\" text,\n \"date\" text,\n \"predecessor\" text,\n \"winner\" text\n);\n\nQuestion: Which congress was held in 2010?" }, { "role": "assistant", "content": "SELECT \"con_gress\" FROM \"list\" WHERE \"date\"='2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alloys_for_mechanical_composition\" (\n \"usage\" text,\n \"sn_sb_pct\" text,\n \"liquid_at_c\" text,\n \"casting_at_c\" text,\n \"remelting_at_c\" text,\n \"hardness\" text\n);\n\nQuestion: What is the casting temperature for a hardness of 22?" }, { "role": "assistant", "content": "SELECT \"casting_at_c\" FROM \"alloys_for_mechanical_composition\" WHERE \"hardness\"='22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alloys_for_mechanical_composition\" (\n \"usage\" text,\n \"sn_sb_pct\" text,\n \"liquid_at_c\" text,\n \"casting_at_c\" text,\n \"remelting_at_c\" text,\n \"hardness\" text\n);\n\nQuestion: What is the hardness for the alloy that is liquid at 243 degrees C?" }, { "role": "assistant", "content": "SELECT \"hardness\" FROM \"alloys_for_mechanical_composition\" WHERE \"liquid_at_c\"='243';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alloys_for_mechanical_composition\" (\n \"usage\" text,\n \"sn_sb_pct\" text,\n \"liquid_at_c\" text,\n \"casting_at_c\" text,\n \"remelting_at_c\" text,\n \"hardness\" text\n);\n\nQuestion: What is the Sn/Sb percentage that is liquid at 258 degrees C?" }, { "role": "assistant", "content": "SELECT \"sn_sb_pct\" FROM \"alloys_for_mechanical_composition\" WHERE \"liquid_at_c\"='258';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alloys_for_mechanical_composition\" (\n \"usage\" text,\n \"sn_sb_pct\" text,\n \"liquid_at_c\" text,\n \"casting_at_c\" text,\n \"remelting_at_c\" text,\n \"hardness\" text\n);\n\nQuestion: What is the remelting temperature for the alloy that has a Sn/Sb ratio of 9.5/15?" }, { "role": "assistant", "content": "SELECT \"remelting_at_c\" FROM \"alloys_for_mechanical_composition\" WHERE \"sn_sb_pct\"='9.5/15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alloys_for_mechanical_composition\" (\n \"usage\" text,\n \"sn_sb_pct\" text,\n \"liquid_at_c\" text,\n \"casting_at_c\" text,\n \"remelting_at_c\" text,\n \"hardness\" text\n);\n\nQuestion: What is the casting temperature for the alloy with hardness 21?" }, { "role": "assistant", "content": "SELECT \"casting_at_c\" FROM \"alloys_for_mechanical_composition\" WHERE \"hardness\"='21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What's the most laps when grid is 16?" }, { "role": "assistant", "content": "SELECT MAX(\"laps\") FROM \"race\" WHERE \"grid\"=16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: How many laps were there for a grid of 13?" }, { "role": "assistant", "content": "SELECT COUNT(\"laps\") FROM \"race\" WHERE \"grid\"=13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"giants_points\" text,\n \"opponents_points\" text,\n \"record\" text,\n \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: How many points did the Giants get when attendance was 78,673?" }, { "role": "assistant", "content": "SELECT \"giants_points\" FROM \"schedule\" WHERE \"attendance\"='78,673';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"giants_points\" text,\n \"opponents_points\" text,\n \"record\" text,\n \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: What was the result when the opponents got 15 points?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponents_points\"='15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"giants_points\" text,\n \"opponents_points\" text,\n \"record\" text,\n \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: What was the TV time for the game where the Giants had 14 points?" }, { "role": "assistant", "content": "SELECT \"tv_time\" FROM \"schedule\" WHERE \"giants_points\"='14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: How many weeks had an attendance at 69,149?" }, { "role": "assistant", "content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"attendance\"='69,149';" } ]
[ { "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: On what date did week 6 occur?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\"=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\" text\n);\n\nQuestion: Who was the opponent on December 18, 2005?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='december 18, 2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tennent_s_scottish_cup\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the date of the game against the Queen of the South attended by more than 14,176?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"tennent_s_scottish_cup\" WHERE \"attendance\">'14,176' AND \"opponent\"='queen of the south';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"time\" text,\n \"game_site\" text,\n \"result_score\" text,\n \"record\" text,\n \"match_report\" text\n);\n\nQuestion: What is the result/score for the match report recap on week 14?" }, { "role": "assistant", "content": "SELECT \"result_score\" FROM \"regular_season\" WHERE \"match_report\"='recap' AND \"week\"=14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"time\" text,\n \"game_site\" text,\n \"result_score\" text,\n \"record\" text,\n \"match_report\" text\n);\n\nQuestion: How many weeks have w 51-29 as the result/score?" }, { "role": "assistant", "content": "SELECT SUM(\"week\") FROM \"regular_season\" WHERE \"result_score\"='w 51-29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"time\" text,\n \"game_site\" text,\n \"result_score\" text,\n \"record\" text,\n \"match_report\" text\n);\n\nQuestion: What is the result/score that has 6-5 as the record?" }, { "role": "assistant", "content": "SELECT \"result_score\" FROM \"regular_season\" WHERE \"record\"='6-5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"time\" text,\n \"game_site\" text,\n \"result_score\" text,\n \"record\" text,\n \"match_report\" text\n);\n\nQuestion: Which match report has l 7-30 as the result/score?" }, { "role": "assistant", "content": "SELECT \"match_report\" FROM \"regular_season\" WHERE \"result_score\"='l 7-30';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"time\" text,\n \"game_site\" text,\n \"result_score\" text,\n \"record\" text,\n \"match_report\" text\n);\n\nQuestion: Which game site has a recap as the match report for week 7?" }, { "role": "assistant", "content": "SELECT \"game_site\" FROM \"regular_season\" WHERE \"match_report\"='recap' AND \"week\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"steel_challenge_men_s_world_records\" (\n \"stage\" text,\n \"shooter\" text,\n \"time\" real,\n \"avg_run\" real,\n \"year\" real\n);\n\nQuestion: Which shooter's time is more than 8.97 and has a year prior to 2013?" }, { "role": "assistant", "content": "SELECT \"shooter\" FROM \"steel_challenge_men_s_world_records\" WHERE \"time\">8.97 AND \"year\"<2013;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"date\" text,\n \"race\" text,\n \"country\" text,\n \"winner\" text,\n \"team\" text,\n \"world_cup_leader\" text,\n \"leader_s_team\" text\n);\n\nQuestion: What country was the race in on April 27?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"races\" WHERE \"date\"='april 27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"date\" text,\n \"race\" text,\n \"country\" text,\n \"winner\" text,\n \"team\" text,\n \"world_cup_leader\" text,\n \"leader_s_team\" text\n);\n\nQuestion: What is the name of the leader's team when the race was in France on October 5?" }, { "role": "assistant", "content": "SELECT \"leader_s_team\" FROM \"races\" WHERE \"country\"='france' AND \"date\"='october 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"date\" text,\n \"race\" text,\n \"country\" text,\n \"winner\" text,\n \"team\" text,\n \"world_cup_leader\" text,\n \"leader_s_team\" text\n);\n\nQuestion: What is the name of the team leading on August 17?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"races\" WHERE \"date\"='august 17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"date\" text,\n \"race\" text,\n \"country\" text,\n \"winner\" text,\n \"team\" text,\n \"world_cup_leader\" text,\n \"leader_s_team\" text\n);\n\nQuestion: In the Ronde Van Vlaanderen race what is the leader's team?" }, { "role": "assistant", "content": "SELECT \"leader_s_team\" FROM \"races\" WHERE \"race\"='ronde van vlaanderen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"date\" text,\n \"race\" text,\n \"country\" text,\n \"winner\" text,\n \"team\" text,\n \"world_cup_leader\" text,\n \"leader_s_team\" text\n);\n\nQuestion: What is the name of the race when Quick Step-Davitamon is the leader's team and the team of team telekom?" }, { "role": "assistant", "content": "SELECT \"race\" FROM \"races\" WHERE \"leader_s_team\"='quick step-davitamon' AND \"team\"='team telekom';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ranking_round\" (\n \"final_rank\" real,\n \"ranking_round_rank\" real,\n \"nation\" text,\n \"ranking_score\" real,\n \"round_of_16\" text\n);\n\nQuestion: What is the highest Ranking Round Rank for Russia with a Final Rank over 11?" }, { "role": "assistant", "content": "SELECT MAX(\"ranking_round_rank\") FROM \"ranking_round\" WHERE \"nation\"='russia' AND \"final_rank\">11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"po_prostu_taniec_just_dance\" (\n \"team\" text,\n \"dance\" text,\n \"music\" text,\n \"points_jury\" text,\n \"place\" text\n);\n\nQuestion: Which Music has a Points Jury of 18 (5,5,4,4)?" }, { "role": "assistant", "content": "SELECT \"music\" FROM \"po_prostu_taniec_just_dance\" WHERE \"points_jury\"='18 (5,5,4,4)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"po_prostu_taniec_just_dance\" (\n \"team\" text,\n \"dance\" text,\n \"music\" text,\n \"points_jury\" text,\n \"place\" text\n);\n\nQuestion: What is the Music if the Dance is Jive?" }, { "role": "assistant", "content": "SELECT \"music\" FROM \"po_prostu_taniec_just_dance\" WHERE \"dance\"='jive';" } ]