text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the date southampton was the away team? <|assistant|> SELECT "date" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the score of the home team tottenham hotspur? <|assistant|> SELECT "score...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the score of the game on 16 december 1987? <|assistant|> SELECT "score"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who played against the away team hereford united? <|assistant|> SELECT "home_tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who played against away team hereford united? <|assistant|> SELECT "home_team" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "details_of_participants" ( "clubs" text, "seasons_at_this_level" text, "settlements" text, "season_joined_league" text, "position_in_1959_1960" text ); Question: Which club was in Position 1 in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "details_of_participants" ( "clubs" text, "seasons_at_this_level" text, "settlements" text, "season_joined_league" text, "position_in_1959_1960" text ); Question: In which season did the évora s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "details_of_participants" ( "clubs" text, "seasons_at_this_level" text, "settlements" text, "season_joined_league" text, "position_in_1959_1960" text ); Question: What was the position in 1959-1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "details_of_participants" ( "clubs" text, "seasons_at_this_level" text, "settlements" text, "season_joined_league" text, "position_in_1959_1960" text ); Question: What was the position in 1959-1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "details_of_participants" ( "clubs" text, "seasons_at_this_level" text, "settlements" text, "season_joined_league" text, "position_in_1959_1960" text ); Question: What is the "season joined leag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What country has a score of 71-66-72-72=281? <|assistant|> SELECT "country" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What is the total amount of money that Payne Stewart has? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What country has player Nick Faldo? <|assistant|> SELECT "country" FROM "fin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What is the to par for the score 64-73-74-69=280? <|assistant|> SELECT "to_p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "busiest_international_routes_from_jeju_2" ( "rank" real, "airport" text, "passengers" real, "aircraft_movements" real, "carriers" text ); Question: What is the lowest rank for China Eastern Air...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "busiest_international_routes_from_jeju_2" ( "rank" real, "airport" text, "passengers" real, "aircraft_movements" real, "carriers" text ); Question: What is the smallest rank for passengers more...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "busiest_international_routes_from_jeju_2" ( "rank" real, "airport" text, "passengers" real, "aircraft_movements" real, "carriers" text ); Question: Which carrier is ranked 20? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "busiest_international_routes_from_jeju_2" ( "rank" real, "airport" text, "passengers" real, "aircraft_movements" real, "carriers" text ); Question: What is the highest rank when there are fewer...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_division" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: When the wolverhampton wanderers were the opponent, with a crowd larger than 41,415, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "title_holders_from_1992_until_1999" ( "year" real, "binibining_pilipinas_universe" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "miss_maja_pilipinas" text,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "title_holders_from_1992_until_1999" ( "year" real, "binibining_pilipinas_universe" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "miss_maja_pilipinas" text,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "title_holders_from_1992_until_1999" ( "year" real, "binibining_pilipinas_universe" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "miss_maja_pilipinas" text,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text ); Question: Which Result has a Site of rice stadium • houston, tx? <|assistant|> SELECT "result" FROM "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text ); Question: What Opponent has a Site of razorback stadium • fayetteville, ar, and a Date of october 7, 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text ); Question: What Opponent has a Site of war memorial stadium • little rock, ar, and a Result of l6–7? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text ); Question: What Result has a Date of october 14, 1967? <|assistant|> SELECT "result" FROM "schedule" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text ); Question: What Attendance has a Result of l12–21? <|assistant|> SELECT "attendance" FROM "schedule" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text ); Question: What Site has Attendance of 53,000, and a Date of october 21, 1967? <|assistant|> SELECT "si...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recording_and_release_details" ( "region" text, "date" text, "label" text, "format_s" text, "catalog" text ); Question: What region is the toshiba emi label with a cd format? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recording_and_release_details" ( "region" text, "date" text, "label" text, "format_s" text, "catalog" text ); Question: What is the dage of catalog asw 28033? <|assistant|> SELECT "date" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recording_and_release_details" ( "region" text, "date" text, "label" text, "format_s" text, "catalog" text ); Question: What is the date with a Japan region? <|assistant|> SELECT "date" FROM "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recording_and_release_details" ( "region" text, "date" text, "label" text, "format_s" text, "catalog" text ); Question: What region has a lp format on 4 August 2008? <|assistant|> SELECT "regio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recording_and_release_details" ( "region" text, "date" text, "label" text, "format_s" text, "catalog" text ); Question: What region is on 11 August 2008? <|assistant|> SELECT "region" FROM "rec...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "odi_centuries" ( "score" text, "pos" real, "inn" real, "venue" text, "h_a_n" text ); Question: What is the position with a neutral H/A/N and more than 2 innings? <|assistant|> SELECT AVG("pos")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "odi_centuries" ( "score" text, "pos" real, "inn" real, "venue" text, "h_a_n" text ); Question: Which venue has a neutral H/A/N, lower than position 3 and a score of 141? <|assistant|> SELECT "v...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "odi_centuries" ( "score" text, "pos" real, "inn" real, "venue" text, "h_a_n" text ); Question: Which H/A/N has a score of 105*♠? <|assistant|> SELECT "h_a_n" FROM "odi_centuries" WHERE "score"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_table" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" text ); Question: What is the average goals sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_table" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" text ); Question: What is the average goals sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_table" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" text ); Question: What is the lowest place of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterbacks_sorted_by_win_percentage" ( "quarterback" text, "games" real, "teams" text, "wins" real, "losses" real, "percent" real ); Question: what is games when the losses is more than 1, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterbacks_sorted_by_win_percentage" ( "quarterback" text, "games" real, "teams" text, "wins" real, "losses" real, "percent" real ); Question: what is the average wins when percent is more ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterbacks_sorted_by_win_percentage" ( "quarterback" text, "games" real, "teams" text, "wins" real, "losses" real, "percent" real ); Question: What is the average wins when teams is lions a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterbacks_sorted_by_win_percentage" ( "quarterback" text, "games" real, "teams" text, "wins" real, "losses" real, "percent" real ); Question: what is the highest wins when the losses is le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_6_3_titles_3_runner_ups" ( "outcome" text, "date" text, "category" text, "surface" text, "opponent" text, "score" text ); Question: What category is Matthew Barton? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_in_class" ( "bow_number" text, "ship_name" text, "launched" text, "commissioned" text, "service" text ); Question: When did the ship commissioned in November 1975 with a bow number of ps-...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_in_class" ( "bow_number" text, "ship_name" text, "launched" text, "commissioned" text, "service" text ); Question: When did the ship that was commissioned July 1948 with a bow number of p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_in_class" ( "bow_number" text, "ship_name" text, "launched" text, "commissioned" text, "service" text ); Question: When was the ship BRP Miguel Malvar commissioned? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); Question: What parish has the lowest area and a population of more than 1,776 and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); Question: What is the population of northfield parish that has an area less than 3...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); Question: What is the population of the parish with a census ranking of 579 of 5,0...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); Question: What is the population of the parish that has an area of 304.06? <|assis...
<|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 is the earliest year the world junior championships has 1500 m notes? <|assistant|...
<|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: Which venue had 5000 m notes in 2009 with a 1st position? <|assistant|> SELECT "venue" ...
<|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 is the average year with 7th (heats) position? <|assistant|> SELECT AVG("year") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What Method was used with opp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_dmfas_programme_managers_and_chi" ( "number" real, "name" text, "dates_in_office" text, "country_of_origin" text, "remarks" text ); Question: What is the remark for Norway? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: How many people attended the game against the Kaizer Chiefs? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: What is the result F-A with an H/A of h and more than 31,727 attending?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: What was the result F-A with more than 11,372 attending and an H/A of n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What is Player, when College/Junior/Club Team (League) ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What is the Position, when Player is "Magnus Nygren"? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What is Position, when Round is less than 5, when Natio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What is College/Junior/Club Team (League), when Positio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: count the the average Total of ian baker-finch? <|assistant|> SELECT AVG("total") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: Which Country has a Year(s) won of 1963? <|assistant|> SELECT "country" FROM "missed...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What is Greg Norman's score? <|assistant|> SELECT "score" FROM "final_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What place is John Cook in? <|assistant|> SELECT "place" FROM "final_l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What is the money for the player with a score of 68-69-67-73=277? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What is the to par of the player with a 72-71-65-69=277 score? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What is the country of the player with playoff money and a score of 66-67-70...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: How much money does the player with a score of 76-70-65-68=279 have? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What is the score of player darren clarke, who has $112,500? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What is the to par of player notah begay iii from the United States? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_2_31_january_2009" ( "draw" real, "artist" text, "song" text, "results" text, "place" text ); Question: What song has a draw more than 4 in 1st place? <|assistant|> SELECT "song" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_2_31_january_2009" ( "draw" real, "artist" text, "song" text, "results" text, "place" text ); Question: What is the artist for the song "alt har en mening nå"? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_2_31_january_2009" ( "draw" real, "artist" text, "song" text, "results" text, "place" text ); Question: What is the result of the song "ride"? <|assistant|> SELECT "results" FROM "se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m_ps_1832_1885_macclesfield_parliamentar" ( "election" real, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: Which 1st member has Thomas Grimsditch as a 2n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m_ps_1832_1885_macclesfield_parliamentar" ( "election" real, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: What is all the total election that has conser...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m_ps_1832_1885_macclesfield_parliamentar" ( "election" real, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: Which 1st party has John Brocklehurst as 1st m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m_ps_1832_1885_macclesfield_parliamentar" ( "election" real, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: Which 1st party has 2nd party conservative, el...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_squad" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text ); Question: Name the Weight of ádám steinmetz category:articles with hcards? <|assistant|> SELECT "weig...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_squad" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text ); Question: Name the Weight which has a 2012 club of pro recco, and a Name of tamás kásás category:arti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_squad" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text ); Question: Name the Weight which has a Name of balázs hárai category:articles with hcards? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_squad" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text ); Question: Name the 012 club which has of norbert hosnyánszky category:articles with hcards? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the lowest Against, when Venue is "Twickenham , London", when Status is "Six Nations...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the total number of Against, when Date is "27/02/2005"? <|assistant|> SELECT COUNT("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the highest Against, when Date is "27/02/2005"? <|assistant|> SELECT MAX("against") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is Status, when Opposing Teams is "Italy"? <|assistant|> SELECT "status" FROM "2005" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "huchra_et_al_1982_members_of_the_dorado_" ( "name" text, "type" text, "r_a_j2000" text, "dec_j2000" text, "redshift_km_s" text, "apparent_magnitude" real ); Question: Which Name has Apparent ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "huchra_et_al_1982_members_of_the_dorado_" ( "name" text, "type" text, "r_a_j2000" text, "dec_j2000" text, "redshift_km_s" text, "apparent_magnitude" real ); Question: Which R.A. (J2000) has a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "huchra_et_al_1982_members_of_the_dorado_" ( "name" text, "type" text, "r_a_j2000" text, "dec_j2000" text, "redshift_km_s" text, "apparent_magnitude" real ); Question: Which Dec. (J2000) has a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "huchra_et_al_1982_members_of_the_dorado_" ( "name" text, "type" text, "r_a_j2000" text, "dec_j2000" text, "redshift_km_s" text, "apparent_magnitude" real ); Question: Which R.A. (J2000) has a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "huchra_et_al_1982_members_of_the_dorado_" ( "name" text, "type" text, "r_a_j2000" text, "dec_j2000" text, "redshift_km_s" text, "apparent_magnitude" real ); Question: Which R.A. (J2000) has A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Which player had a To par of +11? <|assistant|> SELECT "player" FROM ...