text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_awards" ( "year" real, "award" text, "nominee" text, "episode" text, "result" text ); Question: What award has a year earlier than 2004 and the episode shows —? <|assistant|> SELECT "awar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_awards" ( "year" real, "award" text, "nominee" text, "episode" text, "result" text ); Question: What award has a year later than 2004, and the episode was "The Road to Damuscus"? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_awards" ( "year" real, "award" text, "nominee" text, "episode" text, "result" text ); Question: What year has a Nominee of —, and a Result of nominated? <|assistant|> SELECT AVG("year") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: What is the Country of the Play Electra? <|assistant|> SELECT "country" FROM "references" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: What is the Athens Base play with Dance Theatre Roes Company? <|assistant|> SELECT "play" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Who is the author of the Play Electra? <|assistant|> SELECT "author" FROM "references" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Waht is the Country of the play by Author Aristophanes? <|assistant|> SELECT "country" FROM "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: What Country has the Play The Libation Bearers a Base of Mecklenburg? <|assistant|> SELECT "co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1957" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text ); Question: Which series had a title of Boyhood Daze? <|assistant|> SELECT "series" FROM "1957" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1957" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text ); Question: What was the release date of Rabbit Romeo? <|assistant|> SELECT "release_date" FROM "1957"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1957" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text ); Question: What was the release date of Three Little Bops? <|assistant|> SELECT "release_date" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "lpga_wins" real, "earnings" real, "money_list_rank" real, "average" real ); Question: When earnings ($) is more than 583,796 after 1998 with 1 LPGA win...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "lpga_wins" real, "earnings" real, "money_list_rank" real, "average" real ); Question: In 2005 the earnings is less than 615,499 with less than 2 LPGA w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "lpga_wins" real, "earnings" real, "money_list_rank" real, "average" real ); Question: What is the sum of money list rank after 1999 when the average is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" text, "previous_counference" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" text, "previous_counference" text ); Question: What c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" text, "previous_counference" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_25" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the Date of the Kroger Classic Tournament? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_25" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the Date of the Ameritech Senior Open? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_25" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What Tournament has a Winning score of −16 (66-64-67=19...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "celestial_stem" text, "chinese_mandarin_pinyin" text, "cantonese_jyutping" text, "wuu_wuupin" text, "japanese_kunyomi" text, "japanese_on_yomi" text, "korean_rr" text, "manchu_m_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "celestial_stem" text, "chinese_mandarin_pinyin" text, "cantonese_jyutping" text, "wuu_wuupin" text, "japanese_kunyomi" text, "japanese_on_yomi" text, "korean_rr" text, "manchu_m_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "celestial_stem" text, "chinese_mandarin_pinyin" text, "cantonese_jyutping" text, "wuu_wuupin" text, "japanese_kunyomi" text, "japanese_on_yomi" text, "korean_rr" text, "manchu_m_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "celestial_stem" text, "chinese_mandarin_pinyin" text, "cantonese_jyutping" text, "wuu_wuupin" text, "japanese_kunyomi" text, "japanese_on_yomi" text, "korean_rr" text, "manchu_m_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "theme_song_s" text, "episodes" real, "average_ratings" text ); Question: Which Japanese Title has a TV St...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "theme_song_s" text, "episodes" real, "average_ratings" text ); Question: Which TV Station has a Romaji Ti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "theme_song_s" text, "episodes" real, "average_ratings" text ); Question: Which Theme Song(s) has a Japane...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); Question: Churai has what as the fewest numbe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1938" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text ); Question: what is the title when the release date is 1938-12-17 and the production number is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_0_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: The match played July 8, 2007 had what outcome? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_0_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: The final match played against Evie Dominikovic was play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_0_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Olga Blahotová was the opponent in the final at what tou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_0_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: In the final against Ashley Harkleroad what was the scor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); Question: What is the name for the 2008 club Liaoning? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); Question: What is the height for the Tianjin members in 2008? <|assistan...
<|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, "time" text, "location" text ); Question: At what time did the opponent...
<|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, "time" text, "location" text ); Question: In which round was Gabriel Ve...
<|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, "time" text, "location" text ); Question: Which method had a 3 rounds, ...
<|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, "time" text, "location" text ); Question: Which opponent has a record o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); Question: What is the Reserved for when there...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); Question: What is the name when there are mor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: what is the country for zhang xiuyun? <|assistant|> SELECT "country" FROM "quarterfinal_3" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: what is the country for fabiana beltrame? <|assistant|> SELECT "country" FROM "quarterfinal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: what is the notes when the time is 7:58.71? <|assistant|> SELECT "notes" FROM "quarterfinal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: what is the highest rank when the time is 7:52.65? <|assistant|> SELECT MAX("rank") FROM "q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: what is the country when the nots is sa/b, the rank is more than 1 and the athlete is zhang...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualification_round" ( "rank" real, "athlete" text, "country" text, "day_1" real, "total" text ); Question: Who had a rank under 17 with a total of 119? <|assistant|> SELECT "athlete" FROM "qua...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_cup" ( "round" text, "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: What round has 2-1 as the result, and A as the venue? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What is the most time for the swimmer from South Africa who was in a lane greater than 3? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Whi...
<|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 round when the pick # is less than 236 and the position is offensive guard? <...
<|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 position in round 3? <|assistant|> SELECT "position" FROM "nfl_draft" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_selections" ( "round" real, "pick" real, "position" text, "nationality" text, "school_club_team" text ); Question: What is the Position of the Pick 8 Player? <|assistant|> SELECT "positio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: Whi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: Whi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: Whi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: Whi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_5_matches_by_atp_world_tour_com" ( "event" real, "round" text, "surface" text, "winner" text, "opponent" text, "result" text ); Question: Which Surface has a Result of fernando verdasco?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_5_matches_by_atp_world_tour_com" ( "event" real, "round" text, "surface" text, "winner" text, "opponent" text, "result" text ); Question: How many events did clay win? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_5_matches_by_atp_world_tour_com" ( "event" real, "round" text, "surface" text, "winner" text, "opponent" text, "result" text ); Question: Which Surface has an Opponent of rafael nadal, a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_5_matches_by_atp_world_tour_com" ( "event" real, "round" text, "surface" text, "winner" text, "opponent" text, "result" text ); Question: Who is iván navarro's opponent? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_5_matches_by_atp_world_tour_com" ( "event" real, "round" text, "surface" text, "winner" text, "opponent" text, "result" text ); Question: Which Event has a Surface of semifinal, and a Wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_in_tour_de_france_since_1947" ( "year" real, "stage" real, "start" text, "finish" text, "leader_at_the_summit" text ); Question: Who was the leader at the summit earlier than 1956, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_in_tour_de_france_since_1947" ( "year" real, "stage" real, "start" text, "finish" text, "leader_at_the_summit" text ); Question: What year was finish Toulouse, and stage was larger ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_in_tour_de_france_since_1947" ( "year" real, "stage" real, "start" text, "finish" text, "leader_at_the_summit" text ); Question: What is the highest stage number for a year later th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successor_s_formal_installation" text ); Question: which Vacator has a Reason for change of re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successor_s_formal_installation" text ); Question: Which Reason has a State (class) of tenness...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successor_s_formal_installation" text ); Question: When is it that successor's formal installa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successor_s_formal_installation" text ); Question: Which State (class) has a Successor of harr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successor_s_formal_installation" text ); Question: Which date of Date of successor's formal in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "surrounding" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real ); Question: Which country has a Col (m) of 1374? <|assistant|> SELECT "country" FROM "surround...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text ); Question: How many Games have Years at club of 1971–1974, and a Debut year larger than 1971? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text ); Question: Which Games have Years at club of 1974–1975, and Goals of 4? <|assistant|> SELECT AVG("g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text ); Question: Which Years at club have Games smaller than 7, and Goals larger than 2, and a Player of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text ); Question: Which Games have Years at club of 1977, and Goals of 17, and a Debut year smaller than 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text ); Question: Which Goals have Games smaller than 41, and a Player of mark amos? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "rank" real, "heat" real, "name" text, "nationality" text, "result" text ); Question: What is Melaine Walker's Rank? <|assistant|> SELECT SUM("rank") FROM "round_1" WHERE "name"='mel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "rank" real, "heat" real, "name" text, "nationality" text, "result" text ); Question: What is the Name of the Player with a Rank of 23 or less, Heat of 4 and Result of 55.91? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "rank" real, "heat" real, "name" text, "nationality" text, "result" text ); Question: What is the Heat of the Player with a Rank of 18 or less and Result of 55.15? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mallet_and_simple_articulated_locomotive" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mallet_and_simple_articulated_locomotive" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mallet_and_simple_articulated_locomotive" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mallet_and_simple_articulated_locomotive" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mallet_and_simple_articulated_locomotive" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silver medals did Estonia, which won more than 1 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold medals did Denmark win? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of gold medals won among nations ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold medals were won by the nation that won over ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goalscorers" ( "name" text, "championship" real, "league_cup" real, "fa_cup" real, "total" text ); Question: What is the highest championship that has 1 as the league cup, and 17 as the total? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goalscorers" ( "name" text, "championship" real, "league_cup" real, "fa_cup" real, "total" text ); Question: How many league cups have an FA Cup less than 0? <|assistant|> SELECT COUNT("league_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_attacked" ( "date" text, "name_of_ship" text, "flag" text, "tonnage" real, "fate" text ); Question: On what date was the Brookwood, which weighed over 5,008 tons, attacked? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average rank of west germany (frg), which has more than 1 silver, l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "event" text, "performance" text, "athlete" text, "nation" text, "place" text, "date" text ); Question: What's the date when Yelena Isinbayeva for Russia was in Beijing, China? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "event" text, "performance" text, "athlete" text, "nation" text, "place" text, "date" text ); Question: What's the performance of Dire Tune? <|assistant|> SELECT "performance" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "event" text, "performance" text, "athlete" text, "nation" text, "place" text, "date" text ); Question: What place had 14:11.15 as the performance? <|assistant|> SELECT "place" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "event" text, "performance" text, "athlete" text, "nation" text, "place" text, "date" text ); Question: What's the event that had a performance of 14:11.15 by Ethiopia? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "twelfth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What was the position of the player picked after 94, by the Boston Patriots? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "twelfth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What college had the 93 pick? <|assistant|> SELECT "college" FROM "twelfth_round" WHERE "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1952" ( "title" text, "series" text, "director" text, "characters" text, "release_date" text, "reissue" text ); Question: Does the Robert McKimson title featuring Bugs Bunny have a reissue? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mark_van_bommel_international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What venue has euro 2004 q. as the competition? <|assistant|> SELE...