text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches_staff" ( "position" text, "name" text, "year_at_cu" text, "experience" real, "alma_mater" text ); Question: What year at CU is the person in video services with an experience less than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches_staff" ( "position" text, "name" text, "year_at_cu" text, "experience" real, "alma_mater" text ); Question: The graduate assistant who was in the 1st year at CU has what experience? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches_staff" ( "position" text, "name" text, "year_at_cu" text, "experience" real, "alma_mater" text ); Question: What person has the alma mater of Eastern Nazarene ('74), and greater than 19...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "manufacturer" text, "model" text, "transmission" text, "engine_capacity" real, "fuel_type" text, "l_100km_urban_cold" real, "l_100km_extra_urban" real, "l_100km_combined" real...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "manufacturer" text, "model" text, "transmission" text, "engine_capacity" real, "fuel_type" text, "l_100km_urban_cold" real, "l_100km_extra_urban" real, "l_100km_combined" real...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "manufacturer" text, "model" text, "transmission" text, "engine_capacity" real, "fuel_type" text, "l_100km_urban_cold" real, "l_100km_extra_urban" real, "l_100km_combined" real...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "manufacturer" text, "model" text, "transmission" text, "engine_capacity" real, "fuel_type" text, "l_100km_urban_cold" real, "l_100km_extra_urban" real, "l_100km_combined" real...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "manufacturer" text, "model" text, "transmission" text, "engine_capacity" real, "fuel_type" text, "l_100km_urban_cold" real, "l_100km_extra_urban" real, "l_100km_combined" real...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How much Silver has a Total larger than 9, and a Gold of 14? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Rank has a Total larger than 9, and a Gold larger than 6? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How much Silver has a Rank of 4, and a Bronze smaller than 12? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many bronzes have a Total of 9? <|assistant|> SELECT SUM("bronze") FROM "m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How much Gold has a Nation of mongolia, and a Total larger than 18? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_the_parliament" ( "lok_sabha" text, "duration" text, "name_of_m_p" text, "party_affiliation" text, "election_year" real ); Question: What is the Lok Sabha for Dravida Munnetra Kazhag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_the_parliament" ( "lok_sabha" text, "duration" text, "name_of_m_p" text, "party_affiliation" text, "election_year" real ); Question: What is the duration when Lok Sabha shows fifth? ...
<|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 for the game played on December 20, 1970? <|assistant|> SELECT "result" ...
<|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 for week 2? <|assistant|> SELECT "result" FROM "schedule" WHERE "week"=2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What is the rank of the athletes that have Notes of fb, and a Time of 6:47.30? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What is the least rank for athletes with a time of 6:36.65? <|assistant|> SELECT MIN("rank...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is the average react for a rank more than 8? <|assistant|> SELECT AVG("reac...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is the highest rank for the react of 0.198, and the time more than 20.42? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is the sum of time with a lane larger than 6, a nationality of canada, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ner_associated_genes" ( "human_gene_protein" text, "mouse_ortholog" text, "yeast_ortholog" text, "subpathway" text, "gene_cards_entry" text ); Question: What human gene has a yeast ortholog of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ner_associated_genes" ( "human_gene_protein" text, "mouse_ortholog" text, "yeast_ortholog" text, "subpathway" text, "gene_cards_entry" text ); Question: What is the human gene that has a mouse ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ner_associated_genes" ( "human_gene_protein" text, "mouse_ortholog" text, "yeast_ortholog" text, "subpathway" text, "gene_cards_entry" text ); Question: What is the yeast ortholog that has a su...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ner_associated_genes" ( "human_gene_protein" text, "mouse_ortholog" text, "yeast_ortholog" text, "subpathway" text, "gene_cards_entry" text ); Question: What is the yeast ortholog of mouse orth...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_10_3_titles_7_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What is the Tournament against Vladimir Zednik? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_10_3_titles_7_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What Tournament had a Score of 4–6, 6–7, 3–6? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_10_3_titles_7_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What is the Score of the of the Tournament again...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "chen_yanqing_chn" text, "111kg" text, "doha_qatar" text ); Question: What is the Doha, Qatar when the snatch is total? <|assistant|> SELECT "doha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "chen_yanqing_chn" text, "111kg" text, "doha_qatar" text ); Question: What shows for Chen Yanqing (CHN) when Doha, Qatar is —? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "chen_yanqing_chn" text, "111kg" text, "doha_qatar" text ); Question: What is the Doha, Qatar when the snatch is clean & jerk? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers" ( "points" real, "name" text, "club" text, "tries" real, "drop" real ); Question: Which Points have a Club of london wasps, and a Drop larger than 1? <|assistant|> SELECT AVG("poin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers" ( "points" real, "name" text, "club" text, "tries" real, "drop" real ); Question: How many Points have a Name of stephen myler, and Tries smaller than 0? <|assistant|> SELECT SUM("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers" ( "points" real, "name" text, "club" text, "tries" real, "drop" real ); Question: How many drops have Tries smaller than 5, and Points larger than 212? <|assistant|> SELECT COUNT("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourteenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What is the pick number for New Mexico? <|assistant|> SELECT AVG("pick") FROM "fourteen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourteenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What player is from the Denver Broncos? <|assistant|> SELECT "player" FROM "fourteenth_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourteenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: Which college has their team as the New York Jets? <|assistant|> SELECT "college" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2003" real ); Question: What is the Constituency Number of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2003" real ); Question: What is the Constituency Number whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2003" real ); Question: Which District is Constituency numb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2003" real ); Question: What is the lowest number of Electo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What school/club had pick 33? <|assistant|> SELECT "school_club_team" FROM "nfl_draf...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What attendance has October 16, 2005 as the date? <|assistant|> SELECT "attendance" FROM "sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: What result has a week less than 16, and October 31, 2005 as the date? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_record" ( "year" real, "record" text, "finish" text, "manager" text, "playoffs" text ); Question: Which Year has a Manager of bobby dews, and Playoffs of lost in 1st round? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_record" ( "year" real, "record" text, "finish" text, "manager" text, "playoffs" text ); Question: How many years have a Record of 73-65? <|assistant|> SELECT COUNT("year") FROM "ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_record" ( "year" real, "record" text, "finish" text, "manager" text, "playoffs" text ); Question: Which Record has a Year larger than 1974, and a Finish of 3rd? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1961_1995" ( "year" real, "artist" text, "song" text, "uk_chart" text, "at_eurovision" text ); Question: Which Song of the Year was 42 on the UK charts prior to 1994? <|assistant|> SELECT "song...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1961_1995" ( "year" real, "artist" text, "song" text, "uk_chart" text, "at_eurovision" text ); Question: Where did Scott Fitzgerald rank on the UK charts? <|assistant|> SELECT "uk_chart" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1961_1995" ( "year" real, "artist" text, "song" text, "uk_chart" text, "at_eurovision" text ); Question: Where did the song by Michael Ball, which placed 2nd in Eurovision prior to 1961, place ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lent_bumps" ( "year" real, "finish_position" text, "1st_day" text, "2nd_day" text, "3rd_day" text, "4th_day" text ); Question: What is the latest year that ended with a 3rd day of rowed-over?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lent_bumps" ( "year" real, "finish_position" text, "1st_day" text, "2nd_day" text, "3rd_day" text, "4th_day" text ); Question: What is the 3rd day result for years under 2012 and a finish pos...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lent_bumps" ( "year" real, "finish_position" text, "1st_day" text, "2nd_day" text, "3rd_day" text, "4th_day" text ); Question: What was the 4th day result for the year in which the 3rd day re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "luge" ( "position" text, "height_cm" real, "weight_kg" real, "birthplace" text, "2009_10_team" text ); Question: What is the sum of the heights for the Cornell Big Red? <|assistant|> SELECT SUM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "equipment" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text ); Question: For the vessel with a listed In service of 1, what is the origin given? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "equipment" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text ); Question: What is the lowest listed In service for a vessel of xavery czernicki class? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "equipment" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text ); Question: Which vessel has a type of logistic support? <|assistant|> SELECT "vessel" FROM "equipment" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "equipment" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text ); Question: What is the type for a vessel of lublin class? <|assistant|> SELECT "type" FROM "equipment" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "equipment" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text ); Question: What is the highest In service for a vessel with a listed Unit of 12th minesweeper squadron? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "equipment" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text ); Question: What is the type for a vessel with a listed unit of naval base swinoujscie (auxiliary squadro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_1_newcomers_race_a" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: Which rider was on the 600cc Yamaha team? <|assistant|> SELECT "rider" FROM "race_1_new...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_1_newcomers_race_a" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What was John Hildreth's speed? <|assistant|> SELECT "speed" FROM "race_1_newcomers_rac...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "royal_rumble_entrances_and_eliminations" ( "draw" real, "entrant" text, "brand" text, "order" text, "eliminated_by" text, "time" text ); Question: What is the average draw number of an entran...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "royal_rumble_entrances_and_eliminations" ( "draw" real, "entrant" text, "brand" text, "order" text, "eliminated_by" text, "time" text ); Question: What is Mark Henry's brand? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_in_latin_america_2" real ); Question: Who is the Author/Editor/So...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_in_latin_america_2" real ); Question: How many countries sampled ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_in_latin_america_2" real ); Question: What's the world ranking in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What home team has a tie no of 20? <|assistant|> SELECT "home_team" FROM "first_r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What date was the score 3–3, and away team was Barnet? <|assistant|> SELECT "date...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the Tie no when Wimbledon is the home team? <|assistant|> SELECT "tie_no"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the score when the Tie no is replay, and the away team is York City? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the Tie no when Chester is the away team? <|assistant|> SELECT "tie_no" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_information" ( "episode_number" text, "broadcast_date" text, "title" text, "written_by" text, "viewership_millions" real ); Question: What is the broadcast date of the episode with 9.65...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_information" ( "episode_number" text, "broadcast_date" text, "title" text, "written_by" text, "viewership_millions" real ); Question: What is the lowest viewership in millions of the ep...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_information" ( "episode_number" text, "broadcast_date" text, "title" text, "written_by" text, "viewership_millions" real ); Question: What is the episode number of the episode broadcast...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "place" real, "points" real ); Question: How many times is the points 8 and the place larger than 8? <|assistant|> SELECT COUNT("draw") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "place" real, "points" real ); Question: what is the average draw when the place is 5 and points more than 15? <|assistant|> SELECT AVG("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "place" real, "points" real ); Question: what is the highest draw when points is less than 11 and language is norwegian? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is the total number of picks from the PBA team of purefoods tender juicy hotdo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is the pba team for the player who went to santo tomas college? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is the PBA team for roberto jabar who was picked before number 11? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fixed_focal_length_lenses" ( "brand" text, "product_name" text, "focal_length" text, "35mm_efl_and_equivalent_aperture" text, "max_aperture" text ); Question: What is the brand of the slr magic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text ); Question: What is the Most Spoken language in the Place with Code 70403 with an Are...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text ); Question: What is the Population of the Place with an Area (km 2) larger than 498.7...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text ); Question: What is the Population of Tshepiso with a Code of 70409 or smaller and an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_4" ( "lane" real, "athlete" text, "nationality" text, "time" text, "react" real ); Question: What the time of Paul Hession with more than an 0.187 react? <|assistant|> SELECT "time" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_4" ( "lane" real, "athlete" text, "nationality" text, "time" text, "react" real ); Question: What's the lane number when time was 20.45 and the react was less than 0.164? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_results_timeline" ( "1953" text, "1954" text, "1955" text, "1956" text, "1957" text, "1958" text, "1959" text, "1960" text, "1961" text, "1962" text, "1963" text ); Quest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_results_timeline" ( "1953" text, "1954" text, "1955" text, "1956" text, "1957" text, "1958" text, "1959" text, "1960" text, "1961" text, "1962" text, "1963" text ); Quest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What date has 7 as the tie no.? <|assistant|> SELECT "date" FROM "fifth_round_pro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "taekwondo_medals" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: Which year was held in beijing? <|assistant|> SELECT "year" FROM "taekwondo_medals"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "taekwondo_medals" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: How many years had a Venue of eindhoven? <|assistant|> SELECT COUNT("year") FROM "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "taekwondo_medals" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: Which Competition has a Venue of manchester in 2009? <|assistant|> SELECT "competit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "taekwondo_medals" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: Which Year has a Position of 2nd, and Notes of -63kg, and a Venue of manchester? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: Name the the Best of rodolfo lavín <|assistant|> SELECT "best" FROM "qualifying_results" W...