text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: Which Tries against have Points aga...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: What Tries against that have a Poin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: What Tries for has a Team of neath,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: How many Points against that have a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: What is the power that belongs to Class A wit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: Which class has a frequency of 91.9 fm? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: What power belongs to the LP Class and has an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: Which city has a C1 class and Identifier of C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: Which Power has a CBLI Identifier? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: What is the RECNet belonging to Class A with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_3" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: What is the report in the tournament that starte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "song" text, "canada_singles" text, "us_hot_100" text, "us_a_c" text ); Question: What is th US A.C. in 1985 with a US hot 100 of 57? <|assistant|> SELECT "us_a_c" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "song" text, "canada_singles" text, "us_hot_100" text, "us_a_c" text ); Question: What is the Canada singles in 1979 with a US A.C. of 24? <|assistant|> SELECT "canada_s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "song" text, "canada_singles" text, "us_hot_100" text, "us_a_c" text ); Question: What is the US A.C. in 1974? <|assistant|> SELECT "us_a_c" FROM "singles" WHERE "year"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); Question: What is the average round of player Sammy Morris? <|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_num" real, "player" text, "position" text, "college" text ); Question: What is the sum pick # of the player from round 4? <|assistant|> SELECT SUM("pick_num") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); Question: Who is the player from Arizona State? <|assistant|> SELECT "player" FROM "nfl_draft" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); Question: What is the sum of the round of the player who plays linebacker and has a pick # greater ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); Question: Who is the player from Arizona state with a round less than 7? <|assistant|> SELECT "play...
<|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's the highest week for the day of October 21, 1956? <|assistant|> SELECT MAX("week") FR...
<|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 least recent week number when the attendance is 16,562? <|assistant|> SELECT MIN...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What is Country , when Rider is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What is Time, when Speed is 87....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What is Country, when Points ar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What is Speed, when Time is 1:2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What is Country, when Time is 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What is the lowest Place, when ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real ); Question: What team was the opponent when the result was l 0-27? <|assistant|> SELECT "opponent" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real ); Question: What team was the opponent on 09/20/1975? <|assistant|> SELECT "opponent" FROM "schedule...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real ); Question: What is the Location of the game on 11/08/1975*? <|assistant|> SELECT "location" FROM "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold medals were awarded to the team with more than 2 bronze and exact...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "motion_picture" text, "result" text ); Question: What is the latest year that Cicely Tyson is the Golden Globe Award actor? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "motion_picture" text, "result" text ); Question: What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "motion_picture" text, "result" text ); Question: What Award has a date of 2002? <|assistant|> SELECT "award" FROM "women" WHERE "year"=2002;<|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "motion_picture" text, "result" text ); Question: What Award was received bby the Motion Picture What's Love Got To Do With It? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "motion_picture" text, "result" text ); Question: What is the latest Year with Marianne Jean-Baptiste as the Golden Globe Actor? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" text, "singapore_gross" text ); Question: Which film was released in August 2004? <|assistant|> SELECT "title" FROM "2004" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" text, "singapore_gross" text ); Question: What was the production cost for the film directed by 2004? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" text, "singapore_gross" text ); Question: What film did Pen-Ek Ratanaruang direct? <|assistant|> SELECT "title" FROM "2004"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" text, "singapore_gross" text ); Question: When was the film directed by Pen-Ek Ratanaruang released? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" text, "singapore_gross" text ); Question: Who directed Tequila? <|assistant|> SELECT "director" FROM "2004" WHERE "title"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_special_representatives" ( "name" text, "born_died" text, "took_office" text, "left_office" text, "country" text ); Question: Who left office in June 2011? <|assistant|> SELECT "name" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_special_representatives" ( "name" text, "born_died" text, "took_office" text, "left_office" text, "country" text ); Question: What is the Born-Died date for the Representative of Italy?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_special_representatives" ( "name" text, "born_died" text, "took_office" text, "left_office" text, "country" text ); Question: What is the country of the Representative that left office ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is Package/Option, when Language is Italian, and when...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is HDTV, when Television Service is MTV Rocks? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is Television Service, when HDTV is No, and when Lang...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is Television Service, when Package/Option is Sky Fam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is HDTV, when Language is English, and when Televisio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "one_day_batting_statistics" ( "player" text, "matches" real, "innings" real, "not_out" real, "runs" real, "high_score" text, "average" text, "strike_rate" text, "100s" real ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "one_day_batting_statistics" ( "player" text, "matches" real, "innings" real, "not_out" real, "runs" real, "high_score" text, "average" text, "strike_rate" text, "100s" real ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "services" ( "platform" real, "frequency_per_hour" real, "destination" text, "service_pattern" text, "operator" text, "line" text ); Question: How many Platforms have a Frequency of less than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "name_v_t_e" text, "height_cm" real, "weight_kg" real, "birthplace" text, "1999_2000_team" text ); Question: What is the 1999-2000...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "name_v_t_e" text, "height_cm" real, "weight_kg" real, "birthplace" text, "1999_2000_team" text ); Question: What is the Name v t ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "name_v_t_e" text, "height_cm" real, "weight_kg" real, "birthplace" text, "1999_2000_team" text ); Question: What is the sum of He...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ); Question: Which Losses have a Pct of .451 and Finished 6th? <|assistant|> SELECT "losses" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ); Question: Which season has Losses of 30? <|assistant|> SELECT "season" FROM "seasons" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ); Question: In which Season was the Division Washington Bullets? <|assistant|> SELECT "season...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ); Question: In which season were there Wins of 29 and a Finished place of 3rd? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" text, "easa_eu" text, "iasa_faa" text ); Question: What is the EASA (EU) when the notes show aoc 135? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" text, "easa_eu" text, "iasa_faa" text ); Question: What is the Notes when the fleet size is 3? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" text, "easa_eu" text, "iasa_faa" text ); Question: What is the Fleet Size when the EASA (EU) is no? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" text, "easa_eu" text, "iasa_faa" text ); Question: hat is the Airline when the EASA (EU) is yes? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" text, "easa_eu" text, "iasa_faa" text ); Question: What is the Airline when the notes show aoc 135? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What is the highest Year with a Competition that is new york city marathon? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What is the Notes with a Venue that is venice, italy? <|assistant|> SELECT "notes" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hits_on_german_ships" ( "ship" text, "13_5_inch_1400lb" real, "13_5_inch_1250lb" real, "12_inch" real, "total" real ); Question: What is the lowest 13.5-inch/1400lb with a 13.5-inch/1250lb less...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hits_on_german_ships" ( "ship" text, "13_5_inch_1400lb" real, "13_5_inch_1250lb" real, "12_inch" real, "total" real ); Question: What is the lowest 12-inch when the 13.5-inch/1250lb was 0, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hits_on_german_ships" ( "ship" text, "13_5_inch_1400lb" real, "13_5_inch_1250lb" real, "12_inch" real, "total" real ); Question: What is the lowest 13.5-inch/1400lb with a 13.5-inch/1250lb of m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hits_on_german_ships" ( "ship" text, "13_5_inch_1400lb" real, "13_5_inch_1250lb" real, "12_inch" real, "total" real ); Question: What is the average Total when the ship was lützow, with a 13.5-...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hits_on_german_ships" ( "ship" text, "13_5_inch_1400lb" real, "13_5_inch_1250lb" real, "12_inch" real, "total" real ); Question: What is the highest Total when the ship was lützow, and a 12-inc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_14th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_14th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_14th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_14th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_14th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chinese_professional_baseball_league" ( "year" real, "winning_team" text, "losing_team" text, "score" text, "site" text ); Question: When has a Site of tainan city and a Score of 8–6? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chinese_professional_baseball_league" ( "year" real, "winning_team" text, "losing_team" text, "score" text, "site" text ); Question: Which Score that has a Winning team of wei chuan dragons? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world" ( "rank" real, "city_1" text, "city_2" text, "2012_passengers_in_millions" real, "2011_passengers_in_millions" text, "distance" text ); Question: What is the number of 2011 passengers ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world" ( "rank" real, "city_1" text, "city_2" text, "2012_passengers_in_millions" real, "2011_passengers_in_millions" text, "distance" text ); Question: What is the number of 2012 passengers ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world" ( "rank" real, "city_1" text, "city_2" text, "2012_passengers_in_millions" real, "2011_passengers_in_millions" text, "distance" text ); Question: What is the City 1 that has less than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1992_93_to_1996_97" ( "season" text, "first" text, "second" text, "third" text, "fourth" text, "fifth" text, "sixth" text ); Question: What is SECOND, when SIXTH is Victoria? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1992_93_to_1996_97" ( "season" text, "first" text, "second" text, "third" text, "fourth" text, "fifth" text, "sixth" text ); Question: What is SECOND, when FIRST is Western Australia? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many losses does corinth...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_line_of_headphones" ( "headphone_model" text, "headphone_class" text, "driver_matched_d_b" real, "construction" text, "earpads" text, "termination" text, "us_msrp" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_line_of_headphones" ( "headphone_model" text, "headphone_class" text, "driver_matched_d_b" real, "construction" text, "earpads" text, "termination" text, "us_msrp" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_line_of_headphones" ( "headphone_model" text, "headphone_class" text, "driver_matched_d_b" real, "construction" text, "earpads" text, "termination" text, "us_msrp" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "race_name" text, "circuit" text, "city_state" text, "date" text, "winner_s" text, "team" text ); Question: What is the name of the race from round 1? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "race_name" text, "circuit" text, "city_state" text, "date" text, "winner_s" text, "team" text ); Question: Which race was in Sydney, New South Wales? <|assistant|...