text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "source" text, "date" text, "de_sus" text, "zares" text, "nlpd" text ); Question: What is the source for Zares at 8.6%? <|assistant|> SELECT "source" FROM "opinion_polls" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "source" text, "date" text, "de_sus" text, "zares" text, "nlpd" text ); Question: What is the source corresponding to a date of May 25–27? <|assistant|> SELECT "source" FROM "o...
<|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 song is done by Terence Trent D'Arby? <|assistant|> SELECT "song" FROM "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" text ); Question: What was the Result on October 27, 2002? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: in riyadh, saudi arabia, what is the score? <|assistant|> SELECT "score" FROM "int...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_people" ( "ethnic_group" text, "totora_municipality_pct" real, "pojo_municipality_pct" real, "pocona_municipality_pct" real, "chimor_municipality_pct" real, "puerto_villarroel_municipality...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_people" ( "ethnic_group" text, "totora_municipality_pct" real, "pojo_municipality_pct" real, "pocona_municipality_pct" real, "chimor_municipality_pct" real, "puerto_villarroel_municipality...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_people" ( "ethnic_group" text, "totora_municipality_pct" real, "pojo_municipality_pct" real, "pocona_municipality_pct" real, "chimor_municipality_pct" real, "puerto_villarroel_municipality...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_people" ( "ethnic_group" text, "totora_municipality_pct" real, "pojo_municipality_pct" real, "pocona_municipality_pct" real, "chimor_municipality_pct" real, "puerto_villarroel_municipality...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "camping_world_200" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); Question: Which Pos has a Car # smaller than 18, and a Driver of mike skinner? <|assistant|> SELECT A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "camping_world_200" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); Question: Which Team has a Pos larger than 3, and a Make of toyota, and a Car # smaller than 59, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "camping_world_200" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); Question: Which Pos has a Team of roush fenway racing, and a Car # of 99? <|assistant|> SELECT SUM("p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "camping_world_200" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); Question: Which Car # has a Make of toyota, and a Pos of 7? <|assistant|> SELECT AVG("car_num") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "camping_world_200" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); Question: Which Pos has a Team of germian racing? <|assistant|> SELECT "pos" FROM "camping_world_200"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); Question: Which Opponent has a Score of 2–6? <|assistant|> SELECT "opponent" FROM "playoffs" WHERE "score"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); Question: Which Game has a Series of flyers win 3–0? Question 3 <|assistant|> SELECT MAX("game") FROM "play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); Question: Which Series is on april 18? <|assistant|> SELECT "series" FROM "playoffs" WHERE "date"='april 18...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Name the date with score of 9-2 <|assistant|> SELECT "date" FROM "game_log" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "liberec" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: Which Points is the highest one that has a Nat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "liberec" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: Which Name has a 2nd (m) larger than 128.5, an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_onshore_wind_farms" ( "wind_farm" text, "capacity_mw" real, "turbines" real, "turbine_vendor" text, "size_mw" text, "county" text ); Question: What is the sum of the capacities for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_onshore_wind_farms" ( "wind_farm" text, "capacity_mw" real, "turbines" real, "turbine_vendor" text, "size_mw" text, "county" text ); Question: What is the size of the windfarm in we...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_onshore_wind_farms" ( "wind_farm" text, "capacity_mw" real, "turbines" real, "turbine_vendor" text, "size_mw" text, "county" text ); Question: Who is the turbine vendor for Meenadre...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_mexico_places_ranked_by_per_capita_i" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "median_family_income" text, "population" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_mexico_places_ranked_by_per_capita_i" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "median_family_income" text, "population" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_mexico_places_ranked_by_per_capita_i" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "median_family_income" text, "population" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_mexico_places_ranked_by_per_capita_i" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "median_family_income" text, "population" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: The United States, with a total medal count of less than 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many total gold medals did Australia receive? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many total bronze medals did Canada receive? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many total gold medals did India receive? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "career_w_l" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "career_w_l" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "career_w_l" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "career_w_l" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "career_w_l" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "instruments_played_by_band_members" ( "paul_mc_cartney" text, "stuart" text, "mc_intosh" text, "whitten" text, "linda_mc_cartney" text ); Question: Which Linda McCartney has a Stuart of electri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "instruments_played_by_band_members" ( "paul_mc_cartney" text, "stuart" text, "mc_intosh" text, "whitten" text, "linda_mc_cartney" text ); Question: Which Whitten has a Stuart of bass, and a Pau...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "instruments_played_by_band_members" ( "paul_mc_cartney" text, "stuart" text, "mc_intosh" text, "whitten" text, "linda_mc_cartney" text ); Question: Which McIntosh has a Whitten of drums, and a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "instruments_played_by_band_members" ( "paul_mc_cartney" text, "stuart" text, "mc_intosh" text, "whitten" text, "linda_mc_cartney" text ); Question: Which Paul McCartney has a Linda McCartney of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "instruments_played_by_band_members" ( "paul_mc_cartney" text, "stuart" text, "mc_intosh" text, "whitten" text, "linda_mc_cartney" text ); Question: Which McIntosh has a Stuart of bass, and a Li...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "instruments_played_by_band_members" ( "paul_mc_cartney" text, "stuart" text, "mc_intosh" text, "whitten" text, "linda_mc_cartney" text ); Question: Which Paul McCartney has a Linda McCartney of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the largest Grid that has a Bike of honda cbr1000rr, and a Time of +20.8...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_casting" ( "role" text, "d_oyly_carte_1920_tour" text, "d_oyly_carte_1930_tour" text, "d_oyly_carte_1939_tour" text, "d_oyly_carte_1945_tour" text, "d_oyly_carte_1950_tour" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_casting" ( "role" text, "d_oyly_carte_1920_tour" text, "d_oyly_carte_1930_tour" text, "d_oyly_carte_1939_tour" text, "d_oyly_carte_1945_tour" text, "d_oyly_carte_1950_tour" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_casting" ( "role" text, "d_oyly_carte_1920_tour" text, "d_oyly_carte_1930_tour" text, "d_oyly_carte_1939_tour" text, "d_oyly_carte_1945_tour" text, "d_oyly_carte_1950_tour" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_casting" ( "role" text, "d_oyly_carte_1920_tour" text, "d_oyly_carte_1930_tour" text, "d_oyly_carte_1939_tour" text, "d_oyly_carte_1945_tour" text, "d_oyly_carte_1950_tour" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_casting" ( "role" text, "d_oyly_carte_1920_tour" text, "d_oyly_carte_1930_tour" text, "d_oyly_carte_1939_tour" text, "d_oyly_carte_1945_tour" text, "d_oyly_carte_1950_tour" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_casting" ( "role" text, "d_oyly_carte_1920_tour" text, "d_oyly_carte_1930_tour" text, "d_oyly_carte_1939_tour" text, "d_oyly_carte_1945_tour" text, "d_oyly_carte_1950_tour" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: The nation of denmark has what average total nad more than 0 gold? <|assistant|> SELECT AVG("t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Switzerland has how many gold and less than 0 silver? <|assistant|> SELECT MAX("gold") FROM "m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: How many wins does the player ranked lower than 3 with earnings of $3,315,502 have? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: What is the highest number of wins of the player with less than $4,976,980 in earnings and a ran...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_lancashire_totals" ( "score" text, "opposition" text, "venue" text, "city" text, "year" real ); Question: How many years had a score of 734-5d? <|assistant|> SELECT COUNT("year") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_lancashire_totals" ( "score" text, "opposition" text, "venue" text, "city" text, "year" real ); Question: Which venue had a city of Manchester before 2003? <|assistant|> SELECT "venue" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_lancashire_totals" ( "score" text, "opposition" text, "venue" text, "city" text, "year" real ); Question: Which venue had a city of Manchester in 2003? <|assistant|> SELECT "venue" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_lancashire_totals" ( "score" text, "opposition" text, "venue" text, "city" text, "year" real ); Question: Which venue had a score of 734-5d? <|assistant|> SELECT "venue" FROM "highest_l...
<|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 average number of top-5s for the major with 5...
<|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 average number of top-10s for the major 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 total number of top-25s for the major that ha...
<|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: How many total events have cuts made over 12, more than 2...
<|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: How many total wins are associated with events with 1 top...
<|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 average number of cuts made in events with fe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: What week did they have a bye? <|assistant|> SELECT "week" FROM "schedul...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: What tournament in 2006 had a sco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_63_oberlin_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: What was the highest number of extra points scored by Albert Herrn...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_63_oberlin_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many touchdowns were scored by William Cole? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: For the game with 26,236 attendance, what was the record? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What's the record for the game with an attendance of 49,222? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_amateur_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "college_junior_club_team" text ); Question: What College/Junior/Club Team has Pick 50 before Round 8? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" real, "slalom" text, "giant_slalom" real, "super_g" real, "downhill" text, "combined" text ); Question: What is the highest overall prior to 199...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" real, "slalom" text, "giant_slalom" real, "super_g" real, "downhill" text, "combined" text ); Question: What is the lowest overall score prior t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" real, "slalom" text, "giant_slalom" real, "super_g" real, "downhill" text, "combined" text ); Question: What was her Giant Slalom score when her...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" real, "slalom" text, "giant_slalom" real, "super_g" real, "downhill" text, "combined" text ); Question: What was her highest Super G score with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_interchanges_and_features" ( "name" text, "dist_from_origin" text, "dist_from_terminus" text, "speed_limit" text, "location_all_in_nagano" text ); Question: What location has the name o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_interchanges_and_features" ( "name" text, "dist_from_origin" text, "dist_from_terminus" text, "speed_limit" text, "location_all_in_nagano" text ); Question: Which location includes Saka...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_interchanges_and_features" ( "name" text, "dist_from_origin" text, "dist_from_terminus" text, "speed_limit" text, "location_all_in_nagano" text ); Question: What is the distance from or...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "district" text, "name" text, "party" text, "hometown" text, "first_elected" real, "towns_represented" text ); Question: Which district had first elected earlier than 2006 for repre...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "district" text, "name" text, "party" text, "hometown" text, "first_elected" real, "towns_represented" text ); Question: How many values of first elected are for district 16? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "district" text, "name" text, "party" text, "hometown" text, "first_elected" real, "towns_represented" text ); Question: Which towns are represented in district 31? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "financial_comparisons_between_top_10_ban" ( "bank" text, "asset" real, "loans" real, "npl_net" text, "deposits" real, "net_interest_income" real, "non_interest_income" real, "net_profit" r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "financial_comparisons_between_top_10_ban" ( "bank" text, "asset" real, "loans" real, "npl_net" text, "deposits" real, "net_interest_income" real, "non_interest_income" real, "net_profit" r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: Which championship has a winning score of (77-76-74-73=300)? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: Which championship has a margin of 8 strokes? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: Which championship has a 5 shot lead for 54 holes? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: What is the 54 holes for The Open Championship (4)? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Which Tournament has a 2007 of wt...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Which Tournament was played in NH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Which Tournament has a 2010 of 2r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "banknotes" ( "value" text, "color" text, "obverse" text, "reverse" text, "first_issued" real ); Question: When was Color of green first issued? <|assistant|> SELECT MIN("first_issued") FROM "ba...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "banknotes" ( "value" text, "color" text, "obverse" text, "reverse" text, "first_issued" real ); Question: When was Color of green last issued? <|assistant|> SELECT MAX("first_issued") FROM "ban...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "banknotes" ( "value" text, "color" text, "obverse" text, "reverse" text, "first_issued" real ); Question: What reverse has a color of green? <|assistant|> SELECT "reverse" FROM "banknotes" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "banknotes" ( "value" text, "color" text, "obverse" text, "reverse" text, "first_issued" real ); Question: How much was a Reverse of guitar of agustín pío barrios before 1998? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is BYU's lowest pick? <|assistant|> SELECT MIN("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which cornerback round has a pick number lower than 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the overall number for the College of Wyoming...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the total round for a wide receiver with an o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is College of Ohio State's pick number with an o...