text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_1996" text ); Question: What team plays at Spartak, Mogilev? <|assistant|> SELECT "team" FROM "team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmography" ( "year" real, "film" text, "role" text, "producer_director" text, "notes" text ); Question: Who was the Producer/Director of Fear Beneath? <|assistant|> SELECT "producer_director"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmography" ( "year" real, "film" text, "role" text, "producer_director" text, "notes" text ); Question: What film was released in 1996? <|assistant|> SELECT "film" FROM "filmography" WHERE "y...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmography" ( "year" real, "film" text, "role" text, "producer_director" text, "notes" text ); Question: Who is the Producer/Director of Political Engagement? <|assistant|> SELECT "producer_di...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_7_1943_1944" ( "episode" text, "title" text, "writer_s" text, "preservation" text, "original_airdate" text ); Question: What is the original airdate for episode 7-17 (195) from writer Si...
<|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 rank of Greg Norman who earned more than $12,507,322? <|assistant|> SELECT AVG("rank...
<|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 rank of the United States player Davis Love III with earnings under $12,487,463? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wta_tour_singles_finals_19_7_12" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What is the date of the tournament p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_08_cardiff_city_f_c_season" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: What opponent has final as the round? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_08_cardiff_city_f_c_season" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: What round has hereford united as the opponent? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "location_state" text, "date" text, "winner" text, "team" text ); Question: Which Location /State has a Winner of craig lowndes, and a Date...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "location_state" text, "date" text, "winner" text, "team" text ); Question: Which Team has a Winner of craig lowndes, and a Circuit of phil...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "location_state" text, "date" text, "winner" text, "team" text ); Question: Which Location/ State has a Date of 29–31 may? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "location_state" text, "date" text, "winner" text, "team" text ); Question: Who won at the Circuit of lakeside international raceway? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_dahlgren_boat_howitzers" ( "designation" text, "bore" text, "weight" text, "service_charge" text, "range_yards" text, "number_made" real ); Question: What is the service charge of th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_dahlgren_boat_howitzers" ( "designation" text, "bore" text, "weight" text, "service_charge" text, "range_yards" text, "number_made" real ); Question: What is the service chage of the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_dahlgren_boat_howitzers" ( "designation" text, "bore" text, "weight" text, "service_charge" text, "range_yards" text, "number_made" real ); Question: What is the service charge of th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_dahlgren_boat_howitzers" ( "designation" text, "bore" text, "weight" text, "service_charge" text, "range_yards" text, "number_made" real ); Question: What is the bore of the boat how...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "report" text, "attendance" real ); Question: Which attendance has 9 as the tie no.? <|assistant|> SELECT "att...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: How many Picks have a Position of defensive end,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which Overall is the highest one that has a Name...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which Pick # has a Round larger than 5, and a Po...
<|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 is the score from the 21-27 Record? <|assistant|> SELECT "score" FROM "...
<|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: How many people attended the May 28 game? <|assistant|> SELECT "attendance" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the average ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the highest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "april" real, "opponent" text, "score" text, "record" text, "points" real ); Question: How many Points has a Game of 82 and a April larger than 10? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "april" real, "opponent" text, "score" text, "record" text, "points" real ); Question: How many Games have a Score of 3–3 ot? <|assistant|> SELECT COUNT("game")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "april" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which April has a Game of 84 <|assistant|> SELECT MAX("april") FROM "regu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points" text ); Question: what's the played status when the club was ban...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points" text ); Question: what's the points total when points against wa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points" text ); Question: when points were 36 and points against 489 wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points" text ); Question: when points against was 387 what was the lost?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_2007_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points" text ); Question: when points for was points for what was the po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_selection" ( "year" real, "pick" text, "player" text, "position" text, "college" text ); Question: What was 1948's pick? <|assistant|> SELECT "pick" FROM "player_selection" WHERE "year"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_selection" ( "year" real, "pick" text, "player" text, "position" text, "college" text ); Question: What was the pick in 2004? <|assistant|> SELECT "pick" FROM "player_selection" WHERE "y...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_selection" ( "year" real, "pick" text, "player" text, "position" text, "college" text ); Question: How many years have a Pick of 12, and a Position of dt, and a College of penn state? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_record" ( "year" real, "wins" real, "earnings" text, "rank" real, "scoring_average" real ); Question: What is the scoring average where the wins are 0? <|assistant|> SELECT COUNT("sco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_record" ( "year" real, "wins" real, "earnings" text, "rank" real, "scoring_average" real ); Question: What year has earnings of $557,158? <|assistant|> SELECT MAX("year") FROM "lpga_t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Points have an Opponent of @ florida panthers, and a Game larger...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roman_catholicism_in_asia" ( "region" text, "total_population" real, "catholic" real, "pct_catholic" text, "pct_of_global_catholic_pop" text ); Question: what is the catholic when the % catholi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roman_catholicism_in_asia" ( "region" text, "total_population" real, "catholic" real, "pct_catholic" text, "pct_of_global_catholic_pop" text ); Question: with catholic of 3.33% and total popula...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which February has a Game of 64? <|assistant|> SELECT AVG("february") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Points have a Game smaller than 60, and a Score of 2–0, and a Fe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Game is the highest one that has a February of 25? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Game is the highest one that has a Score of 3–4 ot, and Points l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: How much February has a Score of 5–2, and Points of 70? <|assistant|> ...
<|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, "record" text, "game_site" text, "attendance" real ); Question: Which result happened more recently than week 2, and ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); Question: what album is 4:30 long <|assistant|> SELECT "album" FROM "official_versions" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "previous_season" text, "team" text, "town" text, "arena_capacity" text, "website" text, "head_coach" text, "foreign_players_max_2" text ); Question: What is the Head Coach of Novy...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "previous_season" text, "team" text, "town" text, "arena_capacity" text, "website" text, "head_coach" text, "foreign_players_max_2" text ); Question: What is the Arena o Kazan? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "previous_season" text, "team" text, "town" text, "arena_capacity" text, "website" text, "head_coach" text, "foreign_players_max_2" text ); Question: What is the Website of Head Co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponents" text, "score" text ); Question: Opponents of sebastián decoud santiago giraldo had what surface? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponents" text, "score" text ); Question: Partnering of franco ferreiro had what tournament? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponents" text, "score" text ); Question: Date of april 10, 2006 had what surface? <|assistant|> SELECT "surf...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponents" text, "score" text ); Question: Surface of clay, and a Partnering of júlio silva had what score? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponents" text, "score" text ); Question: Date of november 3, 2008 had what score? <|assistant|> SELECT "scor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sapporo" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: Which Points have a Name of denis kornilov? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sapporo" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: Which Rank is the highest one that has a 1st (...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sapporo" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: Which Rank that a Name of thomas morgenstern, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sapporo" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: How many Points have a Nationality of nor, and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the overall number for Louisiana Tech co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What was the pick number for Deji Karim, in a ro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which college had an overall number more than 18...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the overall number for a pick of #10, fr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What's the Pick average that has a School/Club Team of Alabama, with a Round that's ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What's the sum of the Pick that has the Player of Robert Ingalls? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What's the sum of the Pick that has the Position of Tackle, the Player Woody Adams, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What Position has a Round that's larger than 21? <|assistant|> SELECT "position" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_official_appearances" ( "ranking" real, "nationality" text, "name" text, "position" text, "years" text, "league" real, "europe" real, "others" real, "total" real ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sources_of_income" ( "region" text, "employment_salaries_wages" text, "self_employed" text, "investment_income" text, "working_tax_credit" text, "state_pensions" text, "occupational_pensions...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sources_of_income" ( "region" text, "employment_salaries_wages" text, "self_employed" text, "investment_income" text, "working_tax_credit" text, "state_pensions" text, "occupational_pensions...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sources_of_income" ( "region" text, "employment_salaries_wages" text, "self_employed" text, "investment_income" text, "working_tax_credit" text, "state_pensions" text, "occupational_pensions...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sources_of_income" ( "region" text, "employment_salaries_wages" text, "self_employed" text, "investment_income" text, "working_tax_credit" text, "state_pensions" text, "occupational_pensions...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sources_of_income" ( "region" text, "employment_salaries_wages" text, "self_employed" text, "investment_income" text, "working_tax_credit" text, "state_pensions" text, "occupational_pensions...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sources_of_income" ( "region" text, "employment_salaries_wages" text, "self_employed" text, "investment_income" text, "working_tax_credit" text, "state_pensions" text, "occupational_pensions...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_c_denmark" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: How many Drawn is which has a Games smaller than 6? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_c_denmark" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What is the Points that has 61 - 15 Point difference and a D...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_c_denmark" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: How many Drawn has a Games larger than 6? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "births_by_mother" ( "year" real, "jewish" real, "muslim" real, "christian" real, "druze" real, "total" real ); Question: How many jewish have a muslim less than 36,041, a total less than 161,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "births_by_mother" ( "year" real, "jewish" real, "muslim" real, "christian" real, "druze" real, "total" real ); Question: What is the lowest year that has a druze greater than 2,534, with a to...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "births_by_mother" ( "year" real, "jewish" real, "muslim" real, "christian" real, "druze" real, "total" real ); Question: What is the lowest jewish that has a druze less than 2,517, and a year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "births_by_mother" ( "year" real, "jewish" real, "muslim" real, "christian" real, "druze" real, "total" real ); Question: What is the average muslim that has a druze less than 2,534, a year pr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "births_by_mother" ( "year" real, "jewish" real, "muslim" real, "christian" real, "druze" real, "total" real ); Question: How many muslims have a jewish of 112,803, and a year after 2008? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "voting_details" ( "constituency" text, "electorate" real, "turnout" text, "spoilt" text, "valid_poll" real, "quota" text, "seats" real, "candidates" real ); Question: What is the smallest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "voting_details" ( "constituency" text, "electorate" real, "turnout" text, "spoilt" text, "valid_poll" real, "quota" text, "seats" real, "candidates" real ); Question: What is the turnout ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accolades" ( "publication" text, "country" text, "accolade" text, "year" real, "rank" real ); Question: What country is ranked 79? <|assistant|> SELECT "country" FROM "accolades" WHERE "rank"=7...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accolades" ( "publication" text, "country" text, "accolade" text, "year" real, "rank" real ); Question: What is the lowest rank for an album after 1999 and an Accolade of the 100 greatest indie...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "time_et" text, "result" text ); Question: Which Week is on sunday november 28? <|assistant|> SELECT MIN("week") FROM "schedule" WHERE "da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "time_et" text, "result" text ); Question: How many weeks have an Opponent of at new york giants? <|assistant|> SELECT COUNT("week") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "time_et" text, "result" text ); Question: When is the Opponent of new england patriots? <|assistant|> SELECT "time_et" FROM "schedule" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "time_et" text, "result" text ); Question: Which week has a Result of w 23–6? <|assistant|> SELECT "week" FROM "schedule" WHERE "result"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "municipalities_of_midhordland" ( "name" text, "innhabitants" real, "area" real, "mayor" text, "party" text, "municipal_code" real, "language_form" text ); Question: How many people did Mayo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "municipalities_of_midhordland" ( "name" text, "innhabitants" real, "area" real, "mayor" text, "party" text, "municipal_code" real, "language_form" text ); Question: What's the area of askøy...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "municipalities_of_midhordland" ( "name" text, "innhabitants" real, "area" real, "mayor" text, "party" text, "municipal_code" real, "language_form" text ); Question: What Mayor is from the K...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "municipalities_of_midhordland" ( "name" text, "innhabitants" real, "area" real, "mayor" text, "party" text, "municipal_code" real, "language_form" text ); Question: What's the Municipal cod...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "municipalities_of_midhordland" ( "name" text, "innhabitants" real, "area" real, "mayor" text, "party" text, "municipal_code" real, "language_form" text ); Question: How many people does the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980_packers_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What is the total number of overall draft picks for player whose posit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980_packers_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What position was Jafus White who was picked after round 1? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980_packers_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What is the total number of overall draft picks for Fred Nixon? <|assi...