text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actress" text, "record_set" text, "year" real, "notes" text ); Question: Which award has Thelma Ritter won? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "team" text, "played" real, "drawn" real, "lost" real, "against" real, "points_diff" real, "points" real ); Question: I want the lowest points diff for against being less than 578 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "team" text, "played" real, "drawn" real, "lost" real, "against" real, "points_diff" real, "points" real ); Question: I want the total number of points for against of 753 and point...
<|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, "attendance" text ); Question: In What Week was the Attendance 75,866? <|assistant|> SELECT "week" FROM "schedule" WHERE "a...
<|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, "attendance" text ); Question: What Opponent has an Attendance of 74,246? <|assistant|> SELECT "opponent" FROM "schedule" W...
<|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, "attendance" text ); Question: What Date is Week 1? <|assistant|> SELECT "date" FROM "schedule" WHERE "week"=1;<|endoftext|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" text, "ties" real, "goals_for" real, "goals_against" real ); Question: Which team had 7 losses and 55 goals? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_municipalities_in_quebec" ( "code" real, "type" text, "name" text, "area_km_2" real, "population" real, "regional_county_municipality" text, "region" real ); Question: When populati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_doubles_wins" ( "name" text, "tkm_career" text, "ties" real, "dou_w_l" text, "sin_w_l" text ); Question: Who has ties of 5? <|assistant|> SELECT "name" FROM "most_doubles_wins" WHERE "ties...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where did st kilda play as the away team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What home team scored 10.14 (74)? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How big of a crowd does the home team of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text ); Question: What is the MLB Draft status of the person who attended Seton Hall Preparatory School?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text ); Question: Where is the Hometown of the person that attended Kennedy-Kenrick Catholic High School...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text ); Question: Which Player attended George Washington High School? <|assistant|> SELECT "player" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text ); Question: Where is the Hometown that the person who attended Camarillo High School is from? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many people in total have attended g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When the home team scored 19.15 (129)? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "receiving" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real ); Question: Which player has a long of less than 15 and an average of 6 yards. <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: What years did Troy Hudson play for the Jazz? <|assistant|> SELECT "years_fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: What Nationality is the Iowa State team? <|assistant|> SELECT "nationality" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: What Nationality is Jeff Hornacek? <|assistant|> SELECT "nationality" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: What Nationality is the Colorado State team? <|assistant|> SELECT "nationali...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: What Player is from the Southern Illinois team? <|assistant|> SELECT "player...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: What years did Eddie Hughes play for the Jazz? <|assistant|> SELECT "years_f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "feral_animals_introduced_species" ( "name" text, "species" text, "overview" text, "introduced" text, "feral" text, "threat_level" text ); Question: Which Species has a medium Threat Level? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "feral_animals_introduced_species" ( "name" text, "species" text, "overview" text, "introduced" text, "feral" text, "threat_level" text ); Question: What is the Overview with a medium Threat L...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "feral_animals_introduced_species" ( "name" text, "species" text, "overview" text, "introduced" text, "feral" text, "threat_level" text ); Question: What is the Threat Levels with Rabbits in A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: Which nominee won the Drama Desk Award for outstanding choreography? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: When was the last time a nominee for Best Revival of a Musical was selected? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: Which Award is the winner for Outstanding Revival of a Musical given? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the home team score in the game ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the home team in the game where So...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the home team score in the game ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: In which venue did the home team score 10...
<|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" real ); Question: I want the result for week larger than 10 for opponent of new england pa...
<|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" real ); Question: I want the game site for week of 11 <|assistant|> SELECT "game_site" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the average number of laps for mika salo's arrows car with a grid over 13? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Who drove the car with a grid of 7? <|assistant|> SELECT "driver" FROM "race" WHERE "grid"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scottish_cup" ( "round" text, "date" text, "opponent" text, "score" text, "aberdeen_scorer_s" text, "attendance" real, "report" text ); Question: Which Report is Dated 9 March? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scottish_cup" ( "round" text, "date" text, "opponent" text, "score" text, "aberdeen_scorer_s" text, "attendance" real, "report" text ); Question: When Hamilton Academical is the Opponent, w...
<|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: How many in attendance with a loss of volquez (1–4)? <|assistant|> SELECT "a...
<|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: What record has a Score of 9–6? <|assistant|> SELECT "record" FROM "game_log...
<|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: What is the average number in attendance on September 16? <|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" real, "record" text ); Question: What is the sum of people in attendance on September 8? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "participants" ( "school" text, "conference" text, "record_conference" text, "head_coach" text, "cws_appearances" text, "cws_best_finish" text, "cws_record" text ); Question: What was Head C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the record when the visiting team was the montreal canadiens? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "name" text, "nation" text, "points" real, "places" text ); Question: What nation has 187.84 points? <|assistant|> SELECT "nation" FROM "ice_dancing" WHERE "points"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "name" text, "nation" text, "points" real, "places" text ); Question: What is the low point total for teams with 81 places? <|assistant|> SELECT MIN("points") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "station_number" text, "district" text, "location" text, "type" text, "appliances" text, "registrations" text ); Question: What is the station number of the station at Dogsthorpe?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "station_number" text, "district" text, "location" text, "type" text, "appliances" text, "registrations" text ); Question: What is the type of the station with a 1 wrl appliance i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "station_number" text, "district" text, "location" text, "type" text, "appliances" text, "registrations" text ); Question: What is the appliance at the station in St Neots? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "station_number" text, "district" text, "location" text, "type" text, "appliances" text, "registrations" text ); Question: What is the registration of the station at Cambridge? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "station_number" text, "district" text, "location" text, "type" text, "appliances" text, "registrations" text ); Question: What is the location of the station at Huntingdonshire w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "station_number" text, "district" text, "location" text, "type" text, "appliances" text, "registrations" text ); Question: What is the registration of the station with a retained ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); Question: Name the nationality of the player with round more than 4 <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real ); Question: In what Year was the Rank 14.0 14? <|assistant|> SELECT SUM("year") FROM "tallest_buil...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real ); Question: After 1971, what is the Rank with a Height ft (m) of 19.0 477 (145) and less than 35 F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real ); Question: What Year has a Rank of 12.0 12? <|assistant|> SELECT AVG("year") FROM "tallest_buildi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which crowd has an Away team score of 8....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which away team had a score of 17.13 (11...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the away team score at VFL Park...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many people watched the game at Lake...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where did the home team score 15.21 (111...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "player" text, "att" real, "comp" real, "yards" real, "rating" real ); Question: What was the Comp average, having Gino Guidugli as a player and a rating of more than 92.2? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "player" text, "att" real, "comp" real, "yards" real, "rating" real ); Question: For the player with yards less than 138, and Comp more than 0, what was the highest Att.? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: How many laps for grid of 9? <|assistant|> SELECT "laps" FROM "race" WHERE "grid"=9;<|endof...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the high lap total for a grid less than 6, and a Time/Retired of halfshaft? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: What is the Set 1 with a Score with 3–2? <|assistant|> SELECT "set_1" FROM "pool_b" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: What is the Set 1 with a Set 2 of 15–5, and a Set 3 with 15–3? <|assistant|> SELECT "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: What is the Date with a Set 1 with 15–1? <|assistant|> SELECT "date" FROM "pool_b" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: What is the Set 3 with a Date of 04 oct, and a Set 2 with 15–5? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: What is the Set 3 with a Set 2 with 15–6? <|assistant|> SELECT "set_3" FROM "pool_b" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: What is the Set 2 with a Total of 45–12, and a Set 3 with 15–2? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: What was the grid associated with under 26 laps and a Time/Retired of +6....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regional_vote" ( "date_s_conducted" text, "cons" text, "plaid_cymru" text, "lib_dem" text, "ukip" text, "green" text, "others" text, "lead" text ); Question: On 5 May 2011, what was the l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regional_vote" ( "date_s_conducted" text, "cons" text, "plaid_cymru" text, "lib_dem" text, "ukip" text, "green" text, "others" text, "lead" text ); Question: On what date was the lead 8.6...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "nationality" text, "metric" text, "imperial" text, "name" text, "lifespan" text ); Question: what is the lifespan when the imperial height is 7ft 8 in and the nationality is fiji? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "nationality" text, "metric" text, "imperial" text, "name" text, "lifespan" text ); Question: what is the nationality with the metric height of 2.36m named sun ming-ming? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the grid total that had a retired for engine, teo fabi driving, and under...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the average grid for johnny dumfries with less than 8 laps? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the low lap total for minardi - motori moderni, and a Grid smaller than 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What constructor has a 12 grid? <|assistant|> SELECT "constructor" FROM "classifi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scores" ( "country" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the average where the swimsuit is larger than 9.437...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scores" ( "country" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the evening gown score where the interview score is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scores" ( "country" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is Pennsylvania's average where the swimsuit is smalle...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scores" ( "country" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the preliminaries score where the swimsuit is small...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "electronic_paper_displays" ( "maker" text, "model" text, "intro_year" text, "screen_size_inch" text, "self_lit" text, "screen_type" text, "weight" text, "screen_pixels" text, "touch_scre...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "multiple_winners" ( "runner" text, "country" text, "5_k_wins" real, "10_k_wins" real, "total" real ); Question: How many 5K wins did Lynn Jennings, who had more than 0 10K wins, have? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "multiple_winners" ( "runner" text, "country" text, "5_k_wins" real, "10_k_wins" real, "total" real ); Question: What is the average 10K wins the United States, which had 0 5K wins, have? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "multiple_winners" ( "runner" text, "country" text, "5_k_wins" real, "10_k_wins" real, "total" real ); Question: How many 5K wins did Emily Chebet, who had more than 2 total, have? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "multiple_winners" ( "runner" text, "country" text, "5_k_wins" real, "10_k_wins" real, "total" real ); Question: How many 5K wins did Emily Chebet, who had more than 2 total, have? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "belt_requirements" ( "evaluation_average_from_february_2011" real, "evaluation_average_from_april_2009" text, "evaluation_average_before_april_2009" text, "pct_of_negative_evaluations" text, "su...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "belt_requirements" ( "evaluation_average_from_february_2011" real, "evaluation_average_from_april_2009" text, "evaluation_average_before_april_2009" text, "pct_of_negative_evaluations" text, "su...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "belt_requirements" ( "evaluation_average_from_february_2011" real, "evaluation_average_from_april_2009" text, "evaluation_average_before_april_2009" text, "pct_of_negative_evaluations" text, "su...