text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); Question: Name the team for co-drivers of david brabham mario andretti <|assistant|> SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "co_drivers"='david brabham mario andretti';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the highest year with points more than 0 <|assistant|> SELECT MAX("year") FROM "complete_formula_one_world_championship_" WHERE "points">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the highest points when year is more than 1953 <|assistant|> SELECT MAX("points") FROM "complete_formula_one_world_championship_" WHERE "year">1953;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the engine when points are 0 and chassis is kuzma indy roadster for 1954 <|assistant|> SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "points"=0 AND "chassis"='kuzma indy roadster' AND "year"=1954;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the least points with chassis of kurtis kraft 3000 and year before 1951 <|assistant|> SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='kurtis kraft 3000' AND "year"<1951;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "mackay" real, "pioneer" real, "mirani" real, "sarina" real ); Question: What is the total region population with a Mirani population of 5,220 and a Mackay population less than 75,020? <|assistant|> SELECT COUNT("total_region") FROM "population" WHERE "mirani"='5,220' AND "mackay"<'75,020';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "mackay" real, "pioneer" real, "mirani" real, "sarina" real ); Question: What is the Pioneer population with a Sarina population less than 3,268 and a Mirani population less than 4,412? <|assistant|> SELECT SUM("pioneer") FROM "population" WHERE "sarina"<'3,268' AND "mirani"<'4,412';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "mackay" real, "pioneer" real, "mirani" real, "sarina" real ); Question: What is the Mirani population with a total region population less than 48,530, a Mackay population less than 13,486, and a Pioneer population larger than 9,926? <|assistant|> SELECT SUM("mirani") FROM "population" WHERE "total_region"<'48,530' AND "mackay"<'13,486' AND "pioneer">'9,926';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "mackay" real, "pioneer" real, "mirani" real, "sarina" real ); Question: What is the lowest Pioneer population in 1966 with a Sarina population greater than 4,611? <|assistant|> SELECT MIN("pioneer") FROM "population" WHERE "year"=1966 AND "sarina">'4,611';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "mackay" real, "pioneer" real, "mirani" real, "sarina" real ); Question: What is the lowest Pioneer population with a Sarina population less than 7,537 and a Mirani population less than 5,379 in 1966? <|assistant|> SELECT MIN("pioneer") FROM "population" WHERE "sarina"<'7,537' AND "year"=1966 AND "mirani"<'5,379';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_series" ( "year" text, "title" text, "title_in_english" text, "director" text, "character" text ); Question: What is the year of the TV series directed by Soroush Sehat? <|assistant|> SELECT "year" FROM "tv_series" WHERE "director"='soroush sehat';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_series" ( "year" text, "title" text, "title_in_english" text, "director" text, "character" text ); Question: What is the title of the TV series with a character of Sheyda/Ashraf? <|assistant|> SELECT "title" FROM "tv_series" WHERE "character"='sheyda/ashraf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_series" ( "year" text, "title" text, "title_in_english" text, "director" text, "character" text ); Question: What is the year of the TV series that has a character of Leiloon Bala Barareh? <|assistant|> SELECT "year" FROM "tv_series" WHERE "character"='leiloon bala barareh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_series" ( "year" text, "title" text, "title_in_english" text, "director" text, "character" text ); Question: What is the title of the TV series in 2012? <|assistant|> SELECT "title" FROM "tv_series" WHERE "year"='2012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cry_engine" ( "title" text, "year" text, "developer" text, "publisher" text, "platform" text ); Question: Who published Star Citizen in 2014? <|assistant|> SELECT "publisher" FROM "cry_engine" WHERE "year"='2014' AND "title"='star citizen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cry_engine" ( "title" text, "year" text, "developer" text, "publisher" text, "platform" text ); Question: Which title was developed by Battlecry Studios? <|assistant|> SELECT "title" FROM "cry_engine" WHERE "developer"='battlecry studios';<|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: How many people were at the match on July 13/ <|assistant|> SELECT "attendance" FROM "game_log" WHERE "date"='july 13';<|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: Who was the opponent on July 27? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "date"='july 27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: For Ynysybwl RFC, what was the losing bonus for 416 points? <|assistant|> SELECT "losing_bonus" FROM "2009_2010_table" WHERE "points_for"='416' AND "club"='ynysybwl rfc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: For the club that had 453 points against, losing bonus of 5 and played of 22, what is the drawn? <|assistant|> SELECT "drawn" FROM "2009_2010_table" WHERE "played"='22' AND "points_against"='453' AND "losing_bonus"='5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: For the club that had tries of 50 and drawn of 0, what were the points? <|assistant|> SELECT "points_against" FROM "2009_2010_table" WHERE "drawn"='0' AND "tries_for"='50';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: The club that had 546 points against, what was the losing bonus? <|assistant|> SELECT "losing_bonus" FROM "2009_2010_table" WHERE "points_against"='546';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What is the lost of Ynysybwl RFC? <|assistant|> SELECT "lost" FROM "2009_2010_table" WHERE "club"='ynysybwl rfc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: How many points does Club have? <|assistant|> SELECT "points" FROM "2009_2010_table" WHERE "club"='club';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "online_episodes" ( "episode_num" real, "title" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "part_5" text, "part_6" text ); Question: When is Part 6, when Part 4 is on March 2, 2008? <|assistant|> SELECT "part_6" FROM "online_episodes" WHERE "part_4"='march 2, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "online_episodes" ( "episode_num" real, "title" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "part_5" text, "part_6" text ); Question: What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008? <|assistant|> SELECT "title" FROM "online_episodes" WHERE "episode_num">2 AND "part_6"='january 6, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "online_episodes" ( "episode_num" real, "title" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "part_5" text, "part_6" text ); Question: When is Part 2, when Part 4 is on December 9, 2007? <|assistant|> SELECT "part_2" FROM "online_episodes" WHERE "part_4"='december 9, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "online_episodes" ( "episode_num" real, "title" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "part_5" text, "part_6" text ); Question: When is Part 1, when Part 4 is on February 10, 2008? <|assistant|> SELECT "part_1" FROM "online_episodes" WHERE "part_4"='february 10, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "online_episodes" ( "episode_num" real, "title" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "part_5" text, "part_6" text ); Question: When is Part 2, when Part 5 is on January 24, 2008? <|assistant|> SELECT "part_2" FROM "online_episodes" WHERE "part_5"='january 24, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Who was the finals opponent on the hard surface tournament? <|assistant|> SELECT "opponent_in_the_final" FROM "singles_5" WHERE "surface"='hard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Which surface was played during Curitiba tournament? <|assistant|> SELECT "surface" FROM "singles_5" WHERE "tournament"='curitiba';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: What is the highest round for UFC 109? <|assistant|> SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "event"='ufc 109';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: What round was the opponent Manny Gamburyan? <|assistant|> SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='manny gamburyan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the earliest week that had an attendance of less than 16,375, for a game played on November 22, 1964? <|assistant|> SELECT MIN("week") FROM "season_schedule" WHERE "attendance"<'16,375' AND "date"='november 22, 1964';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the week of the game played December 6, 1964? <|assistant|> SELECT SUM("week") FROM "season_schedule" WHERE "date"='december 6, 1964';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_ladder" ( "bellarine_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the fewest losses that had an against score of 2190 and more than 0 draws? <|assistant|> SELECT MIN("losses") FROM "2010_ladder" WHERE "against"=2190 AND "draws">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_ladder" ( "bellarine_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the fewest number of draws for teams with more than 0 byes? <|assistant|> SELECT MIN("draws") FROM "2010_ladder" WHERE "byes">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_ladder" ( "bellarine_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the sum of losses for Geelong Amateur, with 0 byes? <|assistant|> SELECT SUM("losses") FROM "2010_ladder" WHERE "bellarine_fl"='geelong amateur' AND "byes"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_ladder" ( "bellarine_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the sum of the number of wins for teams with more than 0 draws? <|assistant|> SELECT SUM("wins") FROM "2010_ladder" WHERE "draws">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What is the Stadium that hosts the team Jacksonville Jaguars? <|assistant|> SELECT "stadium" FROM "2008_season" WHERE "host_team"='jacksonville jaguars';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What stadium was used on November 13? <|assistant|> SELECT "stadium" FROM "2008_season" WHERE "date"='november 13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What is the host team with the stadium Lincoln Financial Field? <|assistant|> SELECT "host_team" FROM "2008_season" WHERE "stadium"='lincoln financial field';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What team visited the Cleveland Browns Stadium? <|assistant|> SELECT "visiting_team" FROM "2008_season" WHERE "stadium"='cleveland browns stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What stadium did the Denver Broncos visit? <|assistant|> SELECT "stadium" FROM "2008_season" WHERE "visiting_team"='denver broncos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What team visited the Jacksonville Municipal Stadium? <|assistant|> SELECT "visiting_team" FROM "2008_season" WHERE "stadium"='jacksonville municipal stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "rank" real, "station" text, "city" text, "state" text, "boardings_and_deboardings" real ); Question: How many people boarded and de-boarded the Amtrak in Linthicum? <|assistant|> SELECT COUNT("boardings_and_deboardings") FROM "list" WHERE "city"='linthicum';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "rank" real, "station" text, "city" text, "state" text, "boardings_and_deboardings" real ); Question: In California what was the total rank at Irvine station when the number of boarding and deboardings was less than 683,626? <|assistant|> SELECT SUM("rank") FROM "list" WHERE "boardings_and_deboardings"<'683,626' AND "state"='california' AND "station"='irvine station';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "rank" real, "station" text, "city" text, "state" text, "boardings_and_deboardings" real ); Question: At south station what was the total rank when boarding and deboardings were smaller than 1,360,162? <|assistant|> SELECT SUM("rank") FROM "list" WHERE "station"='south station' AND "boardings_and_deboardings"<'1,360,162';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "rank" real, "station" text, "city" text, "state" text, "boardings_and_deboardings" real ); Question: Which is the highest rank that has 8,995,551 boardings and deboardings? <|assistant|> SELECT MAX("rank") FROM "list" WHERE "boardings_and_deboardings"='8,995,551';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "name" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "europe" text, "other_c" text, "total" text ); Question: The Europe listing of 00 0 0 (0) also has what listed as the total? <|assistant|> SELECT "total" FROM "most_appearances" WHERE "europe"='00 0 0 (0)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "name" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "europe" text, "other_c" text, "total" text ); Question: The league of 400 (21) has what years listed? <|assistant|> SELECT "years" FROM "most_appearances" WHERE "league"='400 (21)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "name" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "europe" text, "other_c" text, "total" text ); Question: With a FA Cup of 0 44 0 (0), the other [C] is listed as what? <|assistant|> SELECT "other_c" FROM "most_appearances" WHERE "fa_cup"='0 44 0 (0)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "name" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "europe" text, "other_c" text, "total" text ); Question: The Europe listing of 117 0 (8) belongs to what league? <|assistant|> SELECT "league" FROM "most_appearances" WHERE "europe"='117 0 (8)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "name" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "europe" text, "other_c" text, "total" text ); Question: The League Cup of 0 40 0 (6) also has what listed in the Europe column? <|assistant|> SELECT "europe" FROM "most_appearances" WHERE "league_cup"='0 40 0 (6)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "name" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "europe" text, "other_c" text, "total" text ); Question: The other [C] of 0 12 0 (0) belongs to what FA Cup? <|assistant|> SELECT "fa_cup" FROM "most_appearances" WHERE "other_c"='0 12 0 (0)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer" ( "year" text, "edition" text, "host_city" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest VIII Edition Gold with a Silver of 4? <|assistant|> SELECT MIN("gold") FROM "summer" WHERE "silver"=4 AND "edition"='viii';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer" ( "year" text, "edition" text, "host_city" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the highest Edition I Bronze with a Gold higher than 9 and a Silver higher than 10? <|assistant|> SELECT MAX("bronze") FROM "summer" WHERE "silver">10 AND "edition"='i' AND "gold">9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer" ( "year" text, "edition" text, "host_city" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the Total for a Mexico City game with a Gold of less than 4 and a Bronze of less than 2? <|assistant|> SELECT COUNT("total") FROM "summer" WHERE "host_city"='mexico city' AND "gold"<4 AND "bronze"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer" ( "year" text, "edition" text, "host_city" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Host City has more than 6 Silver and a Total of 22? <|assistant|> SELECT "host_city" FROM "summer" WHERE "silver">6 AND "total"=22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "disc_four" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "writer_s" text, "time" text ); Question: What was the time for tracks before 19 on 8/26/69? <|assistant|> SELECT "time" FROM "disc_four" WHERE "release_date"='8/26/69' AND "track"<19;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "long_course_50_meter_pool" ( "event" text, "time" text, "venue" text, "date" text, "notes" text ); Question: Which venue has a note of AM? <|assistant|> SELECT "venue" FROM "long_course_50_meter_pool" WHERE "notes"='am';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "long_course_50_meter_pool" ( "event" text, "time" text, "venue" text, "date" text, "notes" text ); Question: What is the time associated with August 16, 2008? <|assistant|> SELECT "time" FROM "long_course_50_meter_pool" WHERE "date"='august 16, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "long_course_50_meter_pool" ( "event" text, "time" text, "venue" text, "date" text, "notes" text ); Question: Which event was held in Beijing? <|assistant|> SELECT "event" FROM "long_course_50_meter_pool" WHERE "venue"='beijing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "long_course_50_meter_pool" ( "event" text, "time" text, "venue" text, "date" text, "notes" text ); Question: For a venue of Rome on July 30, 2009, what are the notes? <|assistant|> SELECT "notes" FROM "long_course_50_meter_pool" WHERE "venue"='rome' AND "date"='july 30, 2009';<|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, "series" text ); Question: Name the score for october 9 <|assistant|> SELECT "score" FROM "game_log" WHERE "date"='october 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, "series" text ); Question: Name the loss for series 2-2 <|assistant|> SELECT "loss" FROM "game_log" WHERE "series"='2-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, "series" text ); Question: Name the total number of attendance for october 8 <|assistant|> SELECT COUNT("attendance") FROM "game_log" WHERE "date"='october 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which engine did Élie Bayol use when they earned 0 points? <|assistant|> SELECT "engine" FROM "complete_formula_one_results" WHERE "points"=0 AND "entrant"='élie bayol';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_as_j_league_member" ( "season" real, "div" text, "tms" real, "pos" real, "attendance_g" real, "j_league_cup" text, "emperor_s_cup" text ); Question: What season had the highest attendance/g than 3,289? <|assistant|> SELECT MAX("season") FROM "record_as_j_league_member" WHERE "attendance_g"<'3,289';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: What year had 13 points? <|assistant|> SELECT "year" FROM "complete_formula_one_results" WHERE "pts"=13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: Which chassis has a year later than 1964, a Ford engine, and 13 points? <|assistant|> SELECT "chassis" FROM "complete_formula_one_results" WHERE "year">1964 AND "engine"='ford' AND "pts"=13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: Which entrant has fewer than 12 points, a Climax engine, and a Lotus 24 chassis? <|assistant|> SELECT "entrant" FROM "complete_formula_one_results" WHERE "pts"<12 AND "engine"='climax' AND "chassis"='lotus 24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: In 1972, what was the highest number of points with a Ford engine and an entrant of Brooke Bond Oxo Team Surtees? <|assistant|> SELECT MAX("pts") FROM "complete_formula_one_results" WHERE "engine"='ford' AND "entrant"='brooke bond oxo team surtees' AND "year"=1972;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: What year had a Ford engine and 13 points? <|assistant|> SELECT "year" FROM "complete_formula_one_results" WHERE "engine"='ford' AND "pts"=13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); Question: What is the ERP for the Rockhampton region? <|assistant|> SELECT "erp_analog_digital" FROM "main_transmitters" WHERE "region_served"='rockhampton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); Question: What channels first aired on 31 December 1990 in the Southern Downs region? <|assistant|> SELECT "channels_analog_digital" FROM "main_transmitters" WHERE "first_air_date"='31 december 1990' AND "region_served"='southern downs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); Question: What is the transmitter location for city of Maryborough? <|assistant|> SELECT "transmitter_location" FROM "main_transmitters" WHERE "city"='maryborough';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); Question: What is the ERP for the Mount Goonaneman transmitter? <|assistant|> SELECT "erp_analog_digital" FROM "main_transmitters" WHERE "transmitter_location"='mount goonaneman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: Which number has 11 males? <|assistant|> SELECT "number" FROM "language" WHERE "males"='11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the time for a lane less than 6, and a heat less than 4 for Joanne Malar? <|assistant|> SELECT "time" FROM "heats" WHERE "lane"<6 AND "heat"<4 AND "name"='joanne malar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the largest heat with a time of 4:57.90, and a Rank larger than 22? <|assistant|> SELECT MAX("heat") FROM "heats" WHERE "time"='4:57.90' AND "rank">22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the time for Adi Bichman? <|assistant|> SELECT "time" FROM "heats" WHERE "name"='adi bichman';<|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 is the total attendance at games against the New York Mets with a record of 18-18? <|assistant|> SELECT COUNT("attendance") FROM "game_log" WHERE "opponent"='new york mets' AND "record"='18-18';<|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 is the total attendance at games with a score of 4-2? <|assistant|> SELECT COUNT("attendance") FROM "game_log" WHERE "score"='4-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1987" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: On what date did the New York Giants host a game? <|assistant|> SELECT "date" FROM "1987" WHERE "host_team"='new york giants';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1987" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Who was the host team for the game on December 27? <|assistant|> SELECT "host_team" FROM "1987" WHERE "date"='december 27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1987" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What was the final score of the game at Texas Stadium? <|assistant|> SELECT "final_score" FROM "1987" WHERE "stadium"='texas stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1987" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Who was the visiting team who played at the hubert h. humphrey metrodome stadium? <|assistant|> SELECT "visiting_team" FROM "1987" WHERE "stadium"='hubert h. humphrey metrodome';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1987" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: When did the New England Patriots play as the visiting team? <|assistant|> SELECT "date" FROM "1987" WHERE "visiting_team"='new england patriots';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1987" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: At which stadium did the Los Angeles Raiders play as the visiting team? <|assistant|> SELECT "stadium" FROM "1987" WHERE "visiting_team"='los angeles raiders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: Who is 1.92 m tall and a current club member of Montepaschi Siena <|assistant|> SELECT "player" FROM "fiba_euro_basket_2007_squads" WHERE "height"=1.92 AND "current_club"='montepaschi siena';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_finals_2_titles_4_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which date has a Tournament of la quinta? <|assistant|> SELECT "date" FROM "singles_finals_2_titles_4_runner_ups" WHERE "tournament"='la quinta';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_finals_2_titles_4_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which date has a Surface of carpet (i)? <|assistant|> SELECT "date" FROM "singles_finals_2_titles_4_runner_ups" WHERE "surface"='carpet (i)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_finals_2_titles_4_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which tournament has a Date of april 20, 1987? <|assistant|> SELECT "tournament" FROM "singles_finals_2_titles_4_runner_ups" WHERE "date"='april 20, 1987';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_finals_2_titles_4_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which Opponent has a Surface of hardcourt, an Outcome of runner-up, and a Tournament of honolulu? <|assistant|> SELECT "opponent" FROM "singles_finals_2_titles_4_runner_ups" WHERE "surface"='hardcourt' AND "outcome"='runner-up' AND "tournament"='honolulu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_finals_2_titles_4_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which Tournament has a Score of 6–4, 6–4? <|assistant|> SELECT "tournament" FROM "singles_finals_2_titles_4_runner_ups" WHERE "score"='6–4, 6–4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_finals_2_titles_4_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which score has a Surface of hardcourt, and a Date of september 30, 1984? <|assistant|> SELECT "score" FROM "singles_finals_2_titles_4_runner_ups" WHERE "surface"='hardcourt' AND "date"='september 30, 1984';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "principle" ( "group" real, "half_life_s" real, "decay_constant_s_1" real, "yield_neutrons_per_fission" real, "fraction" real ); Question: What is the lowest group number that has a Fraction less than 0.000748, a Half-Life of 55.72 and a Decay Constant larger than 0.012400000000000001? <|assistant|> SELECT MIN("group") FROM "principle" WHERE "fraction"<0.000748 AND "half_life_s"=55.72 AND "decay_constant_s_1">0.012400000000000001;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "principle" ( "group" real, "half_life_s" real, "decay_constant_s_1" real, "yield_neutrons_per_fission" real, "fraction" real ); Question: What is the lowest Half-Life with a Yield, Neutrons per Fission greater than 0.0054600000000000004 and a Fraction less than 0.002568? <|assistant|> SELECT MIN("half_life_s") FROM "principle" WHERE "yield_neutrons_per_fission">0.0054600000000000004 AND "fraction"<0.002568;<|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 date of the game with a loss of Wakefield (5-2)? <|assistant|> SELECT "date" FROM "game_log" WHERE "loss"='wakefield (5-2)';<|endoftext|>