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 \"third_round\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"pro_team\" text,\n \"college\" text\n);\n\nQuestion: If the proteam is Jacksonville bulls, what is the position?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"third_round\" WHERE \"pro_team\"='Jacksonville Bulls';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"pro_team\" text,\n \"college\" text\n);\n\nQuestion: If the college is SMU, what is the position?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"third_round\" WHERE \"college\"='SMU';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27116696_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 \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who wrote the episode with the production code of 3t7255?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_27116696_1\" WHERE \"production_code\"='3T7255';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27116696_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 \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many U.S. viewers (million) watched the episode directed by Allison Liddi-Brown?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_27116696_1\" WHERE \"directed_by\"='Allison Liddi-Brown';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27116696_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 \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the total number of production code listings of episodes written by Matthew Lau?" }, { "role": "assistant", "content": "SELECT COUNT(\"production_code\") FROM \"table1_27116696_1\" WHERE \"written_by\"='Matthew Lau';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nsc_events_and_division_1_winners\" (\n \"year\" real,\n \"winner\" text,\n \"location\" text,\n \"entrants\" real,\n \"winners_prize\" text,\n \"total_prize_pool\" text\n);\n\nQuestion: What was the prize pool in New Orleans?" }, { "role": "assistant", "content": "SELECT \"total_prize_pool\" FROM \"nsc_events_and_division_1_winners\" WHERE \"location\"='New Orleans';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nsc_events_and_division_1_winners\" (\n \"year\" real,\n \"winner\" text,\n \"location\" text,\n \"entrants\" real,\n \"winners_prize\" text,\n \"total_prize_pool\" text\n);\n\nQuestion: How many prizes were available in the competition where 696 people entered?" }, { "role": "assistant", "content": "SELECT COUNT(\"winners_prize\") FROM \"nsc_events_and_division_1_winners\" WHERE \"entrants\"=696;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"homologs\" (\n \"genus_species\" text,\n \"gene_name\" text,\n \"accession_number\" text,\n \"sequence_length\" text,\n \"sequence_similarity\" real\n);\n\nQuestion: Name the accession number for rhodopseudomonas palustris" }, { "role": "assistant", "content": "SELECT \"accession_number\" FROM \"homologs\" WHERE \"genus_species\"='Rhodopseudomonas palustris';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"homologs\" (\n \"genus_species\" text,\n \"gene_name\" text,\n \"accession_number\" text,\n \"sequence_length\" text,\n \"sequence_similarity\" real\n);\n\nQuestion: Name the genus/species of accession number bx897699.1" }, { "role": "assistant", "content": "SELECT \"genus_species\" FROM \"homologs\" WHERE \"accession_number\"='BX897699.1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"homologs\" (\n \"genus_species\" text,\n \"gene_name\" text,\n \"accession_number\" text,\n \"sequence_length\" text,\n \"sequence_similarity\" real\n);\n\nQuestion: Name the accession number for sequence similarity being 54" }, { "role": "assistant", "content": "SELECT \"accession_number\" FROM \"homologs\" WHERE \"sequence_similarity\"=54;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"homologs\" (\n \"genus_species\" text,\n \"gene_name\" text,\n \"accession_number\" text,\n \"sequence_length\" text,\n \"sequence_similarity\" real\n);\n\nQuestion: Name the gene name for methylobacterium nodulans" }, { "role": "assistant", "content": "SELECT \"gene_name\" FROM \"homologs\" WHERE \"genus_species\"='Methylobacterium nodulans';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"homologs\" (\n \"genus_species\" text,\n \"gene_name\" text,\n \"accession_number\" text,\n \"sequence_length\" text,\n \"sequence_similarity\" real\n);\n\nQuestion: Name the gene name for accession number bx897700.1" }, { "role": "assistant", "content": "SELECT \"gene_name\" FROM \"homologs\" WHERE \"accession_number\"='BX897700.1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ten_largest_successfully_completed_kicks\" (\n \"rank\" real,\n \"total_usd\" real,\n \"project_name\" text,\n \"creator\" text,\n \"category\" text,\n \"pct_funded\" real,\n \"backers\" real,\n \"closing_date\" text\n);\n\nQuestion: What was the minimum % funded of the project that was closed on 2012-05-18?" }, { "role": "assistant", "content": "SELECT MIN(\"pct_funded\") FROM \"ten_largest_successfully_completed_kicks\" WHERE \"closing_date\"='2012-05-18';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ten_largest_successfully_completed_kicks\" (\n \"rank\" real,\n \"total_usd\" real,\n \"project_name\" text,\n \"creator\" text,\n \"category\" text,\n \"pct_funded\" real,\n \"backers\" real,\n \"closing_date\" text\n);\n\nQuestion: What was the maximum total USD collected by Pebble Technology?" }, { "role": "assistant", "content": "SELECT MAX(\"total_usd\") FROM \"ten_largest_successfully_completed_kicks\" WHERE \"creator\"='Pebble Technology';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ten_largest_successfully_completed_kicks\" (\n \"rank\" real,\n \"total_usd\" real,\n \"project_name\" text,\n \"creator\" text,\n \"category\" text,\n \"pct_funded\" real,\n \"backers\" real,\n \"closing_date\" text\n);\n\nQuestion: What was the category of the project name Mighty No. 9?" }, { "role": "assistant", "content": "SELECT \"category\" FROM \"ten_largest_successfully_completed_kicks\" WHERE \"project_name\"='Mighty No. 9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ten_largest_successfully_completed_kicks\" (\n \"rank\" real,\n \"total_usd\" real,\n \"project_name\" text,\n \"creator\" text,\n \"category\" text,\n \"pct_funded\" real,\n \"backers\" real,\n \"closing_date\" text\n);\n\nQuestion: Project Name Pebble: E-Paper Watch for Iphone and Android was ranked how many times?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"ten_largest_successfully_completed_kicks\" WHERE \"project_name\"='Pebble: E-Paper Watch for iPhone and Android';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"player_statistics\" (\n \"position\" text,\n \"nationality\" text,\n \"name\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: How many league apps did the player with 11 team goals have?" }, { "role": "assistant", "content": "SELECT \"league_apps\" FROM \"player_statistics\" WHERE \"total_goals\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"player_statistics\" (\n \"position\" text,\n \"nationality\" text,\n \"name\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: What is the lowest number of total goals for a player with 6 league goals?" }, { "role": "assistant", "content": "SELECT MIN(\"total_goals\") FROM \"player_statistics\" WHERE \"league_goals\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"player_statistics\" (\n \"position\" text,\n \"nationality\" text,\n \"name\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: What is the lowest number of fa cup goals by a player?" }, { "role": "assistant", "content": "SELECT MIN(\"fa_cup_goals\") FROM \"player_statistics\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27169029_1\" (\n \"series_num\" real,\n \"season_num\" 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 wrote the episode that aired on September 26, 2010?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_27169029_1\" WHERE \"original_air_date\"='September 26, 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"baha_i_social_and_economic_development_p\" (\n \"programs\" text,\n \"world\" real,\n \"africa\" real,\n \"americas\" real,\n \"asia\" real,\n \"australasia\" real,\n \"europe\" real\n);\n\nQuestion: How many radio stations were built in Asia?" }, { "role": "assistant", "content": "SELECT \"asia\" FROM \"baha_i_social_and_economic_development_p\" WHERE \"programs\"='Radio Stations';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"baha_i_social_and_economic_development_p\" (\n \"programs\" text,\n \"world\" real,\n \"africa\" real,\n \"americas\" real,\n \"asia\" real,\n \"australasia\" real,\n \"europe\" real\n);\n\nQuestion: How many program data on Asia was written if the organization launched 14 programs iin the Americas?" }, { "role": "assistant", "content": "SELECT COUNT(\"asia\") FROM \"baha_i_social_and_economic_development_p\" WHERE \"americas\"=14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"baha_i_social_and_economic_development_p\" (\n \"programs\" text,\n \"world\" real,\n \"africa\" real,\n \"americas\" real,\n \"asia\" real,\n \"australasia\" real,\n \"europe\" real\n);\n\nQuestion: How many times did Australasia received a program if the Americas received 115 program?" }, { "role": "assistant", "content": "SELECT COUNT(\"australasia\") FROM \"baha_i_social_and_economic_development_p\" WHERE \"americas\"=115;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27208311_1\" (\n \"episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series\" real,\n \"series_no\" real,\n \"episode\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is every episode number for the series number 3?" }, { "role": "assistant", "content": "SELECT \"episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series\" FROM \"table1_27208311_1\" WHERE \"series_no\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27208311_1\" (\n \"episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series\" real,\n \"series_no\" real,\n \"episode\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is every episode with Barry Purchese as the writer?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"table1_27208311_1\" WHERE \"writer\"='Barry Purchese';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27208817_1\" (\n \"episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series\" real,\n \"series_no\" real,\n \"episode\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: Name the episod for number 64" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"table1_27208817_1\" WHERE \"episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series\"=64;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27208817_1\" (\n \"episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series\" real,\n \"series_no\" real,\n \"episode\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: Name the number of episodes for sam snape" }, { "role": "assistant", "content": "SELECT COUNT(\"episode\") FROM \"table1_27208817_1\" WHERE \"writer\"='Sam Snape';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_272313_1\" (\n \"vertical\" real,\n \"horizontal\" real,\n \"aspect_ratio\" text,\n \"pixel_aspect_ratio\" text,\n \"scanning\" text,\n \"frame_rate_hz\" text\n);\n\nQuestion: What was the aspect ratio if the vertical pixel is 480 and pixel aspect ratio is 1:1?" }, { "role": "assistant", "content": "SELECT \"aspect_ratio\" FROM \"table1_272313_1\" WHERE \"vertical\"=480 AND \"pixel_aspect_ratio\"='1:1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_272313_1\" (\n \"vertical\" real,\n \"horizontal\" real,\n \"aspect_ratio\" text,\n \"pixel_aspect_ratio\" text,\n \"scanning\" text,\n \"frame_rate_hz\" text\n);\n\nQuestion: What was the minimum vertical measurement if the aspect ratio is 16:9 and scanning is interlaced?" }, { "role": "assistant", "content": "SELECT MIN(\"vertical\") FROM \"table1_272313_1\" WHERE \"aspect_ratio\"='16:9' AND \"scanning\"='interlaced';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_272313_1\" (\n \"vertical\" real,\n \"horizontal\" real,\n \"aspect_ratio\" text,\n \"pixel_aspect_ratio\" text,\n \"scanning\" text,\n \"frame_rate_hz\" text\n);\n\nQuestion: What was the maximum vertical measurement if the horizon measurement is 640?" }, { "role": "assistant", "content": "SELECT MAX(\"vertical\") FROM \"table1_272313_1\" WHERE \"horizontal\"=640;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27225944_3\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Name the outgoing manager for mutual consent and position 16th" }, { "role": "assistant", "content": "SELECT \"outgoing_manager\" FROM \"table1_27225944_3\" WHERE \"manner_of_departure\"='Mutual consent' AND \"position_in_table\"='16th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27225944_3\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Name the replaced by for slaven belupo" }, { "role": "assistant", "content": "SELECT \"replaced_by\" FROM \"table1_27225944_3\" WHERE \"team\"='Slaven Belupo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27225944_3\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Name the number of outgoing manager for rijeka" }, { "role": "assistant", "content": "SELECT COUNT(\"outgoing_manager\") FROM \"table1_27225944_3\" WHERE \"team\"='Rijeka';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_272313_2\" (\n \"vertical\" real,\n \"horizontal\" real,\n \"aspect_ratio\" text,\n \"pixel_aspect_ratio\" text,\n \"scanning\" text,\n \"frame_rate_hz\" text\n);\n\nQuestion: Name the least horizontal for smpte 259m three quarters" }, { "role": "assistant", "content": "SELECT MIN(\"horizontal\") FROM \"table1_272313_2\" WHERE \"pixel_aspect_ratio\"='SMPTE 259M three quarters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_272313_2\" (\n \"vertical\" real,\n \"horizontal\" real,\n \"aspect_ratio\" text,\n \"pixel_aspect_ratio\" text,\n \"scanning\" text,\n \"frame_rate_hz\" text\n);\n\nQuestion: Name the aspect ratio for smpte 259m and interlaced scanning" }, { "role": "assistant", "content": "SELECT \"aspect_ratio\" FROM \"table1_272313_2\" WHERE \"pixel_aspect_ratio\"='SMPTE 259M' AND \"scanning\"='interlaced';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27218002_2\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"ratings\" text\n);\n\nQuestion: What were the ratings for \"episode 6\"?" }, { "role": "assistant", "content": "SELECT \"ratings\" FROM \"table1_27218002_2\" WHERE \"title\"='\\\"Episode 6\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27218002_2\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"ratings\" text\n);\n\nQuestion: What date did the episode that was written by Fintan Ryan originally air?" }, { "role": "assistant", "content": "SELECT \"originalairdate\" FROM \"table1_27218002_2\" WHERE \"written_by\"='Fintan Ryan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27218002_2\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"ratings\" text\n);\n\nQuestion: What date did the epiode that had 1.37 million as the rating originally air?" }, { "role": "assistant", "content": "SELECT \"originalairdate\" FROM \"table1_27218002_2\" WHERE \"ratings\"='1.37 Million';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27250813_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 \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the title of the episode no. 16 by season?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_27250813_1\" WHERE \"no_in_season\"=16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27250813_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 \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many times did an episode with a production code of 12003 was aired?" }, { "role": "assistant", "content": "SELECT COUNT(\"original_air_date\") FROM \"table1_27250813_1\" WHERE \"production_code\"=12003;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television\" (\n \"year\" real,\n \"network_s\" text,\n \"bowl\" text,\n \"play_by_play_announcer\" text,\n \"color_analyst_s\" text,\n \"sideline_reporter_s\" text,\n \"studio_host_s\" text,\n \"studio_analyst_s\" text,\n \"tv_rating\" text\n);\n\nQuestion: Name the color analyst for terry bowden and 17.2" }, { "role": "assistant", "content": "SELECT \"color_analyst_s\" FROM \"television\" WHERE \"studio_analyst_s\"='Terry Bowden' AND \"tv_rating\"='17.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television\" (\n \"year\" real,\n \"network_s\" text,\n \"bowl\" text,\n \"play_by_play_announcer\" text,\n \"color_analyst_s\" text,\n \"sideline_reporter_s\" text,\n \"studio_host_s\" text,\n \"studio_analyst_s\" text,\n \"tv_rating\" text\n);\n\nQuestion: Name the number of bowl for lee corso, gene chizik and chip kelly" }, { "role": "assistant", "content": "SELECT COUNT(\"bowl\") FROM \"television\" WHERE \"studio_analyst_s\"='Lee Corso, Gene Chizik and Chip Kelly';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television\" (\n \"year\" real,\n \"network_s\" text,\n \"bowl\" text,\n \"play_by_play_announcer\" text,\n \"color_analyst_s\" text,\n \"sideline_reporter_s\" text,\n \"studio_host_s\" text,\n \"studio_analyst_s\" text,\n \"tv_rating\" text\n);\n\nQuestion: Name the studio analysts for espn with erin andrews and tom rinaldi" }, { "role": "assistant", "content": "SELECT \"studio_analyst_s\" FROM \"television\" WHERE \"network_s\"='ESPN' AND \"sideline_reporter_s\"='Erin Andrews and Tom Rinaldi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27255755_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 series number with 9.17 million US viewers?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_series\") FROM \"table1_27255755_1\" WHERE \"u_s_viewers_millions\"='9.17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wtcc_statistics\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"starts\" real,\n \"wins\" real,\n \"podiums\" real,\n \"poles\" real,\n \"fastest_laps\" real,\n \"points\" text,\n \"place\" text\n);\n\nQuestion: name the podiums for start of 22" }, { "role": "assistant", "content": "SELECT \"podiums\" FROM \"wtcc_statistics\" WHERE \"starts\"=22;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wtcc_statistics\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"starts\" real,\n \"wins\" real,\n \"podiums\" real,\n \"poles\" real,\n \"fastest_laps\" real,\n \"points\" text,\n \"place\" text\n);\n\nQuestion: Name the number of poles for fastest laps being 6" }, { "role": "assistant", "content": "SELECT COUNT(\"poles\") FROM \"wtcc_statistics\" WHERE \"fastest_laps\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wtcc_statistics\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"starts\" real,\n \"wins\" real,\n \"podiums\" real,\n \"poles\" real,\n \"fastest_laps\" real,\n \"points\" text,\n \"place\" text\n);\n\nQuestion: Name the least podiums for 2009" }, { "role": "assistant", "content": "SELECT MIN(\"podiums\") FROM \"wtcc_statistics\" WHERE \"season\"=2009;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wtcc_statistics\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"starts\" real,\n \"wins\" real,\n \"podiums\" real,\n \"poles\" real,\n \"fastest_laps\" real,\n \"points\" text,\n \"place\" text\n);\n\nQuestion: Name the starts for 2009" }, { "role": "assistant", "content": "SELECT \"starts\" FROM \"wtcc_statistics\" WHERE \"season\"=2009;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wtcc_statistics\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"starts\" real,\n \"wins\" real,\n \"podiums\" real,\n \"poles\" real,\n \"fastest_laps\" real,\n \"points\" text,\n \"place\" text\n);\n\nQuestion: Name the most starts for 6 wins" }, { "role": "assistant", "content": "SELECT MAX(\"starts\") FROM \"wtcc_statistics\" WHERE \"wins\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages_top_10\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real,\n \"5wi\" real\n);\n\nQuestion: How many matches were wickets 16?" }, { "role": "assistant", "content": "SELECT COUNT(\"matches\") FROM \"bowling_averages_top_10\" WHERE \"wickets\"=16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages_top_10\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real,\n \"5wi\" real\n);\n\nQuestion: What is the lowest wickets?" }, { "role": "assistant", "content": "SELECT MIN(\"wickets\") FROM \"bowling_averages_top_10\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages_top_10\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real,\n \"5wi\" real\n);\n\nQuestion: What is the 4wi when the economy is 7.82?" }, { "role": "assistant", "content": "SELECT \"4wi\" FROM \"bowling_averages_top_10\" WHERE \"economy\"='7.82';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages_top_10\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real,\n \"5wi\" real\n);\n\nQuestion: Who is the player when the bbi is 5/27?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"bowling_averages_top_10\" WHERE \"bbi\"='5/27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages_top_10\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real,\n \"5wi\" real\n);\n\nQuestion: What is the team when the economy is 5.73?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"bowling_averages_top_10\" WHERE \"economy\"='5.73';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_by_province\" (\n \"province\" text,\n \"registered_voters\" real,\n \"people_voted\" real,\n \"valid_votes\" real,\n \"invalid_votes\" real,\n \"yes\" real,\n \"yes_pct\" text,\n \"no\" real,\n \"no_pct\" text,\n \"turnout_pct\" text\n);\n\nQuestion: When Denizli was the province, what was the total number of valid votes?" }, { "role": "assistant", "content": "SELECT COUNT(\"valid_votes\") FROM \"results_by_province\" WHERE \"province\"='Denizli';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_by_province\" (\n \"province\" text,\n \"registered_voters\" real,\n \"people_voted\" real,\n \"valid_votes\" real,\n \"invalid_votes\" real,\n \"yes\" real,\n \"yes_pct\" text,\n \"no\" real,\n \"no_pct\" text,\n \"turnout_pct\" text\n);\n\nQuestion: When 54.86% of people votes yes, howe many votes were invalid?" }, { "role": "assistant", "content": "SELECT \"invalid_votes\" FROM \"results_by_province\" WHERE \"yes_pct\"='54.86';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_by_province\" (\n \"province\" text,\n \"registered_voters\" real,\n \"people_voted\" real,\n \"valid_votes\" real,\n \"invalid_votes\" real,\n \"yes\" real,\n \"yes_pct\" text,\n \"no\" real,\n \"no_pct\" text,\n \"turnout_pct\" text\n);\n\nQuestion: How many registered voters were there when 36.32% of people voted yes?" }, { "role": "assistant", "content": "SELECT MIN(\"registered_voters\") FROM \"results_by_province\" WHERE \"yes_pct\"='36.32';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_by_province\" (\n \"province\" text,\n \"registered_voters\" real,\n \"people_voted\" real,\n \"valid_votes\" real,\n \"invalid_votes\" real,\n \"yes\" real,\n \"yes_pct\" text,\n \"no\" real,\n \"no_pct\" text,\n \"turnout_pct\" text\n);\n\nQuestion: What province had a turnout of 54.09%?" }, { "role": "assistant", "content": "SELECT \"province\" FROM \"results_by_province\" WHERE \"turnout_pct\"='54.09';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_by_province\" (\n \"province\" text,\n \"registered_voters\" real,\n \"people_voted\" real,\n \"valid_votes\" real,\n \"invalid_votes\" real,\n \"yes\" real,\n \"yes_pct\" text,\n \"no\" real,\n \"no_pct\" text,\n \"turnout_pct\" text\n);\n\nQuestion: How many people voted yes when the percentage of yeses was 95.17?" }, { "role": "assistant", "content": "SELECT MAX(\"yes\") FROM \"results_by_province\" WHERE \"yes_pct\"='95.17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_by_province\" (\n \"province\" text,\n \"registered_voters\" real,\n \"people_voted\" real,\n \"valid_votes\" real,\n \"invalid_votes\" real,\n \"yes\" real,\n \"yes_pct\" text,\n \"no\" real,\n \"no_pct\" text,\n \"turnout_pct\" text\n);\n\nQuestion: What was the turnout percentage when the percentage of people that voted no was 36.51?" }, { "role": "assistant", "content": "SELECT \"turnout_pct\" FROM \"results_by_province\" WHERE \"no_pct\"='36.51';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lion_65_nm\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"ht\" text,\n \"mult_1\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"order_part_number\" text\n);\n\nQuestion: What is the model number for the order part numbered tmrm75dam22gg?" }, { "role": "assistant", "content": "SELECT \"model_number\" FROM \"lion_65_nm\" WHERE \"order_part_number\"='TMRM75DAM22GG';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lion_65_nm\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"ht\" text,\n \"mult_1\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"order_part_number\" text\n);\n\nQuestion: What is the oder part number for the model with 10x mult. 1?" }, { "role": "assistant", "content": "SELECT \"order_part_number\" FROM \"lion_65_nm\" WHERE \"mult_1\"='10x';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lion_65_nm\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"ht\" text,\n \"mult_1\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"order_part_number\" text\n);\n\nQuestion: How much ht does the model with 10x mult. 1 have?" }, { "role": "assistant", "content": "SELECT \"ht\" FROM \"lion_65_nm\" WHERE \"mult_1\"='10x';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lion_65_nm\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"ht\" text,\n \"mult_1\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"order_part_number\" text\n);\n\nQuestion: What's the ht for the model released on June 4, 2008?" }, { "role": "assistant", "content": "SELECT \"ht\" FROM \"lion_65_nm\" WHERE \"release_date\"='June 4, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_name\" (\n \"name\" text,\n \"nation\" text,\n \"seasons\" text,\n \"championship_titles\" text,\n \"races_starts\" text,\n \"poles\" real,\n \"wins\" real,\n \"podiums\" real,\n \"fastest_laps\" real,\n \"points\" text\n);\n\nQuestion: How many pole position achieved 0 points from Mexico?" }, { "role": "assistant", "content": "SELECT COUNT(\"poles\") FROM \"by_name\" WHERE \"points\"='0' AND \"nation\"='Mexico';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"claw_hammer_c0_cg_130_nm_desktop_replace\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"ht\" text,\n \"mult_1\" text,\n \"v_core\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text\n);\n\nQuestion: Name the vcore for multi 11x" }, { "role": "assistant", "content": "SELECT \"v_core\" FROM \"claw_hammer_c0_cg_130_nm_desktop_replace\" WHERE \"mult_1\"='11x';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"claw_hammer_c0_cg_130_nm_desktop_replace\" (\n \"model_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"ht\" text,\n \"mult_1\" text,\n \"v_core\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text\n);\n\nQuestion: Name the number of v core for model number mobile athlon 64 3000+" }, { "role": "assistant", "content": "SELECT COUNT(\"v_core\") FROM \"claw_hammer_c0_cg_130_nm_desktop_replace\" WHERE \"model_number\"='Mobile Athlon 64 3000+';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wru_division_one_east\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"points\" text\n);\n\nQuestion: Name the total number of points for for played" }, { "role": "assistant", "content": "SELECT COUNT(\"points_for\") FROM \"wru_division_one_east\" WHERE \"played\"='Played';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wru_division_one_east\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"points\" text\n);\n\nQuestion: Name the total number of points for 46 tries for" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"wru_division_one_east\" WHERE \"tries_for\"='46';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wru_division_one_east\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"points\" text\n);\n\nQuestion: Name the total number of club for lost being 16" }, { "role": "assistant", "content": "SELECT COUNT(\"club\") FROM \"wru_division_one_east\" WHERE \"lost\"='16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wru_division_one_east\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"points\" text\n);\n\nQuestion: Name the drawn for lost being 5 and tries for 89" }, { "role": "assistant", "content": "SELECT \"drawn\" FROM \"wru_division_one_east\" WHERE \"lost\"='5' AND \"tries_for\"='89';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wru_division_one_east\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"points\" text\n);\n\nQuestion: Name the won for played being 22 and points against 511 and lost being 15" }, { "role": "assistant", "content": "SELECT \"won\" FROM \"wru_division_one_east\" WHERE \"played\"='22' AND \"lost\"='15' AND \"points_against\"='511';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27298240_26\" (\n \"pronoun\" text,\n \"present\" text,\n \"1st\" text,\n \"2nd\" text,\n \"perfect\" text,\n \"aorist\" text,\n \"imperfect\" text,\n \"pluperfect\" text\n);\n\nQuestion: Which pronoun has \u0107e biti / bi\u0107e in first person?" }, { "role": "assistant", "content": "SELECT \"pronoun\" FROM \"table1_27298240_26\" WHERE \"1st\"='\u0107e biti / bi\u0107e';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27298240_26\" (\n \"pronoun\" text,\n \"present\" text,\n \"1st\" text,\n \"2nd\" text,\n \"perfect\" text,\n \"aorist\" text,\n \"imperfect\" text,\n \"pluperfect\" text\n);\n\nQuestion: What aorist has bude in present tense?" }, { "role": "assistant", "content": "SELECT \"aorist\" FROM \"table1_27298240_26\" WHERE \"present\"='bude';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27298240_26\" (\n \"pronoun\" text,\n \"present\" text,\n \"1st\" text,\n \"2nd\" text,\n \"perfect\" text,\n \"aorist\" text,\n \"imperfect\" text,\n \"pluperfect\" text\n);\n\nQuestion: Which aorist has imperfect form of bijasmo / bejasmo / besmo?" }, { "role": "assistant", "content": "SELECT \"aorist\" FROM \"table1_27298240_26\" WHERE \"imperfect\"='bijasmo / bejasmo / besmo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27298240_26\" (\n \"pronoun\" text,\n \"present\" text,\n \"1st\" text,\n \"2nd\" text,\n \"perfect\" text,\n \"aorist\" text,\n \"imperfect\" text,\n \"pluperfect\" text\n);\n\nQuestion: What is the pluperfect for the perfect si bio/la; bio/la si?" }, { "role": "assistant", "content": "SELECT \"pluperfect\" FROM \"table1_27298240_26\" WHERE \"perfect\"='si bio/la; bio/la si';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27294107_11\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text\n);\n\nQuestion: What was the event when su\u00e1rez ( tri ) w 16\u20136 was round of 32?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"table1_27294107_11\" WHERE \"round_of_32\"='Su\u00e1rez ( TRI ) W 16\u20136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27294107_11\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text\n);\n\nQuestion: What is the semifinals for the light flyweight event?" }, { "role": "assistant", "content": "SELECT \"semifinals\" FROM \"table1_27294107_11\" WHERE \"event\"='Light flyweight';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27294107_11\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text\n);\n\nQuestion: How many semifinals did ferhat pehlivan attend?" }, { "role": "assistant", "content": "SELECT COUNT(\"semifinals\") FROM \"table1_27294107_11\" WHERE \"athlete\"='Ferhat Pehlivan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27294107_11\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text\n);\n\nQuestion: What is the round of 32 if the round of 16 is drenovak ( srb ) w 20\u201311?" }, { "role": "assistant", "content": "SELECT \"round_of_32\" FROM \"table1_27294107_11\" WHERE \"round_of_16\"='Drenovak ( SRB ) W 20\u201311';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27294107_11\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text\n);\n\nQuestion: When yakup \u015fener is the athlete what is the round of 32?" }, { "role": "assistant", "content": "SELECT \"round_of_32\" FROM \"table1_27294107_11\" WHERE \"athlete\"='Yakup \u015eener';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27294107_11\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text\n);\n\nQuestion: What is the round of 32 for fatih kele\u015f?" }, { "role": "assistant", "content": "SELECT \"round_of_32\" FROM \"table1_27294107_11\" WHERE \"athlete\"='Fatih Kele\u015f';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27298240_28\" (\n \"pronoun\" text,\n \"present\" text,\n \"1st\" text,\n \"2nd\" text,\n \"perfect\" text,\n \"aorist\" text,\n \"imperfect\" text,\n \"pluperfect\" text\n);\n\nQuestion: What is the pronoun when budemo mogli/le is 2nd?" }, { "role": "assistant", "content": "SELECT \"pronoun\" FROM \"table1_27298240_28\" WHERE \"2nd\"='budemo mogli/le';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27298240_28\" (\n \"pronoun\" text,\n \"present\" text,\n \"1st\" text,\n \"2nd\" text,\n \"perfect\" text,\n \"aorist\" text,\n \"imperfect\" text,\n \"pluperfect\" text\n);\n\nQuestion: What is in 1st place when present is mogu?" }, { "role": "assistant", "content": "SELECT \"1st\" FROM \"table1_27298240_28\" WHERE \"present\"='mogu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27298240_28\" (\n \"pronoun\" text,\n \"present\" text,\n \"1st\" text,\n \"2nd\" text,\n \"perfect\" text,\n \"aorist\" text,\n \"imperfect\" text,\n \"pluperfect\" text\n);\n\nQuestion: What is aorist when budete mogli/le is 2nd?" }, { "role": "assistant", "content": "SELECT \"aorist\" FROM \"table1_27298240_28\" WHERE \"2nd\"='budete mogli/le';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27298240_28\" (\n \"pronoun\" text,\n \"present\" text,\n \"1st\" text,\n \"2nd\" text,\n \"perfect\" text,\n \"aorist\" text,\n \"imperfect\" text,\n \"pluperfect\" text\n);\n\nQuestion: what is 2nd when the pronoun is vi (you pl.)?" }, { "role": "assistant", "content": "SELECT \"2nd\" FROM \"table1_27298240_28\" WHERE \"pronoun\"='vi (you pl.)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27298240_28\" (\n \"pronoun\" text,\n \"present\" text,\n \"1st\" text,\n \"2nd\" text,\n \"perfect\" text,\n \"aorist\" text,\n \"imperfect\" text,\n \"pluperfect\" text\n);\n\nQuestion: When the present is mogu what is 1st?" }, { "role": "assistant", "content": "SELECT \"1st\" FROM \"table1_27298240_28\" WHERE \"present\"='mogu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27298240_28\" (\n \"pronoun\" text,\n \"present\" text,\n \"1st\" text,\n \"2nd\" text,\n \"perfect\" text,\n \"aorist\" text,\n \"imperfect\" text,\n \"pluperfect\" text\n);\n\nQuestion: What is 2nd when \u0107emo mo\u0107i is 1st?" }, { "role": "assistant", "content": "SELECT \"2nd\" FROM \"table1_27298240_28\" WHERE \"1st\"='\u0107emo mo\u0107i';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assists\" (\n \"r\" real,\n \"player\" text,\n \"position\" text,\n \"the_championship\" real,\n \"fa_cup\" real,\n \"league_cup\" real,\n \"total\" real\n);\n\nQuestion: What is the R when the total is 1 and the position is fw?" }, { "role": "assistant", "content": "SELECT \"r\" FROM \"assists\" WHERE \"total\"=1 AND \"position\"='FW';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assists\" (\n \"r\" real,\n \"player\" text,\n \"position\" text,\n \"the_championship\" real,\n \"fa_cup\" real,\n \"league_cup\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest league cup?" }, { "role": "assistant", "content": "SELECT MIN(\"league_cup\") FROM \"assists\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assists\" (\n \"r\" real,\n \"player\" text,\n \"position\" text,\n \"the_championship\" real,\n \"fa_cup\" real,\n \"league_cup\" real,\n \"total\" real\n);\n\nQuestion: What is the position for the player becchio?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"assists\" WHERE \"player\"='Becchio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assists\" (\n \"r\" real,\n \"player\" text,\n \"position\" text,\n \"the_championship\" real,\n \"fa_cup\" real,\n \"league_cup\" real,\n \"total\" real\n);\n\nQuestion: How many times was the r 4?" }, { "role": "assistant", "content": "SELECT COUNT(\"league_cup\") FROM \"assists\" WHERE \"r\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"no\" real,\n \"peak\" text,\n \"location\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_height_m\" real,\n \"col_location\" text,\n \"parent\" text\n);\n\nQuestion: What is the parent for peak cima tosa?" }, { "role": "assistant", "content": "SELECT \"parent\" FROM \"see_also\" WHERE \"peak\"='Cima Tosa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"no\" real,\n \"peak\" text,\n \"location\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_height_m\" real,\n \"col_location\" text,\n \"parent\" text\n);\n\nQuestion: What is the elevation for the peak wildspitze in Austria?" }, { "role": "assistant", "content": "SELECT MIN(\"elevation_m\") FROM \"see_also\" WHERE \"location\"='Austria' AND \"peak\"='Wildspitze';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"no\" real,\n \"peak\" text,\n \"location\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_height_m\" real,\n \"col_location\" text,\n \"parent\" text\n);\n\nQuestion: What is the elevation for number 39?" }, { "role": "assistant", "content": "SELECT MAX(\"elevation_m\") FROM \"see_also\" WHERE \"no\"=39;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"no\" real,\n \"peak\" text,\n \"location\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_height_m\" real,\n \"col_location\" text,\n \"parent\" text\n);\n\nQuestion: What is the col location for the location of france / italy?" }, { "role": "assistant", "content": "SELECT \"col_location\" FROM \"see_also\" WHERE \"location\"='France / Italy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"no\" real,\n \"peak\" text,\n \"location\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_height_m\" real,\n \"col_location\" text,\n \"parent\" text\n);\n\nQuestion: What is the col location with a col height (m) of 1107?" }, { "role": "assistant", "content": "SELECT \"col_location\" FROM \"see_also\" WHERE \"col_height_m\"=1107;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"no\" real,\n \"peak\" text,\n \"location\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_height_m\" real,\n \"col_location\" text,\n \"parent\" text\n);\n\nQuestion: Which location has an elevation of 3798?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"see_also\" WHERE \"elevation_m\"=3798;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"official_callanetics_dv_ds_by_callan_pin\" (\n \"year\" real,\n \"title\" text,\n \"format\" text,\n \"studio\" text,\n \"release_date\" text,\n \"copyright_information\" text,\n \"catalog_number\" text\n);\n\nQuestion: What is the title when the catalog number is cal01 / 0091037137319?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"official_callanetics_dv_ds_by_callan_pin\" WHERE \"catalog_number\"='CAL01 / 0091037137319';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"official_callanetics_dv_ds_by_callan_pin\" (\n \"year\" real,\n \"title\" text,\n \"format\" text,\n \"studio\" text,\n \"release_date\" text,\n \"copyright_information\" text,\n \"catalog_number\" text\n);\n\nQuestion: How many times is the title am/pm callanetics?" }, { "role": "assistant", "content": "SELECT COUNT(\"studio\") FROM \"official_callanetics_dv_ds_by_callan_pin\" WHERE \"title\"='AM/PM Callanetics';" } ]