text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); Question: What party did the incumbent from the Virginia 5 district who was re-elected and was first elected in 1797 belong to? <|assistant|> SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "first_elected"='1797' AND "district"='Virginia 5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); Question: When was the incumbent first elected in the district where the result was a democratic-republican gain? <|assistant|> SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "result"='Democratic-Republican gain';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); Question: In what district was the incumbent Edwin Gray? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Edwin Gray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); Question: When was the incumbent from the Virginia 10 district first elected? <|assistant|> SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); Question: Name the result for walter jones (dr) 99.0% henry lee (f) 1.0% <|assistant|> SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Walter Jones (DR) 99.0% Henry Lee (F) 1.0%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); Question: Name the district for matthew clay <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Matthew Clay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); Question: Name the number of first elected for john smith <|assistant|> SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Smith';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); Question: Name the incumbent for virginia 18 <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 18';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); Question: Name the district for john randolph (dr) <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='John Randolph (DR)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text, "candidates" text ); Question: Name the incumbent for virginia 4 <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: When was the earliest person elected? <|assistant|> SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What party was re-elected to Virginia 12? <|assistant|> SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "district"='Virginia 12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What is the latest first elected? <|assistant|> SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many times were the candidates leven powell (f) 63.8% roger west (dr) 36.4%? <|assistant|> SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Leven Powell (F) 63.8% Roger West (DR) 36.4%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What is the district with the candidates leven powell (f) 63.8% roger west (dr) 36.4%? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Leven Powell (F) 63.8% Roger West (DR) 36.4%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What is the district with the incumbent john nicholas? <|assistant|> SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Nicholas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many were in district virginia 6? <|assistant|> SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: If the district is Virginia 8, who is the Incumbent? <|assistant|> SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: If the district is Virginia 17, who are the candidates? <|assistant|> SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Virginia 17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: In how many different parts was the incumbent Abraham B. Venable? <|assistant|> SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Abraham B. Venable';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26686908_2" ( "rd" text, "circuit" text, "city_state" text, "date" text, "championship" text, "challenge" text, "production" text ); Question: What is the date for the mount panorama circuit? <|assistant|> SELECT "date" FROM "table1_26686908_2" WHERE "circuit"='Mount Panorama Circuit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26686908_2" ( "rd" text, "circuit" text, "city_state" text, "date" text, "championship" text, "challenge" text, "production" text ); Question: What was the location for the date 7–10 october? <|assistant|> SELECT "city_state" FROM "table1_26686908_2" WHERE "date"='7–10 October';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26686908_2" ( "rd" text, "circuit" text, "city_state" text, "date" text, "championship" text, "challenge" text, "production" text ); Question: Who handled production for the race when the championship went to david wall and challenge was jordan ormsby? <|assistant|> SELECT "production" FROM "table1_26686908_2" WHERE "championship"='David Wall' AND "challenge"='Jordan Ormsby';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26686908_2" ( "rd" text, "circuit" text, "city_state" text, "date" text, "championship" text, "challenge" text, "production" text ); Question: Which city and state hosted the adelaide street circuit? <|assistant|> SELECT "city_state" FROM "table1_26686908_2" WHERE "circuit"='Adelaide Street Circuit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26686908_2" ( "rd" text, "circuit" text, "city_state" text, "date" text, "championship" text, "challenge" text, "production" text ); Question: Which circuit was held on 25–28 march? <|assistant|> SELECT "circuit" FROM "table1_26686908_2" WHERE "date"='25–28 March';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26686908_2" ( "rd" text, "circuit" text, "city_state" text, "date" text, "championship" text, "challenge" text, "production" text ); Question: How many productions are shown for rd 2? <|assistant|> SELECT COUNT("production") FROM "table1_26686908_2" WHERE "rd"='Rd 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26702078_1" ( "no_in_series" real, "no_in_season" real, "title" text, "director" text, "writer_s" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Name the writers for 46 in series <|assistant|> SELECT "writer_s" FROM "table1_26702078_1" WHERE "no_in_series"=46;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26702078_1" ( "no_in_series" real, "no_in_season" real, "title" text, "director" text, "writer_s" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Name the production code for 60 number in series <|assistant|> SELECT "production_code" FROM "table1_26702078_1" WHERE "no_in_series"=60;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26701861_1" ( "no_in_series" real, "no_in_season" real, "title" text, "director" text, "writer_s" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: what is the title of the episode with the director pamela fryman and the production code 2alh07? <|assistant|> SELECT "title" FROM "table1_26701861_1" WHERE "director"='Pamela Fryman' AND "production_code"='2ALH07';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promoter" ( "detailed_family_information" text, "from" real, "to" real, "anchor" real, "orientation" text, "conserved_in_mus_musculus" text, "matrix_sim" text, "sequence" text, "occurrence" real ); Question: Which occurence has the matrix sim marked as 0.925? <|assistant|> SELECT "occurrence" FROM "promoter" WHERE "matrix_sim"='0.925';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promoter" ( "detailed_family_information" text, "from" real, "to" real, "anchor" real, "orientation" text, "conserved_in_mus_musculus" text, "matrix_sim" text, "sequence" text, "occurrence" real ); Question: What is the detailed family information where the sequence is aagtact? <|assistant|> SELECT COUNT("detailed_family_information") FROM "promoter" WHERE "sequence"='aAGTAct';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promoter" ( "detailed_family_information" text, "from" real, "to" real, "anchor" real, "orientation" text, "conserved_in_mus_musculus" text, "matrix_sim" text, "sequence" text, "occurrence" real ); Question: What occurence has 0.925 listed as the matrix sim? <|assistant|> SELECT MAX("occurrence") FROM "promoter" WHERE "matrix_sim"='0.925';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promoter" ( "detailed_family_information" text, "from" real, "to" real, "anchor" real, "orientation" text, "conserved_in_mus_musculus" text, "matrix_sim" text, "sequence" text, "occurrence" real ); Question: What is the number listed in from for the Krueppel Like Transcription Factors? <|assistant|> SELECT MIN("from") FROM "promoter" WHERE "detailed_family_information"='Krueppel like transcription factors';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promoter" ( "detailed_family_information" text, "from" real, "to" real, "anchor" real, "orientation" text, "conserved_in_mus_musculus" text, "matrix_sim" text, "sequence" text, "occurrence" real ); Question: What is the smallest number listed in the from category? <|assistant|> SELECT MIN("from") FROM "promoter";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promoter" ( "detailed_family_information" text, "from" real, "to" real, "anchor" real, "orientation" text, "conserved_in_mus_musculus" text, "matrix_sim" text, "sequence" text, "occurrence" real ); Question: What is the conserved in mus musculus listing for sequence aagtact? <|assistant|> SELECT "conserved_in_mus_musculus" FROM "promoter" WHERE "sequence"='aAGTAct';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "orthologs" ( "species" text, "common_name" text, "protein_name" text, "accession_number" text, "nt_length" text, "nt_identity" text, "aa_length" text, "aa_identity" text, "e_value" text ); Question: What is the nt identity when the species is drosophilia melanogaster? <|assistant|> SELECT "nt_identity" FROM "orthologs" WHERE "species"='Drosophilia melanogaster';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "orthologs" ( "species" text, "common_name" text, "protein_name" text, "accession_number" text, "nt_length" text, "nt_identity" text, "aa_length" text, "aa_identity" text, "e_value" text ); Question: What is the protein name when aa length is 202 aa? <|assistant|> SELECT "protein_name" FROM "orthologs" WHERE "aa_length"='202 aa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "orthologs" ( "species" text, "common_name" text, "protein_name" text, "accession_number" text, "nt_length" text, "nt_identity" text, "aa_length" text, "aa_identity" text, "e_value" text ); Question: What is the protein name when the e-value is 2.50e-41? <|assistant|> SELECT "protein_name" FROM "orthologs" WHERE "e_value"='2.50E-41';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "orthologs" ( "species" text, "common_name" text, "protein_name" text, "accession_number" text, "nt_length" text, "nt_identity" text, "aa_length" text, "aa_identity" text, "e_value" text ); Question: What is the aa length when the protein name is c11orf73? <|assistant|> SELECT "aa_length" FROM "orthologs" WHERE "protein_name"='C11orf73';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "orthologs" ( "species" text, "common_name" text, "protein_name" text, "accession_number" text, "nt_length" text, "nt_identity" text, "aa_length" text, "aa_identity" text, "e_value" text ); Question: How many times is the accession number xp_001843282? <|assistant|> SELECT COUNT("common_name") FROM "orthologs" WHERE "accession_number"='XP_001843282';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26736040_1" ( "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 have U.S. viewers 1.66 million. <|assistant|> SELECT COUNT("title") FROM "table1_26736040_1" WHERE "u_s_viewers_millions"='1.66';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26736040_1" ( "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 every title when U.S. viewers is 1.04 million. <|assistant|> SELECT "title" FROM "table1_26736040_1" WHERE "u_s_viewers_millions"='1.04';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26736040_1" ( "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 highest number in series with director as Phil Abraham? <|assistant|> SELECT MAX("no_in_series") FROM "table1_26736040_1" WHERE "directed_by"='Phil Abraham';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26736040_1" ( "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 entries for number in series when director is Bryan Cranston? <|assistant|> SELECT COUNT("no_in_series") FROM "table1_26736040_1" WHERE "directed_by"='Bryan Cranston';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26736342_1" ( "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 earliest episode that was watched by 1.32 million viewers? <|assistant|> SELECT MIN("no_in_series") FROM "table1_26736342_1" WHERE "u_s_viewers_millions"='1.32';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26736342_1" ( "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 latest episode written by John Shiban & Thomas Schnauz? <|assistant|> SELECT MAX("no_in_series") FROM "table1_26736342_1" WHERE "written_by"='John Shiban & Thomas Schnauz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26736342_1" ( "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 series number of the episode "Fly"? <|assistant|> SELECT COUNT("no_in_series") FROM "table1_26736342_1" WHERE "title"='\"Fly\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26736342_1" ( "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 directed the eposide that was watched by 1.95 million US viewers? <|assistant|> SELECT "directed_by" FROM "table1_26736342_1" WHERE "u_s_viewers_millions"='1.95';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26733129_1" ( "episode_number" real, "air_date" text, "guests" text, "three_darts_challenge" text, "musical_performance" text ); Question: How many episodes are there for the three darts challenge with Sharon Osbourne? <|assistant|> SELECT MAX("episode_number") FROM "table1_26733129_1" WHERE "three_darts_challenge"='Sharon Osbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26733129_1" ( "episode_number" real, "air_date" text, "guests" text, "three_darts_challenge" text, "musical_performance" text ); Question: What musical performances aired on 5 April 2010? <|assistant|> SELECT "musical_performance" FROM "table1_26733129_1" WHERE "air_date"='5 April 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26733129_1" ( "episode_number" real, "air_date" text, "guests" text, "three_darts_challenge" text, "musical_performance" text ); Question: What were the guests that aired on 7 June 2010? <|assistant|> SELECT "guests" FROM "table1_26733129_1" WHERE "air_date"='7 June 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26733129_1" ( "episode_number" real, "air_date" text, "guests" text, "three_darts_challenge" text, "musical_performance" text ); Question: Who was in the three darts challenge that aired on 10 may 2010? <|assistant|> SELECT "three_darts_challenge" FROM "table1_26733129_1" WHERE "air_date"='10 May 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin_standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" text ); Question: Name the ends lost for canada <|assistant|> SELECT "ends_lost" FROM "round_robin_standings" WHERE "country"='Canada';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin_standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" text ); Question: Name the least ends won for anna kubešková <|assistant|> SELECT MIN("ends_won") FROM "round_robin_standings" WHERE "skip"='Anna Kubešková';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin_standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" text ); Question: Name the number of ends lost for 6 stolen ends <|assistant|> SELECT COUNT("ends_lost") FROM "round_robin_standings" WHERE "stolen_ends"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selected_cognates" ( "proto_slavic" text, "russian" text, "ukrainian" text, "belarusian" text, "polish" text, "czech" text, "slovak" text, "slovene" text, "serbo_croatian" text, "bulgarian" text, "macedonian" text ); Question: When gniazdo is polish what is proto-slavic? <|assistant|> SELECT "proto_slavic" FROM "selected_cognates" WHERE "polish"='gniazdo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selected_cognates" ( "proto_slavic" text, "russian" text, "ukrainian" text, "belarusian" text, "polish" text, "czech" text, "slovak" text, "slovene" text, "serbo_croatian" text, "bulgarian" text, "macedonian" text ); Question: When рука / ruka is the serbo-croatian what is the macedonian? <|assistant|> SELECT "macedonian" FROM "selected_cognates" WHERE "serbo_croatian"='рука / ruka';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selected_cognates" ( "proto_slavic" text, "russian" text, "ukrainian" text, "belarusian" text, "polish" text, "czech" text, "slovak" text, "slovene" text, "serbo_croatian" text, "bulgarian" text, "macedonian" text ); Question: When риба (ríba) is the macedonian what is the proto-slavic? <|assistant|> SELECT "proto_slavic" FROM "selected_cognates" WHERE "macedonian"='риба (ríba)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selected_cognates" ( "proto_slavic" text, "russian" text, "ukrainian" text, "belarusian" text, "polish" text, "czech" text, "slovak" text, "slovene" text, "serbo_croatian" text, "bulgarian" text, "macedonian" text ); Question: When гн(иј)ездо / gn(ij)ezdo is the serbo-croatian how many proto-slavics are there? <|assistant|> SELECT COUNT("proto_slavic") FROM "selected_cognates" WHERE "serbo_croatian"='гн(иј)ездо / gn(ij)ezdo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selected_cognates" ( "proto_slavic" text, "russian" text, "ukrainian" text, "belarusian" text, "polish" text, "czech" text, "slovak" text, "slovene" text, "serbo_croatian" text, "bulgarian" text, "macedonian" text ); Question: When рыба (rýba) is the belarusian how many slovenes are there? <|assistant|> SELECT COUNT("slovene") FROM "selected_cognates" WHERE "belarusian"='рыба (rýba)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selected_cognates" ( "proto_slavic" text, "russian" text, "ukrainian" text, "belarusian" text, "polish" text, "czech" text, "slovak" text, "slovene" text, "serbo_croatian" text, "bulgarian" text, "macedonian" text ); Question: When вуха (vúkha) is the belarusian how many slovaks are there? <|assistant|> SELECT COUNT("slovak") FROM "selected_cognates" WHERE "belarusian"='вуха (vúkha)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "india" ( "dibrugarh" text, "kanyakumari" text, "vivek_express_15905_15906" text, "indian_railways" text, "4286km" text, "55" real, "weekly" text, "82_30_hrs_3_5_days" text ); Question: How long does the 2579km route take? <|assistant|> SELECT "82_30_hrs_3_5_days" FROM "india" WHERE "4286km"='2579km';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "india" ( "dibrugarh" text, "kanyakumari" text, "vivek_express_15905_15906" text, "indian_railways" text, "4286km" text, "55" real, "weekly" text, "82_30_hrs_3_5_days" text ); Question: What is the name of the only route that runs to bhavnagar? <|assistant|> SELECT "vivek_express_15905_15906" FROM "india" WHERE "kanyakumari"='Bhavnagar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26748314_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); Question: What is every original air date for the number in season of 7? <|assistant|> SELECT "original_air_date" FROM "table1_26748314_1" WHERE "no_in_season"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "congress" ( "electoral_district" text, "registered_voters" real, "seats_in_congress" real, "candidates_per_party" real, "participating_parties" real, "total_candidates" real ); Question: What is the number of participating parties when registered voters totaled 643629? <|assistant|> SELECT COUNT("participating_parties") FROM "congress" WHERE "registered_voters"=643629;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "congress" ( "electoral_district" text, "registered_voters" real, "seats_in_congress" real, "candidates_per_party" real, "participating_parties" real, "total_candidates" real ); Question: What is the electoral district when total candidates were 35? <|assistant|> SELECT "electoral_district" FROM "congress" WHERE "total_candidates"=35;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "congress" ( "electoral_district" text, "registered_voters" real, "seats_in_congress" real, "candidates_per_party" real, "participating_parties" real, "total_candidates" real ); Question: What is the number of seats in congress when the electoral district is Ucayali? <|assistant|> SELECT COUNT("seats_in_congress") FROM "congress" WHERE "electoral_district"='Ucayali';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "congress" ( "electoral_district" text, "registered_voters" real, "seats_in_congress" real, "candidates_per_party" real, "participating_parties" real, "total_candidates" real ); Question: What is the number of seats in congress when the candidates per party is 6? <|assistant|> SELECT COUNT("seats_in_congress") FROM "congress" WHERE "candidates_per_party"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "congress" ( "electoral_district" text, "registered_voters" real, "seats_in_congress" real, "candidates_per_party" real, "participating_parties" real, "total_candidates" real ); Question: What is the number of total candidates when registered voters is 47742? <|assistant|> SELECT "total_candidates" FROM "congress" WHERE "registered_voters"=47742;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26758262_1" ( "district" real, "municipalities_served" text, "judge_of_probate" text, "judges_residence" text, "location_of_court" text ); Question: Where does the judge who serves Beacon Falls , Naugatuck , Middlebury , Prospect reside? <|assistant|> SELECT "judges_residence" FROM "table1_26758262_1" WHERE "municipalities_served"='Beacon Falls , Naugatuck , Middlebury , Prospect';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26758262_1" ( "district" real, "municipalities_served" text, "judge_of_probate" text, "judges_residence" text, "location_of_court" text ); Question: What district is the court located in Tolland? <|assistant|> SELECT MAX("district") FROM "table1_26758262_1" WHERE "location_of_court"='Tolland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26758262_1" ( "district" real, "municipalities_served" text, "judge_of_probate" text, "judges_residence" text, "location_of_court" text ); Question: Where does the judge whose court is in Groton reside? <|assistant|> SELECT "judges_residence" FROM "table1_26758262_1" WHERE "location_of_court"='Groton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: what is the nhl team for the player john maclean? <|assistant|> SELECT "nhl_team" FROM "round_one" WHERE "player"='John MacLean';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: who is the player for the position defence and the college/junior/club team is ottawa 67's (ohl)? <|assistant|> SELECT "player" FROM "round_one" WHERE "position"='Defence' AND "college_junior_club_team"='Ottawa 67''s (OHL)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: what is the college/junior/club team for the player alfie turcotte? <|assistant|> SELECT "college_junior_club_team" FROM "round_one" WHERE "player"='Alfie Turcotte';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_ten" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What is the name of the college/junior/club team of the Buffalo Sabres? <|assistant|> SELECT "college_junior_club_team" FROM "round_ten" WHERE "nhl_team"='Buffalo Sabres';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_ten" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What is Reine Karlsson's nationality? <|assistant|> SELECT "nationality" FROM "round_ten" WHERE "player"='Reine Karlsson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eleven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many players were drafted by the Philadelphia Flyers? <|assistant|> SELECT COUNT("nationality") FROM "round_eleven" WHERE "nhl_team"='Philadelphia Flyers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eleven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many picks did the Chicago Black Hawks get? <|assistant|> SELECT COUNT("pick_num") FROM "round_eleven" WHERE "nhl_team"='Chicago Black Hawks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eleven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What team had pick 203? <|assistant|> SELECT "nhl_team" FROM "round_eleven" WHERE "pick_num"=203;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_twelve" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which school did harold duvall attend? <|assistant|> SELECT "college_junior_club_team" FROM "round_twelve" WHERE "player"='Harold Duvall';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_twelve" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: List the position for the boston bruins. <|assistant|> SELECT "position" FROM "round_twelve" WHERE "nhl_team"='Boston Bruins';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_twelve" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Who was drafted to litvinov (czechoslovakia)? <|assistant|> SELECT "player" FROM "round_twelve" WHERE "college_junior_club_team"='Litvinov (Czechoslovakia)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_twelve" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What position does peter mcgeough cover? <|assistant|> SELECT "position" FROM "round_twelve" WHERE "player"='Peter McGeough';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which player was drafted by the Minnesota North Stars? <|assistant|> SELECT "player" FROM "round_four" WHERE "nhl_team"='Minnesota North Stars';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What is the nationality of Bob Essensa? <|assistant|> SELECT "nationality" FROM "round_four" WHERE "player"='Bob Essensa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What position is the player from the Regina Pats (WHL)? <|assistant|> SELECT "position" FROM "round_four" WHERE "college_junior_club_team"='Regina Pats (WHL)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What number pick was the player from HIFK Helsinki (Finland)? <|assistant|> SELECT "pick_num" FROM "round_four" WHERE "college_junior_club_team"='HIFK Helsinki (Finland)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which team drafted Esa Tikkanen? <|assistant|> SELECT "nhl_team" FROM "round_four" WHERE "player"='Esa Tikkanen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What was the nationality of player picked no. 168? <|assistant|> SELECT "nationality" FROM "round_nine" WHERE "pick_num"=168;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What was the nationality of player picked no. 179? <|assistant|> SELECT "nationality" FROM "round_nine" WHERE "pick_num"=179;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Who was the player who played for Hartford Whalers NHL Team? <|assistant|> SELECT "player" FROM "round_nine" WHERE "nhl_team"='Hartford Whalers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What was the position of the player who played for New York Islanders NHL Team? <|assistant|> SELECT "position" FROM "round_nine" WHERE "nhl_team"='New York Islanders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What was the nationality of player Cliff Abrecht? <|assistant|> SELECT "nationality" FROM "round_nine" WHERE "player"='Cliff Abrecht';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "podiums" real, "f_laps" real, "points" text, "final_placing" text ); Question: What is the highest number of poles? <|assistant|> SELECT MAX("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" real, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "podiums" real, "f_laps" real, "points" text, "final_placing" text ); Question: How many f/laps were there when he scored 170 points? <|assistant|> SELECT COUNT("f_laps") FROM "career_summary" WHERE "points"='170';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "poles" real, "wins" real, "podiums" real, "f_laps" real, "points" text, "final_placing" text ); Question: When there were 30 races and the final placing was 13th, how many points were scored? <|assistant|> SELECT "points" FROM "career_summary" WHERE "final_placing"='13th' AND "races"=30;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eight" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What club is associated with draft number 155? <|assistant|> SELECT "nhl_team" FROM "round_eight" WHERE "pick_num"=155;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26801821_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 for the number 5 series ? <|assistant|> SELECT "production_code" FROM "table1_26801821_1" WHERE "no_in_series"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_26801821_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 number of the series written by Teresa Lin? <|assistant|> SELECT COUNT("no_in_series") FROM "table1_26801821_1" WHERE "written_by"='Teresa Lin';<|endoftext|>