text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "solo_songs" ( "title" text, "russian" text, "transliteration" text, "original_text" text, "start" real ); Question: What Title's Transliteration is Fal'shivaya Nota? <|assistant|> SELECT "title...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "solo_songs" ( "title" text, "russian" text, "transliteration" text, "original_text" text, "start" real ); Question: What Title has a Transliteration of u lyudey-to v domu? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_mexico" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: What is average frequency MHZ when is in portales, new mexico? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_mexico" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: What is FCC info when ERP W is larger than 92 and call sign has k264ba?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_mexico" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: Which call sign has ERP Wlarger than 250, and Frequency MHZ smaller tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friendly_2004" ( "date" text, "venue" text, "opponents" text, "score" text, "comp" text ); Question: Where was the game played when the score was 1-4? <|assistant|> SELECT "venue" FROM "friendl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friendly_2004" ( "date" text, "venue" text, "opponents" text, "score" text, "comp" text ); Question: Who was the game played against on 2004-02-28 at Skytteholms IP? <|assistant|> SELECT "oppon...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friendly_2004" ( "date" text, "venue" text, "opponents" text, "score" text, "comp" text ); Question: When the game was played at Domnarvsvallen who were the opponents? <|assistant|> SELECT "opp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friendly_2004" ( "date" text, "venue" text, "opponents" text, "score" text, "comp" text ); Question: Who were the opposing team when playing in the Portugal venue? <|assistant|> SELECT "opponen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friendly_2004" ( "date" text, "venue" text, "opponents" text, "score" text, "comp" text ); Question: Where was the game played on 2004-06-23? <|assistant|> SELECT "venue" FROM "friendly_2004" W...
<|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" real, "money" real ); Question: What is the to par for Tom Weiskopf? <|assistant|> SELECT AVG("to_par") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: What title did George Fury win when on the Oran Park Raceway? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: Who was the winner on the Amaroo Park circuit? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promotion_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promotion_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promotion_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promotion_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "points" real, "rank" text ); Question: How much Draw has a Rank of 3rd, and a Performer of noelle, and Points larger than 79? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "points" real, "rank" text ); Question: Which Draw has a Performer of jenny newman, and Points smaller than 77? <|assistant|> SELECT AV...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "draw" real, "song" text, "performer" text, "points" real, "rank" text ); Question: Which Points have a Draw of 2? <|assistant|> SELECT AVG("points") FROM "references" WHERE "draw...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stages" ( "stage" real, "start" text, "arrival" text, "duration" text, "difficulty" text ); Question: Which stage number did son bou arrive at? <|assistant|> SELECT COUNT("stage") FROM "stages"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stages" ( "stage" real, "start" text, "arrival" text, "duration" text, "difficulty" text ); Question: How long does the one that stars with son bou of middle difficulty, and on a stage number l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stages" ( "stage" real, "start" text, "arrival" text, "duration" text, "difficulty" text ); Question: What is the lowest stage number that starts with els alocs and has a middle difficulty? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saudi_arabia" ( "internet_plan" text, "downstream" text, "upstream" text, "bandwidth_included" text, "price" text ); Question: What is the price of the internet provider that has an upstream ra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saudi_arabia" ( "internet_plan" text, "downstream" text, "upstream" text, "bandwidth_included" text, "price" text ); Question: For the provider that costs 266 sar, what is the Bandwidth Include...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saudi_arabia" ( "internet_plan" text, "downstream" text, "upstream" text, "bandwidth_included" text, "price" text ); Question: What is the name of the plan that has a downstream rate of 4,096 k...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "location_attendance" text, "record" text ); Question: Which record has a score of l 121–127? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "location_attendance" text, "record" text ); Question: What high points did San Francisco have in a game...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "location_attendance" text, "record" text ); Question: What is the record for March 10? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "location_attendance" text, "record" text ); Question: What high points did a game earlier than 80 have ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bathurst_1000_results" ( "year" real, "number" real, "team" text, "co_driver" text, "position" text, "laps" real ); Question: What is the lowest Year, when Co-Driver is Warren Luff, when Posi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bathurst_1000_results" ( "year" real, "number" real, "team" text, "co_driver" text, "position" text, "laps" real ); Question: What is Position, when Laps is 156? <|assistant|> SELECT "positio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bathurst_1000_results" ( "year" real, "number" real, "team" text, "co_driver" text, "position" text, "laps" real ); Question: What is the highest Year, when Laps is greater than 161? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" real, "slalom" text, "giant_slalom" real, "super_g" text, "downhill" text, "combined" text ); Question: What season had a combined of 13 and a G...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" real, "slalom" text, "giant_slalom" real, "super_g" text, "downhill" text, "combined" text ); Question: What season had a downhill of 35 and ove...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" real, "slalom" text, "giant_slalom" real, "super_g" text, "downhill" text, "combined" text ); Question: What's the Super G when the combined was...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What is Time, when Laps is 22, and when Grid is 15? <|assistant|> SELECT "time" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What is the average Grid, when Time is +45.855? <|assistant|> SELECT AVG("grid") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What is the total number of Grid, when Time is +43.191, and when Laps is less tha...
<|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 place of Mark O'Meara? <|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: Which player has a score of 71-72=143? <|assistant|> SELECT "player" FROM "second_round" WH...
<|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 score for the United States in place T1 for David Duval? <|assistant|> SELECT "...
<|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: Who is the player from the United States with a score of 71-72=143? <|assistant|> SELECT "p...
<|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: Which country is Scott McCarron from? <|assistant|> SELECT "country" FROM "second_round" WH...
<|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: Which country is in T1 place with a score of 71-68=139? <|assistant|> SELECT "country" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "result" text, "competition" text, "scored" real ); Question: what is the venue when the competition is friendly on 26 may 1999?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "hole" text ); Question: What was Australia's place? <|assistant|> SELECT "place" FROM "third_round" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "hole" text ); Question: What was the score for United States when the player was Mike Reid and the To...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "hole" text ); Question: How many holes did Mike Reid from United States have? <|assistant|> SELECT "h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: Which Name has a Position smaller than 2? <|assistant|> SELECT "name" FROM "ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: Which Lost has a Position larger than 2, a Name of sg münchen (n), and a Drawn...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: Which Drawn has a Position of 2, and a Lost larger than 2? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: Which Played has a Position of 3, and a Points smaller than 15? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: Which Played has a Position larger than 5, a Points larger than 0, and a Drawn...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: What is the score when Miami is the visitor? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: For the game that was 76-85, what was the record? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: On April 18, which team was the visitor? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: Who was the leading scorer on April 7? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: Where was the home court on April 14? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text ); Question: What is the boston celtics' record? <|assistant|> SELECT "record" FROM "seaso...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text ); Question: Which Score has a Record of 9–8? <|assistant|> SELECT "score" FROM "season_sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text ); Question: Which Date has a Streak of loss 2, and a Team of @ boston celtics? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text ); Question: Which Date has a Streak of win 1, and a Record of 8–4? <|assistant|> SELECT "...
<|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: What was the top score for grier jones? <|assistant|> SELECT MAX("score") FROM "first_round"...
<|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: Which To par is scored at 70? <|assistant|> SELECT "to_par" FROM "first_round" WHERE "score"...
<|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 what place did hubert green score below 70 in the united states? <|assistant|> SELECT "pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "riders" ( "position" real, "driver_passenger" text, "equipment" text, "bike_no" real, "points" real ); Question: Which Driver and passenger have a bike number of less than 4 with zabel -vmc equ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standings" ( "place" real, "competitor" text, "downhill" real, "slalom" real, "average" real ); Question: What's the slalom when the average time was greater than 99.25? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standings" ( "place" real, "competitor" text, "downhill" real, "slalom" real, "average" real ); Question: Where was the place that the downhill was 71.6 and the average was less than 90.0...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is ICAO, when Airport is "Sibulan Airport"? <|assistant|> SELECT "icao" FROM "references" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is ICAO, when IATA is "HKG"? <|assistant|> SELECT "icao" FROM "references" WHERE "iata"='hk...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is IATA, when ICAO is "VHHH"? <|assistant|> SELECT "iata" FROM "references" WHERE "icao"='v...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is City, when IATA is "LAO"? <|assistant|> SELECT "city" FROM "references" WHERE "iata"='la...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is Country, when City is "Zamboanga"? <|assistant|> SELECT "country" FROM "references" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "farra" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: How long is the diameter that has a longitude of 8.0e? <|assistant|> SELECT "diameter...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "farra" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: What name was given in 1994 when the diameter (km) was larger than 125 and the latitu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "farra" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: What is the longitude of Carmenta Farra in 1994? <|assistant|> SELECT "longitude" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text ); Question: Name...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text ); Question: Name...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text ); Question: Name...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text ); Question: Name...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text ); Question: Name...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "male_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text ); Question: Name...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_mexico" ( "poll_source" text, "sample_size" real, "date" text, "democrat" text, "republican" text ); Question: What was the date for Ron Paul as republican and a sample sized less than 472?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_mexico" ( "poll_source" text, "sample_size" real, "date" text, "democrat" text, "republican" text ); Question: Who was the Democrat when the Republican was Mike Huckabee, and the sample siz...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the attendance in week 9? <|assistant|> SELECT AVG("attendance") FROM "schedule" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What week had attendance of 52,714? <|assistant|> SELECT MAX("week") FROM "schedule" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer_paralympics" ( "event" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the gold when silver is 1, event is 2000 summer paralympics and bronze is more t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer_paralympics" ( "event" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: how many times is bronze 2 and gold more than 3? <|assistant|> SELECT COUNT("total") FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer_paralympics" ( "event" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the highest gold when silver is 1 and bronze is less than 0? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer_paralympics" ( "event" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the highest bronze when silver is less than 1 and gold is more than 0? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summer_paralympics" ( "event" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the most silver when the event is 2008 summer paralympics and bronze is less tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "discography" ( "release_date" text, "album_title" text, "record_label" text, "disc_number" text, "track_number" text, "title" text ); Question: Which Album title has a Title of 滑板? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "discography" ( "release_date" text, "album_title" text, "record_label" text, "disc_number" text, "track_number" text, "title" text ); Question: Which Record label has a Title of 诀别诗? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "discography" ( "release_date" text, "album_title" text, "record_label" text, "disc_number" text, "track_number" text, "title" text ); Question: Which Track number has a Album title of 文武双全升级版...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "discography" ( "release_date" text, "album_title" text, "record_label" text, "disc_number" text, "track_number" text, "title" text ); Question: What kind of Disc number has a Track number of ...