text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23649244_1" ( "song_1_title" text, "artist_1" text, "song_2_title" text, "artist_2" text, "mix_artist" text, "guitar_part" text, "level" text ); Question: Which mix artists have shlomo as artist 1? <|assistant|> SELECT "mix_artist" FROM "table1_23649244_1" WHERE "artist_1"='Shlomo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_league_1951_present" ( "season" real, "champion" text, "count" real, "runners_up" text, "third_place" text, "top_scorer" text, "top_scorers_club" text, "goals" text ); Question: How many season had Melgar as a champion? <|assistant|> SELECT COUNT("season") FROM "professional_league_1951_present" WHERE "champion"='Melgar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_league_1951_present" ( "season" real, "champion" text, "count" real, "runners_up" text, "third_place" text, "top_scorer" text, "top_scorers_club" text, "goals" text ); Question: What year was the season with the top scoring club being Sporting Cristal and the champion was Universitario? <|assistant|> SELECT "season" FROM "professional_league_1951_present" WHERE "top_scorers_club"='Sporting Cristal' AND "champion"='Universitario';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_league_1951_present" ( "season" real, "champion" text, "count" real, "runners_up" text, "third_place" text, "top_scorer" text, "top_scorers_club" text, "goals" text ); Question: Who was in third place in the 1980 season? <|assistant|> SELECT "third_place" FROM "professional_league_1951_present" WHERE "season"=1980;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: Name the open cup for usl pdl for did not qualify <|assistant|> SELECT "open_cup" FROM "year_by_year" WHERE "league"='USL PDL' AND "playoffs"='Did not qualify';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: Name the total number of open cup for 1996 <|assistant|> SELECT COUNT("open_cup") FROM "year_by_year" WHERE "year"=1996;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: Name the open cup for division finals <|assistant|> SELECT "open_cup" FROM "year_by_year" WHERE "playoffs"='Division Finals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: Name the position for 2.16 <|assistant|> SELECT "position" FROM "fiba_euro_basket_2009_squads" WHERE "height_m"='2.16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: Name the number for 1.96 height <|assistant|> SELECT "no" FROM "fiba_euro_basket_2009_squads" WHERE "height_m"='1.96';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: Name the height for number 7 <|assistant|> SELECT "height_m" FROM "fiba_euro_basket_2009_squads" WHERE "no"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: name the player for number 5 <|assistant|> SELECT "player" FROM "fiba_euro_basket_2009_squads" WHERE "no"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: Identify every player's height in meters if the player is exactly 6' 07" tall in feet <|assistant|> SELECT "height_m" FROM "fiba_euro_basket_2009_squads" WHERE "height_f"='6'' 07\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: For all players playing at the center, list the height in feet. <|assistant|> SELECT "height_f" FROM "fiba_euro_basket_2009_squads" WHERE "position"='Center';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: Display the serial numbers for the players who play at the center. <|assistant|> SELECT "no" FROM "fiba_euro_basket_2009_squads" WHERE "position"='Center';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: What is the date of birth for basket baller called ido kozikaro <|assistant|> SELECT MAX("year_born") FROM "fiba_euro_basket_2009_squads" WHERE "player"='Ido Kozikaro';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: How many positions are available for players who are 6' 07"? <|assistant|> SELECT COUNT("position") FROM "fiba_euro_basket_2009_squads" WHERE "height_f"='6'' 07\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: How tall is the basket ball player lior eliyahu in meters? <|assistant|> SELECT "height_m" FROM "fiba_euro_basket_2009_squads" WHERE "player"='Lior Eliyahu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "averages" ( "rank_by_average" real, "place" real, "couple" text, "total_points_earned" real, "number_of_dances" real, "average" text ); Question: What was the average score for the couple that had 4 dances? <|assistant|> SELECT "average" FROM "averages" WHERE "number_of_dances"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "averages" ( "rank_by_average" real, "place" real, "couple" text, "total_points_earned" real, "number_of_dances" real, "average" text ); Question: How many averages were listed for the couple who had 12 dances? <|assistant|> SELECT COUNT("average") FROM "averages" WHERE "number_of_dances"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "averages" ( "rank_by_average" real, "place" real, "couple" text, "total_points_earned" real, "number_of_dances" real, "average" text ); Question: How many total points were earned from the couple that averaged 29.0 points? <|assistant|> SELECT MAX("total_points_earned") FROM "averages" WHERE "average"='29.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23667534_1" ( "episode_title" text, "song_s_title" text, "writer" text, "singer_s" text, "album_s" text ); Question: What album was the song It's going so badly on? <|assistant|> SELECT "album_s" FROM "table1_23667534_1" WHERE "song_s_title"='It''s Going So Badly';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23667534_1" ( "episode_title" text, "song_s_title" text, "writer" text, "singer_s" text, "album_s" text ); Question: What album was the song My Chariot on? <|assistant|> SELECT "album_s" FROM "table1_23667534_1" WHERE "song_s_title"='My Chariot';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23667534_1" ( "episode_title" text, "song_s_title" text, "writer" text, "singer_s" text, "album_s" text ); Question: Who sand He's Bigfoot? <|assistant|> SELECT "singer_s" FROM "table1_23667534_1" WHERE "song_s_title"='He''s Bigfoot';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23667534_1" ( "episode_title" text, "song_s_title" text, "writer" text, "singer_s" text, "album_s" text ); Question: What album was the song Shimmy Jimmy from the episode titled Toy to the world on? <|assistant|> SELECT "album_s" FROM "table1_23667534_1" WHERE "episode_title"='Toy to the World' AND "song_s_title"='Shimmy Jimmy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: which players have a height of 2.07m? <|assistant|> SELECT "player" FROM "fiba_euro_basket_2009_squads" WHERE "height_m"='2.07';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: Which clubs have players with height 2.14m? <|assistant|> SELECT "current_club" FROM "fiba_euro_basket_2009_squads" WHERE "height_m"='2.14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: Which players were born in 1983 and play as forward position? <|assistant|> SELECT "player" FROM "fiba_euro_basket_2009_squads" WHERE "year_born"=1983 AND "position"='Forward';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: What is every current club for the player Artūrs Štālbergs? <|assistant|> SELECT "current_club" FROM "fiba_euro_basket_2009_squads" WHERE "player"='Artūrs Štālbergs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: How many players have a height of 2.07? <|assistant|> SELECT COUNT("player") FROM "fiba_euro_basket_2009_squads" WHERE "height_m"='2.07';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: What is the latest year born when the current club is Barons LMT? <|assistant|> SELECT MAX("year_born") FROM "fiba_euro_basket_2009_squads" WHERE "current_club"='Barons LMT';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: How many current clubs have the player Aigars Vitols? <|assistant|> SELECT COUNT("current_club") FROM "fiba_euro_basket_2009_squads" WHERE "player"='Aigars Vitols';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: What is every year born for height of 1.88? <|assistant|> SELECT "year_born" FROM "fiba_euro_basket_2009_squads" WHERE "height_m"='1.88';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2009_squads" ( "no" real, "player" text, "height_m" text, "height_f" text, "position" text, "year_born" real, "current_club" text ); Question: What is every number when the player is Aigars Vitols? <|assistant|> SELECT "no" FROM "fiba_euro_basket_2009_squads" WHERE "player"='Aigars Vitols';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "enrollment" ( "year" text, "district_wide" real, "high_schools" real, "middle_schools" real, "elementary_schools" real, "other_programs_adjustments" real ); Question: Name the most high schools for 31851 <|assistant|> SELECT MAX("high_schools") FROM "enrollment" WHERE "district_wide"=31851;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "enrollment" ( "year" text, "district_wide" real, "high_schools" real, "middle_schools" real, "elementary_schools" real, "other_programs_adjustments" real ); Question: Name the most district wide for 1639 other programs <|assistant|> SELECT MAX("district_wide") FROM "enrollment" WHERE "other_programs_adjustments"=1639;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "enrollment" ( "year" text, "district_wide" real, "high_schools" real, "middle_schools" real, "elementary_schools" real, "other_programs_adjustments" real ); Question: Name the total number of elementary schools for 31851 <|assistant|> SELECT COUNT("elementary_schools") FROM "enrollment" WHERE "district_wide"=31851;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "enrollment" ( "year" text, "district_wide" real, "high_schools" real, "middle_schools" real, "elementary_schools" real, "other_programs_adjustments" real ); Question: Name the most middle schools for 2005-2006 <|assistant|> SELECT MAX("middle_schools") FROM "enrollment" WHERE "year"='2005-2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_polling" ( "party" text, "result_parliam_election_2005" text, "result_county_elections_2007" text, "aug_2008" text, "sep_2008" text, "oct_2008" text, "nov_2008" text, "dec_2008" text, "jan_2009" text, "feb_2009" text, "mar_2009" text, "apr_2009" text, "may_2009" text, "jun_2009" text, "jul_2009" text, "aug_2009" text ); Question: If the polling average in July 2009 was 7.2%, what was it in May 2009? <|assistant|> SELECT "may_2009" FROM "average_polling" WHERE "jul_2009"='7.2%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_polling" ( "party" text, "result_parliam_election_2005" text, "result_county_elections_2007" text, "aug_2008" text, "sep_2008" text, "oct_2008" text, "nov_2008" text, "dec_2008" text, "jan_2009" text, "feb_2009" text, "mar_2009" text, "apr_2009" text, "may_2009" text, "jun_2009" text, "jul_2009" text, "aug_2009" text ); Question: What was the polling average in Aug 2009 when is was 5.0% in Sep 2009? <|assistant|> SELECT "aug_2008" FROM "average_polling" WHERE "sep_2008"='5.0%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_polling" ( "party" text, "result_parliam_election_2005" text, "result_county_elections_2007" text, "aug_2008" text, "sep_2008" text, "oct_2008" text, "nov_2008" text, "dec_2008" text, "jan_2009" text, "feb_2009" text, "mar_2009" text, "apr_2009" text, "may_2009" text, "jun_2009" text, "jul_2009" text, "aug_2009" text ); Question: How many polling percentages were there in October 2008 when is was 30.8% in Aug 2008? <|assistant|> SELECT COUNT("oct_2008") FROM "average_polling" WHERE "aug_2008"='30.8%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_polling" ( "party" text, "result_parliam_election_2005" text, "result_county_elections_2007" text, "aug_2008" text, "sep_2008" text, "oct_2008" text, "nov_2008" text, "dec_2008" text, "jan_2009" text, "feb_2009" text, "mar_2009" text, "apr_2009" text, "may_2009" text, "jun_2009" text, "jul_2009" text, "aug_2009" text ); Question: Name the party/s when the polling percentage was 6.3% in Dec 2008. <|assistant|> SELECT "party" FROM "average_polling" WHERE "dec_2008"='6.3%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_polling" ( "party" text, "result_parliam_election_2005" text, "result_county_elections_2007" text, "aug_2008" text, "sep_2008" text, "oct_2008" text, "nov_2008" text, "dec_2008" text, "jan_2009" text, "feb_2009" text, "mar_2009" text, "apr_2009" text, "may_2009" text, "jun_2009" text, "jul_2009" text, "aug_2009" text ); Question: What was the polling percentage in Jul 2009 when the Parliament Election result of 2005 was 6.5%? <|assistant|> SELECT "jul_2009" FROM "average_polling" WHERE "result_parliam_election_2005"='6.5%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_polling" ( "party" text, "result_parliam_election_2005" text, "result_county_elections_2007" text, "aug_2008" text, "sep_2008" text, "oct_2008" text, "nov_2008" text, "dec_2008" text, "jan_2009" text, "feb_2009" text, "mar_2009" text, "apr_2009" text, "may_2009" text, "jun_2009" text, "jul_2009" text, "aug_2009" text ); Question: What was the polling percentage in Nov 2008 when it was 1.7% in Aug 2008? <|assistant|> SELECT "nov_2008" FROM "average_polling" WHERE "aug_2008"='1.7%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_polling" ( "party" text, "week_32" text, "week_33" text, "week_34" text, "week_35" text, "week_36" text, "week_37" text ); Question: What is the week 32 result when week 33 is 31.9%? <|assistant|> SELECT "week_32" FROM "average_polling" WHERE "week_33"='31.9%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_polling" ( "party" text, "week_32" text, "week_33" text, "week_34" text, "week_35" text, "week_36" text, "week_37" text ); Question: List all week 37 results when week 33 is 14.3%. <|assistant|> SELECT "week_37" FROM "average_polling" WHERE "week_33"='14.3%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_polling" ( "party" text, "week_32" text, "week_33" text, "week_34" text, "week_35" text, "week_36" text, "week_37" text ); Question: List the full amount of week 36 results when week 32 is 13.2%. <|assistant|> SELECT COUNT("week_36") FROM "average_polling" WHERE "week_32"='13.2%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23685890_2" ( "local_government_area" text, "type" text, "major_town" text, "land_area_km" text, "pop_2006" real, "density_km_2" real, "towns" real, "est" real ); Question: On what year was the local government area with a surface of 4563 square kilometers established? <|assistant|> SELECT "est" FROM "table1_23685890_2" WHERE "land_area_km"='4563';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23685890_2" ( "local_government_area" text, "type" text, "major_town" text, "land_area_km" text, "pop_2006" real, "density_km_2" real, "towns" real, "est" real ); Question: Which major town is located within the Outback Areas Community Development Trust? <|assistant|> SELECT "major_town" FROM "table1_23685890_2" WHERE "local_government_area"='Outback Areas Community Development Trust';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23685890_2" ( "local_government_area" text, "type" text, "major_town" text, "land_area_km" text, "pop_2006" real, "density_km_2" real, "towns" real, "est" real ); Question: How many towns exist on the government area with a surface of 110 square kilometers? <|assistant|> SELECT MIN("towns") FROM "table1_23685890_2" WHERE "land_area_km"='110';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23685890_2" ( "local_government_area" text, "type" text, "major_town" text, "land_area_km" text, "pop_2006" real, "density_km_2" real, "towns" real, "est" real ); Question: What type of local government area is Yalata? <|assistant|> SELECT "type" FROM "table1_23685890_2" WHERE "local_government_area"='Yalata';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23685890_2" ( "local_government_area" text, "type" text, "major_town" text, "land_area_km" text, "pop_2006" real, "density_km_2" real, "towns" real, "est" real ); Question: What was the 2006 population count of the local government area where Coober Pedy is located? <|assistant|> SELECT "pop_2006" FROM "table1_23685890_2" WHERE "major_town"='Coober Pedy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: During what week was the game attended by 20114 people? <|assistant|> SELECT MAX("week") FROM "schedule" WHERE "attendance"=20114;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: What was the record in game played on July 28? <|assistant|> SELECT "record" FROM "schedule" WHERE "date"='July 28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text ); Question: What was the record in the game against Eskimos? <|assistant|> SELECT "record" FROM "schedule" WHERE "opponent"='Eskimos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "name" text, "starting_chip_count" real, "wsop_bracelets" real, "wsop_cashes" real, "wsop_earnings" text, "final_place" text, "prize" text ); Question: Whose WSOP earnings were $36,372? <|assistant|> SELECT "name" FROM "2012" WHERE "wsop_earnings"='$36,372';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "name" text, "starting_chip_count" real, "wsop_bracelets" real, "wsop_cashes" real, "wsop_earnings" text, "final_place" text, "prize" text ); Question: The person who had 0 WSOP earnings had how man WSOP cashes? <|assistant|> SELECT "wsop_cashes" FROM "2012" WHERE "wsop_earnings"='0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "name" text, "starting_chip_count" real, "wsop_bracelets" real, "wsop_cashes" real, "wsop_earnings" text, "final_place" text, "prize" text ); Question: Who had 2 WSOP cashes and was 6th in final place? <|assistant|> SELECT "name" FROM "2012" WHERE "wsop_cashes"=2 AND "final_place"='6th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "name" text, "starting_chip_count" real, "wsop_bracelets" real, "wsop_cashes" real, "wsop_earnings" text, "final_place" text, "prize" text ); Question: What is the smallest amount of WSOP bracelets anyone had? <|assistant|> SELECT MIN("wsop_bracelets") FROM "2012";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "name" text, "starting_chip_count" real, "wsop_bracelets" real, "wsop_cashes" real, "wsop_earnings" text, "final_place" text, "prize" text ); Question: The person who had $126,796 WSOP earnings had how many WSOP cashes? <|assistant|> SELECT "wsop_cashes" FROM "2012" WHERE "wsop_earnings"='$126,796';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_237036_2" ( "level" text, "luma_samples_s" real, "macroblocks_s" real, "luma_samples" real, "macroblocks" real, "baseline_extended_and_main_profiles" real, "high_profile" real, "high_10_profile" real, "examples_for_high_resolution_highest_frame_rate_max_stored_frames_toggle_additional_details" text ); Question: What is the high 10 profile number when the high profile is 80? <|assistant|> SELECT MAX("high_10_profile") FROM "table1_237036_2" WHERE "high_profile"=80;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_237036_2" ( "level" text, "luma_samples_s" real, "macroblocks_s" real, "luma_samples" real, "macroblocks" real, "baseline_extended_and_main_profiles" real, "high_profile" real, "high_10_profile" real, "examples_for_high_resolution_highest_frame_rate_max_stored_frames_toggle_additional_details" text ); Question: What is the baseline extended and main profiles when level is 1.3? <|assistant|> SELECT MIN("baseline_extended_and_main_profiles") FROM "table1_237036_2" WHERE "level"='1.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_237036_2" ( "level" text, "luma_samples_s" real, "macroblocks_s" real, "luma_samples" real, "macroblocks" real, "baseline_extended_and_main_profiles" real, "high_profile" real, "high_10_profile" real, "examples_for_high_resolution_highest_frame_rate_max_stored_frames_toggle_additional_details" text ); Question: What level has 11880 macroblocks and high 10 profile is 6000? <|assistant|> SELECT "level" FROM "table1_237036_2" WHERE "macroblocks_s"=11880 AND "high_10_profile"=6000;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_237036_2" ( "level" text, "luma_samples_s" real, "macroblocks_s" real, "luma_samples" real, "macroblocks" real, "baseline_extended_and_main_profiles" real, "high_profile" real, "high_10_profile" real, "examples_for_high_resolution_highest_frame_rate_max_stored_frames_toggle_additional_details" text ); Question: What are the luma samples at level 1.3? <|assistant|> SELECT "luma_samples_s" FROM "table1_237036_2" WHERE "level"='1.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_237036_2" ( "level" text, "luma_samples_s" real, "macroblocks_s" real, "luma_samples" real, "macroblocks" real, "baseline_extended_and_main_profiles" real, "high_profile" real, "high_10_profile" real, "examples_for_high_resolution_highest_frame_rate_max_stored_frames_toggle_additional_details" text ); Question: What is the high 10 profile when high profile is 160? <|assistant|> SELECT "high_10_profile" FROM "table1_237036_2" WHERE "high_profile"=160;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23705843_1" ( "episode" text, "director" text, "writer" text, "original_air_date" text, "ratings_millions" text ); Question: What is the original air date if the ratings is 1.92 million? <|assistant|> SELECT "original_air_date" FROM "table1_23705843_1" WHERE "ratings_millions"='1.92';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23705843_1" ( "episode" text, "director" text, "writer" text, "original_air_date" text, "ratings_millions" text ); Question: What is the name of the writer when the ratings was 2.61 million? <|assistant|> SELECT "writer" FROM "table1_23705843_1" WHERE "ratings_millions"='2.61';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2370579_1" ( "episode_num" real, "prod_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "filmed" text ); Question: What date did the episode "the killing (part two)" originally air? <|assistant|> SELECT "originalairdate" FROM "table1_2370579_1" WHERE "title"='\"The Killing (part two)\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2370579_1" ( "episode_num" real, "prod_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "filmed" text ); Question: Who directed the episode written by Tony O'Grady (pseudonym of brian clemens)? <|assistant|> SELECT "directed_by" FROM "table1_2370579_1" WHERE "written_by"='Tony O''Grady (pseudonym of Brian Clemens)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2370579_1" ( "episode_num" real, "prod_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "filmed" text ); Question: What is the production number for episode 23? <|assistant|> SELECT MIN("prod_num") FROM "table1_2370579_1" WHERE "episode_num"=23;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2370579_1" ( "episode_num" real, "prod_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "filmed" text ); Question: What month and year was "storm warning (part one)" filmed? <|assistant|> SELECT "filmed" FROM "table1_2370579_1" WHERE "title"='\"Storm Warning (part one)\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "future_tense" ( "aromanian_gramustean_farshirot" text, "romanian_archaic" text, "romanian_colloquial" text, "romanian_modern" text, "english" text ); Question: What is the colloquial translation of (s)he will sing? <|assistant|> SELECT "romanian_colloquial" FROM "future_tense" WHERE "english"='(s)he will sing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "matchup_results" text, "attendance" real, "payout_us" text ); Question: What was the date of the game played in El Paso, Texas? <|assistant|> SELECT "date" FROM "bowl_games" WHERE "city"='El Paso, Texas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "matchup_results" text, "attendance" real, "payout_us" text ); Question: How many different matchup/results appear in San Diego, California? <|assistant|> SELECT COUNT("matchup_results") FROM "bowl_games" WHERE "city"='San Diego, California';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "matchup_results" text, "attendance" real, "payout_us" text ); Question: How many different items appear in the television column when the results where Iowa State 14, Minnesota 13? <|assistant|> SELECT COUNT("television") FROM "bowl_games" WHERE "matchup_results"='Iowa State 14, Minnesota 13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "matchup_results" text, "attendance" real, "payout_us" text ); Question: How many different items appear in he attendance column at Sun Devil Stadium? <|assistant|> SELECT COUNT("attendance") FROM "bowl_games" WHERE "stadium"='Sun Devil Stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "matchup_results" text, "attendance" real, "payout_us" text ); Question: In what bowl game was the result Oklahoma 31, Stanford 27? <|assistant|> SELECT "bowl_game" FROM "bowl_games" WHERE "matchup_results"='Oklahoma 31, Stanford 27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "matchup_results" text, "attendance" real, "payout_us" text ); Question: What was the television that was dated December 28, 2009? <|assistant|> SELECT "television" FROM "bowl_games" WHERE "date"='December 28, 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "manufacturer_s_worldwide_ranking" ( "rank" real, "company_name" text, "2008_rank" text, "2009_revenue" text, "north_american_brands" text, "world_headquarters" text, "country" text ); Question: Which rank has a 2009 revenue of $296,000,000? <|assistant|> SELECT "rank" FROM "manufacturer_s_worldwide_ranking" WHERE "2009_revenue"='$296,000,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "manufacturer_s_worldwide_ranking" ( "rank" real, "company_name" text, "2008_rank" text, "2009_revenue" text, "north_american_brands" text, "world_headquarters" text, "country" text ); Question: Which country has doosan infracore as then company name? <|assistant|> SELECT "country" FROM "manufacturer_s_worldwide_ranking" WHERE "company_name"='Doosan Infracore';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "manufacturer_s_worldwide_ranking" ( "rank" real, "company_name" text, "2008_rank" text, "2009_revenue" text, "north_american_brands" text, "world_headquarters" text, "country" text ); Question: How many north american brands have world headquarters in sagamihara? <|assistant|> SELECT COUNT("north_american_brands") FROM "manufacturer_s_worldwide_ranking" WHERE "world_headquarters"='Sagamihara';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "manufacturer_s_worldwide_ranking" ( "rank" real, "company_name" text, "2008_rank" text, "2009_revenue" text, "north_american_brands" text, "world_headquarters" text, "country" text ); Question: Which company name has headquarters in nagaokakyo, kyoto? <|assistant|> SELECT "company_name" FROM "manufacturer_s_worldwide_ranking" WHERE "world_headquarters"='Nagaokakyo, Kyoto';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "manufacturer_s_worldwide_ranking" ( "rank" real, "company_name" text, "2008_rank" text, "2009_revenue" text, "north_american_brands" text, "world_headquarters" text, "country" text ); Question: Which company name has a 2008 rank of n/a? <|assistant|> SELECT COUNT("company_name") FROM "manufacturer_s_worldwide_ranking" WHERE "2008_rank"='N/A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "vehicle_code" text, "bore_mm" text, "stroke_mm" text, "capacity_cm_3" real, "compression_ratio" text, "torque_n_m" real, "power_hp" real ); Question: what is the bore where the vehicle code is t214? <|assistant|> SELECT "bore_mm" FROM "engines" WHERE "vehicle_code"='T214';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "vehicle_code" text, "bore_mm" text, "stroke_mm" text, "capacity_cm_3" real, "compression_ratio" text, "torque_n_m" real, "power_hp" real ); Question: what is the compression ratio whre the torque is 208? <|assistant|> SELECT "compression_ratio" FROM "engines" WHERE "torque_n_m"=208;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "vehicle_code" text, "bore_mm" text, "stroke_mm" text, "capacity_cm_3" real, "compression_ratio" text, "torque_n_m" real, "power_hp" real ); Question: what is the vehicle code where the bore is 79.4? <|assistant|> SELECT "vehicle_code" FROM "engines" WHERE "bore_mm"='79.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "vehicle_code" text, "bore_mm" text, "stroke_mm" text, "capacity_cm_3" real, "compression_ratio" text, "torque_n_m" real, "power_hp" real ); Question: what is the stroke where the vehicle code is t211? <|assistant|> SELECT "stroke_mm" FROM "engines" WHERE "vehicle_code"='T211';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2010" ( "no" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real ); Question: What was the rating/share for 18-49 for the episode that had 5.90 million viewers? <|assistant|> SELECT "rating_share_18_49" FROM "season_1_2010" WHERE "viewers_millions"='5.90';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2010" ( "no" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real ); Question: What was the title of episode 3? <|assistant|> SELECT "episode" FROM "season_1_2010" WHERE "no"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2010" ( "no" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real ); Question: What number episode had a rating of 4.7? <|assistant|> SELECT MIN("no") FROM "season_1_2010" WHERE "rating"='4.7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2010" ( "no" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real ); Question: What was the share for the "Lisa Kudrow" episode? <|assistant|> SELECT MIN("share") FROM "season_1_2010" WHERE "episode"='\"Lisa Kudrow\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2010" ( "no" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real ); Question: What was the rating for the episode that had 5.90 million viewers? <|assistant|> SELECT "rating" FROM "season_1_2010" WHERE "viewers_millions"='5.90';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2010" ( "no" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real ); Question: What number episode had a 4.2 rating? <|assistant|> SELECT MIN("no") FROM "season_1_2010" WHERE "rating"='4.2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_year" ( "year" real, "winner_number_of_titles" text, "runners_up" text, "top_team_in_regular_season_points" text, "top_scorer_points" text, "winning_coach" text ); Question: What is the winning coach total number if the top team in regular season (points) is the Kansas City Spurs (110 points)? <|assistant|> SELECT COUNT("winning_coach") FROM "by_year" WHERE "top_team_in_regular_season_points"='Kansas City Spurs (110 points)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_year" ( "year" real, "winner_number_of_titles" text, "runners_up" text, "top_team_in_regular_season_points" text, "top_scorer_points" text, "winning_coach" text ); Question: If the top team in regular season (points) is the New York Cosmos (200 points), what is the winner (number of titles)? <|assistant|> SELECT "winner_number_of_titles" FROM "by_year" WHERE "top_team_in_regular_season_points"='New York Cosmos (200 points)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_year" ( "year" real, "winner_number_of_titles" text, "runners_up" text, "top_team_in_regular_season_points" text, "top_scorer_points" text, "winning_coach" text ); Question: If the runner-up is the Fort Lauderdale Strikers, what is the winner (number of titles)? <|assistant|> SELECT "winner_number_of_titles" FROM "by_year" WHERE "runners_up"='Fort Lauderdale Strikers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23777640_1" ( "administrative_district" text, "ds_divisions" real, "gn_divisions" real, "total_area_km_2" real, "land_area_km_2" real, "sri_lankan_tamil" real, "sri_lankan_moors" real, "sinhalese" real, "indian_tamil" real, "other" real, "total" real, "population_density_km_2" real ); Question: How many figures for Other in the district where the GN division is 95? <|assistant|> SELECT COUNT("other") FROM "table1_23777640_1" WHERE "gn_divisions"=95;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in_operation" ( "rank" real, "operators_name" text, "technology" text, "subscribers_in_millions" text, "ownership" text, "market_share" text ); Question: What was the market share of the operator whose technology is CDMA EVDO GSM EDGE HSPA+? <|assistant|> SELECT "market_share" FROM "in_operation" WHERE "technology"='CDMA EVDO GSM EDGE HSPA+';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "in_operation" ( "rank" real, "operators_name" text, "technology" text, "subscribers_in_millions" text, "ownership" text, "market_share" text ); Question: What was the rank of operator whose technology is CDMA EVDO? <|assistant|> SELECT MIN("rank") FROM "in_operation" WHERE "technology"='CDMA EVDO';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23793770_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: What was the production code for the episode directed by Michael Morris? <|assistant|> SELECT MIN("production_code") FROM "table1_23793770_1" WHERE "directed_by"='Michael Morris';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23793770_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Question: What is the title the episode directed by Allison Liddi-Brown? <|assistant|> SELECT "title" FROM "table1_23793770_1" WHERE "directed_by"='Allison Liddi-Brown';<|endoftext|>