text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "points" text, "position" text ); Question: What is the fewest number of wins when he has 3 poles in 2010? <|assistant|> SELECT MIN("wins") FROM "career_summary" WHERE "poles"=3 AND "season"='2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_organizations" ( "favorite_professional_sport" text, "2005" text, "2008" text, "2011" text, "2012" text ); Question: What's listed for the 2012 that has a 2011 of 7.7% with a 2008 of 7.9%? <|assistant|> SELECT "2012" FROM "professional_organizations" WHERE "2011"='7.7%' AND "2008"='7.9%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_organizations" ( "favorite_professional_sport" text, "2005" text, "2008" text, "2011" text, "2012" text ); Question: What is listed for the 2011 that has a 2005 of 4.2%? <|assistant|> SELECT "2011" FROM "professional_organizations" WHERE "2005"='4.2%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_organizations" ( "favorite_professional_sport" text, "2005" text, "2008" text, "2011" text, "2012" text ); Question: What is listed for the 2012 that has a 2011 of 28.9%? <|assistant|> SELECT "2012" FROM "professional_organizations" WHERE "2011"='28.9%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_organizations" ( "favorite_professional_sport" text, "2005" text, "2008" text, "2011" text, "2012" text ); Question: What is listed for the 2005 that has a 2012 of 4.2%? <|assistant|> SELECT "2005" FROM "professional_organizations" WHERE "2012"='4.2%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_organizations" ( "favorite_professional_sport" text, "2005" text, "2008" text, "2011" text, "2012" text ); Question: What is listed the Favorite Professional Sport that's got a 2005 of 17.1%? <|assistant|> SELECT "favorite_professional_sport" FROM "professional_organizations" WHERE "2005"='17.1%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_organizations" ( "favorite_professional_sport" text, "2005" text, "2008" text, "2011" text, "2012" text ); Question: What is listed as the Favorite Professional Sport that has a 2008 of 8.9%? <|assistant|> SELECT "favorite_professional_sport" FROM "professional_organizations" WHERE "2008"='8.9%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the score of the game that led to a 79-77 record? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='79-77';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the record after the game in which Rosales (1-1) took the loss? <|assistant|> SELECT "record" FROM "game_log" WHERE "loss"='rosales (1-1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "living_canadian_supercentenarians" ( "name" text, "birth_date" text, "age_as_of_1_february_2014" text, "province_or_country_of_birth" text, "province_of_residence" text ); Question: Which supercentenarians were born in Manitoba? <|assistant|> SELECT "name" FROM "living_canadian_supercentenarians" WHERE "province_or_country_of_birth"='manitoba';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "living_canadian_supercentenarians" ( "name" text, "birth_date" text, "age_as_of_1_february_2014" text, "province_or_country_of_birth" text, "province_of_residence" text ); Question: What is the average age as of February 1, 2014 for the supercentenarians born in the United States? <|assistant|> SELECT "age_as_of_1_february_2014" FROM "living_canadian_supercentenarians" WHERE "province_or_country_of_birth"='united states';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); Question: Which 2010 Tournament has a 2001 of grand slam tournaments? <|assistant|> SELECT "2010" FROM "singles" WHERE "2001"='grand slam tournaments';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); Question: Which 2006 Tournament has a 2004, and a 2002 of not tier i? <|assistant|> SELECT "2006" FROM "singles" WHERE "2004"='a' AND "2002"='not tier i';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); Question: Which 2008 Tournament has a 2007 of a and a 2010 of qf? <|assistant|> SELECT "2008" FROM "singles" WHERE "2007"='a' AND "2010"='qf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); Question: Which Tournament has a 2002 of grand slam tournaments? <|assistant|> SELECT "tournament" FROM "singles" WHERE "2002"='grand slam tournaments';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); Question: Which 2000 Tournament has a 2002 of not tier i, and a 2006 of 2r? <|assistant|> SELECT "2000" FROM "singles" WHERE "2002"='not tier i' AND "2006"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_mandarin_satellite_television" ( "name" text, "hanzi" text, "language" text, "launch" real, "owner" text ); Question: Which language's launch was in 2006 when then hanzi was 青海电视台藏语综合频道? <|assistant|> SELECT "language" FROM "non_mandarin_satellite_television" WHERE "launch"=2006 AND "hanzi"='青海电视台藏语综合频道';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_mandarin_satellite_television" ( "name" text, "hanzi" text, "language" text, "launch" real, "owner" text ); Question: Which hanzi's name is nmtv mongolian satellite television? <|assistant|> SELECT "hanzi" FROM "non_mandarin_satellite_television" WHERE "name"='nmtv mongolian satellite television';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_mandarin_satellite_television" ( "name" text, "hanzi" text, "language" text, "launch" real, "owner" text ); Question: Which hanzi's launch is before 2009, when the language was tibetan, and the name was qinghai tibetian general channel? <|assistant|> SELECT "hanzi" FROM "non_mandarin_satellite_television" WHERE "launch"<2009 AND "language"='tibetan' AND "name"='qinghai tibetian general channel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What Team had a 1:24.365 Qual 2? <|assistant|> SELECT "team" FROM "qualifying_results" WHERE "qual_2"='1:24.365';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What Team had a 1:24.152 Best? <|assistant|> SELECT "team" FROM "qualifying_results" WHERE "best"='1:24.152';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What was Robert Doornbos' Best? <|assistant|> SELECT "best" FROM "qualifying_results" WHERE "name"='robert doornbos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What was Alex Figge's Best? <|assistant|> SELECT "best" FROM "qualifying_results" WHERE "name"='alex figge';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What Team had a 1:25.602 Best? <|assistant|> SELECT "team" FROM "qualifying_results" WHERE "best"='1:25.602';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What was the Name of the person with a Qual 1 of 1:26.056? <|assistant|> SELECT "name" FROM "qualifying_results" WHERE "qual_1"='1:26.056';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: How many picks were there for the Bentley team? <|assistant|> SELECT COUNT("pick") FROM "nfl_draft" WHERE "school_club_team"='bentley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What is the largest round number for Dan Connor, the player? <|assistant|> SELECT MAX("round") FROM "nfl_draft" WHERE "player"='dan connor';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What is the largest round number for the dt position when the pick number is bigger than 181? <|assistant|> SELECT MAX("round") FROM "nfl_draft" WHERE "position"='dt' AND "pick">181;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_calendar" ( "date" text, "round" text, "circuit" text, "race_1_winner" text, "race_2_winner" text, "report" text ); Question: what circuit is in italy <|assistant|> SELECT "circuit" FROM "season_calendar" WHERE "round"='italy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text ); Question: What is the average pick for clarence mason? <|assistant|> SELECT AVG("pick") FROM "nfl_draft" WHERE "player"='clarence mason';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: What is the frequency for the city of Lamar, Colorado? <|assistant|> SELECT AVG("frequency_m_hz") FROM "translators" WHERE "city_of_license"='lamar, colorado';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: What is the average ERP W for callsign K207BK? <|assistant|> SELECT AVG("erp_w") FROM "translators" WHERE "call_sign"='k207bk';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: Which callsign has ERP W of 99 and a frequency of greater than 88.7MHz? <|assistant|> SELECT "call_sign" FROM "translators" WHERE "frequency_m_hz">88.7 AND "erp_w"=99;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: Which city has ERP W under 14 and a frequency over 93.7MHz? <|assistant|> SELECT "city_of_license" FROM "translators" WHERE "erp_w"<14 AND "frequency_m_hz">93.7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_28_wisconsin_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: What were the total number of field goals when there were 0 touchdowns and 2 extra points? <|assistant|> SELECT COUNT("field_goals") FROM "michigan_28_wisconsin_0" WHERE "touchdowns"=0 AND "extra_points"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_28_wisconsin_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many field goals did Carter get when he had 0 extra points? <|assistant|> SELECT SUM("field_goals") FROM "michigan_28_wisconsin_0" WHERE "player"='carter' AND "extra_points"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_28_wisconsin_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: What is the highest amount of extra points someone got when they scored 28 points but had 0 field goals? <|assistant|> SELECT MAX("extra_points") FROM "michigan_28_wisconsin_0" WHERE "points"=28 AND "field_goals"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_28_wisconsin_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: What is the average field goal someone has when they have 0 extra points but more than 5 touch downs? <|assistant|> SELECT AVG("field_goals") FROM "michigan_28_wisconsin_0" WHERE "extra_points">0 AND "touchdowns">5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the lowest number of wins with more than 113 points in 4th rank? <|assistant|> SELECT MIN("wins") FROM "grand_prix_career_statistics" WHERE "points">113 AND "rank"='4th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: How many wins had less than 91 points in 25th rank? <|assistant|> SELECT "wins" FROM "grand_prix_career_statistics" WHERE "points"<91 AND "rank"='25th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: How many wins in 1992? <|assistant|> SELECT "wins" FROM "grand_prix_career_statistics" WHERE "year"=1992;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: How many wins occurred for 6th rank? <|assistant|> SELECT COUNT("wins") FROM "grand_prix_career_statistics" WHERE "rank"='6th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); Question: Who was the constructor of the car driven by Heikki Kovalainen? <|assistant|> SELECT "constructor" FROM "race" WHERE "driver"='heikki kovalainen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text ); Question: Which Reg Season has a Division of 2? <|assistant|> SELECT "reg_season" FROM "year_by_year" WHERE "division"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text ); Question: Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2? <|assistant|> SELECT MAX("year") FROM "year_by_year" WHERE "reg_season"='3rd, western' AND "division">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text ); Question: Which year is the lowest one when the playoffs did not qualify? <|assistant|> SELECT MIN("year") FROM "year_by_year" WHERE "playoffs"='did not qualify';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text ); Question: Which Year has a Reg Season of 3rd, western? <|assistant|> SELECT AVG("year") FROM "year_by_year" WHERE "reg_season"='3rd, western';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text ); Question: Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013? <|assistant|> SELECT AVG("division") FROM "year_by_year" WHERE "reg_season"='1st, western' AND "playoffs"='champions' AND "year"<2013;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Who was the opponent during the game that had more than 31,891 people in attendance? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "attendance">'31,891';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the average attendance for the game before week 4 that was on october 16, 1955? <|assistant|> SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 16, 1955' AND "week"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the total number of weeks that were on September 25, 1955 with more than 16,901 people in attendance? <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "attendance">'16,901' AND "date"='september 25, 1955';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Who was the opponent for the game on November 20, 1955? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "date"='november 20, 1955';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "title_history" ( "reign" real, "days_held" text, "location" text, "successful_defenses" real, "event" text ); Question: What is the highest number of successful defenses in brandon, florida and a reign less than 1? <|assistant|> SELECT MAX("successful_defenses") FROM "title_history" WHERE "location"='brandon, florida' AND "reign"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1965" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: What was the date of the game against Norway with a 1:1 result? <|assistant|> SELECT "date" FROM "1965" WHERE "opponent"='norway' AND "results"='1:1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1965" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: What type of game had a 0:0 result? <|assistant|> SELECT "type_of_game" FROM "1965" WHERE "results"='0:0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1965" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: What city held that game with a 5:2 result? <|assistant|> SELECT "city" FROM "1965" WHERE "results"='5:2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); Question: What is the score of the game that has a record of 1-2-1? <|assistant|> SELECT "score" FROM "schedule_and_results" WHERE "record"='1-2-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); Question: What is the team's record in games against the Hartford Whalers? <|assistant|> SELECT "record" FROM "schedule_and_results" WHERE "opponent"='hartford whalers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); Question: What was the Record on Week 13 at the Hoosier Dome? <|assistant|> SELECT "record" FROM "schedule" WHERE "game_site"='hoosier dome' AND "week"=13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); Question: What was the Week on October 18, 1992? <|assistant|> SELECT SUM("week") FROM "schedule" WHERE "date"='october 18, 1992';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What loss has 16-6 as the record? <|assistant|> SELECT "loss" FROM "game_log" WHERE "record"='16-6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What loss has 4-2 as the record? <|assistant|> SELECT "loss" FROM "game_log" WHERE "record"='4-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What attendance has astros as the opponent, and april 29 as the date? <|assistant|> SELECT SUM("attendance") FROM "game_log" WHERE "opponent"='astros' AND "date"='april 29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "high_floor_versions" ( "city" text, "operator" text, "type_designation" text, "number_of_vehicles" real, "width" text ); Question: Which Operator has a Width of 2.65 m, and a Type designation of m5000? <|assistant|> SELECT "operator" FROM "high_floor_versions" WHERE "width"='2.65 m' AND "type_designation"='m5000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "high_floor_versions" ( "city" text, "operator" text, "type_designation" text, "number_of_vehicles" real, "width" text ); Question: Which Width has a Number of vehicles larger than 15, and a Type designation of k5000? <|assistant|> SELECT "width" FROM "high_floor_versions" WHERE "number_of_vehicles">15 AND "type_designation"='k5000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "high_floor_versions" ( "city" text, "operator" text, "type_designation" text, "number_of_vehicles" real, "width" text ); Question: Which Number of vehicles has a Type designation of u5-25 (bi-directional)? <|assistant|> SELECT "number_of_vehicles" FROM "high_floor_versions" WHERE "type_designation"='u5-25 (bi-directional)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_counties" ( "county" text, "irish_name" text, "county_town" text, "most_populous_city_town" text, "province" text, "region" text ); Question: Province of leinster, and a County of fingal has which irish name? <|assistant|> SELECT "irish_name" FROM "list_of_counties" WHERE "province"='leinster' AND "county"='fingal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_counties" ( "county" text, "irish_name" text, "county_town" text, "most_populous_city_town" text, "province" text, "region" text ); Question: Irish name of an dún (contae an dúin) has what county town? <|assistant|> SELECT "county_town" FROM "list_of_counties" WHERE "irish_name"='an dún (contae an dúin)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_counties" ( "county" text, "irish_name" text, "county_town" text, "most_populous_city_town" text, "province" text, "region" text ); Question: Most populous city/town of clonmel, and a Irish name of tiobraid árann (contae thiobraid árann) is which region? <|assistant|> SELECT "region" FROM "list_of_counties" WHERE "most_populous_city_town"='clonmel' AND "irish_name"='tiobraid árann (contae thiobraid árann)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_counties" ( "county" text, "irish_name" text, "county_town" text, "most_populous_city_town" text, "province" text, "region" text ); Question: County town of dún laoghaire has the most populous city/town? <|assistant|> SELECT "most_populous_city_town" FROM "list_of_counties" WHERE "county_town"='dún laoghaire';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_counties" ( "county" text, "irish_name" text, "county_town" text, "most_populous_city_town" text, "province" text, "region" text ); Question: Irish name of dún na ngall (contae dhún na ngall) has the most populous city/town? <|assistant|> SELECT "most_populous_city_town" FROM "list_of_counties" WHERE "irish_name"='dún na ngall (contae dhún na ngall)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_counties" ( "county" text, "irish_name" text, "county_town" text, "most_populous_city_town" text, "province" text, "region" text ); Question: County town of castlebar has the most populous city/town? <|assistant|> SELECT "most_populous_city_town" FROM "list_of_counties" WHERE "county_town"='castlebar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: Name the games for rubén limardo <|assistant|> SELECT "games" FROM "medalists" WHERE "name"='rubén limardo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: Name the sport for men's light flyweight with medal of gold <|assistant|> SELECT "sport" FROM "medalists" WHERE "medal"='gold' AND "event"='men''s light flyweight';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: Tell me the name for men's featherweight and sport of weightlifting <|assistant|> SELECT "name" FROM "medalists" WHERE "event"='men''s featherweight' AND "sport"='weightlifting';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "great_little_railways" ( "episode_no" real, "episode_title" text, "uk_broadcast_date" text, "narrator" text, "writer" text, "details_of_journey" text, "countries_visited" text ); Question: Which details of journey had simon hoggart as a narrator? <|assistant|> SELECT "details_of_journey" FROM "great_little_railways" WHERE "narrator"='simon hoggart';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "great_little_railways" ( "episode_no" real, "episode_title" text, "uk_broadcast_date" text, "narrator" text, "writer" text, "details_of_journey" text, "countries_visited" text ); Question: Which countries visited had an episode number of less than 7 when Ray Gosling was the writer? <|assistant|> SELECT "countries_visited" FROM "great_little_railways" WHERE "episode_no"<7 AND "writer"='ray gosling';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "louisville" ( "position" text, "number" real, "name" text, "height" text, "weight" real, "class" text, "hometown" text, "games" real ); Question: How tall is Zipp Duncan? <|assistant|> SELECT "height" FROM "louisville" WHERE "name"='zipp duncan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "louisville" ( "position" text, "number" real, "name" text, "height" text, "weight" real, "class" text, "hometown" text, "games" real ); Question: What is the average games of Tony Dixon? <|assistant|> SELECT AVG("games") FROM "louisville" WHERE "name"='tony dixon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the total of wins where the top 25 is 6, top 10 is more than 2, and the event number is less than 19? <|assistant|> SELECT SUM("wins") FROM "summary" WHERE "top_25"=6 AND "top_10">2 AND "events"<19;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the total of cuts made where the top 25 is less than 6 and the top-5 is more than 0? <|assistant|> SELECT SUM("cuts_made") FROM "summary" WHERE "top_25"<6 AND "top_5">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: How many top-10 numbers had a top 25 of more than 6 with less than 2 wins? <|assistant|> SELECT COUNT("top_10") FROM "summary" WHERE "top_25">6 AND "wins"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2011 with 2010 of 1r and 2012 of sf <|assistant|> SELECT "2011" FROM "doubles_performance_timeline" WHERE "2010"='1r' AND "2012"='sf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2008 with 2012 of 2r and 2006 of 2r <|assistant|> SELECT "2008" FROM "doubles_performance_timeline" WHERE "2012"='2r' AND "2006"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2008 for 2012 of sf <|assistant|> SELECT "2008" FROM "doubles_performance_timeline" WHERE "2012"='sf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2013 for 2011 of 1r <|assistant|> SELECT "2013" FROM "doubles_performance_timeline" WHERE "2011"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2011 with 2006 of 2r and 2008 of 2r <|assistant|> SELECT "2011" FROM "doubles_performance_timeline" WHERE "2006"='2r' AND "2008"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2012 with 2013 of 2r and 2009 of 3r <|assistant|> SELECT "2012" FROM "doubles_performance_timeline" WHERE "2013"='2r' AND "2009"='3r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_48_ohio_northern_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many Field goals have Points larger than 5, and Touchdowns larger than 2, and an Extra points smaller than 0? <|assistant|> SELECT COUNT("field_goals") FROM "michigan_48_ohio_northern_0" WHERE "points">5 AND "touchdowns">2 AND "extra_points"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_48_ohio_northern_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many Touchdowns have Extra points larger than 0, and Points of 48? <|assistant|> SELECT COUNT("touchdowns") FROM "michigan_48_ohio_northern_0" WHERE "extra_points">0 AND "points"=48;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_48_ohio_northern_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Which Touchdowns have an Extra points smaller than 5, and a Player of clark, and Field goals larger than 0? <|assistant|> SELECT AVG("touchdowns") FROM "michigan_48_ohio_northern_0" WHERE "extra_points"<5 AND "player"='clark' AND "field_goals">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_48_ohio_northern_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: Which Points have Touchdowns larger than 0, and an Extra points smaller than 0? <|assistant|> SELECT SUM("points") FROM "michigan_48_ohio_northern_0" WHERE "touchdowns">0 AND "extra_points"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "september" ( "week_of" text, "tournament" text, "champions" text, "runners_up" text, "semifinalists" text ); Question: Which Semifinalists has a Champions of michael chang 6-0 6-4? <|assistant|> SELECT "semifinalists" FROM "september" WHERE "champions"='michael chang 6-0 6-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "september" ( "week_of" text, "tournament" text, "champions" text, "runners_up" text, "semifinalists" text ); Question: Whose Runner-up has a Semifinalist of guillermo pérez-roldán andrea gaudenzi? <|assistant|> SELECT "runners_up" FROM "september" WHERE "semifinalists"='guillermo pérez-roldán andrea gaudenzi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "club_career_stats" ( "season" real, "team" text, "country" text, "league" text, "level" real, "apps" text, "goals" real ); Question: Tell me the least season with level less than 1 <|assistant|> SELECT MIN("season") FROM "club_career_stats" WHERE "level"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); Question: Which 2007/ 08 has a 2010/ 11 of not held, and a 2011/ 12 of not held, and a 2008/ 09 of not held, and a 2006/ 07 of lq? <|assistant|> SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2010_11"='not held' AND "2011_12"='not held' AND "2008_09"='not held' AND "2006_07"='lq';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); Question: Which 2009/10 has a 2005/06 of not held, and a 2010/11 of not held? <|assistant|> SELECT "2009_10" FROM "performance_and_rankings_timeline" WHERE "2005_06"='not held' AND "2010_11"='not held';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); Question: Which 2011/ 12 has a 2006/ 07 of not held, and a 2008/ 09 of not held, and a 2012/ 13 of dnq? <|assistant|> SELECT "2011_12" FROM "performance_and_rankings_timeline" WHERE "2006_07"='not held' AND "2008_09"='not held' AND "2012_13"='dnq';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); Question: Which 2011/ 12 has a 2010/ 11 of A, and a 2007/ 08 of not held, and a 2012/ 13 of lq? <|assistant|> SELECT "2011_12" FROM "performance_and_rankings_timeline" WHERE "2010_11"='a' AND "2007_08"='not held' AND "2012_13"='lq';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); Question: Which 2007/ 08 has a 2005/ 06 of A, and a 2009/ 10 of A, and a 2012/ 13 of A? <|assistant|> SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2005_06"='a' AND "2009_10"='a' AND "2012_13"='a';<|endoftext|>