text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "augmented_seventh_chord_table" ( "chord" text, "root" text, "major_third" text, "augmented_fifth" text, "minor_seventh" text ); Question: A major third of C has what listed for the Minor sevent...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "augmented_seventh_chord_table" ( "chord" text, "root" text, "major_third" text, "augmented_fifth" text, "minor_seventh" text ); Question: What is the listed chord for a Minor seventh of F? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_watched_programmes" ( "rank" real, "show" text, "episode" text, "number_of_viewers" real, "date" text ); Question: Which Rank has a Show of alcatraz, and a Number of Viewers larger than 1,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_watched_programmes" ( "rank" real, "show" text, "episode" text, "number_of_viewers" real, "date" text ); Question: Which Episode has a Rank of 1? <|assistant|> SELECT "episode" FROM "most_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text ); Question: Where was adac rally deutschland's rally HQ? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text ); Question: Where was the Rally HQ for Round 1? <|assistant|> SELECT "rall...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text ); Question: Which Support Category had a Round score of 9? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "dates" text, "rally_name" text, "rally_hq" text, "support_category" text, "surface" text ); Question: What Surface had a Rally HQ of salou? <|assistant|> SELECT "su...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is the lowest lane in the Czech Republic and a time larger than 21.05? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is the highest lane with a rank larger than 2 in Guyana? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is the sum rank of Solomon Bayoh when his time was smaller than 22.16? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_5_british_albums" ( "rank" real, "artist" text, "album" text, "peak_position" text, "sales" real, "certification" text ); Question: Who is the artist of the album Soul? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real ); Question: who is the athlete when the time is less than 11.13 and the country is belgium? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real ); Question: who is the athlete when the rank is less than 13, time more than 11.13, country is bahamas and the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real ); Question: what is the heat when the athlete is anita pistone? <|assistant|> SELECT SUM("heat") FROM "round_2"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "rank" real, "heat" real, "athlete" text, "country" text, "time" real ); Question: how many times is the rank more than 29, the athlete is barbara pierre and the heat less than 5? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text ); Question: Which IHSAA ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the sum of matches played for teams with more than 10 losses and unde...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the total number of positions for teams with more than 5 points, 3 dr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the average number of losses for teams with under 4 losses and under ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What is the home team at the game with an Attendance of 2,029? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What is the away team at the game with an Attendance of 1,730? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What is the away team at the game with a Tie no of 2? <|assistant|> SELECT "a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What P...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); Question: Which Date has an Attendance larger t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); Question: Which Loss has a Record of 20–16–9? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); Question: Which Date has a Record of 19–16–8? <...
<|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" text ); Question: Can you tell me the Time that has the Lane of 8? <|assistant|> SELECT "time" FROM "semifinal_1...
<|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" text ); Question: Can you tell me the Total number of Rankthat has the Lane of 4? <|assistant|> SELECT COUNT("ra...
<|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" text ); Question: Can you tell me the lowest Rank that has the Nationality of australia, and the Name of leisel ...
<|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" text ); Question: Can you tell me the Name that has the Rank of 4? <|assistant|> SELECT "name" FROM "semifinal_1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "anglo_italian_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); Question: What is the highest Against for a game against Bristol City? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "anglo_italian_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); Question: What was the date of the game against Oxford United? <|assistant|> SELECT "date" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What country is ranked number 4? <|assistant|> SELECT "country" FROM "semifinal_a_b_2" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What are the notes from the rank of 1? <|assistant|> SELECT "notes" FROM "semifinal_a_b_2"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What rowers have FA as the notes? <|assistant|> SELECT "rowers" FROM "heat_1" WHERE "notes"='fa';<|e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What is the lowest rank has 7:09.06 as the time? <|assistant|> SELECT MIN("rank") FROM "heat_1" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What notes have 2 as the rank? <|assistant|> SELECT "notes" FROM "heat_1" WHERE "rank"=2;<|endoftext...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: What was the match that happened in Bishop's Stortford? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: What was the final score for the Thurrock? <|assistant|> SELECT "sco...
<|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, "size" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Which IHS...
<|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, "size" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Which sch...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What's Italy's time when the notes were SA/B? <|assistant|> SELECT "time" FROM "heat_1" WHERE "notes...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What is Italy's rank? <|assistant|> SELECT "rank" FROM "heat_1" WHERE "country"='italy';<|endoftext|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "alumni" ( "name" text, "nationality" text, "position" text, "year_of_birth" real, "career" text, "appearances" real, "goals" real, "club" text ); Question: How many appearances did the pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text ); Question: Who's the player that was eliminated on episode 4? <|assistant|> SELECT "player" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text ); Question: Who is the player in 20th place? <|assistant|> SELECT "player" FROM "cast" WHERE "pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text ); Question: What's the original season in 11th place? <|assistant|> SELECT "original_season" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text ); Question: Who's the player eliminated on episode 5? <|assistant|> SELECT "player" FROM "cast" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text ); Question: Who's the player that's male and on the original season of RW: Key West? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cast" ( "player" text, "original_season" text, "gender" text, "eliminated" text, "placing" text ); Question: Who's the player eliminated on episode 8 of Fresh Meat? <|assistant|> SELECT "player...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boats_of_the_class" ( "name" text, "hull" real, "pennant_number" text, "status" text, "date_of_commission" text ); Question: The boat named Agamemnon has what status? <|assistant|> SELECT "stat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boats_of_the_class" ( "name" text, "hull" real, "pennant_number" text, "status" text, "date_of_commission" text ); Question: What status does the boat Ajax have? <|assistant|> SELECT "status" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wobbe_index_of_common_fuel_gases" ( "fuel_gas" text, "upper_index_kcal_nm_3" real, "lower_index_kcal_nm_3" real, "upper_index_mj_nm_3" real, "lower_index_mj_nm_3" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: What match number has a ground of H and the opponent Chelsea under 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: On what date is there a match lower than 14 with a ground of H and t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stats" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: On what date is there a score1 of 2 - 4 with the opponent Chelsea un...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "not_all_data_are_listed" ( "date_s" text, "venue" text, "city" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text ); Question: What is the ticket price at Canad...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "not_all_data_are_listed" ( "date_s" text, "venue" text, "city" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text ); Question: What was the ticket price at Red ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "not_all_data_are_listed" ( "date_s" text, "venue" text, "city" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text ); Question: What was the ticket price on Sept...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_game" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "opposition" text ); Question: Who was the opposition for the player who has a total of 10 points? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "single_game" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "opposition" text ); Question: Which player is from County Dublin? <|assistant|> SELECT "player" FROM "si...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_and_economy_size_for_latin_am" ( "rank" real, "metropolitan_area" text, "country" text, "gdp_ppp_2008_billions_of_us" real, "metropolitan_population_2006_millions" real, "gdp_ppp_us...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_and_economy_size_for_latin_am" ( "rank" real, "metropolitan_area" text, "country" text, "gdp_ppp_2008_billions_of_us" real, "metropolitan_population_2006_millions" real, "gdp_ppp_us...
<|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" text ); Question: Who placed highest with a time of 1:47.70? <|assistant|> SELECT MIN("rank") FROM "semifinal_1"...
<|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: How much Col (m) has an Elevation (m) smaller than 3,187, and a Prominence (m) sma...
<|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 Elevation (m) has a Prominence (m) larger than 2,120, and a Peak of mount ka...
<|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 Prominence (m) has an Elevation (m) of 3,095? <|assistant|> SELECT MIN("prom...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "poland" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); Question: How long did Witold Latoszek character lasted? <|assistant|> SELECT "duration" FROM "pola...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: Which episode was the last written by chris ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "and_neighbouring_islands" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real ); Question: What is the highest col for the prominence of 1,834 meters and elevat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "patronage_ridership" ( "type_of_service" text, "2006" real, "2007" real, "2008" real, "change_06_07" text, "change_07_08" text ); Question: What is the greatest 2007 when the change 06-07 was...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: when was the ship completed when laid down is 21 august 1925? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: When was satsuki dd-27 completed? <|assistant|> SELECT "completed"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: when was the ship launched when it was laid down 20 october 1924 a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: when was the ship completed that was laid down on 23 march 1926? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_ships" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: when was the ship laid down when it was completed on 3 july 1926? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What was the score of the game at the Chicago Stadium? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What was the date of the game when the record was 46-31? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What was the score of the game at the Chicago Stadium? <|assistant|...
<|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: What is the Rank of the Swimmer in Lane 5? <|assistant|> SELECT AVG("rank") FROM "semifinal_1"...
<|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: What is the Rank of the swimmer with a Time of 49 in Lane 7 or larger? <|assistant|> SELECT CO...
<|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: What is the Lane of the swimmer with a Rank of 8? <|assistant|> SELECT MAX("lane") FROM "semif...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text ); Question: What Level has a Season larger than 2010? <|assistant|> SELECT "level" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text ); Question: What Adminstration has a Season of 2000? <|assistant|> SELECT "administrati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text ); Question: What Position has a Season larger than 2000 with a Level of Tier 3? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" real, "level" text, "division" text, "administration" text, "position" text ); Question: What Position has a Level of tier 4 with a Season smaller than 2003? <|assi...
<|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: Who...
<|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: Who...
<|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: Who...