text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_4_2004" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the netflix code where the series and episode are 4-11? <|assistant|> SELECT "netflix" FROM "season_4_2004" WHERE "series_ep"='4-11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_21_2013" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is listed in segment b when segment c is artificial flowers? <|assistant|> SELECT "segment_b" FROM "season_21_2013" WHERE "segment_c"='Artificial Flowers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_21_2013" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What are the titles of segment c when segment d is motorcycle brake locks? <|assistant|> SELECT "segment_c" FROM "season_21_2013" WHERE "segment_d"='Motorcycle Brake Locks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_21_2013" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What are the titles of segment c for series episode is 21-08? <|assistant|> SELECT "segment_c" FROM "season_21_2013" WHERE "series_ep"='21-08';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_21_2013" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What are the titles of segment b when segment c is standby generators (part 1)? <|assistant|> SELECT "segment_b" FROM "season_21_2013" WHERE "segment_c"='Standby Generators (Part 1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_21_2013" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What are the titles of segment a for series episode 21-12? <|assistant|> SELECT "segment_a" FROM "season_21_2013" WHERE "series_ep"='21-12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_2003" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the number of episode for phyllo dough <|assistant|> SELECT COUNT("episode") FROM "season_3_2003" WHERE "segment_c"='Phyllo Dough';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_2003" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment d for combination locks <|assistant|> SELECT "segment_d" FROM "season_3_2003" WHERE "segment_a"='Combination Locks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_2003" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the series ep for s02e08 <|assistant|> SELECT "series_ep" FROM "season_3_2003" WHERE "netflix"='S02E08';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_2003" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment c for couscous <|assistant|> SELECT "segment_c" FROM "season_3_2003" WHERE "segment_b"='Couscous';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_2003" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment c for pottery <|assistant|> SELECT "segment_c" FROM "season_3_2003" WHERE "segment_b"='Pottery';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_2003" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment d for chicken <|assistant|> SELECT "segment_d" FROM "season_3_2003" WHERE "segment_c"='Chicken';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_6_2005_2006" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the Segment A for when Segment C is s Sailboard? <|assistant|> SELECT "segment_a" FROM "season_6_2005_2006" WHERE "segment_c"='s Sailboard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_6_2005_2006" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the Segment B when the Segment D is s Hammock? <|assistant|> SELECT "segment_b" FROM "season_6_2005_2006" WHERE "segment_d"='s Hammock';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_6_2005_2006" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the Netflix Episode when the Segment B is s Highlighter? <|assistant|> SELECT "netflix" FROM "season_6_2005_2006" WHERE "segment_b"='s Highlighter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "num" real, "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); Question: What is the location of #1? <|assistant|> SELECT "location" FROM "bowl_games" WHERE "num"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "num" real, "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); Question: What stadium was the 1994 Gator Bowl in? <|assistant|> SELECT "stadium" FROM "bowl_games" WHERE "bowl_game"='1994 Gator Bowl';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "num" real, "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); Question: What is the stadium where the attendance was 75,406? <|assistant|> SELECT "stadium" FROM "bowl_games" WHERE "attendance"='75,406';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "num" real, "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); Question: What is the number of the bowl game when attendance was 79,280? <|assistant|> SELECT MAX("num") FROM "bowl_games" WHERE "attendance"='79,280';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "num" real, "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); Question: What was the attendance of the bowl game in Gainesville, Fl? <|assistant|> SELECT "attendance" FROM "bowl_games" WHERE "location"='Gainesville, FL';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_151994_1" ( "district" text, "population_2006_est" real, "area_km" text, "density_km" text, "median_monthly_per_capita_labour_force_income_hkd" text ); Question: Name the total number of median income for population 2006 for 365540 <|assistant|> SELECT COUNT("median_monthly_per_capita_labour_force_income_hkd") FROM "table1_151994_1" WHERE "population_2006_est"=365540;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "minor_competitions" ( "competition" text, "played" real, "derby_county" real, "draw" real, "nottingham_forest" real, "derby_county_goals" real, "nottingham_forest_goals" real ); Question: Name the minimum derby county goals <|assistant|> SELECT MIN("derby_county_goals") FROM "minor_competitions";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "minor_competitions" ( "competition" text, "played" real, "derby_county" real, "draw" real, "nottingham_forest" real, "derby_county_goals" real, "nottingham_forest_goals" real ); Question: Name the most derby county <|assistant|> SELECT MAX("derby_county") FROM "minor_competitions";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_9_2007" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: In episode 115 what is seen being made before British police helmets? <|assistant|> SELECT "segment_b" FROM "season_9_2007" WHERE "segment_c"='British Police Helmets';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_9_2007" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: How many times was leather introduced before pedal steel guitars in episode 111? <|assistant|> SELECT COUNT("segment_c") FROM "season_9_2007" WHERE "segment_d"='Pedal Steel Guitars';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "american_seafoods_company_fleet" ( "name" text, "length" text, "tonnage" real, "built_by" text, "year" real, "engines" text, "horsepowers" real, "former_names" text ); Question: Name the engines for state trust <|assistant|> SELECT "engines" FROM "american_seafoods_company_fleet" WHERE "former_names"='State Trust';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_15211468_1" ( "episode_no" text, "episode_title" text, "uk_broadcast_date" text, "presenter" text, "details_of_journey" text, "countries_visited" text ); Question: What are the details of the journey for the episode titled "Zambezi Express"? <|assistant|> SELECT "details_of_journey" FROM "table1_15211468_1" WHERE "episode_title"='\"Zambezi Express\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_15211468_1" ( "episode_no" text, "episode_title" text, "uk_broadcast_date" text, "presenter" text, "details_of_journey" text, "countries_visited" text ); Question: What was the UK broadcast date for the episode which visited USA? <|assistant|> SELECT "uk_broadcast_date" FROM "table1_15211468_1" WHERE "countries_visited"='USA';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_15211468_1" ( "episode_no" text, "episode_title" text, "uk_broadcast_date" text, "presenter" text, "details_of_journey" text, "countries_visited" text ); Question: What are the details of the journey for the episode titled "Deccan"? <|assistant|> SELECT "details_of_journey" FROM "table1_15211468_1" WHERE "episode_title"='\"Deccan\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_15211468_1" ( "episode_no" text, "episode_title" text, "uk_broadcast_date" text, "presenter" text, "details_of_journey" text, "countries_visited" text ); Question: What countries are visited in the episode presented by Brian B. Thompson? <|assistant|> SELECT "countries_visited" FROM "table1_15211468_1" WHERE "presenter"='Brian B. Thompson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_15211468_1" ( "episode_no" text, "episode_title" text, "uk_broadcast_date" text, "presenter" text, "details_of_journey" text, "countries_visited" text ); Question: What is the episode title for the episode numbered #1.4? <|assistant|> SELECT "episode_title" FROM "table1_15211468_1" WHERE "episode_no"='#1.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_election_results_1973_2003" ( "election" real, "labour" real, "conservative" real, "liberal" real, "social_democratic_party" real, "social_and_liberal_democrats_liberal_democrats" real, "independent" real, "green" real, "other" text, "control" text ); Question: Name the social democratic party for labour <|assistant|> SELECT "social_democratic_party" FROM "summary_of_election_results_1973_2003" WHERE "control"='Labour';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_election_results_1973_2003" ( "election" real, "labour" real, "conservative" real, "liberal" real, "social_democratic_party" real, "social_and_liberal_democrats_liberal_democrats" real, "independent" real, "green" real, "other" text, "control" text ); Question: Name the least leabour for social and liberal democrats being 14 <|assistant|> SELECT MIN("labour") FROM "summary_of_election_results_1973_2003" WHERE "social_and_liberal_democrats_liberal_democrats"=14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_15284274_1" ( "no_in_season" real, "no_disc" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: Who wrote episode 11, of which was directed by Will Waring? <|assistant|> SELECT "written_by" FROM "table1_15284274_1" WHERE "directed_by"='Will Waring' AND "no_in_season"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_15284274_1" ( "no_in_season" real, "no_disc" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: Who wrote the episode directed by Peter Woeste? <|assistant|> SELECT "written_by" FROM "table1_15284274_1" WHERE "directed_by"='Peter Woeste';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" real, "original_title" text, "english_title" text, "director" text, "result" text ); Question: Who was the director of Pecado Mortal <|assistant|> SELECT "director" FROM "submissions" WHERE "original_title"='Pecado Mortal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" real, "original_title" text, "english_title" text, "director" text, "result" text ); Question: What was the original title of the Bruno Barreto film in 1989 <|assistant|> SELECT "original_title" FROM "submissions" WHERE "director"='Bruno Barreto' AND "year_ceremony"=1989;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" real, "original_title" text, "english_title" text, "director" text, "result" text ); Question: What was the result for director Fernando Meirelles <|assistant|> SELECT "result" FROM "submissions" WHERE "director"='Fernando Meirelles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" real, "original_title" text, "english_title" text, "director" text, "result" text ); Question: Name the original title of the Suzana Amaral film <|assistant|> SELECT "original_title" FROM "submissions" WHERE "director"='Suzana Amaral';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "province" text, "prefecture" text, "county" text, "tujia_population" real, "pct_of_chinas_tujia_population" text ); Question: If 0.52% is the percentage of the population in chinas tujia what is the overall amount of tujia population? <|assistant|> SELECT COUNT("tujia_population") FROM "by_county" WHERE "pct_of_chinas_tujia_population"='0.52%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "province" text, "prefecture" text, "county" text, "tujia_population" real, "pct_of_chinas_tujia_population" text ); Question: When tujia population equals 388035 people and the % of the population is 4.83% which country is it? <|assistant|> SELECT "county" FROM "by_county" WHERE "pct_of_chinas_tujia_population"='4.83%' AND "tujia_population"=388035;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "province" text, "prefecture" text, "county" text, "tujia_population" real, "pct_of_chinas_tujia_population" text ); Question: When the tujia population is 462444 what is the overall percentage of the chinas tujia population? <|assistant|> SELECT "pct_of_chinas_tujia_population" FROM "by_county" WHERE "tujia_population"=462444;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "province" text, "prefecture" text, "county" text, "tujia_population" real, "pct_of_chinas_tujia_population" text ); Question: If the country is fenghuang how many provinces are there? <|assistant|> SELECT COUNT("province") FROM "by_county" WHERE "county"='Fenghuang';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "province" text, "prefecture" text, "county" text, "tujia_population" real, "pct_of_chinas_tujia_population" text ); Question: If yongshun is the county what is the overall percentage of the chinas tujia population? <|assistant|> SELECT "pct_of_chinas_tujia_population" FROM "by_county" WHERE "county"='Yongshun';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proposed_regions" ( "region" real, "group_a" text, "group_b" text, "group_c" text, "group_d" text, "group_e" text, "group_f" text ); Question: Who is in group a when indiana is in group d? <|assistant|> SELECT "group_a" FROM "proposed_regions" WHERE "group_d"='Indiana';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proposed_regions" ( "region" real, "group_a" text, "group_b" text, "group_c" text, "group_d" text, "group_e" text, "group_f" text ); Question: Who is in group a when indiana is in group d? <|assistant|> SELECT "group_a" FROM "proposed_regions" WHERE "group_d"='Indiana';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proposed_regions" ( "region" real, "group_a" text, "group_b" text, "group_c" text, "group_d" text, "group_e" text, "group_f" text ); Question: Who is in group c when wisconsin is in group d? <|assistant|> SELECT "group_c" FROM "proposed_regions" WHERE "group_d"='Wisconsin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proposed_regions" ( "region" real, "group_a" text, "group_b" text, "group_c" text, "group_d" text, "group_e" text, "group_f" text ); Question: Who is in group c when iowa is in group e? <|assistant|> SELECT "group_c" FROM "proposed_regions" WHERE "group_e"='Iowa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "no" real, "english_name" text, "bulgarian_name" text, "bulgarian_name_transliteration" text, "old_bulgarian_names" text, "old_bulgarian_name_transliteration" text, "old_bulgarian_name_meaning" text ); Question: Name the english name for orach, zarev <|assistant|> SELECT "english_name" FROM "see_also" WHERE "old_bulgarian_name_transliteration"='Orach, Zarev';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "no" real, "english_name" text, "bulgarian_name" text, "bulgarian_name_transliteration" text, "old_bulgarian_names" text, "old_bulgarian_name_transliteration" text, "old_bulgarian_name_meaning" text ); Question: Name the old bulgarian names for yuni <|assistant|> SELECT "old_bulgarian_names" FROM "see_also" WHERE "bulgarian_name_transliteration"='Yuni';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "no" real, "english_name" text, "bulgarian_name" text, "bulgarian_name_transliteration" text, "old_bulgarian_names" text, "old_bulgarian_name_transliteration" text, "old_bulgarian_name_meaning" text ); Question: Name the old bulgarian names for yanuari <|assistant|> SELECT "old_bulgarian_names" FROM "see_also" WHERE "bulgarian_name_transliteration"='Yanuari';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "no" real, "english_name" text, "bulgarian_name" text, "bulgarian_name_transliteration" text, "old_bulgarian_names" text, "old_bulgarian_name_transliteration" text, "old_bulgarian_name_meaning" text ); Question: Name the bulgarian name for mart <|assistant|> SELECT "bulgarian_name" FROM "see_also" WHERE "bulgarian_name_transliteration"='Mart';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "no" real, "english_name" text, "bulgarian_name" text, "bulgarian_name_transliteration" text, "old_bulgarian_names" text, "old_bulgarian_name_transliteration" text, "old_bulgarian_name_meaning" text ); Question: Name the old bulgarian name for ruen, ruy <|assistant|> SELECT "old_bulgarian_name_meaning" FROM "see_also" WHERE "old_bulgarian_name_transliteration"='Ruen, Ruy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "no" real, "english_name" text, "bulgarian_name" text, "bulgarian_name_transliteration" text, "old_bulgarian_names" text, "old_bulgarian_name_transliteration" text, "old_bulgarian_name_meaning" text ); Question: Name the old bulgarian name for number 4 <|assistant|> SELECT "old_bulgarian_name_meaning" FROM "see_also" WHERE "no"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "car_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: Who owned the team Jeremy Mayfield raced for? <|assistant|> SELECT "listed_owner_s" FROM "teams_and_drivers" WHERE "driver_s"='Jeremy Mayfield';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "car_s" text, "num" real, "driver_s" text, "primary_sponsor_s" text, "listed_owner_s" text, "crew_chief" text ); Question: Who is Jason Leffler's primary sponsor? <|assistant|> SELECT "primary_sponsor_s" FROM "teams_and_drivers" WHERE "driver_s"='Jason Leffler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership_by_stage" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "combination_classification" text, "team_classification" text ); Question: How many stages were there where the winner and the points classification were Alberto Contador? <|assistant|> SELECT COUNT("stage") FROM "classification_leadership_by_stage" WHERE "winner"='Alberto Contador' AND "points_classification"='Alberto Contador';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership_by_stage" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "combination_classification" text, "team_classification" text ); Question: When the winner was Alessandro Ballan, how many total team classifications were there? <|assistant|> SELECT COUNT("team_classification") FROM "classification_leadership_by_stage" WHERE "winner"='Alessandro Ballan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership_by_stage" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "combination_classification" text, "team_classification" text ); Question: When the team classification was quick step, what was the total number of general classifications? <|assistant|> SELECT COUNT("general_classification") FROM "classification_leadership_by_stage" WHERE "team_classification"='Quick Step';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: Who won the spanish grand prix? <|assistant|> SELECT "250cc_winner" FROM "grands_prix" WHERE "grand_prix"='Spanish Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: What is the date for the Indianapolis circuit? <|assistant|> SELECT "date" FROM "grands_prix" WHERE "circuit"='Indianapolis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "125cc_winner" text, "250cc_winner" text, "moto_gp_winner" text, "report" text ); Question: in round 9 who was the 250cc winner? <|assistant|> SELECT "250cc_winner" FROM "grands_prix" WHERE "round"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_15314901_1" ( "condition_parameter" text, "coordinate_velocity_v_dx_dt_in_units_of_c" text, "velocity_angle_in_i_radians" text, "proper_velocity_w_dx_d_in_units_of_c" text, "lorentz_factor_dt_d_e_mc_2" text ); Question: If the velocity angle is ln[(1 + √5)/2] β‰… 0.481, what is the condition/parameter? <|assistant|> SELECT "condition_parameter" FROM "table1_15314901_1" WHERE "velocity_angle_in_i_radians"='ln[(1 + √5)/2] β‰… 0.481';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_15314901_1" ( "condition_parameter" text, "coordinate_velocity_v_dx_dt_in_units_of_c" text, "velocity_angle_in_i_radians" text, "proper_velocity_w_dx_d_in_units_of_c" text, "lorentz_factor_dt_d_e_mc_2" text ); Question: If the the condition/parameter is rapidity of 2 hyperbolic radians, what is the coordinate velocity v dx/dt in units of c? <|assistant|> SELECT "coordinate_velocity_v_dx_dt_in_units_of_c" FROM "table1_15314901_1" WHERE "condition_parameter"='Rapidity of 2 hyperbolic radians';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_15314901_1" ( "condition_parameter" text, "coordinate_velocity_v_dx_dt_in_units_of_c" text, "velocity_angle_in_i_radians" text, "proper_velocity_w_dx_d_in_units_of_c" text, "lorentz_factor_dt_d_e_mc_2" text ); Question: If the coordinate velocity v dx/dt in units of c is (e 2 βˆ’ 1)/(e 2 + 1) β‰… 0.761, what is the velocity angle Ξ· in i-radians? <|assistant|> SELECT "velocity_angle_in_i_radians" FROM "table1_15314901_1" WHERE "coordinate_velocity_v_dx_dt_in_units_of_c"='(e 2 βˆ’ 1)/(e 2 + 1) β‰… 0.761';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_15314901_1" ( "condition_parameter" text, "coordinate_velocity_v_dx_dt_in_units_of_c" text, "velocity_angle_in_i_radians" text, "proper_velocity_w_dx_d_in_units_of_c" text, "lorentz_factor_dt_d_e_mc_2" text ); Question: What is the coordinate velocity v dx/dt in units of c total number if the velocity angle Ξ· in i-radians is ln[2 + √5] β‰… 1.444? <|assistant|> SELECT COUNT("coordinate_velocity_v_dx_dt_in_units_of_c") FROM "table1_15314901_1" WHERE "velocity_angle_in_i_radians"='ln[2 + √5] β‰… 1.444';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_15314901_1" ( "condition_parameter" text, "coordinate_velocity_v_dx_dt_in_units_of_c" text, "velocity_angle_in_i_radians" text, "proper_velocity_w_dx_d_in_units_of_c" text, "lorentz_factor_dt_d_e_mc_2" text ); Question: If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/dΟ„ in units of c? <|assistant|> SELECT "proper_velocity_w_dx_d_in_units_of_c" FROM "table1_15314901_1" WHERE "condition_parameter"='Rapidity of 1 hyperbolic radian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_15314901_1" ( "condition_parameter" text, "coordinate_velocity_v_dx_dt_in_units_of_c" text, "velocity_angle_in_i_radians" text, "proper_velocity_w_dx_d_in_units_of_c" text, "lorentz_factor_dt_d_e_mc_2" text ); Question: If the lorentz factor Ξ³ dt/dΟ„ = e/mc 2 is √5 β‰… 2.236, what is the proper velocity w dx/dΟ„ in units of c? <|assistant|> SELECT "proper_velocity_w_dx_d_in_units_of_c" FROM "table1_15314901_1" WHERE "lorentz_factor_dt_d_e_mc_2"='√5 β‰… 2.236';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: What year is dayton in class AAAA? <|assistant|> SELECT "school_year" FROM "individual" WHERE "class_aaaa"='Dayton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Who is in class during 1995-96? <|assistant|> SELECT "class_aaaaa" FROM "individual" WHERE "school_year"='1995-96';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winners_share" real ); Question: When are all years that tournament location is Western Turnpike Golf Course? <|assistant|> SELECT "year" FROM "winners" WHERE "tournament_location"='Western Turnpike Golf Course';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winners_share" real ); Question: When are all years that the champion is Ji Min Jeong? <|assistant|> SELECT "year" FROM "winners" WHERE "champion"='Ji Min Jeong';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winners_share" real ); Question: How much are all winners share ($) in the year 2004? <|assistant|> SELECT "winners_share" FROM "winners" WHERE "year"='2004';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winners_share" real ); Question: When are all dates in the year 2006? <|assistant|> SELECT COUNT("dates") FROM "winners" WHERE "year"='2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winners_share" real ); Question: When are all dates with a score of 205 (–8) in Australia? <|assistant|> SELECT "dates" FROM "winners" WHERE "score"='205 (–8)' AND "country"='Australia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winners_share" real ); Question: What are all of the dates in the country of Canada? <|assistant|> SELECT "dates" FROM "winners" WHERE "country"='Canada';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winners_share" real ); Question: When was Jenny Gleason the champion of the Northeast Delta Dental International? <|assistant|> SELECT "dates" FROM "winners" WHERE "champion"='Jenny Gleason';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winners_share" real ); Question: Where was the tournament located when Misun Cho won the championship? <|assistant|> SELECT "tournament_location" FROM "winners" WHERE "champion"='Misun Cho';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winners_share" real ); Question: What is the maximum purse prize of the Northeast Delta Dental International Championship? <|assistant|> SELECT MAX("purse") FROM "winners";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winners_share" real ); Question: How many prizes were available when Jenny Shin became the champion? <|assistant|> SELECT COUNT("purse") FROM "winners" WHERE "champion"='Jenny Shin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "won" real, "drawn" real, "lost" real, "for" real, "against" real, "difference" text ); Question: Which team had 21 points? <|assistant|> SELECT "team" FROM "campeonato_paulista" WHERE "points"=21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "won" real, "drawn" real, "lost" real, "for" real, "against" real, "difference" text ); Question: How many games did the team with 29 for win? <|assistant|> SELECT COUNT("won") FROM "campeonato_paulista" WHERE "for"=29;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "won" real, "drawn" real, "lost" real, "for" real, "against" real, "difference" text ); Question: How many games did Palmeiras win? <|assistant|> SELECT MAX("won") FROM "campeonato_paulista" WHERE "team"='Palmeiras';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "won" real, "drawn" real, "lost" real, "for" real, "against" real, "difference" text ); Question: Name the drawn when for is 41 <|assistant|> SELECT "drawn" FROM "campeonato_paulista" WHERE "for"=41;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "won" real, "drawn" real, "lost" real, "for" real, "against" real, "difference" text ); Question: Name the number of lost for against being 46 <|assistant|> SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "against"=46;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "won" real, "drawn" real, "lost" real, "for" real, "against" real, "difference" text ); Question: Name the number of against for portuguesa santista <|assistant|> SELECT COUNT("against") FROM "campeonato_paulista" WHERE "team"='Portuguesa Santista';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "won" real, "drawn" real, "lost" real, "for" real, "against" real, "difference" text ); Question: Name the won for difference being 33 <|assistant|> SELECT "won" FROM "campeonato_paulista" WHERE "difference"='33';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "won" real, "drawn" real, "lost" real, "for" real, "against" real, "difference" text ); Question: Name the most losst for corinthians <|assistant|> SELECT MIN("lost") FROM "campeonato_paulista" WHERE "team"='Corinthians';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standard_parameters" ( "region" text, "start_datum" text, "target_datum" text, "c_x_metre" text, "c_y_metre" text, "c_z_metre" text, "s_ppm" text, "r_x_arcsecond" text, "r_y_arcsecond" text, "r_z_arcsecond" text ); Question: How many values of r z (arcsecond) correspond with a r y (arcsecond) value of βˆ’0.247? <|assistant|> SELECT "r_z_arcsecond" FROM "standard_parameters" WHERE "r_y_arcsecond"='βˆ’0.247';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standard_parameters" ( "region" text, "start_datum" text, "target_datum" text, "c_x_metre" text, "c_y_metre" text, "c_z_metre" text, "s_ppm" text, "r_x_arcsecond" text, "r_y_arcsecond" text, "r_z_arcsecond" text ); Question: How many values of r z(arcsecond) are associated with a target datum of Ireland 1965? <|assistant|> SELECT "r_z_arcsecond" FROM "standard_parameters" WHERE "target_datum"='Ireland 1965';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography_and_ethnic_background" ( "census_year" real, "number_of_muslims_000" real, "population_of_england_and_wales_000" real, "muslim_pct_of_total_population" text, "registered_mosques" real, "muslims_per_mosque" real ); Question: What is the muslim percentage of the 49634 population of england and wales 000? <|assistant|> SELECT "muslim_pct_of_total_population" FROM "demography_and_ethnic_background" WHERE "population_of_england_and_wales_000"=49634;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography_and_ethnic_background" ( "census_year" real, "number_of_muslims_000" real, "population_of_england_and_wales_000" real, "muslim_pct_of_total_population" text, "registered_mosques" real, "muslims_per_mosque" real ); Question: What is the most recent census year? <|assistant|> SELECT MAX("census_year") FROM "demography_and_ethnic_background";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography_and_ethnic_background" ( "census_year" real, "number_of_muslims_000" real, "population_of_england_and_wales_000" real, "muslim_pct_of_total_population" text, "registered_mosques" real, "muslims_per_mosque" real ); Question: What was the percentage of muslims during a time where there were 614 registered mosques? <|assistant|> SELECT "muslim_pct_of_total_population" FROM "demography_and_ethnic_background" WHERE "registered_mosques"=614;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: Name the most pa for ontario <|assistant|> SELECT MAX("pa") FROM "standings" WHERE "locale"='Ontario';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: Name the ends lost for 67 pa <|assistant|> SELECT "ends_lost" FROM "standings" WHERE "pa"=67;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: Name the most w when ends lost is 49 <|assistant|> SELECT MAX("w") FROM "standings" WHERE "ends_lost"=49;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: Name the number ends won when L is 4 and stolen ends is 17 <|assistant|> SELECT COUNT("ends_won") FROM "standings" WHERE "l"=4 AND "stolen_ends"=17;<|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: What day was Jeld-Wen Tradition held? <|assistant|> SELECT "date" FROM "tournament_results" WHERE "tournament"='JELD-WEN Tradition';<|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: What day did Bernhard Langer (2) win? <|assistant|> SELECT "date" FROM "tournament_results" WHERE "winner"='Bernhard Langer (2)';<|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: On what day was the tournament in Alabama? <|assistant|> SELECT "date" FROM "tournament_results" WHERE "location"='Alabama';<|endoftext|>