text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: If the US Open tournament had 2r in 2012, what was it in 2010? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); Question: What is the school, when the Team is Sena...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); Question: What is the Season Outcome, when the Scho...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); Question: What is the School, when the Team is Gold...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mohamed_al_zeno_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the Venue where the Result is 5–1? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mohamed_al_zeno_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the Score where Goal is larger than 11, an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mohamed_al_zeno_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the Result where Goal is 9? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mohamed_al_zeno_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was Goal that where Competition of internation...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mohamed_al_zeno_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the Competition where the Score was 3–0, an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_five_regions" ( "name" text, "population_2009_estimate" text, "largest_city" text, "largest_metropolitan_area" text, "number_of_states" text ); Question: What is the 2009 estimate populatio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_five_regions" ( "name" text, "population_2009_estimate" text, "largest_city" text, "largest_metropolitan_area" text, "number_of_states" text ); Question: What is the 2009 estimate populatio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_five_regions" ( "name" text, "population_2009_estimate" text, "largest_city" text, "largest_metropolitan_area" text, "number_of_states" text ); Question: How many states has a 2009 estimate...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_five_regions" ( "name" text, "population_2009_estimate" text, "largest_city" text, "largest_metropolitan_area" text, "number_of_states" text ); Question: What is the largest metropolitan ar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_five_regions" ( "name" text, "population_2009_estimate" text, "largest_city" text, "largest_metropolitan_area" text, "number_of_states" text ); Question: What is the 2009 estimate populatio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_in_tour_de_france" ( "year" real, "stage" real, "category" real, "start" text, "finish" text, "leader_at_the_summit" text ); Question: Who was the leader at the summit when the st...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_in_tour_de_france" ( "year" real, "stage" real, "category" real, "start" text, "finish" text, "leader_at_the_summit" text ); Question: What was the earliest year that had a start ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "four_abreast_cabin" ( "model" text, "seats" text, "period" text, "built" real, "country" text ); Question: Which Model had 37-78 seats? <|assistant|> SELECT "model" FROM "four_abreast_cabin" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1936" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); Question: Which studio did The Oregon Trail? <|assistant|> SELECT "studio" FROM "1936" WHERE "title"='t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1936" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); Question: Which title had Muriel Evans as leading lady? <|assistant|> SELECT "title" FROM "1936" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1936" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); Question: Who is the leading lady in The Lonely Trail? <|assistant|> SELECT "leading_lady" FROM "1936" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1936" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); Question: Who was the leading lady for Uni studio and Frank Strayer? <|assistant|> SELECT "leading_lady...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1936" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); Question: In which title was Ann Rutherford the leading lady for Joseph Kane? <|assistant|> SELECT "tit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1936" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); Question: Who is the leading lady in The Lonely Trail for Joseph Kane? <|assistant|> SELECT "leading_la...
<|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, "points" real ); Question: What was the Chassis with less than 8 points before 1960? <|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, "points" real ); Question: Which Chassis has 0 points? <|assistant|> SELECT "chassis" FRO...
<|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, "points" real ); Question: What were the total Pints after 1957? <|assistant|> SELECT SUM...
<|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, "points" real ); Question: What was the most recent year for Dean Van Lines? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "auckland" text, "gold_coast" text, "sydney" text, "melbourne" text, "adelaide" text, "perth" text ); Question: What Gold Coast has Auckland cancelled, and Adelaide yes? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "auckland" text, "gold_coast" text, "sydney" text, "melbourne" text, "adelaide" text, "perth" text ); Question: Which Sydney has Auckland cancelled and Perth yes? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "auckland" text, "gold_coast" text, "sydney" text, "melbourne" text, "adelaide" text, "perth" text ); Question: Which Sydney has Gold Coast no, Adelaide no< and Auckland no? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "auckland" text, "gold_coast" text, "sydney" text, "melbourne" text, "adelaide" text, "perth" text ); Question: Which Gold Coast has Melbourne yes, and Auckland yes? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "auckland" text, "gold_coast" text, "sydney" text, "melbourne" text, "adelaide" text, "perth" text ); Question: Which Perth has Auckland yes and Gold Coast yes? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "auckland" text, "gold_coast" text, "sydney" text, "melbourne" text, "adelaide" text, "perth" text ); Question: Which Gold Coast has Auckland no, Adelaide yes, and Melbourne no? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_cup" ( "date" text, "round" text, "opponents" text, "result_f_a" text, "attendance" real ); Question: What round was on 7 January 2003? <|assistant|> SELECT "round" FROM "league_cup" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_cup" ( "date" text, "round" text, "opponents" text, "result_f_a" text, "attendance" real ); Question: What is the result F_A on 17 December 2002? <|assistant|> SELECT "result_f_a" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_cup" ( "date" text, "round" text, "opponents" text, "result_f_a" text, "attendance" real ); Question: What attendance was on 7 January 2003? <|assistant|> SELECT "attendance" FROM "leagu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" text, "category" text, "genre" text, "recording" text, "result" text ); Question: Name the recording for 2012 <|assistant|> SELECT "recording" FROM "awards_and_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" text, "category" text, "genre" text, "recording" text, "result" text ); Question: Name the year with the best female pop vocal album and result of won <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" text, "category" text, "genre" text, "recording" text, "result" text ); Question: Name the category for 2013 <|assistant|> SELECT "category" FROM "awards_and_no...
<|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: Which was the lowest gold when silver was smaller than 0? <|assistant|> SELECT ...
<|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: Which is the highest total at rank 6, bronze 2, and gold larger than 0? <|assis...
<|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: Which is the highest bronze at Chinese Taipei when the rank was higher than 5 a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "single" text, "u_s_hot_100" text, "u_s_dance" text, "u_s_r_b" text, "album" text ); Question: Name the US dance when the year is more than 1985 <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "single" text, "u_s_hot_100" text, "u_s_dance" text, "u_s_r_b" text, "album" text ); Question: Name the US Hot 100 for album of I like you <|assistant|> SELECT "u_s_ho...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "single" text, "u_s_hot_100" text, "u_s_dance" text, "u_s_r_b" text, "album" text ); Question: Name the US R&B for 1981 <|assistant|> SELECT "u_s_r_b" FROM "singles" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_i" ( "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); Question: Who was the writer when Parkville Pictures Ltd was the recipient? <|assistant|> SELECT "wr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_i" ( "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); Question: Alex Winckler wrote the film, who was the director? <|assistant|> SELECT "director_s" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_i" ( "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); Question: On what date was Edward Jeffreys the writer? <|assistant|> SELECT "date" FROM "2008_i" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_i" ( "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); Question: What date was the award of Β£6,600 was given? <|assistant|> SELECT "date" FROM "2008_i" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_i" ( "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); Question: Who was the director that had a recipient of Redbag Pictures Ltd? <|assistant|> SELECT "di...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_i" ( "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); Question: What's the name of the award that Edward Jeffreys was the writer? <|assistant|> SELECT "aw...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: Who is the Player born in 1981? <|assistant|> SELECT "player" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: What is the Height that has a year born before 1977 <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "belyando" real, "broadsound" real, "nebo" real ); Question: What is the lowest Total Region that has a Year after 2001, and a Broadsound greater...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "belyando" real, "broadsound" real, "nebo" real ); Question: What is the highest Total Region that has a Broadsound greater than 1,590, a Year af...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "belyando" real, "broadsound" real, "nebo" real ); Question: What is the sum of Total Regions that have the Year 1954, and a Nebo greater than 44...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "belyando" real, "broadsound" real, "nebo" real ); Question: Before the Year 1947, what is the sum of Broadsound that have a Belyando greater tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "belyando" real, "broadsound" real, "nebo" real ); Question: After 2001, what is the sum of Belyando that have a Nebo greater than 2,522? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the number of Bronze for the Nation of Uganda with less than 2 Gold and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: With less than 7 Silver medals, how many Gold medals did Canada receive? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_2_3" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text ); Question: What is the outcome of a score that is 6–1, 6–4? <|assistant|> SELECT "outcome" FROM "sing...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_2_3" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text ); Question: What is the surface of the score, 7–6 (7–3) , 6–3? <|assistant|> SELECT "surface" FROM "si...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What venue did he play in before 2008 and finished 14th (q)? <|assistant|> SELECT "venu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What competition did he compete in before 2007 in gothenburg, sweden? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What venue did he finish 7th? <|assistant|> SELECT "venue" FROM "achievements" WHERE "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theatre" ( "opening_date" text, "closing_date" text, "performances" real, "role" text, "theatre" text ); Question: Name the most performances for geoffrey fitton <|assistant|> SELECT MAX("perfo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theatre" ( "opening_date" text, "closing_date" text, "performances" real, "role" text, "theatre" text ); Question: Name the role for Feb 4, 1961 closing date <|assistant|> SELECT "role" FROM "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theatre" ( "opening_date" text, "closing_date" text, "performances" real, "role" text, "theatre" text ); Question: Name the theatre for aaron jablonski schuyler grogan with performances more th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_gossip_girl_episodes" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What are the titles for episodes prior to episode...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_gossip_girl_episodes" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What are the titles for episodes prior to episode...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_gossip_girl_episodes" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What the air dates for the episodes are episode 3...
<|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: How many laps resulted from a Qual of 165.229? <|assistant|> SELECT MAX("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: Whent he start was 15, what was the Qual? <|assistant|> SELECT "qual" FROM "in...
<|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 was the start result with a Rank of 7 and more than 100 laps? <|assistant...
<|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 was the shirt sponsor for the Blackburn Rovers? <|assistant|>...
<|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 was the team captain of the Bolton Wanderers? <|assistant|> S...
<|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: For which team did Adidas manufacture kits and TDK sponsor shirts...
<|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: On which team was Robbie Earle the captain? <|assistant|> SELECT ...
<|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 was the manager for the team with captain Neil Redfearn? <|as...
<|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 was the team captain for Crystal Palace? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_five_scoring_international_players_t" ( "number" real, "player" text, "years_active" text, "caps" real, "tries" real, "conversions" real, "penalties" real, "drop_goals" real, "averag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_five_scoring_international_players_t" ( "number" real, "player" text, "years_active" text, "caps" real, "tries" real, "conversions" real, "penalties" real, "drop_goals" real, "averag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "june_secondary_phase" ( "round" real, "name" text, "position" text, "school" text, "signed" text ); Question: What is the highest round that has a draftee from Washington State University? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "june_secondary_phase" ( "round" real, "name" text, "position" text, "school" text, "signed" text ); Question: What round was Bob Randall selected in? <|assistant|> SELECT MAX("round") FROM "jun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "change_in_number_of_senators_over_time" ( "date_enacted" text, "normal_total" text, "26_total" text, "ont" text, "que" text, "n_s" text, "n_b" text ); Question: Name the Ont of N.B. of 10 a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "change_in_number_of_senators_over_time" ( "date_enacted" text, "normal_total" text, "26_total" text, "ont" text, "que" text, "n_s" text, "n_b" text ); Question: Name the date enacted for N....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "change_in_number_of_senators_over_time" ( "date_enacted" text, "normal_total" text, "26_total" text, "ont" text, "que" text, "n_s" text, "n_b" text ); Question: Name the NS with normal tota...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "change_in_number_of_senators_over_time" ( "date_enacted" text, "normal_total" text, "26_total" text, "ont" text, "que" text, "n_s" text, "n_b" text ); Question: Name the normal with que of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the sum of all the points won by Peter Whitehead in an alta...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: How many points does g a vandervell have? <|assistant|> SELECT "poi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: How many total points were earned with ferrari 125 Chassis after 19...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the total number of Points that Peter Whitehead earned in a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43_o" text, "d_42_o" text, "d_41" text, "d_40" text ); Question: Name the D 44 when it h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43_o" text, "d_42_o" text, "d_41" text, "d_40" text ); Question: Name the D 41 √ for hav...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43_o" text, "d_42_o" text, "d_41" text, "d_40" text ); Question: Name the D 45+ which ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43_o" text, "d_42_o" text, "d_41" text, "d_40" text ); Question: Name the D 44 which has...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43_o" text, "d_42_o" text, "d_41" text, "d_40" text ); Question: Name the D 46 which has...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "incoming_transfers" ( "rank" real, "player" text, "from" text, "transfer_fee_million" real, "year" real ); Question: What was the rank of a transfer fee larger than 13 million, and after 2008? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ukraine_1991_present" ( "president" text, "elected" real, "took_office" text, "left_office" text, "party" text ); Question: What president was elected in 2010? <|assistant|> SELECT "president" ...
<|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: When seats for 2001 is greater than 15 and % 2001 ...