text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "country" text, "automobile_name" text, "manufacturer" text, "engine_make_capacity" text, "year" text ); Question: What country had the car with the Jawa 350cc engine? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "country" text, "automobile_name" text, "manufacturer" text, "engine_make_capacity" text, "year" text ); Question: In what country was the car with the čz 171cc engine? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "country" text, "automobile_name" text, "manufacturer" text, "engine_make_capacity" text, "year" text ); Question: What is the name of the car that was made in the years 1956-1958? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "country" text, "automobile_name" text, "manufacturer" text, "engine_make_capacity" text, "year" text ); Question: What is the name of the car manufactured by Letecke Zavody N.P., Jinon...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "country" text, "automobile_name" text, "manufacturer" text, "engine_make_capacity" text, "year" text ); Question: Who manufactured the car with the jawa 249cc engine that was made in t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_c" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is the Set 2 with a Date that is jun 29? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_c" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is the Set 1 with a Set 2 that is 25-19? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_c" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What is the Set 5 with a Date that is jun 29? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text ); Question: When...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text ); Question: What...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text ); Question: What...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text ); Question: What...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_league" ( "team" text, "match" real, "points" real, "draw" real, "lost" real ); Question: How many matches ended with more than 22 points? <|assistant|> SELECT SUM("match") FROM "second_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_results_timeline" ( "1965" text, "1966" text, "1967" text, "1968" text, "1969" text, "1970" text, "1971" text, "1972" text ); Question: What is the value in 1965 when 7 is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_results_timeline" ( "1965" text, "1966" text, "1967" text, "1968" text, "1969" text, "1970" text, "1971" text, "1972" text ); Question: What is the value in 1971 when 30 is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_results_timeline" ( "1965" text, "1966" text, "1967" text, "1968" text, "1969" text, "1970" text, "1971" text, "1972" text ); Question: What was the value in 1966 with a 0 valu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_changes" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text ); Question: Who was the player moving to Arminia Bielefeld? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What tournament had a Winning score of –9 (69-72-68-70=279)? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the winning score of the Greater Vancouver Open tour...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which runner(s)-up had a Winning score of –13 (68-70-66-71=27...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the Margin of victory in the southwest golf classic ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: When the Winning score was –9 (69-72-68-70=279), what was the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings_by_state_or_territory" ( "state_territory" text, "building" text, "height" text, "floor_count" real, "completed" real ); Question: What height has a floor count less than 25? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings_by_state_or_territory" ( "state_territory" text, "building" text, "height" text, "floor_count" real, "completed" real ); Question: What state/territory has 121 m as the height...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings_by_state_or_territory" ( "state_territory" text, "building" text, "height" text, "floor_count" real, "completed" real ); Question: What state/territory has lovett tower as the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the date of the game against Oakland Raiders? <|assistant|> SELECT "date" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_summary_in_champions_league" ( "year" text, "matches" text, "wins" text, "losses" text, "no_result" text, "success_rate" text ); Question: What year has 2 wins? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_summary_in_champions_league" ( "year" text, "matches" text, "wins" text, "losses" text, "no_result" text, "success_rate" text ); Question: What is the success rate for the year 20...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_summary_in_champions_league" ( "year" text, "matches" text, "wins" text, "losses" text, "no_result" text, "success_rate" text ); Question: What was the win for 4 matches with a su...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_summary_in_champions_league" ( "year" text, "matches" text, "wins" text, "losses" text, "no_result" text, "success_rate" text ); Question: what was the win for the 6 matches? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_summary_in_champions_league" ( "year" text, "matches" text, "wins" text, "losses" text, "no_result" text, "success_rate" text ); Question: What is the losses for the 5 matches? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_summary_in_champions_league" ( "year" text, "matches" text, "wins" text, "losses" text, "no_result" text, "success_rate" text ); Question: What is the losses for the year 2012? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average Total with a Gold that is larger than 4? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average Total with a Bronze that is larger than 1? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "result" text, "score" text, "brazil_scorers" text, "competition" text ); Question: Who were the Brazil scorers for the World Cup Competition with a 1-2 sco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "result" text, "score" text, "brazil_scorers" text, "competition" text ); Question: Which competition had a 4-3 score? <|assistant|> SELECT "competition" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the highest Top-5 that has 18 or more events with...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the lowest cuts made that had a Top-25 less than ...
<|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 race did Glenn Seton win on the Sandown International Raceway ...
<|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 date was the race at Oran Park ran? <|assistant|> SELECT "date...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assists" ( "rank" real, "name" text, "team" text, "games" real, "assists" real ); Question: What is the largest number of assists for the second rank when there were less than 2 games? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assists" ( "rank" real, "name" text, "team" text, "games" real, "assists" real ); Question: What is the smallest rank when there are more than 2 games? <|assistant|> SELECT MIN("rank") FROM "as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assists" ( "rank" real, "name" text, "team" text, "games" real, "assists" real ); Question: What is the mean number of games for pablo prigioni when there are more than 14 assists? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_trolleybus_systems_in_russia" ( "region" text, "location" text, "from" text, "depots_12_09" real, "routes_12_09" real, "vehicles_12_09" real ); Question: What region has 57 vehicles? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "year" real, "category" text, "champions" text, "runners_up" text, "score" text ); Question: What was the Score after 1991 in Category IVA? <|assistant|> SELECT "score" FROM "doubles...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "year" real, "category" text, "champions" text, "runners_up" text, "score" text ); Question: What was the Score in 2002? <|assistant|> SELECT "score" FROM "doubles" WHERE "year"=2002...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "year" real, "category" text, "champions" text, "runners_up" text, "score" text ); Question: What was the Category before 1995? <|assistant|> SELECT "category" FROM "doubles" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "year" real, "category" text, "champions" text, "runners_up" text, "score" text ); Question: What was the Category after 1991 with a Score of 7-5, 6-7, 6-2? <|assistant|> SELECT "cat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" real, "song" text, "artist" text ); Question: What was the issue date for the song by Paul Mccartney and Michael Jackson? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chhattisgarh_result" ( "state" text, "seats_a_cs" real, "date_of_counting" text, "incumbent" text, "election_winner" text ); Question: What is the smallest number of seats with INC as an electi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chhattisgarh_result" ( "state" text, "seats_a_cs" real, "date_of_counting" text, "incumbent" text, "election_winner" text ); Question: Who was the election winner with a BJP incumbent in Chhatt...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chhattisgarh_result" ( "state" text, "seats_a_cs" real, "date_of_counting" text, "incumbent" text, "election_winner" text ); Question: When was the date of counting with less than 87 seats, INC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Which country has an IATA of EVN? <|assistant|> SELECT "country" FROM "destinations" WHERE "ia...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the name of the airport located in Russia with an IATA of AER? <|assistant|> SELECT "a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the name of the airport located in Russia with an IATA of KRR? <|assistant|> SELECT "a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the name of the airport with an ICAO of ULLI? <|assistant|> SELECT "airport" FROM "des...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the ICAO for the destination in Armenia? <|assistant|> SELECT "icao" FROM "destination...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the name of the airport with an IATA of KUF? <|assistant|> SELECT "airport" FROM "dest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "location" text ); Question: What is the status of Author Del Corro? <|assistant|> SELECT "status" FROM "new...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "location" text ); Question: What is the location of the authors of Molnar? <|assistant|> SELECT "location" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "location" text ); Question: What is the status of Prenocephale? <|assistant|> SELECT "status" FROM "newly_n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "location" text ); Question: What is the novel that has a valid status, located in Mongolia, and named Preno...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "location" text ); Question: What is the novelty of Tylocephale? <|assistant|> SELECT "novelty" FROM "newly_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: Which team 1 has vfl gummersbach as team 2? <|assistant|> SELECT "team_1" FROM "round_of_16"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the 2nd leg that has 31-37 as the 1st leg? <|assistant|> SELECT "2nd_leg" FROM "roun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: Which team 1 has cbm valladolid as team 2? <|assistant|> SELECT "team_1" FROM "round_of_16" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What 2nd leg has rk gold club kozina as team 1? <|assistant|> SELECT "2nd_leg" FROM "round_o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What 1st leg has 52-70 as the agg.? <|assistant|> SELECT "1st_leg" FROM "round_of_16" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_13_7_6" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What was the surface for October 10, 2004? <|assistant|> SELECT "surface" FROM "sing...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_13_7_6" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What was the surface for the opponent Roger Federer? <|assistant|> SELECT "surface" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "competition_record" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: How many years was the 400 m event in the olympic games? <|assistant|> SELECT COU...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: How many were in attendance of the game with l 26-21 result? <|assistant|> SELECT "at...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Who is the opponent for the game with 37,845 people in attendance? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_medal_tables" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silver medals were there with 2 gold medals and more than 2 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_medal_tables" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the smallest total number of medals for rank 11 and more than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_medal_tables" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the sum of all total medals with more than 2 bronze medals an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_medal_tables" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the largest number of gold medals for Canada with more than 7...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_medal_tables" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the sum of all silver medals with less than 23 medals in tota...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "100_meters" ( "year" real, "result" real, "world_rank" text, "location" text, "date" text ); Question: When was Steve Williams in Zurich and his result was 10.07? <|assistant|> SELECT "date" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_group" ( "team" text, "match" real, "points" real, "draw" real, "lost" real ); Question: What is the largest number lost with 0 draws and less than 12 points for Gwardia Katowice? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_group" ( "team" text, "match" real, "points" real, "draw" real, "lost" real ); Question: What is the highest number of draws with 6 losses and less than 15 points? <|assistant|> SELECT MA...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_group" ( "team" text, "match" real, "points" real, "draw" real, "lost" real ); Question: How many draws correspond to more than 11 losses in a match less than 14? <|assistant|> SELECT COU...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: What is the Director of Children of Sarajevo? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: What is the Result of the 2010 (83rd) Ceremony? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: What is the Result of the 2013 (86th) Ceremony? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: What is the Original title of Children of Sarajevo?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: In the 2012 (85th) Ceremony, what was the Original ...
<|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: What is the lowest draw number for the song ranked 6th with more than 43 points? <|assistant|> ...
<|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: What is the total sum of points for songs performed by Partners in Crime? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast_translators_of_wzxv" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "facility_id" real, "erp_w" real, "height_m_ft" text, "class" text, "fcc_info" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast_translators_of_wzxv" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "facility_id" real, "erp_w" real, "height_m_ft" text, "class" text, "fcc_info" text ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What position does the player from the Toronto Argonauts play? <|assistant|> SELECT "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the 1st leg for Team 2 Concepto Egile? <|assistant|> SELECT "1st_leg" FROM "matches" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: Which team 1 has team 2, Gomera? <|assistant|> SELECT "team_1" FROM "matches" WHERE "team_2"='go...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "naia_football_independents" ( "institution" text, "location" text, "founded" real, "type" text, "enrollment" real, "team" text, "primary_conference" text ); Question: What public team was f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" ( "name" text, "date_of_birth" text, "height" real, "weight" real, "spike" real ); Question: Who has exactly 342 spikes? <|assistant|> SELECT "name" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" ( "name" text, "date_of_birth" text, "height" real, "weight" real, "spike" real ); Question: What is the smallest number of spikes for players with a w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbqt_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: What is Class, when Power is 78 Watts? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbqt_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: What is Power, when Identifier is CBEB-FM? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbqt_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: What is Identifier, when City of License is ...