text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_area_and_density_sortable_on_" ( "province" text, "population_2004_estimate" real, "area_km" real, "density" text, "gdp_2003_pps_in_mil" real, "gdp_per_cap_2003_in" real ); Question: Which province has a gdp of 38355€ million euros? <|assistant|> SELECT "province" FROM "population_area_and_density_sortable_on_" WHERE "gdp_2003_pps_in_mil"=38355;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population_area_and_density_sortable_on_" ( "province" text, "population_2004_estimate" real, "area_km" real, "density" text, "gdp_2003_pps_in_mil" real, "gdp_per_cap_2003_in" real ); Question: What is the population estimate for the place that gad a 18496€ million euro gdp? <|assistant|> SELECT "population_2004_estimate" FROM "population_area_and_density_sortable_on_" WHERE "gdp_2003_pps_in_mil"=18496;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10701133_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "featured_character_s" text, "original_air_date" text, "u_s_viewers_million" text ); Question: What is the title when original air date is may15,2008? <|assistant|> SELECT "title" FROM "table1_10701133_1" WHERE "original_air_date"='May15,2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10701133_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "featured_character_s" text, "original_air_date" text, "u_s_viewers_million" text ); Question: What is the highest no. in season? <|assistant|> SELECT MAX("no_in_season") FROM "table1_10701133_1";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10701133_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "featured_character_s" text, "original_air_date" text, "u_s_viewers_million" text ); Question: Who directed the episode where u.s. viewers (million) is 12.90? <|assistant|> SELECT "directed_by" FROM "table1_10701133_1" WHERE "u_s_viewers_million"='12.90';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1067134_1" ( "dvd_name" text, "num_of_ep" real, "region_1" text, "region_2" text, "region_4" text ); Question: How many episodes aired in Region 2 beginning May 26, 2008? <|assistant|> SELECT MIN("num_of_ep") FROM "table1_1067134_1" WHERE "region_2"='May 26, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1067134_1" ( "dvd_name" text, "num_of_ep" real, "region_1" text, "region_2" text, "region_4" text ); Question: What date did the DVD for season six come out in region 2? <|assistant|> SELECT "region_2" FROM "table1_1067134_1" WHERE "dvd_name"='Season Six';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1067134_1" ( "dvd_name" text, "num_of_ep" real, "region_1" text, "region_2" text, "region_4" text ); Question: What is the least amount of season epidsodes? <|assistant|> SELECT MIN("num_of_ep") FROM "table1_1067134_1";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1067134_1" ( "dvd_name" text, "num_of_ep" real, "region_1" text, "region_2" text, "region_4" text ); Question: What DVD season/name for region 2 was released August 22, 2010? <|assistant|> SELECT "dvd_name" FROM "table1_1067134_1" WHERE "region_2"='August 22, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "points" real, "position" text ); Question: How many points for 2005? <|assistant|> SELECT COUNT("points") FROM "career_summary" WHERE "season"='2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "points" real, "position" text ); Question: what is the score for the dams? <|assistant|> SELECT "points" FROM "career_summary" WHERE "team_name"='DAMS';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "points" real, "position" text ); Question: how many positions in 2009? <|assistant|> SELECT COUNT("position") FROM "career_summary" WHERE "season"='2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "points" real, "position" text ); Question: what is the least number of poles? <|assistant|> SELECT MIN("poles") FROM "career_summary";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "points" real, "position" text ); Question: Which series with 62 points? <|assistant|> SELECT "series" FROM "career_summary" WHERE "points"=62;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "points" real, "position" text ); Question: What is the total for 10th position? <|assistant|> SELECT COUNT("points") FROM "career_summary" WHERE "position"='10th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text ); Question: how many reports of races took place on october 16? <|assistant|> SELECT COUNT("report") FROM "races" WHERE "date"='October 16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text ); Question: what is the name of the report that lists the race name as long beach grand prix? <|assistant|> SELECT "report" FROM "races" WHERE "race_name"='Long Beach Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text ); Question: what is the report called where the circuit took place at the nazareth speedway? <|assistant|> SELECT "report" FROM "races" WHERE "circuit"='Nazareth Speedway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text ); Question: what is the name of the race where newman/haas racing is the winning team and rick mears is at the pole position? <|assistant|> SELECT "race_name" FROM "races" WHERE "winning_team"='Newman/Haas Racing' AND "pole_position"='Rick Mears';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text, "report" text ); Question: meadowlands sports complex is the circuit at which city/location? <|assistant|> SELECT "city_location" FROM "races" WHERE "circuit"='Meadowlands Sports Complex';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "religious_group" text, "population_pct" text, "growth_1991_2001" text, "sex_ratio_total" real, "literacy_pct" text, "work_participation_pct" text, "sex_ratio_rural" real, "sex_ratio_urban" real, "sex_ratio_child" real ); Question: What is the literacy rate for groups that grew 103.1% between 1991 and 2001? <|assistant|> SELECT "literacy_pct" FROM "statistics" WHERE "growth_1991_2001"='103.1%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "religious_group" text, "population_pct" text, "growth_1991_2001" text, "sex_ratio_total" real, "literacy_pct" text, "work_participation_pct" text, "sex_ratio_rural" real, "sex_ratio_urban" real, "sex_ratio_child" real ); Question: What is the lowest sex ratio in rural areas? <|assistant|> SELECT MIN("sex_ratio_rural") FROM "statistics";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "religious_group" text, "population_pct" text, "growth_1991_2001" text, "sex_ratio_total" real, "literacy_pct" text, "work_participation_pct" text, "sex_ratio_rural" real, "sex_ratio_urban" real, "sex_ratio_child" real ); Question: What is the lowest child sex ratio in groups where employment is 31.3%? <|assistant|> SELECT MIN("sex_ratio_child") FROM "statistics" WHERE "work_participation_pct"='31.3%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "religious_group" text, "population_pct" text, "growth_1991_2001" text, "sex_ratio_total" real, "literacy_pct" text, "work_participation_pct" text, "sex_ratio_rural" real, "sex_ratio_urban" real, "sex_ratio_child" real ); Question: What is the population percentage of the group where the rural sex ratio is 953? <|assistant|> SELECT "population_pct" FROM "statistics" WHERE "sex_ratio_rural"=953;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10715317_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What is the original air date for the title "felonious monk"? <|assistant|> SELECT "original_air_date" FROM "table1_10715317_2" WHERE "title"='\"Felonious Monk\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10715317_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What is the title of the episode directed by Peter Markle and written by Jerry Stahl? <|assistant|> SELECT "title" FROM "table1_10715317_2" WHERE "directed_by"='Peter Markle' AND "written_by"='Jerry Stahl';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10715317_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: How many episodes were titled "identity crisis"? <|assistant|> SELECT COUNT("directed_by") FROM "table1_10715317_2" WHERE "title"='\"Identity Crisis\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_broadcasters" ( "year" real, "network" text, "host" text, "pre_race_analyst" text, "lap_by_lap" text, "color_commentator_s" text, "pit_reporters" text ); Question: Who does the lap-by-lap in 2011? <|assistant|> SELECT "lap_by_lap" FROM "television_broadcasters" WHERE "year"=2011;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_broadcasters" ( "year" real, "network" text, "host" text, "pre_race_analyst" text, "lap_by_lap" text, "color_commentator_s" text, "pit_reporters" text ); Question: Which network has Marty Reid as host and lap-by-lap broadcaster? <|assistant|> SELECT "network" FROM "television_broadcasters" WHERE "lap_by_lap"='Marty Reid' AND "host"='Marty Reid';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_broadcasters" ( "year" real, "network" text, "host" text, "pre_race_analyst" text, "lap_by_lap" text, "color_commentator_s" text, "pit_reporters" text ); Question: How many pre-race analysis occur when Allen Bestwick does the lap-by-lap? <|assistant|> SELECT COUNT("pre_race_analyst") FROM "television_broadcasters" WHERE "lap_by_lap"='Allen Bestwick';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10718192_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What's the highest season number of an episode in the series? <|assistant|> SELECT MAX("no_in_season") FROM "table1_10718192_2";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10718192_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: When did the episode titled "Lucky Strike" air for the first time? <|assistant|> SELECT "original_air_date" FROM "table1_10718192_2" WHERE "title"='\"Lucky Strike\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10718192_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: Who was the writer of the episode titled "One Hit Wonder"? <|assistant|> SELECT "written_by" FROM "table1_10718192_2" WHERE "title"='\"One Hit Wonder\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10718192_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What's the date of the first airing of the episode with series number 63? <|assistant|> SELECT "original_air_date" FROM "table1_10718192_2" WHERE "no_in_series"=63;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10718525_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: How many titles got a viewership of 26.53 million? <|assistant|> SELECT COUNT("title") FROM "table1_10718525_2" WHERE "u_s_viewers_millions"='26.53';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10718525_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: How many viewers tuned into the show directed by Matt Earl Beesley? <|assistant|> SELECT "u_s_viewers_millions" FROM "table1_10718525_2" WHERE "directed_by"='Matt Earl Beesley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10718631_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: Who wrote episode 94? <|assistant|> SELECT "written_by" FROM "table1_10718631_2" WHERE "no_in_series"=94;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10718631_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: Which episode was the number in the season where the number in the season is 10? <|assistant|> SELECT "no_in_series" FROM "table1_10718631_2" WHERE "no_in_season"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10718631_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: How many episodes were in the season that had the epiosde of "crow's feet"? <|assistant|> SELECT "no_in_season" FROM "table1_10718631_2" WHERE "title"='\"Crow''s Feet\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10718631_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: When did the 113 episode air? <|assistant|> SELECT "original_air_date" FROM "table1_10718631_2" WHERE "no_in_series"=113;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10718631_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: How many titles were there for the 113 episode? <|assistant|> SELECT COUNT("title") FROM "table1_10718631_2" WHERE "no_in_series"=113;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10718984_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What is the number in the season that Marlene Meyer wrote and 20.49 million people watched? <|assistant|> SELECT MAX("no_in_season") FROM "table1_10718984_2" WHERE "written_by"='Marlene Meyer' AND "u_s_viewers_millions"='20.49';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10718984_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: When did the no. 23 show originally air? <|assistant|> SELECT "original_air_date" FROM "table1_10718984_2" WHERE "no_in_season"=23;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); Question: Which circuits had a race on October 4? <|assistant|> SELECT "circuit" FROM "races" WHERE "date"='October 4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); Question: In which reports does Michael Andretti have the pole position and Galles-Kraco Racing is the winning team? <|assistant|> SELECT "report" FROM "races" WHERE "pole_position"='Michael Andretti' AND "winning_team"='Galles-Kraco Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); Question: How many rounds were there of the Bosch Spark Plug Grand Prix? <|assistant|> SELECT COUNT("rnd") FROM "races" WHERE "race_name"='Bosch Spark Plug Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); Question: Which rounds were held on August 9? <|assistant|> SELECT "rnd" FROM "races" WHERE "date"='August 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "rnd" text, "race_name" text, "circuit" text, "city_location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "report" text ); Question: On how many dates did the Michigan International Speedway hold a round? <|assistant|> SELECT COUNT("date") FROM "races" WHERE "circuit"='Michigan International Speedway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" real, "sweet_sixteen" real, "elite_eight" real, "final_four" real, "championship_game" real ); Question: Name the total number of bids of the sun belt conference <|assistant|> SELECT COUNT("num_of_bids") FROM "record_by_conference" WHERE "conference"='Sun Belt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" real, "sweet_sixteen" real, "elite_eight" real, "final_four" real, "championship_game" real ); Question: Name the round of 32 in conference usa <|assistant|> SELECT "round_of_32" FROM "record_by_conference" WHERE "conference"='Conference USA';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" real, "sweet_sixteen" real, "elite_eight" real, "final_four" real, "championship_game" real ); Question: What is the record when round of 32 is 0 and metro atlantic conference? <|assistant|> SELECT "record" FROM "record_by_conference" WHERE "round_of_32"=0 AND "conference"='Metro Atlantic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" real, "sweet_sixteen" real, "elite_eight" real, "final_four" real, "championship_game" real ); Question: What is the number of bids with elite eight larger than 1.0 <|assistant|> SELECT COUNT("num_of_bids") FROM "record_by_conference" WHERE "elite_eight">1.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10749143_2" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: Who directed the episode with production code 7aff03? <|assistant|> SELECT "directed_by" FROM "table1_10749143_2" WHERE "production_code"='7AFF03';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10749143_2" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What is the title of the episode wtih 10.34 million U.S viewers? <|assistant|> SELECT "title" FROM "table1_10749143_2" WHERE "u_s_viewers_millions"='10.34';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: What place is the team that completed 6 races? <|assistant|> SELECT "position" FROM "career_summary" WHERE "races"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: how much did the british formula three called "fortec motorsport" score? <|assistant|> SELECT "points" FROM "career_summary" WHERE "series"='British Formula Three' AND "team_name"='Fortec Motorsport';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: how many races were in 2009 with 0 wins? <|assistant|> SELECT "races" FROM "career_summary" WHERE "season"='2009' AND "wins"=0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: What years did art grand prix compete? <|assistant|> SELECT "season" FROM "career_summary" WHERE "team_name"='ART Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: What year had a score of 9? <|assistant|> SELECT "season" FROM "career_summary" WHERE "points"='9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: what is the greatest number of wins by japanese formula three? <|assistant|> SELECT MAX("wins") FROM "career_summary" WHERE "series"='Japanese Formula Three';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes" ( "num" real, "air_date" text, "challenge" text, "winner" text, "test_taker" text, "passed" text ); Question: Who took test #4? <|assistant|> SELECT "test_taker" FROM "episodes" WHERE "num"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes" ( "num" real, "air_date" text, "challenge" text, "winner" text, "test_taker" text, "passed" text ); Question: What episode aired on 18 April 2007? <|assistant|> SELECT MIN("num") FROM "episodes" WHERE "air_date"='18 April 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes" ( "num" real, "air_date" text, "challenge" text, "winner" text, "test_taker" text, "passed" text ); Question: Who had the challenge of night driving? <|assistant|> SELECT "test_taker" FROM "episodes" WHERE "challenge"='Night Driving';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10798928_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: How many directors were there for the film Course Completed? <|assistant|> SELECT COUNT("director") FROM "table1_10798928_1" WHERE "film_title_used_in_nomination"='Course Completed';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10798928_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: Who directed El Nido? <|assistant|> SELECT "director" FROM "table1_10798928_1" WHERE "original_title"='El nido';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10798928_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: Who directed Dulcinea? <|assistant|> SELECT "director" FROM "table1_10798928_1" WHERE "original_title"='Dulcinea';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text ); Question: What are the slovenian names of the villages that had 65.9% of slovenes in 1951? <|assistant|> SELECT "village_slovenian" FROM "references" WHERE "percent_of_slovenes_1951"='65.9%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text ); Question: What are the slovenian names of the villages that had 16.7% of slovenes in 1991? <|assistant|> SELECT "village_slovenian" FROM "references" WHERE "percent_of_slovenes_1991"='16.7%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text ); Question: How many villages had 21.7% of slovenes in 1991? <|assistant|> SELECT COUNT("village_german") FROM "references" WHERE "percent_of_slovenes_1991"='21.7%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text ); Question: what percent of slovenes did the village called čahorče in slovenian have in 1991? <|assistant|> SELECT "percent_of_slovenes_1991" FROM "references" WHERE "village_slovenian"='Čahorče';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "village_german" text, "village_slovenian" text, "number_of_people_1991" real, "percent_of_slovenes_1991" text, "percent_of_slovenes_1951" text ); Question: What is the slovenian name for the village that in german is known as st.margarethen? <|assistant|> SELECT "village_slovenian" FROM "references" WHERE "village_german"='St.Margarethen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: For games on December 20, how many points did the scoring leaders get? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "date"='December 20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who was the scoring leader and how many points did he get in games on December 23? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "date"='December 23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is the pick # for the position de? <|assistant|> SELECT "pick_num" FROM "round_three" WHERE "position"='DE';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which player went to college at Saint Mary's? <|assistant|> SELECT "player" FROM "round_three" WHERE "college"='Saint Mary''s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is the position for the player with cfl team Winnipeg blue bombers? <|assistant|> SELECT "position" FROM "round_three" WHERE "cfl_team"='Winnipeg Blue Bombers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which player went to college at Laval? <|assistant|> SELECT "player" FROM "round_three" WHERE "college"='Laval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What was the college for the player with the cfl team of Edmonton Eskimos (via calgary)? <|assistant|> SELECT "college" FROM "round_three" WHERE "cfl_team"='Edmonton Eskimos (via Calgary)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What's the team of the player from St. Francis Xavier College? <|assistant|> SELECT "cfl_team" FROM "round_five" WHERE "college"='St. Francis Xavier';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What player is on the Montreal Alouettes CFl team? <|assistant|> SELECT "player" FROM "round_five" WHERE "cfl_team"='Montreal Alouettes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What's the pick number of the player from Toronto Argonauts? <|assistant|> SELECT MIN("pick_num") FROM "round_five" WHERE "cfl_team"='Toronto Argonauts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What's the pick number of the player whose position is CB? <|assistant|> SELECT "pick_num" FROM "round_five" WHERE "position"='CB';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What's the pick number of the player from New Mexico? <|assistant|> SELECT MAX("pick_num") FROM "round_five" WHERE "college"='New Mexico';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What player went to Ohio State College? <|assistant|> SELECT "player" FROM "round_five" WHERE "college"='Ohio State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "br_railbuses" ( "number_range" text, "builder" text, "introduced" real, "no_built" real, "region" text, "withdrawn" real ); Question: What is the minimum introduced value for the Departmental region? <|assistant|> SELECT MIN("introduced") FROM "br_railbuses" WHERE "region"='Departmental';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "br_railbuses" ( "number_range" text, "builder" text, "introduced" real, "no_built" real, "region" text, "withdrawn" real ); Question: What is the smallest introduced value? <|assistant|> SELECT MIN("introduced") FROM "br_railbuses";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which CFL Teams drafted an OL in 2006? <|assistant|> SELECT "cfl_team" FROM "round_four" WHERE "position"='OL';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which college is aligned to the Saskatchewan Roughriders? <|assistant|> SELECT "college" FROM "round_four" WHERE "cfl_team"='Saskatchewan Roughriders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What Position did the Hamilton Tiger-Cats (via Ottawa) pick in the 2006 Draft. <|assistant|> SELECT "position" FROM "round_four" WHERE "cfl_team"='Hamilton Tiger-Cats (via Ottawa)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is the earliest pick listed in the table. <|assistant|> SELECT MIN("pick_num") FROM "round_four";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10842344_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What episode number had production code e4423? <|assistant|> SELECT MAX("no_in_season") FROM "table1_10842344_1" WHERE "production_code"='E4423';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10842344_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What's the latest episode in a season where the U.S. viewers totaled 14.37 million? <|assistant|> SELECT MAX("no_in_season") FROM "table1_10842344_1" WHERE "u_s_viewers_millions"='14.37';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10842344_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: Who directed the episode "Escape"? <|assistant|> SELECT "directed_by" FROM "table1_10842344_1" WHERE "title"='\"Escape\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10819266_8" ( "season" real, "episodes" real, "time_slot_est" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); Question: How many seasons is the season finale on May 26, 2010? <|assistant|> SELECT COUNT("season") FROM "table1_10819266_8" WHERE "season_finale"='May 26, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10819266_8" ( "season" real, "episodes" real, "time_slot_est" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); Question: What episodes are there where the season premier is September 23, 2009? <|assistant|> SELECT "episodes" FROM "table1_10819266_8" WHERE "season_premiere"='September 23, 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10819266_8" ( "season" real, "episodes" real, "time_slot_est" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); Question: What is the season finale for season 4? <|assistant|> SELECT "season_finale" FROM "table1_10819266_8" WHERE "season"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10819266_8" ( "season" real, "episodes" real, "time_slot_est" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); Question: How many season premiers have a rank of #21? <|assistant|> SELECT "season_premiere" FROM "table1_10819266_8" WHERE "rank"='#21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10819266_8" ( "season" real, "episodes" real, "time_slot_est" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); Question: What are the seasons where September 26, 2007 is the season premier? <|assistant|> SELECT "tv_season" FROM "table1_10819266_8" WHERE "season_premiere"='September 26, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10818465_1" ( "model" text, "ru" real, "max_processors" text, "processor_frequency" text, "max_memory" text, "max_disk_capacity" text, "ga_date" text ); Question: What max processor has a maximum memory of 256 gb? <|assistant|> SELECT "max_processors" FROM "table1_10818465_1" WHERE "max_memory"='256 GB';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_10818465_1" ( "model" text, "ru" real, "max_processors" text, "processor_frequency" text, "max_memory" text, "max_disk_capacity" text, "ga_date" text ); Question: What is the max memory of the t5120 model? <|assistant|> SELECT "max_memory" FROM "table1_10818465_1" WHERE "model"='T5120';<|endoftext|>