text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1950s" ( "country" text, "1951" real, "1952" real, "1953" real, "1954" real, "1955" real, "1956" real, "1957" real, "1958" real, "1959" real ); Question: What is the 1955 rate when th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "signings" ( "rank" real, "player" text, "from" text, "transfer_fee_millions" text, "year" real ); Question: Where was Alex Song signed from after 2010? <|assistant|> SELECT "from" FROM "signing...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "signings" ( "rank" real, "player" text, "from" text, "transfer_fee_millions" text, "year" real ); Question: How many players were signed from Sevilla? <|assistant|> SELECT COUNT("year") FROM "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dansefeber" ( "week" real, "partner" text, "dance" text, "music" text, "result" text ); Question: In what Week resulting in the bottom 3 was Endre Jansen Partner? <|assistant|> SELECT MAX("week...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dansefeber" ( "week" real, "partner" text, "dance" text, "music" text, "result" text ); Question: What Dance in Week 1 resulted in Safe? <|assistant|> SELECT "dance" FROM "dansefeber" WHERE "re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dansefeber" ( "week" real, "partner" text, "dance" text, "music" text, "result" text ); Question: In what Week was the Locking Dance? <|assistant|> SELECT MAX("week") FROM "dansefeber" WHERE "d...
<|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 position has 7 as the round, with a pick # less than 214? <|assistant|> SELECT "posi...
<|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 college has a round greater than 1, with dylan mcfarland as the player? <|assistant|...
<|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 player has a pick # greater than 207? <|assistant|> SELECT "player" FROM "nfl_draft"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_american_albums" ( "rank" real, "artist" text, "album" text, "peak_position" real, "sales" real, "certification" text ); Question: Which artist had a 4x platinum? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_american_albums" ( "rank" real, "artist" text, "album" text, "peak_position" real, "sales" real, "certification" text ); Question: What was the highest peak position for the album one ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_american_albums" ( "rank" real, "artist" text, "album" text, "peak_position" real, "sales" real, "certification" text ); Question: How many sales had a peak position of 1 and a certifi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_american_albums" ( "rank" real, "artist" text, "album" text, "peak_position" real, "sales" real, "certification" text ); Question: What album had a peak position of 6 and a certificati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_american_albums" ( "rank" real, "artist" text, "album" text, "peak_position" real, "sales" real, "certification" text ); Question: How many sales had a peak position more than 2 and a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_3" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: Who were the rowers who had a time of 7:39.70? <|assistant|> SELECT "rowers" FROM "heat_3" WHERE "ti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_3" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: Who were the rowers from china wh had a rank smaller than 4? <|assistant|> SELECT "rowers" FROM "hea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_3" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What is the notes for the rowers from denmark? <|assistant|> SELECT "notes" FROM "heat_3" WHERE "cou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Bronze has a Nation of austria, and a Total larger than 6? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Rank has a Silver of 1, and a Gold of 0, and a Nation of austria? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Total has a Rank of 5, and a Bronze smaller than 0? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Total has a Bronze of 5, and a Silver smaller than 1? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_circuit_des_ardennes" ( "year" real, "formula" text, "driver" text, "constructor" text, "location" text, "report" text ); Question: What is the highest year with a formula of G...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_circuit_des_ardennes" ( "year" real, "formula" text, "driver" text, "constructor" text, "location" text, "report" text ); Question: Which formula had a driver of John Moore-Bra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_circuit_des_ardennes" ( "year" real, "formula" text, "driver" text, "constructor" text, "location" text, "report" text ); Question: Which driver had a year under 1905? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_circuit_des_ardennes" ( "year" real, "formula" text, "driver" text, "constructor" text, "location" text, "report" text ); Question: How many years had a formula of Grand Prix? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_circuit_des_ardennes" ( "year" real, "formula" text, "driver" text, "constructor" text, "location" text, "report" text ); Question: Which location was won by George Heath? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_statistics_at_least_1_000_000_passe" ( "country" text, "airport" text, "city" text, "2010" real, "change_10_09" text ); Question: What is the 2010 total for ghana? <|assistant|> SELECT COU...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_statistics_at_least_1_000_000_passe" ( "country" text, "airport" text, "city" text, "2010" real, "change_10_09" text ); Question: Which country is the nnamdi azikiwe international airport ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_3" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is the average lane for Kenya with react larger than 0.212? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: what is the highest rank for tim maeyens? <|assistant|> SELECT MAX("rank") FROM "heat_1" WHERE "ath...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: what is the notes for andre vonarburg? <|assistant|> SELECT "notes" FROM "heat_1" WHERE "athlete"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: Who is the athlete from greece? <|assistant|> SELECT "athlete" FROM "heat_1" WHERE "country"='greec...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: who is the athlete with the rank smaller than 2? <|assistant|> SELECT "athlete" FROM "heat_1" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: what is the notes for the athlete with the time of 7:38.87? <|assistant|> SELECT "notes" FROM "heat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the sum of the gold medals of the nation with 4 silvers and more than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the highest number of bronze medals of west germany, which has more th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average total medals of the soviet union, which has more than 2 br...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "westbound_record_breakers_blue_riband_ho" ( "ship" text, "year" real, "dates" text, "line" text, "from" text, "distance" text, "days_hours_minutes" text, "speed" text ); Question: What ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "westbound_record_breakers_blue_riband_ho" ( "ship" text, "year" real, "dates" text, "line" text, "from" text, "distance" text, "days_hours_minutes" text, "speed" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "westbound_record_breakers_blue_riband_ho" ( "ship" text, "year" real, "dates" text, "line" text, "from" text, "distance" text, "days_hours_minutes" text, "speed" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "westbound_record_breakers_blue_riband_ho" ( "ship" text, "year" real, "dates" text, "line" text, "from" text, "distance" text, "days_hours_minutes" text, "speed" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "westbound_record_breakers_blue_riband_ho" ( "ship" text, "year" real, "dates" text, "line" text, "from" text, "distance" text, "days_hours_minutes" text, "speed" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" text, "year_left" text ); Question: Which year did the school with the mascot of the Vikings join...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "title" text, "time" text, "writer_s" text, "performer_s" text, "producer_s" text, "recorded_at" text ); Question: Who wrote the album recorded at funhouse studios with a tim...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "title" text, "time" text, "writer_s" text, "performer_s" text, "producer_s" text, "recorded_at" text ); Question: Who performed the song recorded at the Cabin in the Woods S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "nation" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "nation" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "nation" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cu...
<|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 lowest round number in which Will Wilcox was selected? <|assistant|> SELECT M...
<|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: Which player went to college at Tennessee-Chattanooga? <|assistant|> SELECT "player" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scandinavia" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real ); Question: Which Col (m) has an Elevation (m) smaller than 1,624? <|assistant|> SELECT MIN("c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scandinavia" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real ); Question: How much Elevation (m) has a Prominence (m) larger than 1,754? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scandinavia" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real ); Question: Which Col (m) has a Prominence (m) larger than 1,519, and a Peak of jiehkkevárri, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking_round" ( "rank" real, "archer" text, "1st_half" real, "2nd_half" real, "score" real ); Question: What is the highest score when the 1st half is smaller than 289 and rank smaller than 61...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking_round" ( "rank" real, "archer" text, "1st_half" real, "2nd_half" real, "score" real ); Question: What is the lowest first half when the score is larger than 621 and the rank 35? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: Which Grid has Points larger than 10 and a Time/Retired of +13.7 secs? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: Which Team has Points of 0, a Grid larger than 13, and a Driver of alex yoong? <|...
<|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: What is the hioghest amount of silver medals for a nation ranked higher than 19...
<|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: What nation finished with 11 silver medals? <|assistant|> SELECT "nation" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is Benito Cheng's Pick number? <|assistant|> SELECT "pick" FROM "round_1" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is the Country of origin of PIck 6? <|assistant|> SELECT "country_of_origin" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is Richard Bachmann's PBA team? <|assistant|> SELECT "pba_team" FROM "round_1"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is Far Eastern College Johnny Abarrientos' Pick number? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What home team has 10 as the tie no? <|assistant|> SELECT "home_team" FROM "third...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the game score when the tie no is 7? <|assistant|> SELECT "score" FROM "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who was the away team on 10 January 1979 who had a tie no of 17? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: When was the game that has tie no 2? <|assistant|> SELECT "date" FROM "third_roun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What round did the match at t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What event had a record of 8–...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hdr_tonemapping_and_exposure_fusion" ( "name" text, "merging_to_hdr_from_ldr_images" text, "hdr_output_exr_hdr_logluv_etc" text, "tonemapping" text, "exposure_fusion" text ); Question: What's t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hdr_tonemapping_and_exposure_fusion" ( "name" text, "merging_to_hdr_from_ldr_images" text, "hdr_output_exr_hdr_logluv_etc" text, "tonemapping" text, "exposure_fusion" text ); Question: What's t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hdr_tonemapping_and_exposure_fusion" ( "name" text, "merging_to_hdr_from_ldr_images" text, "hdr_output_exr_hdr_logluv_etc" text, "tonemapping" text, "exposure_fusion" text ); Question: What's t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_largest_american_football_stadium" ( "rank" real, "stadium" text, "capacity" text, "location" text, "home_team" text ); Question: Which location has 101,119 as the capacity? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_largest_american_football_stadium" ( "rank" real, "stadium" text, "capacity" text, "location" text, "home_team" text ); Question: What is the lowest rank that has university park, pa as ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_largest_american_football_stadium" ( "rank" real, "stadium" text, "capacity" text, "location" text, "home_team" text ); Question: What home team has a rank greater than 6, and 94,392 as ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_in_class" ( "hull_number" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: Who was the builder for the USS cambridge? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_in_class" ( "hull_number" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: What year was the USS Cambridge laid down? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What was the number of the game when the record was 11-12? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What was the score of Game 16? <|assistant|> SELECT "score" FROM "g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What was the location and attendance at the game when the record wa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_cup" ( "round_leg" text, "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: What date has 3 as the round (leg)? <|assistant|> SELECT "date" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "golden_globe_awards" ( "year" real, "category" text, "film" text, "result" text, "lost_to" text ); Question: What was the year of Bridget Jones: The Edge of Reason that was nominated? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "golden_globe_awards" ( "year" real, "category" text, "film" text, "result" text, "lost_to" text ); Question: Who was the loss to for the film Chicago? <|assistant|> SELECT "lost_to" FROM "golde...
<|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 "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 "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 "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 "criteria" ( "currency" text, "code" text, "entry_erm_ii" text, "central_rate" text, "official_target_date" text ); Question: What type of currency has a code of SEK? <|assistant|> SELECT "curre...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "criteria" ( "currency" text, "code" text, "entry_erm_ii" text, "central_rate" text, "official_target_date" text ); Question: What code is used to represent the currency of Croatian Kuna? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "chassis_code" text, "model_years" text, "model" text, "engine" text, "no_built" real ); Question: What's the model that has chassis code W116.036? <|assistant|> SELECT "model" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "chassis_code" text, "model_years" text, "model" text, "engine" text, "no_built" real ); Question: What's the years that has a chassis code of W116.025 and number built was more than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "west_german_champions_1973_1997" ( "year" text, "champions" text, "score" text, "runners_up" text, "venue" text ); Question: What the score of the 1992 game? <|assistant|> SELECT "score" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "west_german_champions_1973_1997" ( "year" text, "champions" text, "score" text, "runners_up" text, "venue" text ); Question: What is the score when TSV Siegen was the runner-up? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "west_german_champions_1973_1997" ( "year" text, "champions" text, "score" text, "runners_up" text, "venue" text ); Question: What year was the game at Bad Neuenahr Eppelborn? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "west_german_champions_1973_1997" ( "year" text, "champions" text, "score" text, "runners_up" text, "venue" text ); Question: What was the venue when the runner up was Tennis Borussia Berlin, an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "west_german_champions_1973_1997" ( "year" text, "champions" text, "score" text, "runners_up" text, "venue" text ); Question: What team was runner-up at Bergisch Gladbach in 1983? <|assistant|> ...
<|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" text ); Question: What was the time of the swimmer in lane 7? <|assistant|> SELECT "time" FROM "semifinal_2" WHE...
<|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" text ); Question: What was the rank of the swimmer with a time of 1:55.40? <|assistant|> SELECT "rank" FROM "sem...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "record" text ); Question: What was the date for game 13? <|assistant|> SELECT "date" FROM "schedule" WHERE "game"='13';<|e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "record" text ); Question: What is the record for the opponent St. Louis Cardinals? <|assistant|> SELECT "record" FROM "sch...