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