text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "population_total" real, "caboolture" real, "pine_rivers" real, "redcliffe" real ); Question: What is the average Caboolture population with a Redcliffe population gr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: In which place is Emmet French? <|assistant|> SELECT "place" FROM "first_round" WHERE "playe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: What is the result for Gold Coast when Melbourne and Adelaide are yes, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: What is the result for Melbourne when Adelaide, Sydney, and Perth are y...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: What is the result for Melbourne when Gold Coast, Perth, Auckland, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: What is the result for Gold Coast when Adelaide and Perth are yes, but ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: What is the result for Gold Coast when Melbourne and Sydney are yes, wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995" ( "sydney" text, "melbourne" text, "perth" text, "adelaide" text, "gold_coast" text, "auckland" text ); Question: What is the result for Melbourne when Adelaide is no, and Auckland is y...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "stage" text, "date" text, "course" text, "distance" text, "winner" text, "race_leader" text ); Question: Who won on 3 june? <|assistant|> SELECT "winner" FROM "stage_results...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "stage" text, "date" text, "course" text, "distance" text, "winner" text, "race_leader" text ); Question: Which date has a Race Leader of hermann buse ( ger ), and a Stage of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "stage" text, "date" text, "course" text, "distance" text, "winner" text, "race_leader" text ); Question: Which race Leader has a Stage of 7? <|assistant|> SELECT "race_leade...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "stage" text, "date" text, "course" text, "distance" text, "winner" text, "race_leader" text ); Question: Which date has a Stage of 12? <|assistant|> SELECT "date" FROM "stag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apra_awards" ( "year" real, "country" text, "nominated_work" text, "award" text, "result" text ); Question: What was the result for song of the year award in 1994? <|assistant|> SELECT "result"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apra_awards" ( "year" real, "country" text, "nominated_work" text, "award" text, "result" text ); Question: What was the result for work made by Neil Finn? <|assistant|> SELECT "result" FROM "a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: what is the money for argentina? <|assistant|> SELECT COUNT("money") FROM "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: what is the money for trevor immelman? <|assistant|> SELECT "money" FROM "fi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: what is the place for ireland? <|assistant|> SELECT "place" FROM "final_roun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_fixtures_results" ( "date" text, "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "goals" text, "attendance" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "independent_state_of_croatia" ( "date" text, "score" text, "h_t" text, "venue" text, "competition" text ); Question: What was the HT for the game at Stadio Luigi Ferraris? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "independent_state_of_croatia" ( "date" text, "score" text, "h_t" text, "venue" text, "competition" text ); Question: What was the HT for the game at Zagreb, with a full-time score of 0-2? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "independent_state_of_croatia" ( "date" text, "score" text, "h_t" text, "venue" text, "competition" text ); Question: What was the competition that was played in Zurich? <|assistant|> SELECT "co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rugby_russia_internationals_1994" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text ); Question: When was the first game associated with over 4 losses? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rugby_russia_internationals_1994" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text ); Question: What is the lowest number of games drawn associated with over 39 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rugby_russia_internationals_1994" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text ); Question: What is the highest number of losses when there are under 1 games...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: What location has more than 2 games with 2:56? <|assistant|> SELECT "location" FROM "summary" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: What location has October 10 as date? <|assistant|> SELECT "location" FROM "summary" WHERE "dat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "community_council" ( "parties_and_voter_communities" text, "pct_2006" real, "seats_2006" real, "pct_2001" real, "seats_2001" real ); Question: what is the seats 2006 total with %2001 of 39 and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "community_council" ( "parties_and_voter_communities" text, "pct_2006" real, "seats_2006" real, "pct_2001" real, "seats_2001" real ); Question: what is the total number of seats 2006 that has pa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "community_council" ( "parties_and_voter_communities" text, "pct_2006" real, "seats_2006" real, "pct_2001" real, "seats_2001" real ); Question: what is the total number of seats 2001 with seats ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text, "stadium" text ); Question: What was the loss of the game when the record was 3–2? <|assistant|> SELECT "lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text, "stadium" text ); Question: Who was the opponent at the game that had a loss of Shields (1–1)? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_individual_score" ( "runs" text, "player" text, "opponent" text, "venue" text, "season" text ); Question: Who is the opponent for Andrew Symonds in the 2004 season? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "75_million_to_79_million_records" ( "artist" text, "country_of_origin" text, "period_active" text, "release_year_of_first_charted_record" real, "genre" text, "claimed_sales" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "75_million_to_79_million_records" ( "artist" text, "country_of_origin" text, "period_active" text, "release_year_of_first_charted_record" real, "genre" text, "claimed_sales" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "75_million_to_79_million_records" ( "artist" text, "country_of_origin" text, "period_active" text, "release_year_of_first_charted_record" real, "genre" text, "claimed_sales" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: In which election was the constituency abolished? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: What was the 1st party with a 1st member of John Willis Fleming? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: What is the 1st party when the 2nd party is constituency abolishe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: Who is the 2nd member during 1885 election? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: What is the 1st party during the 1857 election? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: Which language has the percentage of 2.54? <|assistant|> SELECT "language" FROM "lan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: What is the number of females that has the Polish language? <|assistant|> SELECT "fe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: What was the number of males that had the number females 62 331? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "season" text, "player" text, "school" text, "position" text, "class" text ); Question: Which position has a sophomore class? <|assistant|> SELECT "position" FROM "women" WHERE "class"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "state" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the lowest Preliminary score of a c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: Which Set 3 has a Set 1 of 25–20? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: Which Set 3 has a Time of 10:00, and a Set 2 of 25–19?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: Which Set 1 has a Set 3 of 16–25? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: Which Set 3 has a Score of 0–3, a Time of 18:30, and a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: Which score has a Set 2 of 17–25, and a Total of 48–75...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: Which set 3 has a Time of 10:00, and a Score of 3–2, a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "discography" ( "year" real, "title" text, "role" text, "cast" text, "live_studio" text, "label" text ); Question: Is it live or studio before 1983? <|assistant|> SELECT "live_studio" FROM "di...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner" text, "country" text, "score" real, "to_par" text, "1st_prize" real ); Question: What is the total number of 1st prize ($) that has a United States country wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the round for marcus howard? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the highest laps with a 30 finish? <|assistant|> SELECT MAX("laps") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the rank of the 150.163 qual? <|assistant|> SELECT "rank" FROM "indy_5...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the lowest laps with a 142.744 qual? <|assistant|> SELECT MIN("laps") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What year had less than 160 laps and a rank of 26? <|assistant|> SELECT "year"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "numbers_from_0_5" ( "value" real, "khmer" real, "word_form" text, "ungegn" text, "ala_lc" text, "other" text ); Question: for the other of soun, what's the khmer? <|assistant|> SELECT "khmer"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "numbers_from_0_5" ( "value" real, "khmer" real, "word_form" text, "ungegn" text, "ala_lc" text, "other" text ); Question: for the other of mouy, what's the khmer? <|assistant|> SELECT "khmer"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What is the language of the film directed by Hans Kriste...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What is the original title of the film for which Dersu U...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); Question: What is Argentina's language? <|assistant|> SELECT "lang...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "tyres" text, "points" real ); Question: What chassis did Jolly Club Spa used after 198...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "tyres" text, "points" real ); Question: What engine was paired with Minardi m187? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "tyres" text, "points" real ); Question: What is the highest points with g Tyres and Mi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "tyres" text, "points" real ); Question: What Chassis has g Tyres before 1987? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "tyres" text, "points" real ); Question: How many years were g Tyres and Minardi m187 u...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_american_le_mans_series_results" ( "year" real, "entrant" text, "class" text, "chassis" text, "engine" text, "tyres" text, "rank" text, "points" real ); Question: What engine wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_american_le_mans_series_results" ( "year" real, "entrant" text, "class" text, "chassis" text, "engine" text, "tyres" text, "rank" text, "points" real ); Question: What Chassis ra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_american_le_mans_series_results" ( "year" real, "entrant" text, "class" text, "chassis" text, "engine" text, "tyres" text, "rank" text, "points" real ); Question: What was the cl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nickelodeon_movies" ( "year" real, "category" text, "film" text, "winner_nominee_s" text, "result" text ); Question: Who were the winner and nominees in 2001? <|assistant|> SELECT "winner_nomin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nickelodeon_movies" ( "year" real, "category" text, "film" text, "winner_nominee_s" text, "result" text ); Question: Who is nominated for the film Rugrats Go Wild? <|assistant|> SELECT "winner_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "season" text, "club" text, "country" text, "competition" text, "apps" real, "goals" real ); Question: How many goals did he score with under 26 appearances for werder bremen? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "season" text, "club" text, "country" text, "competition" text, "apps" real, "goals" real ); Question: How many goals did he have in the bundesliga with under 7 appearances? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "season" text, "club" text, "country" text, "competition" text, "apps" real, "goals" real ); Question: What season did he have 7 appearances? <|assistant|> SELECT "season" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What is the to par for the score 73-71=144? <|assistant|> SELECT "to_par" FROM "second_roun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What area did Julius Boros play at? <|assistant|> SELECT "place" FROM "second_round" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What country has a score of 74-70=144 <|assistant|> SELECT "country" FROM "second_round" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_partnerships" ( "auckland" text, "canterbury" text, "central_districts" text, "otago" text, "wellington" text ); Question: Which of the Canterbury has a Central District of 276* M.D. Cr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_partnerships" ( "auckland" text, "canterbury" text, "central_districts" text, "otago" text, "wellington" text ); Question: What is Auckland thats got Otago of 184 R.C. Blunt & W. Hawksw...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: What tournament was after 2009? <|assistant|> SELECT "tournament" FROM "achievements" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: What event was held in Chihuahua, Mexico? <|assistant|> SELECT "event" FROM "achievements"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "with_population_above_1_million" ( "rank" real, "country_region" text, "population" real, "area_km_2" real, "density_pop_per_km_2" real ); Question: Can you tell me the total number of Rank tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "with_population_above_1_million" ( "rank" real, "country_region" text, "population" real, "area_km_2" real, "density_pop_per_km_2" real ); Question: Can you tell me the sun of Population that h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); Question: Who is the manager with the Hewlett-Packard shirt sponsor? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); Question: Who is the captain of the team that has a kit manufacturer of Fox...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); Question: One2one is the shirt sponsor for the captain of what team? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); Question: What company is the kit manufacturer that Gareth Southgate belong...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_honours" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); Question: for the tournament of world amateur championship what was the result in 2010? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_under_20_men" ( "rank" real, "fastest_time_s" real, "wind_m_s" real, "athlete" text, "country" text, "date" text, "location" text ); Question: Which location had a race that took pla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "percussion_scholastic_open_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); Question: How many gold medals for the school with 2 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "percussion_scholastic_open_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); Question: How many gold medals for bellbrook HS with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "percussion_scholastic_open_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); Question: How many silvers for a school with 2 golds ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "percussion_scholastic_open_class" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); Question: How many gold medals for the school with le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formula_one_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" text ); Question: What is the entrant for 1967? <|assistant|> SELECT "entrant" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formula_one_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" text ); Question: What ist he entrant later than 1963 with an eagle MK1 chassis? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formula_one_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" text ); Question: What is the entrant that has 0 points? <|assistant|> SELECT "entran...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formula_one_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" text ); Question: What is the earliest year with 16 points? <|assistant|> SELECT MIN(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "biggest_wins" ( "margin" real, "score" text, "opponent" text, "venue" text, "year" real ); Question: Name the venue for margin less than 66 and opponent of north queensland cowboys <|assistant|...