text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standings" ( "place" real, "athlete" text, "long_jump" real, "javelin" real, "200_m" real, "discus" real, "1500_m" real, "total" real ); Question: Name the least total for 1500m for 2 <|assistant|> SELECT MIN("total") FROM "final_standings" WHERE "1500_m"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standings" ( "place" real, "athlete" text, "long_jump" real, "javelin" real, "200_m" real, "discus" real, "1500_m" real, "total" real ); Question: Name the max javelin for 200m for 5 <|assistant|> SELECT MAX("javelin") FROM "final_standings" WHERE "200_m"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standings" ( "place" real, "athlete" text, "long_jump" real, "javelin" real, "200_m" real, "discus" real, "1500_m" real, "total" real ); Question: Name the number of long jump for 1500m being 2 <|assistant|> SELECT COUNT("long_jump") FROM "final_standings" WHERE "1500_m"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: Name the result for round 13 <|assistant|> SELECT "result" FROM "fixtures_and_results" WHERE "round"='13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: Name the attendance for loss result and salford city reds <|assistant|> SELECT "attendance" FROM "fixtures_and_results" WHERE "result"='Loss' AND "opponent"='Salford City Reds';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: Name the total number of date for round 26 <|assistant|> SELECT COUNT("date") FROM "fixtures_and_results" WHERE "round"='26';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: Name the attendace for 23 round <|assistant|> SELECT "attendance" FROM "fixtures_and_results" WHERE "round"='23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: Name the total number of opponets for 05/09/2009 <|assistant|> SELECT COUNT("opponent") FROM "fixtures_and_results" WHERE "date"='05/09/2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "name" text, "municipal_status" text, "census_division" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); Question: What is the only city name with a population density of 200? <|assistant|> SELECT "name" FROM "list" WHERE "population_density"='200';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "name" text, "municipal_status" text, "census_division" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); Question: What is the census division for the name Stratford? <|assistant|> SELECT "census_division" FROM "list" WHERE "name"='Stratford';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "name" text, "municipal_status" text, "census_division" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); Question: What is the change (%) when the area size (km2) is 247.21? <|assistant|> SELECT "change_pct" FROM "list" WHERE "area_km"='247.21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "name" text, "municipal_status" text, "census_division" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); Question: What is the municipal status where the population density is 895.5? <|assistant|> SELECT "municipal_status" FROM "list" WHERE "population_density"='895.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "name" text, "municipal_status" text, "census_division" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); Question: What is the census division for the city named Kenora? <|assistant|> SELECT "census_division" FROM "list" WHERE "name"='Kenora';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "nr" real, "district" text, "former_name" text, "area_ha" real, "population_2005" real, "no_of_villages" real, "density_persons_ha" text ); Question: If there are 18 villages, what is the minimum area ? <|assistant|> SELECT MIN("area_ha") FROM "administrative_divisions" WHERE "no_of_villages"=18;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "nr" real, "district" text, "former_name" text, "area_ha" real, "population_2005" real, "no_of_villages" real, "density_persons_ha" text ); Question: With the population in 2005 of 572, what is the former name? <|assistant|> SELECT "former_name" FROM "administrative_divisions" WHERE "population_2005"=572;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "nr" real, "district" text, "former_name" text, "area_ha" real, "population_2005" real, "no_of_villages" real, "density_persons_ha" text ); Question: How many villages have a density persons/ha of 5.5? <|assistant|> SELECT COUNT("no_of_villages") FROM "administrative_divisions" WHERE "density_persons_ha"='5.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_8_3_titles_5_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What were the scores for matches with irving wright hazel hotchkiss wightman? <|assistant|> SELECT "score" FROM "mixed_doubles_8_3_titles_5_runner_ups" WHERE "opponents"='Irving Wright Hazel Hotchkiss Wightman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_8_3_titles_5_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: How many years had scores of 10–12, 6–1, 6–3? <|assistant|> SELECT COUNT("year") FROM "mixed_doubles_8_3_titles_5_runner_ups" WHERE "score"='10–12, 6–1, 6–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_8_3_titles_5_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Who were the partners during times that harry johnson hazel hotchkiss wightman was the opponent? <|assistant|> SELECT "partner" FROM "mixed_doubles_8_3_titles_5_runner_ups" WHERE "opponents"='Harry Johnson Hazel Hotchkiss Wightman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_8_3_titles_5_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What were the outcomes of matches with bill tilden florence ballin as opponents? <|assistant|> SELECT "outcome" FROM "mixed_doubles_8_3_titles_5_runner_ups" WHERE "opponents"='Bill Tilden Florence Ballin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_8_3_titles_5_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What is the earliest year? <|assistant|> SELECT MIN("year") FROM "mixed_doubles_8_3_titles_5_runner_ups";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21304131_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "survivor_count" real ); Question: What was the survivor count for the episode directed by Gwyneth Horder-Payton? <|assistant|> SELECT "survivor_count" FROM "table1_21304131_2" WHERE "directed_by"='Gwyneth Horder-Payton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21304131_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "survivor_count" real ); Question: When did series number 65 originally air? <|assistant|> SELECT "original_air_date" FROM "table1_21304131_2" WHERE "no_in_series"=65;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21304155_1" ( "no_in_series" 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 production code of the episode directed by David Solomon? <|assistant|> SELECT "production_code" FROM "table1_21304155_1" WHERE "directed_by"='David Solomon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21304155_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: Who wrote the episode with the production code of BN103? <|assistant|> SELECT "written_by" FROM "table1_21304155_1" WHERE "production_code"='BN103';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21304155_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); Question: What was the original air date of the episode that had 4.08 million U.S. viewers? <|assistant|> SELECT "original_air_date" FROM "table1_21304155_1" WHERE "u_s_viewers_millions"='4.08';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_213088_1" ( "location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp_for_kostroma_1_and_2_table_31_technology_and_soviet_energy_availability_november_1981_ntis_order_num_pb82_133455_for_ignalina_4" text, "reactor_type" text, "status" text, "net_capacity_mw" real, "gross_capacity_mw" real ); Question: List all the locations where net capacity is 950? <|assistant|> SELECT "location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp_for_kostroma_1_and_2_table_31_technology_and_soviet_energy_availability_november_1981_ntis_order_num_pb82_133455_for_ignalina_4" FROM "table1_213088_1" WHERE "net_capacity_mw"=950;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_213088_1" ( "location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp_for_kostroma_1_and_2_table_31_technology_and_soviet_energy_availability_november_1981_ntis_order_num_pb82_133455_for_ignalina_4" text, "reactor_type" text, "status" text, "net_capacity_mw" real, "gross_capacity_mw" real ); Question: List all the locations with a RBMK-1000 reactor. <|assistant|> SELECT "location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp_for_kostroma_1_and_2_table_31_technology_and_soviet_energy_availability_november_1981_ntis_order_num_pb82_133455_for_ignalina_4" FROM "table1_213088_1" WHERE "reactor_type"='RBMK-1000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_213088_1" ( "location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp_for_kostroma_1_and_2_table_31_technology_and_soviet_energy_availability_november_1981_ntis_order_num_pb82_133455_for_ignalina_4" text, "reactor_type" text, "status" text, "net_capacity_mw" real, "gross_capacity_mw" real ); Question: What is the gross capacity where the net capacity is 1380? <|assistant|> SELECT MIN("gross_capacity_mw") FROM "table1_213088_1" WHERE "net_capacity_mw"=1380;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21313498_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: when was the premiere when a 3.3 millions of North American watched the episode whose writer was Rob Wright? <|assistant|> SELECT "original_air_date" FROM "table1_21313498_1" WHERE "u_s_viewers_millions"='3.3' AND "written_by"='Rob Wright';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21313498_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 is the name of the episode which the production code is 62015-08-162 <|assistant|> SELECT "title" FROM "table1_21313498_1" WHERE "production_code"='62015-08-162';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21313498_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: in the number of episode in season is 11, who was the writer? <|assistant|> SELECT "written_by" FROM "table1_21313498_1" WHERE "no_in_season"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21312959_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "us_viewers_millions" text ); Question: What is the production code for the episode title "A Wrong Day's Journey into Right"? <|assistant|> SELECT "production_code" FROM "table1_21312959_1" WHERE "title"='\"A Wrong Day''s Journey into Right\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21312959_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "us_viewers_millions" text ); Question: How many episodes had the us viewers (millions) figure of 5.0? <|assistant|> SELECT COUNT("no_in_season") FROM "table1_21312959_1" WHERE "us_viewers_millions"='5.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21312959_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "us_viewers_millions" text ); Question: Who are the writers for the episode number in series 129? <|assistant|> SELECT "written_by" FROM "table1_21312959_1" WHERE "no_in_series"=129;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21312959_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "us_viewers_millions" text ); Question: What is the us viewers (millions) figure for the episode titled "Witch Wars"? <|assistant|> SELECT "us_viewers_millions" FROM "table1_21312959_1" WHERE "title"='\"Witch Wars\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21312845_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: What is the latest episode in the season directed by Chris Long? <|assistant|> SELECT MAX("no_in_season") FROM "table1_21312845_1" WHERE "directed_by"='Chris Long';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21312845_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: Who wrote the episodes directed by David Straiton? <|assistant|> SELECT "written_by" FROM "table1_21312845_1" WHERE "directed_by"='David Straiton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21312845_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: Who directed the episode with a production code greater than 4301103.585233785 that was written by Curtis Kheel? <|assistant|> SELECT "directed_by" FROM "table1_21312845_1" WHERE "production_code">4301103.585233785 AND "written_by"='Curtis Kheel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" real, "date" text ); Question: How many results were there on 19/06/2009? <|assistant|> SELECT COUNT("result") FROM "fixtures_and_results" WHERE "date"='19/06/2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" real, "date" text ); Question: What is the round number for the date 19/06/2009? <|assistant|> SELECT "round" FROM "fixtures_and_results" WHERE "date"='19/06/2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" real, "date" text ); Question: What is the round number for the venue of Stade de la Méditerranée? <|assistant|> SELECT "round" FROM "fixtures_and_results" WHERE "venue"='Stade de la Méditerranée';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" real, "date" text ); Question: What was the score when the date was 17/07/2009? <|assistant|> SELECT "score" FROM "fixtures_and_results" WHERE "date"='17/07/2009';<|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 is Marc Parenteau's position? <|assistant|> SELECT "position" FROM "round_five" WHERE "player"='Marc Parenteau';<|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 is the smallest pick number for McGill? <|assistant|> SELECT MIN("pick_num") FROM "round_five" WHERE "college"='McGill';<|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: Derik Fury plays for which college? <|assistant|> SELECT "college" FROM "round_five" WHERE "player"='Derik Fury';<|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: David Kasouf plays for how many colleges? <|assistant|> SELECT COUNT("college") FROM "round_five" WHERE "player"='David Kasouf';<|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 position was drafted by the Hamilton Tiger-Cats? <|assistant|> SELECT "position" FROM "round_five" WHERE "cfl_team"='Hamilton Tiger-Cats';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: Who won when Jamie Green had the best lap? <|assistant|> SELECT "winning_driver" FROM "race_calendar_and_results" WHERE "fastest_lap"='Jamie Green';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: Who had the fasted lap in motorsport arena oschersleben? <|assistant|> SELECT "fastest_lap" FROM "race_calendar_and_results" WHERE "circuit"='Motorsport Arena Oschersleben';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); Question: When did Oliver Jarvis have pole position? <|assistant|> SELECT "date" FROM "race_calendar_and_results" WHERE "pole_position"='Oliver Jarvis';<|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 college did the player for the Hamilton Tiger-Cats go to? <|assistant|> SELECT "college" FROM "round_three" WHERE "cfl_team"='Hamilton Tiger-Cats';<|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: How many players are at the DT position? <|assistant|> SELECT COUNT("player") FROM "round_three" WHERE "position"='DT';<|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 team does the player who went to Nebraska play for? <|assistant|> SELECT "cfl_team" FROM "round_three" WHERE "college"='Nebraska';<|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 highest number any of the players were picked at? <|assistant|> SELECT MAX("pick_num") FROM "round_three";<|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 plays for the Winnipeg Blue Bombers? <|assistant|> SELECT "player" 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_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is the pick # for player wes lysack? <|assistant|> SELECT "pick_num" FROM "round_one" WHERE "player"='Wes Lysack';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: How many clf teams have a pick # of 5? <|assistant|> SELECT COUNT("cfl_team") FROM "round_one" WHERE "pick_num"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: How many total positions are there for utah college? <|assistant|> SELECT COUNT("position") FROM "round_one" WHERE "college"='Utah';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which cfl team is manitoba college? <|assistant|> SELECT "cfl_team" FROM "round_one" WHERE "college"='Manitoba';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which position is cfl team edmonton eskimos for weber state college? <|assistant|> SELECT "position" FROM "round_one" WHERE "cfl_team"='Edmonton Eskimos' AND "college"='Weber State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What is the pick # for player wes lysack? <|assistant|> SELECT MAX("pick_num") FROM "round_one" WHERE "player"='Wes Lysack';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21328899_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: When "i feel good" is the title and joe sachs is the writer how many series numbers are there? <|assistant|> SELECT COUNT("series_num") FROM "table1_21328899_1" WHERE "written_by"='Joe Sachs' AND "title"='\"I Feel Good\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "day" text, "stage" text, "time_gmt" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); Question: How many stages of the rally took 14:33.9 for the leader to finish? <|assistant|> SELECT COUNT("length") FROM "special_stages" WHERE "time"='14:33.9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "day" text, "stage" text, "time_gmt" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); Question: In which special stage named Tempo 2 was Sébastien Loeb the leader? <|assistant|> SELECT "stage" FROM "special_stages" WHERE "rally_leader"='Sébastien Loeb' AND "name"='Tempo 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "day" text, "stage" text, "time_gmt" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); Question: Which ralliers won the stages that were at 18:54 GMT? <|assistant|> SELECT "winner" FROM "special_stages" WHERE "time_gmt"='18:54';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21344397_3" ( "episode_number" real, "total_episodes" real, "title" text, "original_uk_broadcast_by" text, "original_uk_airdate" text, "dvd_reference" text ); Question: What is episode is "Bouncy Ball"? <|assistant|> SELECT MIN("total_episodes") FROM "table1_21344397_3" WHERE "title"='\"Bouncy Ball\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21330550_2" ( "date" text, "time" text, "acc_team" text, "big_ten_team" text, "location" text, "television" text, "attendance" real, "winner" text, "challenge_leader" text ); Question: How many locations have #12 Michigan State as the big ten team? <|assistant|> SELECT COUNT("location") FROM "table1_21330550_2" WHERE "big_ten_team"='#12 Michigan State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21330550_2" ( "date" text, "time" text, "acc_team" text, "big_ten_team" text, "location" text, "television" text, "attendance" real, "winner" text, "challenge_leader" text ); Question: Who is the winner when bigten (2-1) is the challenge leader? <|assistant|> SELECT "winner" FROM "table1_21330550_2" WHERE "challenge_leader"='BigTen (2-1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21330550_2" ( "date" text, "time" text, "acc_team" text, "big_ten_team" text, "location" text, "television" text, "attendance" real, "winner" text, "challenge_leader" text ); Question: Who is the winner in the location of ljvm coliseum • winston-salem, nc? <|assistant|> SELECT "winner" FROM "table1_21330550_2" WHERE "location"='LJVM Coliseum • Winston-Salem, NC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21330550_2" ( "date" text, "time" text, "acc_team" text, "big_ten_team" text, "location" text, "television" text, "attendance" real, "winner" text, "challenge_leader" text ); Question: What time was the acc team #17 wake forest? <|assistant|> SELECT "time" FROM "table1_21330550_2" WHERE "acc_team"='#17 Wake Forest';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21330550_2" ( "date" text, "time" text, "acc_team" text, "big_ten_team" text, "location" text, "television" text, "attendance" real, "winner" text, "challenge_leader" text ); Question: Which location has a time of 9:30pm? <|assistant|> SELECT "location" FROM "table1_21330550_2" WHERE "time"='9:30PM';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21330550_2" ( "date" text, "time" text, "acc_team" text, "big_ten_team" text, "location" text, "television" text, "attendance" real, "winner" text, "challenge_leader" text ); Question: How many dates have a big ten team of #10 purdue? <|assistant|> SELECT COUNT("date") FROM "table1_21330550_2" WHERE "big_ten_team"='#10 Purdue';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delegates" ( "province_community" text, "contestant" text, "age" real, "height" text, "hometown" text, "geographical_regions" text ); Question: Name the hometown for barahona <|assistant|> SELECT "hometown" FROM "delegates" WHERE "province_community"='Barahona';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delegates" ( "province_community" text, "contestant" text, "age" real, "height" text, "hometown" text, "geographical_regions" text ); Question: Name the contestant for villa hermosa <|assistant|> SELECT "contestant" FROM "delegates" WHERE "hometown"='Villa Hermosa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delegates" ( "province_community" text, "contestant" text, "age" real, "height" text, "hometown" text, "geographical_regions" text ); Question: Name the least age for cibao central and santo domingo <|assistant|> SELECT MIN("age") FROM "delegates" WHERE "geographical_regions"='Cibao Central' AND "hometown"='Santo Domingo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demographics" ( "census_division" text, "area_km" text, "pop_2011" real, "pop_2006" real, "pop_2001" real, "pop_1996" real ); Question: How many different results of the population count in 2001 are there for the census division whose population in 1996 is 880859? <|assistant|> SELECT COUNT("pop_2001") FROM "demographics" WHERE "pop_1996"=880859;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demographics" ( "census_division" text, "area_km" text, "pop_2011" real, "pop_2006" real, "pop_2001" real, "pop_1996" real ); Question: How many people lived in the census division with an area of 15767.99 km2 in 1996? <|assistant|> SELECT "pop_1996" FROM "demographics" WHERE "area_km"='15767.99';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demographics" ( "census_division" text, "area_km" text, "pop_2011" real, "pop_2006" real, "pop_2001" real, "pop_1996" real ); Question: What is the largest population count in any of the census divisions in 2006? <|assistant|> SELECT MAX("pop_2006") FROM "demographics";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demographics" ( "census_division" text, "area_km" text, "pop_2011" real, "pop_2006" real, "pop_2001" real, "pop_1996" real ); Question: How many people lived in the census division spread out on 9909.31 km2 in 1996? <|assistant|> SELECT "pop_1996" FROM "demographics" WHERE "area_km"='9909.31';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21344397_5" ( "episode_number" real, "total_episodes" real, "title" text, "original_uk_broadcast_by" text, "original_uk_airdate" text, "dvd_reference" text ); Question: When did "Granny Pig's Chickens" first air? <|assistant|> SELECT "original_uk_airdate" FROM "table1_21344397_5" WHERE "title"='\"Granny Pig''s Chickens\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21344397_5" ( "episode_number" real, "total_episodes" real, "title" text, "original_uk_broadcast_by" text, "original_uk_airdate" text, "dvd_reference" text ); Question: How many have the name, "The Fire Engine"? <|assistant|> SELECT COUNT("total_episodes") FROM "table1_21344397_5" WHERE "title"='\"The Fire Engine\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: What is the result of the qf round? <|assistant|> SELECT "result" FROM "fixtures_and_results" WHERE "round"='QF';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: Which venue has bradford bulls as the opponent on the date of 06/09/2009? <|assistant|> SELECT "venue" FROM "fixtures_and_results" WHERE "opponent"='Bradford Bulls' AND "date"='06/09/2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: Who is the opponent when the attendance is n/a? <|assistant|> SELECT "opponent" FROM "fixtures_and_results" WHERE "attendance"='N/A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: What is the venue that has 34-18 as the score? <|assistant|> SELECT "venue" FROM "fixtures_and_results" WHERE "score"='34-18';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: How many results have 14,381 as the attendance? <|assistant|> SELECT COUNT("result") FROM "fixtures_and_results" WHERE "attendance"='14,381';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: How many rounds have 6,150 as attendance? <|assistant|> SELECT "round" FROM "fixtures_and_results" WHERE "attendance"='6,150';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21369888_4" ( "episode" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "viewing_figures_millions_sourced_by_barb_includes_itv1_hd_and_itv1_1" text ); Question: What is the episode number for "case two (part 1)"? <|assistant|> SELECT "episode" FROM "table1_21369888_4" WHERE "title"='\"Case Two (Part 1)\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21369888_4" ( "episode" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "viewing_figures_millions_sourced_by_barb_includes_itv1_hd_and_itv1_1" text ); Question: What is the original air date for the episode viewed by 7.12 million? <|assistant|> SELECT "originalairdate" FROM "table1_21369888_4" WHERE "viewing_figures_millions_sourced_by_barb_includes_itv1_hd_and_itv1_1"='7.12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21369888_4" ( "episode" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "viewing_figures_millions_sourced_by_barb_includes_itv1_hd_and_itv1_1" text ); Question: Who directed the episode viewed by 7.35 million? <|assistant|> SELECT "directed_by" FROM "table1_21369888_4" WHERE "viewing_figures_millions_sourced_by_barb_includes_itv1_hd_and_itv1_1"='7.35';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: How many opponents did they play on 17/05/2009? <|assistant|> SELECT COUNT("opponent") FROM "fixtures_and_results" WHERE "date"='17/05/2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" text, "date" text ); Question: What was the score of round 3? <|assistant|> SELECT "score" FROM "fixtures_and_results" WHERE "round"='3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "draw" real, "song" text, "artist" text, "panel_points" real, "televotes" real, "televote_points" real, "score" real, "placing" text ); Question: Name the artist for 7 points <|assistant|> SELECT COUNT("artist") FROM "final" WHERE "televote_points"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "draw" real, "song" text, "artist" text, "panel_points" real, "televotes" real, "televote_points" real, "score" real, "placing" text ); Question: Name the number of artists for panel points being 5 <|assistant|> SELECT COUNT("artist") FROM "final" WHERE "panel_points"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "draw" real, "song" text, "artist" text, "panel_points" real, "televotes" real, "televote_points" real, "score" real, "placing" text ); Question: Name the total number of televote points for cry on my shoulders <|assistant|> SELECT COUNT("televote_points") FROM "final" WHERE "song"='Cry on my shoulders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "draw" real, "song" text, "artist" text, "panel_points" real, "televotes" real, "televote_points" real, "score" real, "placing" text ); Question: Name the score for rebeka dremelj <|assistant|> SELECT "score" FROM "final" WHERE "artist"='Rebeka Dremelj';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "draw" real, "song" text, "artist" text, "panel_points" real, "televotes" real, "televote_points" real, "score" real, "placing" text ); Question: Name the artist for 1595 televotes <|assistant|> SELECT "artist" FROM "final" WHERE "televotes"=1595;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_doubles_8_5_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the result of the match on grass in 1955? <|assistant|> SELECT "outcome" FROM "men_s_doubles_8_5_titles_3_runner_ups" WHERE "surface"='Grass' AND "year"=1955;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_doubles_8_5_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the result of the Australian Championships? <|assistant|> SELECT "outcome" FROM "men_s_doubles_8_5_titles_3_runner_ups" WHERE "championship"='Australian Championships';<|endoftext|>