text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_results_timeline" ( "1935" text, "1936" text, "1937" text, "1938" text, "1939" text, "1940" text, "1941" text, "1943" text, "1945" text, "1946" text, "1947" text, "1948"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_results_timeline" ( "1935" text, "1936" text, "1937" text, "1938" text, "1939" text, "1940" text, "1941" text, "1943" text, "1945" text, "1946" text, "1947" text, "1948"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_results_timeline" ( "1935" text, "1936" text, "1937" text, "1938" text, "1939" text, "1940" text, "1941" text, "1943" text, "1945" text, "1946" text, "1947" text, "1948"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_results_timeline" ( "1935" text, "1936" text, "1937" text, "1938" text, "1939" text, "1940" text, "1941" text, "1943" text, "1945" text, "1946" text, "1947" text, "1948"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playing_career_statistics" ( "season" text, "league_apps_sub" text, "league_goals" text, "cup_apps_sub" text, "cup_goals" text, "total_apps_sub" text, "total_goals" text ); Question: Which ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playing_career_statistics" ( "season" text, "league_apps_sub" text, "league_goals" text, "cup_apps_sub" text, "cup_goals" text, "total_apps_sub" text, "total_goals" text ); Question: Which ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_korea" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" text ); Question: What airline has a IATA of BX? <|assistant|> SELECT "airline" FROM "south_kore...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_korea" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" text ); Question: What is the ICAO for Asiana Airlines? <|assistant|> SELECT "icao" FROM "south_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_korea" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" text ); Question: What is the commenced operation where the ICAO is KAL? <|assistant|> SELECT "c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_korea" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" text ); Question: What is the ICAO for Air Busan? <|assistant|> SELECT "icao" FROM "south_korea"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_korea" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" text ); Question: What is the callsign where the ICAO is AAR? <|assistant|> SELECT "callsign" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scorers" ( "player" text, "tries" real, "goals" real, "field_goals" real, "points" real ); Question: What is the highest Goal for danny williams, with more than 0 Field Goals? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scorers" ( "player" text, "tries" real, "goals" real, "field_goals" real, "points" real ); Question: What is the average Tries with less than 0 goals? <|assistant|> SELECT AVG("tries") FROM "sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scorers" ( "player" text, "tries" real, "goals" real, "field_goals" real, "points" real ); Question: What is the total number of Points with less than 1 tries, and more than 0 goals? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_squad" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text ); Question: Which club/province has more than 9 caps and Ben Franks as a player? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: In which tournament was Ian Baker-Finch the runner-up? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What tournament was played on Feb 3, 1991? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: In the Phoenix Open, what was the winning score? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: In the tournament where Stuart Appleby was the runner-up, wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the lowest number play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the highest number los...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the total number playe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "i_que_ds" ( "western_title" text, "chinese_title" text, "pinyin" text, "released_date" text, "genre" text, "game_modes" text ); Question: What is the western title of the pinyin new chāojí mǎ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "i_que_ds" ( "western_title" text, "chinese_title" text, "pinyin" text, "released_date" text, "genre" text, "game_modes" text ); Question: What is the genre of the Chinese title 摸摸瓦力欧制造, which...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "i_que_ds" ( "western_title" text, "chinese_title" text, "pinyin" text, "released_date" text, "genre" text, "game_modes" text ); Question: What is the pinyin for the Chinese title 直感一笔? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "i_que_ds" ( "western_title" text, "chinese_title" text, "pinyin" text, "released_date" text, "genre" text, "game_modes" text ); Question: What is the release date for the Chinese title 摸摸瓦力欧制...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "i_que_ds" ( "western_title" text, "chinese_title" text, "pinyin" text, "released_date" text, "genre" text, "game_modes" text ); Question: What is the western title for the puzzle genre? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the total number of laps for the time of +7.277 and the grid number of m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the smallest grid when the time is +8.051 and there were less than 23 la...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What is the average number of goals for players ranked above 9 and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What is the average rank for players with under 205 matches and und...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What years played did the player with a rank under 10, more than 27...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1942_state_election_results" ( "republican_ticket" text, "democratic_ticket" text, "american_labor_ticket" text, "communist_ticket" text, "socialist_ticket" text ); Question: Who's the Republic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1942_state_election_results" ( "republican_ticket" text, "democratic_ticket" text, "american_labor_ticket" text, "communist_ticket" text, "socialist_ticket" text ); Question: Who's the Communis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1942_state_election_results" ( "republican_ticket" text, "democratic_ticket" text, "american_labor_ticket" text, "communist_ticket" text, "socialist_ticket" text ); Question: Who's the Republic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1942_state_election_results" ( "republican_ticket" text, "democratic_ticket" text, "american_labor_ticket" text, "communist_ticket" text, "socialist_ticket" text ); Question: Who's the Republic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1942_state_election_results" ( "republican_ticket" text, "democratic_ticket" text, "american_labor_ticket" text, "communist_ticket" text, "socialist_ticket" text ); Question: Who's the Republic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" text, "slalom" text, "giant_slalom" text, "super_g" text, "downhill" text, "combined" text ); Question: What is the giant slalom with a 37 super...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_history" ( "season" text, "round" text, "country" text, "opponent" text, "result" text ); Question: What season had a game in the first round with a result of 4–1, 0–1? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_history" ( "season" text, "round" text, "country" text, "opponent" text, "result" text ); Question: What country had an opponent of Sampdoria? <|assistant|> SELECT "country" FROM "euro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_history" ( "season" text, "round" text, "country" text, "opponent" text, "result" text ); Question: Who was the opponent during the second round? <|assistant|> SELECT "opponent" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_history" ( "season" text, "round" text, "country" text, "opponent" text, "result" text ); Question: What was the result of the second round? <|assistant|> SELECT "result" FROM "europea...
<|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" text ); Question: What Opponent has an Attendance that is 26,880? <|assistant|> SELECT "opponent" FROM "schedu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_progression" ( "record" text, "athlete" text, "nation" text, "venue" text, "date" text ); Question: What nation has a Record of 5.06m(16ft7in)? <|assistant|> SELECT "nation" FROM "record...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_progression" ( "record" text, "athlete" text, "nation" text, "venue" text, "date" text ); Question: What is the Date when Russia was the nation and the venue was madrid , spain? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_progression" ( "record" text, "athlete" text, "nation" text, "venue" text, "date" text ); Question: What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0¾...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_progression" ( "record" text, "athlete" text, "nation" text, "venue" text, "date" text ); Question: What is the Nation when the Athlete was emma george, and a Record of 4.58m(15ft0¼in)? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_results" ( "played" text, "wins" text, "losses" text, "tied" text, "win_pct" text ); Question: Who tied with 8 losses and 50% wins? <|assistant|> SELECT "tied" FROM "summary_of_resul...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_results" ( "played" text, "wins" text, "losses" text, "tied" text, "win_pct" text ); Question: Which win has a loss of IPL? <|assistant|> SELECT "wins" FROM "summary_of_results" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_results" ( "played" text, "wins" text, "losses" text, "tied" text, "win_pct" text ); Question: Which win has 38.67% wins? <|assistant|> SELECT "wins" FROM "summary_of_results" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_results" ( "played" text, "wins" text, "losses" text, "tied" text, "win_pct" text ); Question: What percentage of wins has 48 losses? <|assistant|> SELECT "win_pct" FROM "summary_of_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_results" ( "played" text, "wins" text, "losses" text, "tied" text, "win_pct" text ); Question: What was tied at 15 played? <|assistant|> SELECT "tied" FROM "summary_of_results" WHERE...
<|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 was the average round for john markham draft pick? <|assistant|> SELECT AVG("round") FROM...
<|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 school did draft pick before 125, will allen go to? <|assistant|> SELECT "school" FROM "n...
<|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 school did draft pick from round 3 go to? <|assistant|> SELECT "school" FROM "nfl_draft" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "topscorers_in_order_of_league_goals" ( "player" text, "club" text, "league" real, "fa_cup" real, "fa_trophy" real, "league_cup" real, "total" real ); Question: What is the lowest number of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the fewest games lost ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many games were played aga...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What was the highest number of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_basketball_association" ( "year" real, "winning_team" text, "losing_team" text, "score" text, "site" text ); Question: What is the Score with a Winning team that is san antonio spurs? ...
<|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" text ); Question: Which Result has an Attendance of 60,705? <|assistant|> SELECT "result" FROM "schedule" WHER...
<|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" text ); Question: How many Weeks have a Result of w 17–13? <|assistant|> SELECT AVG("week") FROM "schedule" WH...
<|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" text ); Question: Which Opponent that has a Week larger than 3 on october 6, 1991? <|assistant|> SELECT "oppon...
<|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" text ); Question: When has Attendances of 45,795? <|assistant|> SELECT "date" FROM "schedule" WHERE "attendanc...
<|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" text ); Question: In what Week has a Result of l 24–20, and a Opponent of at new england patriots? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What years were the goals less then 160? <|assistant|> SELECT "year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the IATA code for the airport with an ICAO code of HLLS? <|assistant|> SELECT "iata" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What airport is in Sabha? <|assistant|> SELECT "airport" FROM "destinations" WHERE "city"='sab...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the ICAO code for the airport with RBA as its IATA code? <|assistant|> SELECT "icao" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What country is Istanbul in? <|assistant|> SELECT "country" FROM "destinations" WHERE "city"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Which airport has SEB as its IATA code? <|assistant|> SELECT "airport" FROM "destinations" WHE...
<|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 position does the player from Winston-Salem State play? <|assistant|> SELECT "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "points" real, "rank" text ); Question: What was the sum of the points for the song "why did you have to go?" <|assistant|> SELECT SUM(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "points" real, "rank" text ); Question: What is the total number of points for the song that was ranked 6th and had a draw number small...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_m_feet" text, "floors" real, "year" real ); Question: When was the average year that the number of floors was greater than 75? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_m_feet" text, "floors" real, "year" real ); Question: What is the average number of floors of the Venetian tower? <|assistant|> SELECT AVG...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "club" text, "home_town" text, "arena" text, "founded" real, "rank" text ); Question: Which arena was founded in 2000? <|assistant|> SELECT "arena" FROM "teams" WHERE "founded"=2000;<|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" text, "goals" real ); Question: Can you tell me the total number of Rank that has the Matches of 42...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" text, "goals" real ); Question: Can you tell me the Matches that has the Rank of 1? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" text, "goals" real ); Question: Can you tell me the Matches that has the Rank smaller than 6, and t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_fleet" ( "class" text, "type" text, "built" text, "number" real, "withdrawn" real ); Question: Which class had a number under 4 and was built in 1988? <|assistant|> SELECT "class" FROM "pa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_fleet" ( "class" text, "type" text, "built" text, "number" real, "withdrawn" real ); Question: How many items withdrawn had numbers over 5? <|assistant|> SELECT COUNT("withdrawn") FROM "pa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_fleet" ( "class" text, "type" text, "built" text, "number" real, "withdrawn" real ); Question: What is the sum of numbers that had a type of Driving Van Trailer? <|assistant|> SELECT SUM("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What rank has 1 silver, more than 2 gold, and a total larger than 3? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the most gold where silver is 0? <|assistant|> SELECT MAX("gold") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the number of silver where the rank is higher than 4 and bronze is smal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the rank where the gold is 0? <|assistant|> SELECT AVG("rank") FROM "ic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the rank that has 1 bronze and 1 silver? <|assistant|> SELECT COUNT("ra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellites_by_block" ( "block" text, "launched" real, "operational" real, "not_usable" real, "retired" real, "launch_failures" real ); Question: What is the total launch failures when there a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellites_by_block" ( "block" text, "launched" real, "operational" real, "not_usable" real, "retired" real, "launch_failures" real ); Question: What is the highest number of not usable satel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellites_by_block" ( "block" text, "launched" real, "operational" real, "not_usable" real, "retired" real, "launch_failures" real ); Question: What is the average number of not usable satel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_5th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_5th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_5th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_5th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "pos" text, "player" text, "team" text, "height" text, "weight" real, "first_round" real, "final_round" text ); Question: What is Final round, when Player is Danilo Gallinari...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "title" text, "director" text, "producer" text, "production_cost" text, "singapore_gross" text ); Question: For the film with director listed as 1998, what was the gross in Singapore? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "title" text, "director" text, "producer" text, "production_cost" text, "singapore_gross" text ); Question: Who was the director for the film produced by River Films? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "title" text, "director" text, "producer" text, "production_cost" text, "singapore_gross" text ); Question: Who was the producer for the film directed by 1998? <|assistant|> SELECT "pr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "title" text, "director" text, "producer" text, "production_cost" text, "singapore_gross" text ); Question: For the film titled 1997, what was the gross in Singapore? <|assistant|> SEL...