text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_01_season_as_a_five_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "jockey" text, "winner_2nd" text ); Question: In what race was the weight in kg 55 and the winner/2nd 1st - Jim and Tonic? <|assistant|> SELECT "race" FROM "2000_01_season_as_a_five_year_old" WHERE "weight_kg"='55' AND "winner_2nd"='1st - Jim And Tonic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_01_season_as_a_five_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "jockey" text, "winner_2nd" text ); Question: What was the distance in the Manikato Stakes race? <|assistant|> SELECT "distance" FROM "2000_01_season_as_a_five_year_old" WHERE "race"='Manikato Stakes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_01_season_as_a_five_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "jockey" text, "winner_2nd" text ); Question: What was the distance in the race where the weight in kg was 56 and the winner/2nd was 2nd - Fritz? <|assistant|> SELECT "distance" FROM "2000_01_season_as_a_five_year_old" WHERE "weight_kg"='56' AND "winner_2nd"='2nd - Fritz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001_02_season_as_a_six_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "jockey" text, "winner_2nd" text ); Question: What date was the Doncaster race? <|assistant|> SELECT "date" FROM "2001_02_season_as_a_six_year_old" WHERE "race"='Doncaster';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1" ( "episode" real, "air_date" text, "team_swash" text, "team_guest_captain" text, "team_coxy" text ); Question: What was the air date when the team guest captain was john bishop? <|assistant|> SELECT "air_date" FROM "series_1" WHERE "team_guest_captain"='John Bishop';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1" ( "episode" real, "air_date" text, "team_swash" text, "team_guest_captain" text, "team_coxy" text ); Question: Who was the team guest captain for episode 2? <|assistant|> SELECT "team_guest_captain" FROM "series_1" WHERE "episode"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1" ( "episode" real, "air_date" text, "team_swash" text, "team_guest_captain" text, "team_coxy" text ); Question: Who was the team swash when the team guest captain was gail porter? <|assistant|> SELECT "team_swash" FROM "series_1" WHERE "team_guest_captain"='Gail Porter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1" ( "episode" real, "air_date" text, "team_swash" text, "team_guest_captain" text, "team_coxy" text ); Question: How many entries are there for team coxy for the air date of 24 january 2010 and team guest captain of gail porter? <|assistant|> SELECT COUNT("team_coxy") FROM "series_1" WHERE "air_date"='24 January 2010' AND "team_guest_captain"='Gail Porter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_1" ( "episode" real, "air_date" text, "team_swash" text, "team_guest_captain" text, "team_coxy" text ); Question: How many entries are shown for an air date when the team guest captain was stephen k amos? <|assistant|> SELECT COUNT("air_date") FROM "series_1" WHERE "team_guest_captain"='Stephen K Amos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_99_season_as_a_three_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "jockey" text, "winner_2nd" text ); Question: What group was sunline in when he was at moonee valley? <|assistant|> SELECT "group" FROM "1998_99_season_as_a_three_year_old" WHERE "venue"='Moonee Valley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "player" text, "nationality" text, "finals" real, "win_loss" text, "year_s" text ); Question: What was the win-loss record for the player from Switzerland? <|assistant|> SELECT "win_loss" FROM "men" WHERE "nationality"='Switzerland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25820584_7" ( "player" text, "nationality" text, "finals" real, "win_loss" text, "year_s" text ); Question: What was the win loss record the lady who appeard in 1969? <|assistant|> SELECT "win_loss" FROM "table1_25820584_7" WHERE "year_s"='1969';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25820584_7" ( "player" text, "nationality" text, "finals" real, "win_loss" text, "year_s" text ); Question: What player(s) appeared in 1969? <|assistant|> SELECT "player" FROM "table1_25820584_7" WHERE "year_s"='1969';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_results" ( "position" text, "name" text, "nationality" text, "event_1_super_yoke" text, "event_2_power_stairs" text, "event_3_car_lift" text, "event_4_farmers_walk" text, "event_5_truck_pull" text, "event_6_fingals_fingers" text, "event_7_atlas_stones" text ); Question: Name the name for norway nationality <|assistant|> SELECT "name" FROM "final_results" WHERE "nationality"='Norway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25830834_2" ( "series_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 series # of "tanarak"? <|assistant|> SELECT MIN("series_num") FROM "table1_25830834_2" WHERE "title"='\"Tanarak\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25830834_2" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Who wrote the episode with the production code 2j5153? <|assistant|> SELECT "written_by" FROM "table1_25830834_2" WHERE "production_code"='2J5153';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "observations_made_of_the_hdf_s_with_the_" ( "camera" text, "filter" text, "wavelength" text, "total_exposure_time" text, "exposures" real ); Question: what is the filter when the wavelength is 222mm (k-band)? <|assistant|> SELECT "filter" FROM "observations_made_of_the_hdf_s_with_the_" WHERE "wavelength"='222mm (K-band)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "observations_made_of_the_hdf_s_with_the_" ( "camera" text, "filter" text, "wavelength" text, "total_exposure_time" text, "exposures" real ); Question: how many times was the exposures 53? <|assistant|> SELECT COUNT("camera") FROM "observations_made_of_the_hdf_s_with_the_" WHERE "exposures"=53;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "observations_made_of_the_hdf_s_with_the_" ( "camera" text, "filter" text, "wavelength" text, "total_exposure_time" text, "exposures" real ); Question: how many exposures where there when the total exposure time is 105,000s? <|assistant|> SELECT "exposures" FROM "observations_made_of_the_hdf_s_with_the_" WHERE "total_exposure_time"='105,000s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "observations_made_of_the_hdf_s_with_the_" ( "camera" text, "filter" text, "wavelength" text, "total_exposure_time" text, "exposures" real ); Question: what is the camera used when the wavelength is 814nm (i-band)? <|assistant|> SELECT "camera" FROM "observations_made_of_the_hdf_s_with_the_" WHERE "wavelength"='814nm (I-band)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2582519_6" ( "total_num" real, "series_num" real, "title" text, "director" text, "writer_s" text, "original_airdate" text ); Question: Who is the director of "new girls"? <|assistant|> SELECT "director" FROM "table1_2582519_6" WHERE "title"='\"New Girls\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2582519_6" ( "total_num" real, "series_num" real, "title" text, "director" text, "writer_s" text, "original_airdate" text ); Question: What is the title of the show with director Paul Annett? <|assistant|> SELECT "title" FROM "table1_2582519_6" WHERE "director"='Paul Annett';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2013" ( "date" text, "location" text, "fight" text, "division" text, "titles" text, "rematch" text, "tv" text, "promoter" text, "notes" text ); Question: What was the title for the Undercard of Stevenson/Bellew? <|assistant|> SELECT "titles" FROM "2013" WHERE "notes"='Undercard of Stevenson/Bellew';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2013" ( "date" text, "location" text, "fight" text, "division" text, "titles" text, "rematch" text, "tv" text, "promoter" text, "notes" text ); Question: What are the titles for the November 9 Super Bantamweight division? <|assistant|> SELECT "titles" FROM "2013" WHERE "date"='November 9' AND "division"='Super Bantamweight';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2013" ( "date" text, "location" text, "fight" text, "division" text, "titles" text, "rematch" text, "tv" text, "promoter" text, "notes" text ); Question: How many notes are there for the Devon Alexander vs. Shawn Porter fight? <|assistant|> SELECT COUNT("notes") FROM "2013" WHERE "fight"='Devon Alexander vs. Shawn Porter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2013" ( "date" text, "location" text, "fight" text, "division" text, "titles" text, "rematch" text, "tv" text, "promoter" text, "notes" text ); Question: What division was on HBO PPV? <|assistant|> SELECT "division" FROM "2013" WHERE "tv"='HBO PPV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2013" ( "date" text, "location" text, "fight" text, "division" text, "titles" text, "rematch" text, "tv" text, "promoter" text, "notes" text ); Question: Where was the Undercard of Stevenson/Bellew? <|assistant|> SELECT "location" FROM "2013" WHERE "notes"='Undercard of Stevenson/Bellew';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2013" ( "date" text, "location" text, "fight" text, "division" text, "titles" text, "rematch" text, "tv" text, "promoter" text, "notes" text ); Question: What was the division number for Verona, USA? <|assistant|> SELECT COUNT("division") FROM "2013" WHERE "location"='Verona, USA';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25839957_5" ( "graphics" text, "launch" real, "market" text, "cpu" text, "code_name" text, "device_id" real, "core_clock_m_hz" text, "execution_units" real, "shader_model" text, "direct_x" text, "open_gl" text, "open_cl" text, "memory_bandwidth_gb_s" text, "dvmt_mb" real, "cvt_hd" text, "qsv" text ); Question: What mobile markets have cvt hd? <|assistant|> SELECT "cvt_hd" FROM "table1_25839957_5" WHERE "market"='Mobile';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25839957_5" ( "graphics" text, "launch" real, "market" text, "cpu" text, "code_name" text, "device_id" real, "core_clock_m_hz" text, "execution_units" real, "shader_model" text, "direct_x" text, "open_gl" text, "open_cl" text, "memory_bandwidth_gb_s" text, "dvmt_mb" real, "cvt_hd" text, "qsv" text ); Question: How many opengl have the ironlake ( clarkdale ) code name? <|assistant|> SELECT COUNT("open_gl") FROM "table1_25839957_5" WHERE "code_name"='Ironlake ( Clarkdale )';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25839957_5" ( "graphics" text, "launch" real, "market" text, "cpu" text, "code_name" text, "device_id" real, "core_clock_m_hz" text, "execution_units" real, "shader_model" text, "direct_x" text, "open_gl" text, "open_cl" text, "memory_bandwidth_gb_s" text, "dvmt_mb" real, "cvt_hd" text, "qsv" text ); Question: What core clocks ( mhz ) have a 21.3 memory bandwidth ( gb/s )? <|assistant|> SELECT "core_clock_m_hz" FROM "table1_25839957_5" WHERE "memory_bandwidth_gb_s"='21.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25839957_5" ( "graphics" text, "launch" real, "market" text, "cpu" text, "code_name" text, "device_id" real, "core_clock_m_hz" text, "execution_units" real, "shader_model" text, "direct_x" text, "open_gl" text, "open_cl" text, "memory_bandwidth_gb_s" text, "dvmt_mb" real, "cvt_hd" text, "qsv" text ); Question: What's the minimum number of execution units? <|assistant|> SELECT MIN("execution_units") FROM "table1_25839957_5";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25839957_5" ( "graphics" text, "launch" real, "market" text, "cpu" text, "code_name" text, "device_id" real, "core_clock_m_hz" text, "execution_units" real, "shader_model" text, "direct_x" text, "open_gl" text, "open_cl" text, "memory_bandwidth_gb_s" text, "dvmt_mb" real, "cvt_hd" text, "qsv" text ); Question: How many shader models have a 900 core clock ( mhz )? <|assistant|> SELECT COUNT("shader_model") FROM "table1_25839957_5" WHERE "core_clock_m_hz"='900';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2588674_1" ( "village" text, "area_km" text, "population_2000_census" real, "region" text, "pop_density" real ); Question: What is the population for the place with an area of 2.33 km2? <|assistant|> SELECT MAX("population_2000_census") FROM "table1_2588674_1" WHERE "area_km"='2.33';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2588674_1" ( "village" text, "area_km" text, "population_2000_census" real, "region" text, "pop_density" real ); Question: How many places named asan-maina? <|assistant|> SELECT COUNT("region") FROM "table1_2588674_1" WHERE "village"='Asan-Maina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2588674_1" ( "village" text, "area_km" text, "population_2000_census" real, "region" text, "pop_density" real ); Question: How many places named mongmong-toto-maite? <|assistant|> SELECT COUNT("region") FROM "table1_2588674_1" WHERE "village"='Mongmong-Toto-Maite';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2588674_1" ( "village" text, "area_km" text, "population_2000_census" real, "region" text, "pop_density" real ); Question: What is the population density of mongmong-toto-maite? <|assistant|> SELECT MIN("pop_density") FROM "table1_2588674_1" WHERE "village"='Mongmong-Toto-Maite';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2588674_1" ( "village" text, "area_km" text, "population_2000_census" real, "region" text, "pop_density" real ); Question: What village has an area of 27.19 km2? <|assistant|> SELECT "village" FROM "table1_2588674_1" WHERE "area_km"='27.19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2588674_1" ( "village" text, "area_km" text, "population_2000_census" real, "region" text, "pop_density" real ); Question: What region is inarajan in? <|assistant|> SELECT "region" FROM "table1_2588674_1" WHERE "village"='Inarajan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "pos" real, "team" text, "07_a_pts" real, "08_c_pts" real, "08_a_pts" real, "09_c_pts" real, "09_a_pts" real, "10_c_pts" real, "total_pts" real, "total_pld" real, "avg" text ); Question: How many POS when the average is 1.8529? <|assistant|> SELECT MAX("pos") FROM "relegation" WHERE "avg"='1.8529';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "pos" real, "team" text, "07_a_pts" real, "08_c_pts" real, "08_a_pts" real, "09_c_pts" real, "09_a_pts" real, "10_c_pts" real, "total_pts" real, "total_pld" real, "avg" text ); Question: How many 07 A points for the team with 1.4902 average? <|assistant|> SELECT MAX("07_a_pts") FROM "relegation" WHERE "avg"='1.4902';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "pos" real, "team" text, "07_a_pts" real, "08_c_pts" real, "08_a_pts" real, "09_c_pts" real, "09_a_pts" real, "10_c_pts" real, "total_pts" real, "total_pld" real, "avg" text ); Question: How many figures for 08 A points for the team with 1.1863 average? <|assistant|> SELECT COUNT("08_a_pts") FROM "relegation" WHERE "avg"='1.1863';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "pos" real, "team" text, "07_a_pts" real, "08_c_pts" real, "08_a_pts" real, "09_c_pts" real, "09_a_pts" real, "10_c_pts" real, "total_pts" real, "total_pld" real, "avg" text ); Question: What is the largest number of 10 C points for a team with 39 total points? <|assistant|> SELECT MAX("10_c_pts") FROM "relegation" WHERE "total_pts"=39;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25851971_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Who directed the episode with 4.82 million U.S. viewers? <|assistant|> SELECT "directed_by" FROM "table1_25851971_1" WHERE "u_s_viewers_million"='4.82';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25851971_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Who directed the episode that had a production code of 2j5457? <|assistant|> SELECT "directed_by" FROM "table1_25851971_1" WHERE "production_code"='2J5457';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25851971_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: What episode number was written by Anthony Sparks? <|assistant|> SELECT MIN("no") FROM "table1_25851971_1" WHERE "written_by"='Anthony Sparks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25851971_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: What was the production code of the episode written by Anthony Sparks? <|assistant|> SELECT "production_code" FROM "table1_25851971_1" WHERE "written_by"='Anthony Sparks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25851971_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: What episode number was written by Karin Gist? <|assistant|> SELECT MAX("no") FROM "table1_25851971_1" WHERE "written_by"='Karin Gist';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25920798_2" ( "episode" real, "reward" text, "leader_battle" text, "immunity" text, "individual_immunity" text, "eliminated" text, "vote" text, "finish" text ); Question: Name the leader battle for 4-3 vote <|assistant|> SELECT "leader_battle" FROM "table1_25920798_2" WHERE "vote"='4-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25920798_2" ( "episode" real, "reward" text, "leader_battle" text, "immunity" text, "individual_immunity" text, "eliminated" text, "vote" text, "finish" text ); Question: Name the finish for 4-4 <|assistant|> SELECT "finish" FROM "table1_25920798_2" WHERE "vote"='4-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25920798_2" ( "episode" real, "reward" text, "leader_battle" text, "immunity" text, "individual_immunity" text, "eliminated" text, "vote" text, "finish" text ); Question: Name the left day 9 finish for eliminated <|assistant|> SELECT "eliminated" FROM "table1_25920798_2" WHERE "finish"='Left Day 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25920798_2" ( "episode" real, "reward" text, "leader_battle" text, "immunity" text, "individual_immunity" text, "eliminated" text, "vote" text, "finish" text ); Question: Name the leader battle for plamen <|assistant|> SELECT "leader_battle" FROM "table1_25920798_2" WHERE "eliminated"='Plamen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "seniors" text, "juniors" text, "women" text, "status" text, "founded" real, "affiliation_population" text, "color" text, "location" text ); Question: What institution is represented by the lady saints? <|assistant|> SELECT "institution" FROM "member_schools" WHERE "women"='Lady Saints';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "seniors" text, "juniors" text, "women" text, "status" text, "founded" real, "affiliation_population" text, "color" text, "location" text ); Question: What status of school is the school represented by the baby olympians? <|assistant|> SELECT "status" FROM "member_schools" WHERE "juniors"='Baby Olympians';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "seniors" text, "juniors" text, "women" text, "status" text, "founded" real, "affiliation_population" text, "color" text, "location" text ); Question: What year was the school with green and white colors founded? <|assistant|> SELECT MAX("founded") FROM "member_schools" WHERE "color"='Green and White';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "member_schools" ( "institution" text, "seniors" text, "juniors" text, "women" text, "status" text, "founded" real, "affiliation_population" text, "color" text, "location" text ); Question: What status of school is informatics international college? <|assistant|> SELECT "status" FROM "member_schools" WHERE "institution"='Informatics International College';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2592308_1" ( "country" text, "name_of_bullion_coin" text, "fineness" text, "denominations_gold_weight" text, "years_of_mintage" text ); Question: How many catagories for denominations does Austria have? <|assistant|> SELECT COUNT("denominations_gold_weight") FROM "table1_2592308_1" WHERE "country"='Austria';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2592308_1" ( "country" text, "name_of_bullion_coin" text, "fineness" text, "denominations_gold_weight" text, "years_of_mintage" text ); Question: What are all the denominations for China? <|assistant|> SELECT "denominations_gold_weight" FROM "table1_2592308_1" WHERE "country"='China';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25926120_7" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: what is the name of award when the name of film is sana keithel? <|assistant|> SELECT "name_of_award" FROM "table1_25926120_7" WHERE "name_of_film"='Sana Keithel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25926120_7" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: what is the name of award when the awardee(s) is elangbam natasha? <|assistant|> SELECT "name_of_award" FROM "table1_25926120_7" WHERE "awardee_s"='Elangbam Natasha';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25926120_7" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: how many times is the name of film narmeen? <|assistant|> SELECT COUNT("cash_prize") FROM "table1_25926120_7" WHERE "name_of_film"='Narmeen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25926120_7" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: what is the language when the name of award is best editing? <|assistant|> SELECT "language" FROM "table1_25926120_7" WHERE "name_of_award"='Best Editing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25926120_7" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: who are the awardees when the name of award is best agricultural film? <|assistant|> SELECT "awardee_s" FROM "table1_25926120_7" WHERE "name_of_award"='Best Agricultural Film';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25926120_7" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: what is the language when the awardee is re-recordist : mateen ahmad? <|assistant|> SELECT "language" FROM "table1_25926120_7" WHERE "awardee_s"='Re-recordist : Mateen Ahmad';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25947046_1" ( "metropolitan_ring" text, "localities" real, "total" real, "jews_and_others_1" real, "thereof_jews" real, "arabs" real, "population_density_per_km" text, "annual_population_growth_rate" text ); Question: What is the highest Jews and others 1? <|assistant|> SELECT MAX("jews_and_others_1") FROM "table1_25947046_1";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25947046_1" ( "metropolitan_ring" text, "localities" real, "total" real, "jews_and_others_1" real, "thereof_jews" real, "arabs" real, "population_density_per_km" text, "annual_population_growth_rate" text ); Question: What is the lowest jews and others 1 for the localities 11? <|assistant|> SELECT MIN("jews_and_others_1") FROM "table1_25947046_1" WHERE "localities"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25947046_1" ( "metropolitan_ring" text, "localities" real, "total" real, "jews_and_others_1" real, "thereof_jews" real, "arabs" real, "population_density_per_km" text, "annual_population_growth_rate" text ); Question: What is the arabs when the annual population growth rate is 1.7%? <|assistant|> SELECT "arabs" FROM "table1_25947046_1" WHERE "annual_population_growth_rate"='1.7%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25947046_1" ( "metropolitan_ring" text, "localities" real, "total" real, "jews_and_others_1" real, "thereof_jews" real, "arabs" real, "population_density_per_km" text, "annual_population_growth_rate" text ); Question: What is the lowest total when arabs is 4000? <|assistant|> SELECT MIN("total") FROM "table1_25947046_1" WHERE "arabs"=4000;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25926120_3" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: Who won best actress? <|assistant|> SELECT "awardee_s" FROM "table1_25926120_3" WHERE "name_of_award"='Best Actress';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25926120_3" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: How many cash prizes were given for the hindi language film jodhaa akbar? <|assistant|> SELECT COUNT("cash_prize") FROM "table1_25926120_3" WHERE "language"='Hindi' AND "name_of_film"='Jodhaa Akbar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25926120_3" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: How many films were in hindi? <|assistant|> SELECT COUNT("name_of_film") FROM "table1_25926120_3" WHERE "language"='Hindi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25926120_3" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: How many films were in assamese? <|assistant|> SELECT COUNT("name_of_film") FROM "table1_25926120_3" WHERE "language"='Assamese';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_25926120_3" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text ); Question: Who won best actor? <|assistant|> SELECT "awardee_s" FROM "table1_25926120_3" WHERE "name_of_award"='Best Actor';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" text ); Question: Name the winner for jan 24 <|assistant|> SELECT "winner" FROM "tournament_results" WHERE "date"='Jan 24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" text ); Question: Name the total number of dates for toshiba classic <|assistant|> SELECT COUNT("date") FROM "tournament_results" WHERE "tournament"='Toshiba Classic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" text ); Question: Name the tournament for dominican republic <|assistant|> SELECT "tournament" FROM "tournament_results" WHERE "location"='Dominican Republic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" text ); Question: Name the total number of winners for allianz championship <|assistant|> SELECT COUNT("winner") FROM "tournament_results" WHERE "tournament"='Allianz Championship';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" text ); Question: Name the 1st prize for senior pga championship <|assistant|> SELECT "1st_prize" FROM "tournament_results" WHERE "tournament"='Senior PGA Championship';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_contestants" ( "celebrity" text, "known_for" text, "age" real, "professional" text, "series" real, "place" text, "dances" real, "highest_score" real, "lowest_score" real, "aggregate" real, "average" text ); Question: What was the place for the celebrity whose aggregate was 35? <|assistant|> SELECT "place" FROM "list_of_contestants" WHERE "aggregate"=35;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_contestants" ( "celebrity" text, "known_for" text, "age" real, "professional" text, "series" real, "place" text, "dances" real, "highest_score" real, "lowest_score" real, "aggregate" real, "average" text ); Question: How many dances did John Barnes have? <|assistant|> SELECT MIN("dances") FROM "list_of_contestants" WHERE "celebrity"='John Barnes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_contestants" ( "celebrity" text, "known_for" text, "age" real, "professional" text, "series" real, "place" text, "dances" real, "highest_score" real, "lowest_score" real, "aggregate" real, "average" text ); Question: What is the age of the celebrity who had a 402 aggregate? <|assistant|> SELECT MAX("age") FROM "list_of_contestants" WHERE "aggregate"=402;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_contestants" ( "celebrity" text, "known_for" text, "age" real, "professional" text, "series" real, "place" text, "dances" real, "highest_score" real, "lowest_score" real, "aggregate" real, "average" text ); Question: What was the aggregate for Ricky Groves? <|assistant|> SELECT MAX("aggregate") FROM "list_of_contestants" WHERE "celebrity"='Ricky Groves';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_contestants" ( "celebrity" text, "known_for" text, "age" real, "professional" text, "series" real, "place" text, "dances" real, "highest_score" real, "lowest_score" real, "aggregate" real, "average" text ); Question: What was the aggregate for the celebrity who was known for being a singer and had 7 dances? <|assistant|> SELECT "aggregate" FROM "list_of_contestants" WHERE "dances"=7 AND "known_for"='Singer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "countries_and_territories" text, "conditions_of_access" text, "length_of_stay_permitted" text, "fee_if_applicable" text, "access_using_a_croatian_identity_card" text ); Question: What are the conditions of access where access using a Croatian identity card is yes and the length of stay permitted is freedom of movement? <|assistant|> SELECT "conditions_of_access" FROM "europe" WHERE "access_using_a_croatian_identity_card"='Yes' AND "length_of_stay_permitted"='Freedom of movement';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "countries_and_territories" text, "conditions_of_access" text, "length_of_stay_permitted" text, "fee_if_applicable" text, "access_using_a_croatian_identity_card" text ); Question: Can one access the Jersey territory using a Croatian identity card? <|assistant|> SELECT "access_using_a_croatian_identity_card" FROM "europe" WHERE "countries_and_territories"='Jersey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "countries_and_territories" text, "conditions_of_access" text, "length_of_stay_permitted" text, "fee_if_applicable" text, "access_using_a_croatian_identity_card" text ); Question: What is the fee (if applicable) for Norway? <|assistant|> SELECT "fee_if_applicable" FROM "europe" WHERE "countries_and_territories"='Norway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "countries_and_territories" text, "conditions_of_access" text, "length_of_stay_permitted" text, "fee_if_applicable" text, "access_using_a_croatian_identity_card" text ); Question: What is the permitted length of stay in the Jersey territory? <|assistant|> SELECT "length_of_stay_permitted" FROM "europe" WHERE "countries_and_territories"='Jersey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "countries_and_territories" text, "conditions_of_access" text, "length_of_stay_permitted" text, "fee_if_applicable" text, "access_using_a_croatian_identity_card" text ); Question: Can one access the Faroe Islands using a Croatian identity card? <|assistant|> SELECT "access_using_a_croatian_identity_card" FROM "europe" WHERE "countries_and_territories"='Faroe Islands';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "countries_and_territories" text, "conditions_of_access" text, "length_of_stay_permitted" text, "fee_if_applicable" text, "access_using_a_croatian_identity_card" text ); Question: What length of stay is permitted in the European Union? <|assistant|> SELECT "length_of_stay_permitted" FROM "europe" WHERE "countries_and_territories"='European Union';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2596811_12" ( "unit" text, "commander" text, "complement" text, "killed" text, "wounded" text, "missing" text ); Question: What was the complement for the unit that had 3 off 37 men killed? <|assistant|> SELECT "complement" FROM "table1_2596811_12" WHERE "killed"='3 off 37 men';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2596811_12" ( "unit" text, "commander" text, "complement" text, "killed" text, "wounded" text, "missing" text ); Question: What is the number of wounded figures associated with a complement of 22 off 637 men? <|assistant|> SELECT COUNT("wounded") FROM "table1_2596811_12" WHERE "complement"='22 off 637 men';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2596811_12" ( "unit" text, "commander" text, "complement" text, "killed" text, "wounded" text, "missing" text ); Question: What is the number of commanders that had 0 off 63 men killed? <|assistant|> SELECT COUNT("commander") FROM "table1_2596811_12" WHERE "killed"='0 off 63 men';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2596811_12" ( "unit" text, "commander" text, "complement" text, "killed" text, "wounded" text, "missing" text ); Question: What was the complement associated with 0 off 3 men killed and 0 off 2 men wounded? <|assistant|> SELECT "complement" FROM "table1_2596811_12" WHERE "killed"='0 off 3 men' AND "wounded"='0 off 2 men';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "key_characteristics_of_the_major_climati" ( "region" text, "land_area_km_2" text, "rainfall_by_depth_mm_year" real, "rainfall_by_volume_km_3_year" text, "surface_run_off_km_3_year" text, "infiltration_km_3_year" text, "evapotranspiration_km_3_year" text ); Question: How many regions had rainfall infiltration (km 3/year) of 9.3? <|assistant|> SELECT COUNT("rainfall_by_depth_mm_year") FROM "key_characteristics_of_the_major_climati" WHERE "infiltration_km_3_year"='9.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "key_characteristics_of_the_major_climati" ( "region" text, "land_area_km_2" text, "rainfall_by_depth_mm_year" real, "rainfall_by_volume_km_3_year" text, "surface_run_off_km_3_year" text, "infiltration_km_3_year" text, "evapotranspiration_km_3_year" text ); Question: What was the rainfall by volume in Huetar Atlantico where the rainfall depth (mm/year) was 3527? <|assistant|> SELECT "rainfall_by_volume_km_3_year" FROM "key_characteristics_of_the_major_climati" WHERE "rainfall_by_depth_mm_year"=3527;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "key_characteristics_of_the_major_climati" ( "region" text, "land_area_km_2" text, "rainfall_by_depth_mm_year" real, "rainfall_by_volume_km_3_year" text, "surface_run_off_km_3_year" text, "infiltration_km_3_year" text, "evapotranspiration_km_3_year" text ); Question: In Pacifico Central where the rainfall by depth (mm/year) was 2801 what was the rainfall by volume? <|assistant|> SELECT "rainfall_by_volume_km_3_year" FROM "key_characteristics_of_the_major_climati" WHERE "rainfall_by_depth_mm_year"=2801;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "key_characteristics_of_the_major_climati" ( "region" text, "land_area_km_2" text, "rainfall_by_depth_mm_year" real, "rainfall_by_volume_km_3_year" text, "surface_run_off_km_3_year" text, "infiltration_km_3_year" text, "evapotranspiration_km_3_year" text ); Question: In the region where the rainfall by volume (km 3 /year) was 13.2, what was the evapotranspiration (km 3 /year)? <|assistant|> SELECT "evapotranspiration_km_3_year" FROM "key_characteristics_of_the_major_climati" WHERE "rainfall_by_volume_km_3_year"='13.2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "key_characteristics_of_the_major_climati" ( "region" text, "land_area_km_2" text, "rainfall_by_depth_mm_year" real, "rainfall_by_volume_km_3_year" text, "surface_run_off_km_3_year" text, "infiltration_km_3_year" text, "evapotranspiration_km_3_year" text ); Question: In the Central region, what was the infiltration (km 3 /year)? <|assistant|> SELECT "infiltration_km_3_year" FROM "key_characteristics_of_the_major_climati" WHERE "region"='Central';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "key_characteristics_of_the_major_climati" ( "region" text, "land_area_km_2" text, "rainfall_by_depth_mm_year" real, "rainfall_by_volume_km_3_year" text, "surface_run_off_km_3_year" text, "infiltration_km_3_year" text, "evapotranspiration_km_3_year" text ); Question: In the Central region, where the land area (km 2) is 8,543.2, what was the rainfall by depth (mm/year)? <|assistant|> SELECT "rainfall_by_depth_mm_year" FROM "key_characteristics_of_the_major_climati" WHERE "land_area_km_2"='8,543.2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many wins did Parsons have in the year where his winnings were $90,700? <|assistant|> SELECT MAX("wins") FROM "nascar_sprint_cup_series" WHERE "winnings"='$90,700';<|endoftext|>