text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "team_num1" text, "agg_score" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What's team #2 in the round where team $1 is Ilisiakos? <|assistant|> SELECT "team_num2" FROM "third_round" WHERE "team_num1"='Ilisiakos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "team_num1" text, "agg_score" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What's the team #2 in the round where team #1 is Iraklis? <|assistant|> SELECT "team_num2" FROM "third_round" WHERE "team_num1"='Iraklis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "team_num1" text, "agg_score" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What's the 1st leg result in the round where team #1 is Iraklis? <|assistant|> SELECT "1st_leg" FROM "third_round" WHERE "team_num1"='Iraklis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "team_num1" text, "agg_score" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What's the 2nd leg result in the round where Panionios is team #2? <|assistant|> SELECT "2nd_leg" FROM "third_round" WHERE "team_num2"='Panionios';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "team_num1" text, "agg_score" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What's the 2nd leg result in the round where team #1 is Iraklis? <|assistant|> SELECT "2nd_leg" FROM "third_round" WHERE "team_num1"='Iraklis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "dma" real, "market" text, "station" text, "frequency" text, "branding" text, "format" text ); Question: What is the dma when the format is rhythmic contemporary? <|assistant|> SELECT MIN("dma") FROM "stations" WHERE "format"='Rhythmic Contemporary';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "dma" real, "market" text, "station" text, "frequency" text, "branding" text, "format" text ); Question: Which frequency is station wlfv-fm? <|assistant|> SELECT "frequency" FROM "stations" WHERE "station"='WLFV-FM';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "dma" real, "market" text, "station" text, "frequency" text, "branding" text, "format" text ); Question: Which station has the frequency of 107.3? <|assistant|> SELECT "station" FROM "stations" WHERE "frequency"='107.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "dma" real, "market" text, "station" text, "frequency" text, "branding" text, "format" text ); Question: What is dma? <|assistant|> SELECT MIN("dma") FROM "stations";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "dma" real, "market" text, "station" text, "frequency" text, "branding" text, "format" text ); Question: What is the dma of branding is big oldies 107.3 with the station warv-fm? <|assistant|> SELECT "dma" FROM "stations" WHERE "branding"='Big Oldies 107.3' AND "station"='WARV-FM';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "dma" real, "market" text, "station" text, "frequency" text, "branding" text, "format" text ); Question: Which branding has the format of southern country? <|assistant|> SELECT "branding" FROM "stations" WHERE "format"='Southern Country';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fuxi_earlier_heaven" ( "name" text, "nature" text, "season" text, "personality" text, "family" text, "direction" text, "meaning" text ); Question: What is the total number of gentle personalities? <|assistant|> SELECT COUNT("direction") FROM "fuxi_earlier_heaven" WHERE "personality"='Gentle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fuxi_earlier_heaven" ( "name" text, "nature" text, "season" text, "personality" text, "family" text, "direction" text, "meaning" text ); Question: What is the meaning of a gentle personality? <|assistant|> SELECT "meaning" FROM "fuxi_earlier_heaven" WHERE "personality"='Gentle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fuxi_earlier_heaven" ( "name" text, "nature" text, "season" text, "personality" text, "family" text, "direction" text, "meaning" text ); Question: Who in the family has a gentle personality? <|assistant|> SELECT "family" FROM "fuxi_earlier_heaven" WHERE "personality"='Gentle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "launches" ( "mission_no" text, "cover_name" text, "launch_date" text, "nssdc_id_no" text, "alt_name" text, "camera" text, "notes" text ); Question: Which mission number has alternate name 1962-f01 <|assistant|> SELECT "mission_no" FROM "launches" WHERE "alt_name"='1962-F01';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "launches" ( "mission_no" text, "cover_name" text, "launch_date" text, "nssdc_id_no" text, "alt_name" text, "camera" text, "notes" text ); Question: What are the notes of the satellite whose nssdc id number is 1959-002a? <|assistant|> SELECT "notes" FROM "launches" WHERE "nssdc_id_no"='1959-002A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "launches" ( "mission_no" text, "cover_name" text, "launch_date" text, "nssdc_id_no" text, "alt_name" text, "camera" text, "notes" text ); Question: What are the alternative name/s of those satellites whose nssdc id number is 1970-054a? <|assistant|> SELECT "alt_name" FROM "launches" WHERE "nssdc_id_no"='1970-054A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "launches" ( "mission_no" text, "cover_name" text, "launch_date" text, "nssdc_id_no" text, "alt_name" text, "camera" text, "notes" text ); Question: What are the alternative names of those satellites where the notes are: mission failed. guidance system failed. no orbit. <|assistant|> SELECT "alt_name" FROM "launches" WHERE "notes"='Mission failed. Guidance system failed. No orbit.';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_results" ( "rank" real, "race_number" real, "name" text, "noc" text, "250m" text, "500m" text, "750m" text, "1_000m" text ); Question: If -750m is 46.436, what is the name of the cyclist? <|assistant|> SELECT "name" FROM "final_results" WHERE "750m"='46.436';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_results" ( "rank" real, "race_number" real, "name" text, "noc" text, "250m" text, "500m" text, "750m" text, "1_000m" text ); Question: What is the -500 number for Theo Bos? <|assistant|> SELECT "500m" FROM "final_results" WHERE "name"='Theo Bos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_results" ( "rank" real, "race_number" real, "name" text, "noc" text, "250m" text, "500m" text, "750m" text, "1_000m" text ); Question: If the -250m is 18.852, what is the <|assistant|> SELECT "750m" FROM "final_results" WHERE "250m"='18.852';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_results" ( "rank" real, "race_number" real, "name" text, "noc" text, "250m" text, "500m" text, "750m" text, "1_000m" text ); Question: If -750 is 45.505, what is the maximum rank? <|assistant|> SELECT MAX("rank") FROM "final_results" WHERE "750m"='45.505';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_191591_5" ( "dvd_title" text, "number_of_episodes" text, "region_2" text, "region_4_au" text, "region_1_us" text ); Question: Where are there 25 episodes in Catfights and Brawls? <|assistant|> SELECT "region_2" FROM "table1_191591_5" WHERE "number_of_episodes"='25' AND "dvd_title"='Catfights and Brawls';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regional_championship" ( "year" real, "iowa" text, "kansas" text, "minnesota" text, "missouri" text, "nebraska" text, "north_south_dakota" text ); Question: Name the missouri for 2002 <|assistant|> SELECT "missouri" FROM "regional_championship" WHERE "year"=2002;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "asian_population_of_london" ( "rank" real, "london_borough" text, "indian_population" real, "pakistani_population" real, "bangladeshi_population" real, "chinese_population" real, "other_asian_population" real, "total_asian_population" real ); Question: How many Bangladeshi citizens are there in the borough ranked at number 7? <|assistant|> SELECT MIN("bangladeshi_population") FROM "asian_population_of_london" WHERE "rank"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "asian_population_of_london" ( "rank" real, "london_borough" text, "indian_population" real, "pakistani_population" real, "bangladeshi_population" real, "chinese_population" real, "other_asian_population" real, "total_asian_population" real ); Question: What's the London borough with 7797 Pakistani citizens? <|assistant|> SELECT "london_borough" FROM "asian_population_of_london" WHERE "pakistani_population"=7797;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "asian_population_of_london" ( "rank" real, "london_borough" text, "indian_population" real, "pakistani_population" real, "bangladeshi_population" real, "chinese_population" real, "other_asian_population" real, "total_asian_population" real ); Question: How many boroughs with different ranks have a total Asian population of 33338? <|assistant|> SELECT COUNT("rank") FROM "asian_population_of_london" WHERE "total_asian_population"=33338;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "asian_population_of_london" ( "rank" real, "london_borough" text, "indian_population" real, "pakistani_population" real, "bangladeshi_population" real, "chinese_population" real, "other_asian_population" real, "total_asian_population" real ); Question: What's the Chinese population in the borough with 26347 Pakistanis? <|assistant|> SELECT "chinese_population" FROM "asian_population_of_london" WHERE "pakistani_population"=26347;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "asian_population_of_london" ( "rank" real, "london_borough" text, "indian_population" real, "pakistani_population" real, "bangladeshi_population" real, "chinese_population" real, "other_asian_population" real, "total_asian_population" real ); Question: How many Asians live in the borough with 8109 Chinese population? <|assistant|> SELECT MIN("total_asian_population") FROM "asian_population_of_london" WHERE "chinese_population"=8109;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "asian_population_of_london" ( "rank" real, "london_borough" text, "indian_population" real, "pakistani_population" real, "bangladeshi_population" real, "chinese_population" real, "other_asian_population" real, "total_asian_population" real ); Question: How many Bangladeshi citizens live in the borough ranked at number 14? <|assistant|> SELECT MAX("bangladeshi_population") FROM "asian_population_of_london" WHERE "rank"=14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chronology_of_worldwide_membership" ( "year" real, "worldwide" real, "africa" real, "america" real, "asia" real, "australia" real, "europe" real ); Question: How many members did Africa have the year that Australia had 94615? <|assistant|> SELECT "africa" FROM "chronology_of_worldwide_membership" WHERE "australia"=94615;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chronology_of_worldwide_membership" ( "year" real, "worldwide" real, "africa" real, "america" real, "asia" real, "australia" real, "europe" real ); Question: How many members did Europe have the year that America had 403892? <|assistant|> SELECT "europe" FROM "chronology_of_worldwide_membership" WHERE "america"=403892;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chronology_of_worldwide_membership" ( "year" real, "worldwide" real, "africa" real, "america" real, "asia" real, "australia" real, "europe" real ); Question: What is the minimum number of members Europe had at the time Africa had 7375139? <|assistant|> SELECT MIN("europe") FROM "chronology_of_worldwide_membership" WHERE "africa"=7375139;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chronology_of_worldwide_membership" ( "year" real, "worldwide" real, "africa" real, "america" real, "asia" real, "australia" real, "europe" real ); Question: What is the minimum number of members Africa had in 2001? <|assistant|> SELECT MIN("africa") FROM "chronology_of_worldwide_membership" WHERE "year"=2001;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chronology_of_worldwide_membership" ( "year" real, "worldwide" real, "africa" real, "america" real, "asia" real, "australia" real, "europe" real ); Question: What is the most members Europe had when Australia had 94615? <|assistant|> SELECT MAX("europe") FROM "chronology_of_worldwide_membership" WHERE "australia"=94615;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chronology_of_worldwide_membership" ( "year" real, "worldwide" real, "africa" real, "america" real, "asia" real, "australia" real, "europe" real ); Question: What is the latest year that Europe had 471895? <|assistant|> SELECT MAX("year") FROM "chronology_of_worldwide_membership" WHERE "europe"=471895;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19161046_1" ( "model" text, "year" text, "code_name" text, "fab_nm" real, "bus_interface" text, "transistor_count_millions" real, "memory_max_mi_b" text, "core_m_hz" real, "memory_m_hz" text, "type" text, "bus_width_bit" real, "direct_x" text, "shader_model" text, "open_gl" text, "maximum_resolution" text, "ice_q4_cooling_system" text, "notes" text ); Question: What's the bus width (in bit) of the model whose core is 650 MHz? <|assistant|> SELECT COUNT("bus_width_bit") FROM "table1_19161046_1" WHERE "core_m_hz"=650;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19161046_1" ( "model" text, "year" text, "code_name" text, "fab_nm" real, "bus_interface" text, "transistor_count_millions" real, "memory_max_mi_b" text, "core_m_hz" real, "memory_m_hz" text, "type" text, "bus_width_bit" real, "direct_x" text, "shader_model" text, "open_gl" text, "maximum_resolution" text, "ice_q4_cooling_system" text, "notes" text ); Question: What's the directx of the model with code name RV770 PRO and a core bigger than 650.0 MHz? <|assistant|> SELECT "direct_x" FROM "table1_19161046_1" WHERE "code_name"='RV770 PRO' AND "core_m_hz">650.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19161046_1" ( "model" text, "year" text, "code_name" text, "fab_nm" real, "bus_interface" text, "transistor_count_millions" real, "memory_max_mi_b" text, "core_m_hz" real, "memory_m_hz" text, "type" text, "bus_width_bit" real, "direct_x" text, "shader_model" text, "open_gl" text, "maximum_resolution" text, "ice_q4_cooling_system" text, "notes" text ); Question: What are the notes recorded for the model HIS HD4850 (512MB)? <|assistant|> SELECT "notes" FROM "table1_19161046_1" WHERE "model"='HIS HD4850 (512MB)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19161605_2" ( "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_in_millions" text ); Question: Who directed "Fever"? <|assistant|> SELECT "directed_by" FROM "table1_19161605_2" WHERE "title"='\"Fever\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19161605_2" ( "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_in_millions" text ); Question: What is the original air date of "Cursed"? <|assistant|> SELECT "original_air_date" FROM "table1_19161605_2" WHERE "title"='\"Cursed\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19161605_2" ( "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_in_millions" text ); Question: What is the original air date of "Prophecy"? <|assistant|> SELECT "original_air_date" FROM "table1_19161605_2" WHERE "title"='\"Prophecy\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19161605_2" ( "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_in_millions" text ); Question: Who wrote the episode "Confession"? <|assistant|> SELECT "written_by" FROM "table1_19161605_2" WHERE "title"='\"Confession\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19161605_2" ( "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_in_millions" text ); Question: What is the title of episode number 14? <|assistant|> SELECT "title" FROM "table1_19161605_2" WHERE "num"=14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "example_data" ( "pair_i_d" real, "survive" real, "industry" text, "current_ratio" real, "quick_ratio" real, "net_worth_to_fixed_assets" real ); Question: If the net worth of fixed assets is 621, what is the current ratio? <|assistant|> SELECT "current_ratio" FROM "example_data" WHERE "net_worth_to_fixed_assets"=621;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Name the score for opponent of cleveland <|assistant|> SELECT "score" FROM "game_log" WHERE "opponent"='Cleveland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "pts_diff" real, "b_p" real, "points" real ); Question: Featherstone Rovers club played a total of how many games? <|assistant|> SELECT COUNT("played") FROM "table" WHERE "club"='Featherstone Rovers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "pts_diff" real, "b_p" real, "points" real ); Question: How many games were lost when the club got 34 points <|assistant|> SELECT MIN("lost") FROM "table" WHERE "points"=34;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "pts_diff" real, "b_p" real, "points" real ); Question: What was the B.P. of club Halifax? <|assistant|> SELECT "b_p" FROM "table" WHERE "club"='Halifax';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_14_9_titles_5_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What is the first year she played in the french open? <|assistant|> SELECT MIN("year") FROM "women_s_doubles_14_9_titles_5_runner_ups" WHERE "championship"='French Open';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_14_9_titles_5_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: How many times was the score 6–7(5), 6–2, 6–3? <|assistant|> SELECT COUNT("opponents") FROM "women_s_doubles_14_9_titles_5_runner_ups" WHERE "score"='6–7(5), 6–2, 6–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_8_5_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Who was her partner at the US Open and they were runner-up? <|assistant|> SELECT "partner" FROM "mixed_doubles_8_5_titles_3_runner_ups" WHERE "championship"='US Open' AND "outcome"='Runner-up';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_8_5_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Who was her partner at the US Open and they were runner-up? <|assistant|> SELECT "partner" FROM "mixed_doubles_8_5_titles_3_runner_ups" WHERE "outcome"='Runner-up' AND "championship"='US Open';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_8_5_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Who did she play with on clay? <|assistant|> SELECT "partner" FROM "mixed_doubles_8_5_titles_3_runner_ups" WHERE "surface"='Clay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: state the number of surface where championship is australian open and score in the final is 6–3, 4–6, 11–9 <|assistant|> SELECT COUNT("surface") FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "championship"='Australian Open' AND "score_in_the_final"='6–3, 4–6, 11–9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: which championship had arantxa sánchez vicario todd woodbridge as opponents in the final <|assistant|> SELECT "championship" FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "opponents_in_the_final"='Arantxa Sánchez Vicario Todd Woodbridge';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: what is the surface of the final which had score 6-2, 6-3 <|assistant|> SELECT "surface" FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "score_in_the_final"='6-2, 6-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: when were helena suková todd woodbridge the opponents in the final <|assistant|> SELECT "year" FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "opponents_in_the_final"='Helena Suková Todd Woodbridge';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: which championship had helena suková tom nijssen as opponents in the final and nicole provis as partner, the surface was hard and the outcome was winner <|assistant|> SELECT "championship" FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "outcome"='Winner' AND "surface"='Hard' AND "partner"='Nicole Provis' AND "opponents_in_the_final"='Helena Suková Tom Nijssen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19189856_1" ( "performer" text, "performances" real, "category" text, "first_performance" text, "last_performance" text ); Question: when was the last performance of the first performance on 11/15/1909 <|assistant|> SELECT "last_performance" FROM "table1_19189856_1" WHERE "first_performance"='11/15/1909';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19189856_1" ( "performer" text, "performances" real, "category" text, "first_performance" text, "last_performance" text ); Question: how many first performances where performer is wilfred engelman category:articles with hcards <|assistant|> SELECT COUNT("first_performance") FROM "table1_19189856_1" WHERE "performer"='Wilfred Engelman Category:Articles with hCards';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19189856_1" ( "performer" text, "performances" real, "category" text, "first_performance" text, "last_performance" text ); Question: who was the performer that did last performance on 04/08/1963 <|assistant|> SELECT "performer" FROM "table1_19189856_1" WHERE "last_performance"='04/08/1963';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19189856_1" ( "performer" text, "performances" real, "category" text, "first_performance" text, "last_performance" text ); Question: what is the first performance of the last performance on 03/29/1957 <|assistant|> SELECT "first_performance" FROM "table1_19189856_1" WHERE "last_performance"='03/29/1957';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19189856_1" ( "performer" text, "performances" real, "category" text, "first_performance" text, "last_performance" text ); Question: what is the last performance of leon varkas category:articles with hcards <|assistant|> SELECT "last_performance" FROM "table1_19189856_1" WHERE "performer"='Leon Varkas Category:Articles with hCards';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2009" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question: How many different finales had the English title "Beyond the Realm of Conscience"? <|assistant|> SELECT COUNT("finale") FROM "highest_rating_drama_series_of_2009" WHERE "english_title"='Beyond the Realm of Conscience';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2009" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question: What was the maximum average of the episode with a Chinese title 古靈精探b? <|assistant|> SELECT MAX("average") FROM "highest_rating_drama_series_of_2009" WHERE "chinese_title"='古靈精探B';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2009" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question: How was the episode seen by 2.26 million HK viewers ranked? <|assistant|> SELECT "rank" FROM "highest_rating_drama_series_of_2009" WHERE "hk_viewers"='2.26 million';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2009" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question: What is the finale number ranked at number 7? <|assistant|> SELECT "finale" FROM "highest_rating_drama_series_of_2009" WHERE "rank"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "involvement_in_military_conflicts" ( "start_of_conflict" real, "end_of_conflict" text, "conflict" text, "continent" text, "location" text, "branches_involved" text ); Question: What is every conflict in Iraq? <|assistant|> SELECT "conflict" FROM "involvement_in_military_conflicts" WHERE "location"='Iraq';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "involvement_in_military_conflicts" ( "start_of_conflict" real, "end_of_conflict" text, "conflict" text, "continent" text, "location" text, "branches_involved" text ); Question: What is every branch involved in Afghanistan? <|assistant|> SELECT "branches_involved" FROM "involvement_in_military_conflicts" WHERE "location"='Afghanistan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "involvement_in_military_conflicts" ( "start_of_conflict" real, "end_of_conflict" text, "conflict" text, "continent" text, "location" text, "branches_involved" text ); Question: Which conflicts took place in Yemen? <|assistant|> SELECT "conflict" FROM "involvement_in_military_conflicts" WHERE "location"='Yemen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "involvement_in_military_conflicts" ( "start_of_conflict" real, "end_of_conflict" text, "conflict" text, "continent" text, "location" text, "branches_involved" text ); Question: How many conflicts started in Afghanistan? <|assistant|> SELECT COUNT("start_of_conflict") FROM "involvement_in_military_conflicts" WHERE "location"='Afghanistan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19229713_6" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: When did the title "secret weapons" originally air? <|assistant|> SELECT "original_air_date" FROM "table1_19229713_6" WHERE "title"='\"Secret Weapons\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19229713_6" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: How many u.s. viewers (million) have the number 16? <|assistant|> SELECT "u_s_viewers_million" FROM "table1_19229713_6" WHERE "num"=16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19229713_6" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: What is the production code of the title "secret weapons"? <|assistant|> SELECT "production_code" FROM "table1_19229713_6" WHERE "title"='\"Secret Weapons\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19229713_6" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: How many u.s. viewers (million) have the production code of 5.09? <|assistant|> SELECT "u_s_viewers_million" FROM "table1_19229713_6" WHERE "production_code"='5.09';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "natural_habitat" ( "land_formation" text, "area_km" real, "of_which_currently_forests_km" real, "pct_forests" text, "habitat_type" text ); Question: When middle prut valley is the land formation what is the highest of which currently forests, km² ? <|assistant|> SELECT MAX("of_which_currently_forests_km") FROM "natural_habitat" WHERE "land_formation"='Middle Prut Valley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "natural_habitat" ( "land_formation" text, "area_km" real, "of_which_currently_forests_km" real, "pct_forests" text, "habitat_type" text ); Question: When 312 is of which currently forests, km² what is the land formation? <|assistant|> SELECT "land_formation" FROM "natural_habitat" WHERE "of_which_currently_forests_km"=312;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19236587_4" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_k_viewers_million" text ); Question: When did the episode titled "The Fashion Show" air for the first time? <|assistant|> SELECT "original_air_date" FROM "table1_19236587_4" WHERE "title"='\"The Fashion Show\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19236587_4" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_k_viewers_million" text ); Question: What's the series number of the episode with season number 2? <|assistant|> SELECT MIN("series_no") FROM "table1_19236587_4" WHERE "season_no"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19236587_4" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_k_viewers_million" text ); Question: What's the series number of the episode seen by 2.43 million viewers in the UK? <|assistant|> SELECT "series_no" FROM "table1_19236587_4" WHERE "u_k_viewers_million"='2.43';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19236587_4" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_k_viewers_million" text ); Question: How many different original air dates does the episode with series number 13 have? <|assistant|> SELECT COUNT("original_air_date") FROM "table1_19236587_4" WHERE "series_no"=13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19229713_4" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Name the number for viewers being 1.87 <|assistant|> SELECT MAX("num") FROM "table1_19229713_4" WHERE "u_s_viewers_million"='1.87';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19229713_4" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Name the production code for viewers for 1.69 <|assistant|> SELECT "production_code" FROM "table1_19229713_4" WHERE "u_s_viewers_million"='1.69';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19246_2" ( "carrier" text, "standard" text, "frequency" text, "down" text, "up" text, "launch_date_dd_mm_yyyy" text ); Question: whare are al of the launche dates where th carrier is orange and the up is 5.76 mbit/s <|assistant|> SELECT "launch_date_dd_mm_yyyy" FROM "table1_19246_2" WHERE "up"='5.76 Mbit/s' AND "carrier"='Orange';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "draw" real, "country" text, "language" text, "artist" text, "song" text, "english_translation" text, "result" text ); Question: With the country of Sweden and the result is out, what is the song? <|assistant|> SELECT "song" FROM "final" WHERE "result"='Out' AND "country"='Sweden';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "draw" real, "country" text, "language" text, "artist" text, "song" text, "english_translation" text, "result" text ); Question: If the English translation is hello girl, what was the language? <|assistant|> SELECT "language" FROM "final" WHERE "english_translation"='Hello girl';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19246_1" ( "carrier" text, "standard" text, "frequency" text, "connection_speed" text, "launch_date_dd_mm_yyyy" text ); Question: What was the connection speed when launched on 07.06.2005? <|assistant|> SELECT "connection_speed" FROM "table1_19246_1" WHERE "launch_date_dd_mm_yyyy"='07.06.2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19246_1" ( "carrier" text, "standard" text, "frequency" text, "connection_speed" text, "launch_date_dd_mm_yyyy" text ); Question: When the carrier is idc, what are the frequencies? <|assistant|> SELECT "frequency" FROM "table1_19246_1" WHERE "carrier"='IDC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19246_1" ( "carrier" text, "standard" text, "frequency" text, "connection_speed" text, "launch_date_dd_mm_yyyy" text ); Question: When the launch date is 14.09.2005, and the frequency is 900mhz and 1800mhz, how many carriers are there? <|assistant|> SELECT COUNT("carrier") FROM "table1_19246_1" WHERE "frequency"='900MHz and 1800MHz' AND "launch_date_dd_mm_yyyy"='14.09.2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19246_1" ( "carrier" text, "standard" text, "frequency" text, "connection_speed" text, "launch_date_dd_mm_yyyy" text ); Question: How many standards are there, when the launch date was 17.04.2006? <|assistant|> SELECT COUNT("standard") FROM "table1_19246_1" WHERE "launch_date_dd_mm_yyyy"='17.04.2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "production" ( "fiscal_year" real, "2_car_sets" real, "3_car_sets" real, "4_car_sets" real, "6_car_sets" real, "8_car_sets" real, "total_vehicles" real ); Question: Name the 2 car sets for 622 <|assistant|> SELECT "2_car_sets" FROM "production" WHERE "total_vehicles"=622;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "production" ( "fiscal_year" real, "2_car_sets" real, "3_car_sets" real, "4_car_sets" real, "6_car_sets" real, "8_car_sets" real, "total_vehicles" real ); Question: Name the most 3 car sets <|assistant|> SELECT MAX("3_car_sets") FROM "production";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "production" ( "fiscal_year" real, "2_car_sets" real, "3_car_sets" real, "4_car_sets" real, "6_car_sets" real, "8_car_sets" real, "total_vehicles" real ); Question: Name the 4 car sets for 6 car sets being 44 <|assistant|> SELECT MIN("4_car_sets") FROM "production" WHERE "6_car_sets"=44;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "production" ( "fiscal_year" real, "2_car_sets" real, "3_car_sets" real, "4_car_sets" real, "6_car_sets" real, "8_car_sets" real, "total_vehicles" real ); Question: Name the least 4 car sets <|assistant|> SELECT MIN("4_car_sets") FROM "production";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19264489_1" ( "version" text, "code_name" text, "release_date" text, "desktops" text, "servers" text, "kernel_version" text ); Question: What is the code name of the OS with Kernel version 2.6.27? <|assistant|> SELECT "code_name" FROM "table1_19264489_1" WHERE "kernel_version"='2.6.27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19264489_1" ( "version" text, "code_name" text, "release_date" text, "desktops" text, "servers" text, "kernel_version" text ); Question: When was the release date of the operating system with kernel version 2.6.31? <|assistant|> SELECT "release_date" FROM "table1_19264489_1" WHERE "kernel_version"='2.6.31';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19264489_1" ( "version" text, "code_name" text, "release_date" text, "desktops" text, "servers" text, "kernel_version" text ); Question: What is the status of the desktop version of the OS with kernel version 2.6.31? <|assistant|> SELECT "desktops" FROM "table1_19264489_1" WHERE "kernel_version"='2.6.31';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19264489_1" ( "version" text, "code_name" text, "release_date" text, "desktops" text, "servers" text, "kernel_version" text ); Question: How many servers have a kernel version 3.11? <|assistant|> SELECT COUNT("servers") FROM "table1_19264489_1" WHERE "kernel_version"='3.11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cultural_and_ethnic_composition" ( "self_identification" text, "moldovan_census" real, "pct_core_moldova" text, "transnistrian_census" real, "pct_transnistria_bender" text, "total" real, "pct" text ); Question: Name the % for core moldova being 4.36% <|assistant|> SELECT "pct" FROM "cultural_and_ethnic_composition" WHERE "pct_core_moldova"='4.36%';<|endoftext|>