text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); Question: Which 2007...
<|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" real ); Question: What was the Attendance on September 11, 1983? <|assistant|> SELECT "attendance" FROM "sched...
<|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" real ); Question: What was the Opponent during the game with a Result of W 37-21? <|assistant|> SELECT "oppone...
<|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" real ); Question: What was the Result on Week 8? <|assistant|> SELECT "result" FROM "schedule" WHERE "week"=8;...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_d_belgium" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What is the lowest number of games with less than 1 loss? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "name" text, "club" text, "nation" text, "points" real ); Question: What was the nationality of the skater with 108.8 points? <|assistant|> SELECT "nation" FROM "men" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "name" text, "club" text, "nation" text, "points" real ); Question: How many points for the skater from club btsc? <|assistant|> SELECT COUNT("points") FROM "men" WHERE "clu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "films_directed_by_tarkovsky" ( "year" real, "english_title" text, "original_title" text, "country" text, "length" text ); Question: Which Original title has a Year of 1983, and a Country of ita...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "films_directed_by_tarkovsky" ( "year" real, "english_title" text, "original_title" text, "country" text, "length" text ); Question: How many years have an Original title of иваново детство? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "films_directed_by_tarkovsky" ( "year" real, "english_title" text, "original_title" text, "country" text, "length" text ); Question: Which Length has a Country of soviet union, and a Year larger...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is listed as the lowest Year with a Wins that's smaller than 0? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is listed for the Wins with a Year of 1989? <|assistant|> SELECT "wins" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is listed for the Class that's got a Team of Cagiva and Points of 4? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "district" text, "district_headquarters" text, "area_km_2" real, "population_1991_census" real, "population_2001_census" real ); Question: How many km2 has a Population 2001 Cens...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "district" text, "district_headquarters" text, "area_km_2" real, "population_1991_census" real, "population_2001_census" real ); Question: What is the number of Population 2001 Ce...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "district" text, "district_headquarters" text, "area_km_2" real, "population_1991_census" real, "population_2001_census" real ); Question: What is the number of Population 2001 Ce...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What record has montreal as the visitor, and february 2 as the date? <|assistant|> SELECT "record"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What record has February 25 as the date? <|assistant|> SELECT "record" FROM "game_log" WHERE "date...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What date has boston as the visitor? <|assistant|> SELECT "date" FROM "game_log" WHERE "visitor"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What score has vancouver as the home, and february 16 as the date? <|assistant|> SELECT "score" FR...
<|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: Team of corinthians,...
<|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: Difference of - 20, ...
<|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: Against smaller than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Which score was for Toronto Maple Leafs at home on November 12? <|assistant|> SELECT "score"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Which home team had a visitor of Chicago Black Hawks with a score of 2–3? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was home on November 26? <|assistant|> SELECT "home" FROM "regular_season" WHERE "date"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the visitor with a record of 5–8–4? <|assistant|> SELECT "visitor" FROM "regular_se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "rank" real, "name" text, "point" real, "played" real, "draw" real, "lose" real, "goal_in" real, "goal_loss" real, "goal_diff" real ); Question: What was the average ran...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "rank" real, "name" text, "point" real, "played" real, "draw" real, "lose" real, "goal_in" real, "goal_loss" real, "goal_diff" real ); Question: What was the highest num...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_cup_group_stage" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" text, "report" text ); Question: What report has a score of 0-0 with Sydne...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_cup_group_stage" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" text, "report" text ); Question: On what date was the score 0-0? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_cup_group_stage" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" text, "report" text ); Question: Which home team had the score 1-3? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_cup_group_stage" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" text, "report" text ); Question: Where did the away team have round 2? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_cup_group_stage" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" text, "report" text ); Question: When did the venue of round 3 happen? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lg_as" ( "local_government_area" text, "principal_town" text, "land_area_km" real, "population_2011_census" real, "density" real ); Question: What is the lowest density of a town with a 13,708 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "escape_velocities_at_altitude" ( "orbit" text, "center_to_center_distance" text, "altitude_above_the_earth_s_surface" text, "orbital_period" text, "specific_orbital_energy" text ); Question: sp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "escape_velocities_at_altitude" ( "orbit" text, "center_to_center_distance" text, "altitude_above_the_earth_s_surface" text, "orbital_period" text, "specific_orbital_energy" text ); Question: al...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "escape_velocities_at_altitude" ( "orbit" text, "center_to_center_distance" text, "altitude_above_the_earth_s_surface" text, "orbital_period" text, "specific_orbital_energy" text ); Question: sp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "escape_velocities_at_altitude" ( "orbit" text, "center_to_center_distance" text, "altitude_above_the_earth_s_surface" text, "orbital_period" text, "specific_orbital_energy" text ); Question: Ea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "escape_velocities_at_altitude" ( "orbit" text, "center_to_center_distance" text, "altitude_above_the_earth_s_surface" text, "orbital_period" text, "specific_orbital_energy" text ); Question: Or...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "escape_velocities_at_altitude" ( "orbit" text, "center_to_center_distance" text, "altitude_above_the_earth_s_surface" text, "orbital_period" text, "specific_orbital_energy" text ); Question: ce...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scorers" ( "player" text, "league" real, "malaysia_cup" real, "fa_cup" real, "total" real ); Question: What was the lowest FA Cup for a Malaysia Cup of 0? <|assistant|> SELECT MIN("fa_cup") FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scorers" ( "player" text, "league" real, "malaysia_cup" real, "fa_cup" real, "total" real ); Question: What is Zamri Hassan's lowest Malaysia Cup when there were an FA Cup of 0? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scorers" ( "player" text, "league" real, "malaysia_cup" real, "fa_cup" real, "total" real ); Question: What is the lowest league for the Malaysia Cup when it was larger than 0? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medallists_by_nation" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Bronze medals did Switzerland with less than 3 Silver medals ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medallists_by_nation" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the least amount of Silver medals that have more than 3 Bronze...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What is the average game for March 8 with less than 84 points? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What is the latest in March when the record of 35–16–6–3? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "city" text, "result" text, "score" text, "competition" text ); Question: Name the competition for score of 3-0 <|assistant|> SELECT "competition" FROM "bra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "city" text, "result" text, "score" text, "competition" text ); Question: Name the competition for september 10, 2008 <|assistant|> SELECT "competition" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "city" text, "result" text, "score" text, "competition" text ); Question: Name the sscore for world cup qualifying october 15, 2008 <|assistant|> SELECT "sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "city" text, "result" text, "score" text, "competition" text ); Question: Name the competition for november 19, 2008 <|assistant|> SELECT "competition" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "city" text, "result" text, "score" text, "competition" text ); Question: Name the date for rio de janeiro <|assistant|> SELECT "date" FROM "brazil_national...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "geography_of_students" ( "states" text, "fall_05" real, "fall_06" real, "fall_07" real, "fall_08" real, "fall_09" real ); Question: What number is Fall 08 from the state with 57 in Fall 06 an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "geography_of_students" ( "states" text, "fall_05" real, "fall_06" real, "fall_07" real, "fall_08" real, "fall_09" real ); Question: What number is Fall 06 from the state with 79 or less in Fa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "geography_of_students" ( "states" text, "fall_05" real, "fall_06" real, "fall_07" real, "fall_08" real, "fall_09" real ); Question: What number is Fall 06 from the state with 34 for Fall 09? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "toronto_maple_leafs_4_montreal_canadiens" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the record when the visitor was toronto maple leafs and t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "toronto_maple_leafs_4_montreal_canadiens" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the score when the visitor was toronto maple leafs on mar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "toronto_maple_leafs_4_montreal_canadiens" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the Visitor when the home was toronto maple leafs and the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "auction_history" ( "auction_house" text, "year" real, "event" text, "price" real, "gbp_price" real ); Question: What is the average GBP Price with an event in Monterey, a RM auction house, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasonal_ratings_broadcast_history" ( "season" real, "network" text, "time_slot" text, "season_premiere" text, "season_finale" text, "episode_count" real, "tv_season" text, "season_rank" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "manchester_and_district_challenge_cup" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text ); Question: Was the semi-final round held at home or away? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "manchester_and_district_challenge_cup" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text ); Question: Which opponent made it to the final round? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "manchester_and_district_challenge_cup" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text ); Question: What was the result of the game played in hurst? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "manchester_and_district_challenge_cup" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text ); Question: When did the game in whalley range take place? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "full_powered_stations" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: Which ERP W is the lowest one that has a Fre...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "full_powered_stations" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: Which Class has a Frequency MHz of 107.5? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "full_powered_stations" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: Which Frequency MHz is the highest one that ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "full_powered_stations" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: Which FCC info has a Call sign of wsja? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Which District has a Party of republican and a Result of lost re-election democra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: What is First elected that has republican Party and a Result of retired democrati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: What is the First elected of california 3? <|assistant|> SELECT "first_elected" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Which Incumbent has a Result of retired democratic gain? <|assistant|> SELECT "in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Which First elected has a Incumbent of none (new seat)? <|assistant|> SELECT "fir...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: What is the First elected that has a republican party and california 4? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tennent_s_scottish_cup" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); Question: What was the result when Dundee was the opponent? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_9_2009" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text ); Question: Who entered on day 1 and exited on day 20? <|assistant|> SELECT "celebrity" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_9_2009" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text ); Question: When did lucy benjamin exit? <|assistant|> SELECT "exited" FROM "series_9_2009"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_9_2009" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text ); Question: When did camilla dallerup finish? <|assistant|> SELECT "finished" FROM "series_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_9_2009" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text ); Question: When did kim woodburn enter? <|assistant|> SELECT "entered" FROM "series_9_2009...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the score of the game with a record of 37–26–9? <|assistant|> SELECT "score" FROM "march" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the score of the game with a record of 33–25–9? <|assistant|> SELECT "score" FROM "march" WH...
<|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: Loss of francis (4–9) has what highest attendance figure? <|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: Loss of de la rosa (8–8) has what average attendance? <|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: Loss of francis (4–10) happened on what date? <|assistant|> SELECT "date" FR...
<|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: What was the score on 8 September 1999? <|assistant|> SELECT "score" FROM "interna...
<|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: What was the result on 16 November 2003? <|assistant|> SELECT "result" FROM "inter...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: Which Set 1 has a Set 2 of 26–24? <|assistant|> SELECT "set_1" FROM "pool_a" WHERE "se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: Which Set 2 has a Date of 25 may, and a Set 3 of 21–25? <|assistant|> SELECT "set_2" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: Which Date has a Set 3 of 21–25? <|assistant|> SELECT "date" FROM "pool_a" WHERE "set_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: Which Set 1 has a Date of 24 may, and a Total of 57–75? <|assistant|> SELECT "set_1" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: Which Set 2 has a Set 1 of 25–15, and a Score of 3–0? <|assistant|> SELECT "set_2" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: Which Total has a Set 1 of 25–22? <|assistant|> SELECT "total" FROM "pool_a" WHERE "se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2_2002" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What was the segment b for Netflix s01...