text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fm" ( "station" text, "frequency" real, "network_affiliation" text, "format" text, "city_of_license" text, "status" text ); Question: Which city station is owned by Coyote Communications? <|a...
<|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, "event" text ); Question: What year were the Olympic Games? <|assistant|> SELECT SUM("year") FROM "achievements" ...
<|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, "event" text ); Question: What's the year in 5th position that happened in Osaka, Japan? <|assistant|> SELECT MIN...
<|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, "event" text ); Question: What year was the venue in Barcelona, Spain? <|assistant|> SELECT MIN("year") FROM "ach...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "whakatane_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: For a school with authority of state and a roll of 798...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "whakatane_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Murupara has a roll greater than 296 for what years? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "whakatane_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: When a school has authority of state and a decile grea...
<|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, "record" text ); Question: Who did the Jays play on August 30? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "date"=...
<|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" text ); Question: Which opponent has a record of 5-0-1? <|assistant|> SELECT "opp...
<|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" text ); Question: What method does the opponent of Dan New use? <|assistant|> SEL...
<|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" text ); Question: Which method has a record of 3-0? <|assistant|> SELECT "method"...
<|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" text ); Question: Which event is a win by an opponent of Nicolas Smith, with the ...
<|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" text ); Question: Which event lasted 1 round and included an opponent of Dan Spyc...
<|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" text ); Question: What is Jimmy Smith's opponent's record? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fm_radio" ( "frequency" real, "callsign" text, "brand" text, "format" text, "city_of_license" text, "website" text, "webcast" text ); Question: Name the sum of frequecy with brand of exa fm...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fm_radio" ( "frequency" real, "callsign" text, "brand" text, "format" text, "city_of_license" text, "website" text, "webcast" text ); Question: Name the webcast for website of β€’ and frequen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fm_radio" ( "frequency" real, "callsign" text, "brand" text, "format" text, "city_of_license" text, "website" text, "webcast" text ); Question: Name the lowest frequency for brand of radio ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real ); Question: Score of new york yankees – 2, brooklyn dodgers – 3 involves how many number of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real ); Question: Date of october 5 had what score? <|assistant|> SELECT "score" FROM "summary" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real ); Question: brooklyn dodgers – 3, new york yankees – 5, and a Game larger than 1 had what a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "21st_century" ( "season" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who won mixed doubles in the 2002 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "container_terminals" ( "terminal" text, "operator" text, "depth_m" text, "berths" real, "quay_cranes" real ); Question: Name the lowest Quay cranes for Berths of 1 and operator of mtl with term...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "container_terminals" ( "terminal" text, "operator" text, "depth_m" text, "berths" real, "quay_cranes" real ); Question: Name the operator with berths more than 1 and depth of 12.5-15.5 <|assist...
<|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: What is the average points that Centro Asegurador earned with ...
<|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: What was the chassis of Emilio de Villota in 1981? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006" ( "film" text, "director_s" text, "recipient" text, "date" text, "award" text ); Question: What directors won an award on 14/6/6? <|assistant|> SELECT "director_s" FROM "2006" WHERE "date...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006" ( "film" text, "director_s" text, "recipient" text, "date" text, "award" text ); Question: What date did Passion Pictures receive an award? <|assistant|> SELECT "date" FROM "2006" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006" ( "film" text, "director_s" text, "recipient" text, "date" text, "award" text ); Question: What award did Charlie Productions Ltd receive? <|assistant|> SELECT "award" FROM "2006" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006" ( "film" text, "director_s" text, "recipient" text, "date" text, "award" text ); Question: What film had Bub Ltd as the recipient? <|assistant|> SELECT "film" FROM "2006" WHERE "recipient...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006" ( "film" text, "director_s" text, "recipient" text, "date" text, "award" text ); Question: What film was awarded on 22/3/06? <|assistant|> SELECT "film" FROM "2006" WHERE "date"='22/3/06'...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finals_6_3_titles_3_runners_up" ( "outcome" text, "year" real, "tournament" text, "partner" text, "opponent" text, "score" text ); Question: What score resulted in a winner after 2008? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finals_6_3_titles_3_runners_up" ( "outcome" text, "year" real, "tournament" text, "partner" text, "opponent" text, "score" text ); Question: What score has an opponent gan teik chai lin woon ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finals_6_3_titles_3_runners_up" ( "outcome" text, "year" real, "tournament" text, "partner" text, "opponent" text, "score" text ); Question: What tournament has an opponent gan teik chai lin ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finals_6_3_titles_3_runners_up" ( "outcome" text, "year" real, "tournament" text, "partner" text, "opponent" text, "score" text ); Question: What tournament has an opponent jung jae-sung lee ...
<|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" text, "record" text ); Question: What is the record of the team that lost to Alexander (5-2)? <|assistant|> S...
<|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" text, "record" text ); Question: Which opponent has a record of 17-11? <|assistant|> SELECT "opponent" FROM "...
<|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" text, "record" text ); Question: What is the score of the game that resulted in a 15-9 record? <|assistant|> ...
<|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" text, "record" text ); Question: What was the attendance on May 26? <|assistant|> SELECT "attendance" FROM "g...
<|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" text, "record" text ); Question: What is the score of the game that was a loss to Dotson (2-3)? <|assistant|>...
<|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" text, "record" text ); Question: On what date was the record 19-11? <|assistant|> SELECT "date" FROM "game_lo...
<|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: What were the highest points before the year 1974? <|assistant...
<|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: What was the chassis when the entrant was Lavazza March, and t...
<|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: What was the chassis when the entrant was Lavazza March, and t...
<|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: What was the chassis when the points were greater than 0 and t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: Who had a time of 56.07? <|assistant|> SELECT "name" FROM "semifinal_1" WHERE "time"=56.07;<|e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "year" text, "english_title" text, "original_title" text, "country" text, "director" text ); Question: What is the original title of Madame Rosa? <|assistant|> SELECT "original_title" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "year" text, "english_title" text, "original_title" text, "country" text, "director" text ); Question: What is the original title where Paul Verhoeven is the director? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "year" text, "english_title" text, "original_title" text, "country" text, "director" text ); Question: What original title has a year of 1978? <|assistant|> SELECT "original_title" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "year" text, "english_title" text, "original_title" text, "country" text, "director" text ); Question: Who is the director of the best foreign film? <|assistant|> SELECT "director" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "year" text, "english_title" text, "original_title" text, "country" text, "director" text ); Question: What is the English title for Ansikte Mot Ansikte? <|assistant|> SELECT "english_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "date" text, "location" text, "nature_of_incident" text, "circumstances" text, "casualties" text ); Question: What happened on 2009-09-05? <|assistant|> SELECT "circumstances" FROM "200...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "date" text, "location" text, "nature_of_incident" text, "circumstances" text, "casualties" text ); Question: Where was the combat of 2009-09-16? <|assistant|> SELECT "location" FROM "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "date" text, "location" text, "nature_of_incident" text, "circumstances" text, "casualties" text ); Question: What happened on 2009-03-14? <|assistant|> SELECT "circumstances" FROM "200...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "date" text, "location" text, "nature_of_incident" text, "circumstances" text, "casualties" text ); Question: How many casualties from the combat in the Fayzabad area? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "date" text, "location" text, "nature_of_incident" text, "circumstances" text, "casualties" text ); Question: Where was the incident of 2009-09-05? <|assistant|> SELECT "location" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the home team of the game on January 22? <|assistant|> SELECT "home" FROM "regular_s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the score of the game on February 26 with the Chicago black hawks as the home team a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the home team of the game on February 4? <|assistant|> SELECT "home" FROM "regular_s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formula_one_results" ( "year" real, "team" text, "chassis" text, "engine" text, "points" real ); Question: What Team had less than 1 point with a Zakspeed 871 chassis? <|assistant|> SELECT "tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formula_one_results" ( "year" real, "team" text, "chassis" text, "engine" text, "points" real ); Question: What is the lowest amount of points for a Ford Cosworth DFR (Mader) 3.5 V8 engine? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formula_one_results" ( "year" real, "team" text, "chassis" text, "engine" text, "points" real ); Question: What year was a Rial Arc2 chassis used? <|assistant|> SELECT SUM("year") FROM "formula...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the bronze when silver is 1 <|assistant|> SELECT "bronze" FROM "medal_table" WHERE "silve...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the least silver when gold is less than 0 <|assistant|> SELECT MIN("silver") FROM "medal_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the least silver for nation of total when bronze is more than 24 <|assistant|> SELECT MIN...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "year" text, "record" text, "finish" text, "manager" text, "playoffs" text ); Question: Name the year with finish of 12th and record of 23-36 <|assistant|> SELECT "year" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "year" text, "record" text, "finish" text, "manager" text, "playoffs" text ); Question: Name the record for 1997 <|assistant|> SELECT "record" FROM "season_by_season" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "year" text, "record" text, "finish" text, "manager" text, "playoffs" text ); Question: Name the year for jesus alfaro and finish of 6th <|assistant|> SELECT "year" FROM "se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "year" text, "record" text, "finish" text, "manager" text, "playoffs" text ); Question: Name the manager for playoffs of missed for 1999 <|assistant|> SELECT "manager" FROM ...
<|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 average attendance when the record was 17-18? <|assistant|> SEL...
<|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: What was marlboro brm's lowest points by using brm p160b? <|as...
<|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: What is the total points in 1974? <|assistant|> SELECT COUNT("...
<|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: Who has 0 points in 1974? <|assistant|> SELECT "entrant" FROM ...
<|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: What is the lowest points of using mclaren m14a as chassis? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_season_junior_career" ( "year" real, "competition" text, "location" text, "event" text, "final_rank" real, "final_score" real ); Question: Location of saint paul, and a Final-Score large...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_season_junior_career" ( "year" real, "competition" text, "location" text, "event" text, "final_rank" real, "final_score" real ); Question: Competition of u.s championships, and a Event o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominated" ( "year" real, "song" text, "film" text, "music_director_s" text, "lyricist" text ); Question: What film was in 1970? <|assistant|> SELECT "film" FROM "nominated" WHERE "year"=1970;<...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominated" ( "year" real, "song" text, "film" text, "music_director_s" text, "lyricist" text ); Question: Who wrote the lyrics for Mukti? <|assistant|> SELECT "lyricist" FROM "nominated" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominated" ( "year" real, "song" text, "film" text, "music_director_s" text, "lyricist" text ); Question: What song was directed by Shankar Jaikishan? <|assistant|> SELECT "song" FROM "nominate...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominated" ( "year" real, "song" text, "film" text, "music_director_s" text, "lyricist" text ); Question: What song was written after 1976 and directed by Rahul Dev Burman? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "settlements_with_population_between_100_" ( "rank" real, "population" real, "name" text, "former_name" text, "municipality" text ); Question: What is the population for the place with a Former ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "part_time_teams" ( "team" text, "car_s" text, "driver_s" text, "primary_sponsor_s" text, "owner_s" text, "crew_chief" text, "rounds" real ); Question: What car does Scott Deware own that ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "city_or_town" text, "position_in_2012_13_season" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "first_season_of_current_spell_in_t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "city_or_town" text, "position_in_2012_13_season" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "first_season_of_current_spell_in_t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "tournament" text, "2003" text, "2007" text, "2008" text, "2009" text, "2011" text ); Question: What is the 2003 value with 2r in 2008 and 1r in 2011? <|assistant|> SELECT "2003" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "tournament" text, "2003" text, "2007" text, "2008" text, "2009" text, "2011" text ); Question: What is the 2007 value with 2r in 2011 and 2r in 2008? <|assistant|> SELECT "2007" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "tournament" text, "2003" text, "2007" text, "2008" text, "2009" text, "2011" text ); Question: What is the 2007 value with 1r in 2009 and 2r in 2011 at the Tournament of Wimbledon...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "tournament" text, "2003" text, "2007" text, "2008" text, "2009" text, "2011" text ); Question: What is the 2003 value with 1r in 2009 at the Australian Open? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "home_grounds" ( "stadium" text, "years" text, "played" real, "wins" real, "losses" real, "draw" text, "win_percentage" text ); Question: How many wins did they have at Richmond Cricket Grou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "home_grounds" ( "stadium" text, "years" text, "played" real, "wins" real, "losses" real, "draw" text, "win_percentage" text ); Question: How many games did they play in 1905? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text ); Question: Which term in office has a qld state, a Party of labor, and an Electorate of fisher?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text ); Question: Which member has an Electorate of kennedy? <|assistant|> SELECT "member" FROM "see_a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text ); Question: Which Party has a Member of david jull? <|assistant|> SELECT "party" FROM "see_also"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text ); Question: Which term in office has an Electorate of hinkler? <|assistant|> SELECT "term_in_off...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text ); Question: Which Electorate has a State of qld, a Party of national, and a Member of hon evan a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text ); Question: Which state has a Term in office of 1984–1996, a Party of labor, and a Member of rob...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "waipa_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the total amount of decile with the authority of s...
<|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 most laps for corvette racing in 20...
<|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 class for 4th position with year be...
<|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 total number of laps for 23rd posit...
<|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 with laps less than 315 and co...