text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_awards" ( "year" real, "award" text, "nominee" text, "episode" text, "result" text ); Question: What award has a year earlier than 2004 and the episode shows —? <|assistant|> SELECT "award" FROM "other_awards" WHERE "year"<2004 AND "episode"='—';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_awards" ( "year" real, "award" text, "nominee" text, "episode" text, "result" text ); Question: What award has a year later than 2004, and the episode was "The Road to Damuscus"? <|assistant|> SELECT "award" FROM "other_awards" WHERE "year">2004 AND "episode"='\"the road to damuscus\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_awards" ( "year" real, "award" text, "nominee" text, "episode" text, "result" text ); Question: What year has a Nominee of —, and a Result of nominated? <|assistant|> SELECT AVG("year") FROM "other_awards" WHERE "nominee"='—' AND "result"='nominated';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: What is the Country of the Play Electra? <|assistant|> SELECT "country" FROM "references" WHERE "play"='electra';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: What is the Athens Base play with Dance Theatre Roes Company? <|assistant|> SELECT "play" FROM "references" WHERE "base"='athens' AND "company"='dance theatre roes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Who is the author of the Play Electra? <|assistant|> SELECT "author" FROM "references" WHERE "play"='electra';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Waht is the Country of the play by Author Aristophanes? <|assistant|> SELECT "country" FROM "references" WHERE "author"='aristophanes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: What Country has the Play The Libation Bearers a Base of Mecklenburg? <|assistant|> SELECT "country" FROM "references" WHERE "base"='mecklenburg' AND "play"='the libation bearers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1957" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text ); Question: Which series had a title of Boyhood Daze? <|assistant|> SELECT "series" FROM "1957" WHERE "title"='boyhood daze';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1957" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text ); Question: What was the release date of Rabbit Romeo? <|assistant|> SELECT "release_date" FROM "1957" WHERE "title"='rabbit romeo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1957" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text ); Question: What was the release date of Three Little Bops? <|assistant|> SELECT "release_date" FROM "1957" WHERE "title"='three little bops';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "lpga_wins" real, "earnings" real, "money_list_rank" real, "average" real ); Question: When earnings ($) is more than 583,796 after 1998 with 1 LPGA wins and greater than 10 Money list rank, what is the smallest average? <|assistant|> SELECT MIN("average") FROM "lpga_tour_career_summary" WHERE "year">1998 AND "earnings">'583,796' AND "lpga_wins"=1 AND "money_list_rank">10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "lpga_wins" real, "earnings" real, "money_list_rank" real, "average" real ); Question: In 2005 the earnings is less than 615,499 with less than 2 LPGA wins and what smallest Money list rank? <|assistant|> SELECT MIN("money_list_rank") FROM "lpga_tour_career_summary" WHERE "lpga_wins"<2 AND "year"=2005 AND "earnings"<'615,499';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_career_summary" ( "year" real, "lpga_wins" real, "earnings" real, "money_list_rank" real, "average" real ); Question: What is the sum of money list rank after 1999 when the average is less than 73.27 and earnings is 583,796? <|assistant|> SELECT COUNT("money_list_rank") FROM "lpga_tour_career_summary" WHERE "average"<73.27 AND "earnings"='583,796' AND "year">1999;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" text, "previous_counference" text ); Question: What is the team name from Hammond Bishop Noll? <|assistant|> SELECT "team_name" FROM "membership" WHERE "school"='hammond bishop noll';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" text, "previous_counference" text ); Question: What city has a team in IHSAA class 3a, and previous conference of lake? <|assistant|> SELECT "city" FROM "membership" WHERE "previous_counference"='lake' AND "ihsaa_class"='3a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" text, "previous_counference" text ); Question: What is the average enrollment 08=09, for the team that had a previous conference of lake and IHSAA class of 3A? <|assistant|> SELECT AVG("enrollment_08_09") FROM "membership" WHERE "previous_counference"='lake' AND "ihsaa_class"='3a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_25" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the Date of the Kroger Classic Tournament? <|assistant|> SELECT "date" FROM "champions_tour_wins_25" WHERE "tournament"='kroger classic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_25" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the Date of the Ameritech Senior Open? <|assistant|> SELECT "date" FROM "champions_tour_wins_25" WHERE "tournament"='ameritech senior open';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_25" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What Tournament has a Winning score of −16 (66-64-67=197)? <|assistant|> SELECT "tournament" FROM "champions_tour_wins_25" WHERE "winning_score"='−16 (66-64-67=197)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "celestial_stem" text, "chinese_mandarin_pinyin" text, "cantonese_jyutping" text, "wuu_wuupin" text, "japanese_kunyomi" text, "japanese_on_yomi" text, "korean_rr" text, "manchu_m_llendorff" text, "vietnamese" text, "yin_and_yang" text, "wu_xing" text, "wu_xing_correlations" text ); Question: What Japanese On'yomi has Catonese Jyutping of jyut6? <|assistant|> SELECT "japanese_on_yomi" FROM "table" WHERE "cantonese_jyutping"='jyut6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "celestial_stem" text, "chinese_mandarin_pinyin" text, "cantonese_jyutping" text, "wuu_wuupin" text, "japanese_kunyomi" text, "japanese_on_yomi" text, "korean_rr" text, "manchu_m_llendorff" text, "vietnamese" text, "yin_and_yang" text, "wu_xing" text, "wu_xing_correlations" text ); Question: What Japanese On'yomi has Vietnamese of Mậu? <|assistant|> SELECT "japanese_on_yomi" FROM "table" WHERE "vietnamese"='mậu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "celestial_stem" text, "chinese_mandarin_pinyin" text, "cantonese_jyutping" text, "wuu_wuupin" text, "japanese_kunyomi" text, "japanese_on_yomi" text, "korean_rr" text, "manchu_m_llendorff" text, "vietnamese" text, "yin_and_yang" text, "wu_xing" text, "wu_xing_correlations" text ); Question: What is Wu Xing (五行) with Korean (RR) of 임 (im)? <|assistant|> SELECT "wu_xing" FROM "table" WHERE "korean_rr"='임 (im)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "celestial_stem" text, "chinese_mandarin_pinyin" text, "cantonese_jyutping" text, "wuu_wuupin" text, "japanese_kunyomi" text, "japanese_on_yomi" text, "korean_rr" text, "manchu_m_llendorff" text, "vietnamese" text, "yin_and_yang" text, "wu_xing" text, "wu_xing_correlations" text ); Question: What's Manchu (Möllendorff) with the Wi Xing Correltation of 南 South, along with Wuu Wuupin of ting44? <|assistant|> SELECT "manchu_m_llendorff" FROM "table" WHERE "wu_xing_correlations"='南 south' AND "wuu_wuupin"='ting44';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "theme_song_s" text, "episodes" real, "average_ratings" text ); Question: Which Japanese Title has a TV Station of ntv? <|assistant|> SELECT "japanese_title" FROM "2005_spring_season" WHERE "tv_station"='ntv';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "theme_song_s" text, "episodes" real, "average_ratings" text ); Question: Which TV Station has a Romaji Title of kegareta shita? <|assistant|> SELECT "tv_station" FROM "2005_spring_season" WHERE "romaji_title"='kegareta shita';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "theme_song_s" text, "episodes" real, "average_ratings" text ); Question: Which Theme Song(s) has a Japanese Title of 恋におちたら~僕の成功の秘密~? <|assistant|> SELECT "theme_song_s" FROM "2005_spring_season" WHERE "japanese_title"='恋におちたら~僕の成功の秘密~';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); Question: Churai has what as the fewest number of electorates? <|assistant|> SELECT MIN("number_of_electorates_2009") FROM "assembly_segments" WHERE "name"='churai';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1938" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text ); Question: what is the title when the release date is 1938-12-17 and the production number is 8610? <|assistant|> SELECT "title" FROM "1938" WHERE "release_date"='1938-12-17' AND "production_num"='8610';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_0_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: The match played July 8, 2007 had what outcome? <|assistant|> SELECT "outcome" FROM "singles_0_7" WHERE "date"='july 8, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_0_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: The final match played against Evie Dominikovic was played on what surface? <|assistant|> SELECT "surface" FROM "singles_0_7" WHERE "opponent_in_the_final"='evie dominikovic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_0_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Olga Blahotová was the opponent in the final at what tournament? <|assistant|> SELECT "tournament" FROM "singles_0_7" WHERE "opponent_in_the_final"='olga blahotová';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_0_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: In the final against Ashley Harkleroad what was the score? <|assistant|> SELECT "score" FROM "singles_0_7" WHERE "opponent_in_the_final"='ashley harkleroad';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); Question: What is the name for the 2008 club Liaoning? <|assistant|> SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='liaoning';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); Question: What is the height for the Tianjin members in 2008? <|assistant|> SELECT "height" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='tianjin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text ); Question: At what time did the opponent Takaichi Hirayama have an event? <|assistant|> SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='takaichi hirayama';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text ); Question: In which round was Gabriel Veiga the opponent? <|assistant|> SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='gabriel veiga';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text ); Question: Which method had a 3 rounds, result in a loss and the Juiz de Fora - fight 1 event? <|assistant|> SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"='3' AND "res"='loss' AND "event"='juiz de fora - fight 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text ); Question: Which opponent has a record of 4-2? <|assistant|> SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='4-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); Question: What is the Reserved for when there are more than 161,219 electorates in 2009 and a constituency of 160? <|assistant|> SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "number_of_electorates_2009">'161,219' AND "constituency_number"='160';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); Question: What is the name when there are more than 161,219 electorates in 2009 and a constituency of 165? <|assistant|> SELECT "name" FROM "assembly_segments" WHERE "number_of_electorates_2009">'161,219' AND "constituency_number"='165';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: what is the country for zhang xiuyun? <|assistant|> SELECT "country" FROM "quarterfinal_3" WHERE "athlete"='zhang xiuyun';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: what is the country for fabiana beltrame? <|assistant|> SELECT "country" FROM "quarterfinal_3" WHERE "athlete"='fabiana beltrame';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: what is the notes when the time is 7:58.71? <|assistant|> SELECT "notes" FROM "quarterfinal_3" WHERE "time"='7:58.71';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: what is the highest rank when the time is 7:52.65? <|assistant|> SELECT MAX("rank") FROM "quarterfinal_3" WHERE "time"='7:52.65';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_3" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: what is the country when the nots is sa/b, the rank is more than 1 and the athlete is zhang xiuyun? <|assistant|> SELECT "country" FROM "quarterfinal_3" WHERE "notes"='sa/b' AND "rank">1 AND "athlete"='zhang xiuyun';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualification_round" ( "rank" real, "athlete" text, "country" text, "day_1" real, "total" text ); Question: Who had a rank under 17 with a total of 119? <|assistant|> SELECT "athlete" FROM "qualification_round" WHERE "rank"<17 AND "total"='119';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_cup" ( "round" text, "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: What round has 2-1 as the result, and A as the venue? <|assistant|> SELECT "round" FROM "league_cup" WHERE "result"='2-1' AND "venue"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What is the most time for the swimmer from South Africa who was in a lane greater than 3? <|assistant|> SELECT MAX("time") FROM "semifinal_2" WHERE "nationality"='south africa' AND "lane">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Which school has enrollment of 887? <|assistant|> SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "enrollment"=887;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); Question: what is the round when the pick # is less than 236 and the position is offensive guard? <|assistant|> SELECT AVG("round") FROM "nfl_draft" WHERE "pick_num"<236 AND "position"='offensive guard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); Question: what is the position in round 3? <|assistant|> SELECT "position" FROM "nfl_draft" WHERE "round"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_selections" ( "round" real, "pick" real, "position" text, "nationality" text, "school_club_team" text ); Question: What is the Position of the Pick 8 Player? <|assistant|> SELECT "position" FROM "draft_selections" WHERE "pick"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: Which High assists has a Score of w 71-56? <|assistant|> SELECT "high_assists" FROM "regular_season" WHERE "score"='w 71-56';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: Which Score has a High assists of whalen (5)? <|assistant|> SELECT "score" FROM "regular_season" WHERE "high_assists"='whalen (5)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: Which High rebounds has a Game smaller than 9, and a Opponent of detroit? <|assistant|> SELECT "high_rebounds" FROM "regular_season" WHERE "game"<9 AND "opponent"='detroit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: Which High rebounds has a Score of w 81-69? <|assistant|> SELECT "high_rebounds" FROM "regular_season" WHERE "score"='w 81-69';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_5_matches_by_atp_world_tour_com" ( "event" real, "round" text, "surface" text, "winner" text, "opponent" text, "result" text ); Question: Which Surface has a Result of fernando verdasco? <|assistant|> SELECT "surface" FROM "best_5_matches_by_atp_world_tour_com" WHERE "result"='fernando verdasco';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_5_matches_by_atp_world_tour_com" ( "event" real, "round" text, "surface" text, "winner" text, "opponent" text, "result" text ); Question: How many events did clay win? <|assistant|> SELECT COUNT("event") FROM "best_5_matches_by_atp_world_tour_com" WHERE "winner"='clay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_5_matches_by_atp_world_tour_com" ( "event" real, "round" text, "surface" text, "winner" text, "opponent" text, "result" text ); Question: Which Surface has an Opponent of rafael nadal, and an Event of 2? <|assistant|> SELECT "surface" FROM "best_5_matches_by_atp_world_tour_com" WHERE "opponent"='rafael nadal' AND "event"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_5_matches_by_atp_world_tour_com" ( "event" real, "round" text, "surface" text, "winner" text, "opponent" text, "result" text ); Question: Who is iván navarro's opponent? <|assistant|> SELECT "opponent" FROM "best_5_matches_by_atp_world_tour_com" WHERE "result"='iván navarro';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_5_matches_by_atp_world_tour_com" ( "event" real, "round" text, "surface" text, "winner" text, "opponent" text, "result" text ); Question: Which Event has a Surface of semifinal, and a Winner of hard (i)? <|assistant|> SELECT MAX("event") FROM "best_5_matches_by_atp_world_tour_com" WHERE "surface"='semifinal' AND "winner"='hard (i)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_in_tour_de_france_since_1947" ( "year" real, "stage" real, "start" text, "finish" text, "leader_at_the_summit" text ); Question: Who was the leader at the summit earlier than 1956, when Carcassonne shows for finish? <|assistant|> SELECT "leader_at_the_summit" FROM "appearances_in_tour_de_france_since_1947" WHERE "year"<1956 AND "finish"='carcassonne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_in_tour_de_france_since_1947" ( "year" real, "stage" real, "start" text, "finish" text, "leader_at_the_summit" text ); Question: What year was finish Toulouse, and stage was larger than 12? <|assistant|> SELECT SUM("year") FROM "appearances_in_tour_de_france_since_1947" WHERE "finish"='toulouse' AND "stage">12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_in_tour_de_france_since_1947" ( "year" real, "stage" real, "start" text, "finish" text, "leader_at_the_summit" text ); Question: What is the highest stage number for a year later than 1948, leader at the summit was group, and finish was Bagnères-De-Bigorre? <|assistant|> SELECT MAX("stage") FROM "appearances_in_tour_de_france_since_1947" WHERE "year">1948 AND "leader_at_the_summit"='group' AND "finish"='bagnères-de-bigorre';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successor_s_formal_installation" text ); Question: which Vacator has a Reason for change of resigned november 10, 1965? <|assistant|> SELECT "vacator" FROM "senate" WHERE "reason_for_change"='resigned november 10, 1965';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successor_s_formal_installation" text ); Question: Which Reason has a State (class) of tennessee (2)? <|assistant|> SELECT "reason_for_change" FROM "senate" WHERE "state_class"='tennessee (2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successor_s_formal_installation" text ); Question: When is it that successor's formal installation has a Vacator of ross bass (d)? <|assistant|> SELECT "date_of_successor_s_formal_installation" FROM "senate" WHERE "vacator"='ross bass (d)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successor_s_formal_installation" text ); Question: Which State (class) has a Successor of harry f. byrd, jr. (d)? Question <|assistant|> SELECT "state_class" FROM "senate" WHERE "successor"='harry f. byrd, jr. (d)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successor_s_formal_installation" text ); Question: Which date of Date of successor's formal installation has a State (class) of michigan (2)? <|assistant|> SELECT "date_of_successor_s_formal_installation" FROM "senate" WHERE "state_class"='michigan (2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "surrounding" ( "peak" text, "country" text, "elevation_m" real, "prominence_m" real, "col_m" real ); Question: Which country has a Col (m) of 1374? <|assistant|> SELECT "country" FROM "surrounding" WHERE "col_m"=1374;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text ); Question: How many Games have Years at club of 1971–1974, and a Debut year larger than 1971? <|assistant|> SELECT SUM("games") FROM "1970s" WHERE "years_at_club"='1971–1974' AND "debut_year">1971;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text ); Question: Which Games have Years at club of 1974–1975, and Goals of 4? <|assistant|> SELECT AVG("games") FROM "1970s" WHERE "years_at_club"='1974–1975' AND "goals"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text ); Question: Which Years at club have Games smaller than 7, and Goals larger than 2, and a Player of john frazer? <|assistant|> SELECT "years_at_club" FROM "1970s" WHERE "games"<7 AND "goals">2 AND "player"='john frazer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text ); Question: Which Games have Years at club of 1977, and Goals of 17, and a Debut year smaller than 1977? <|assistant|> SELECT AVG("games") FROM "1970s" WHERE "years_at_club"='1977' AND "goals"=17 AND "debut_year"<1977;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text ); Question: Which Goals have Games smaller than 41, and a Player of mark amos? <|assistant|> SELECT MIN("goals") FROM "1970s" WHERE "games"<41 AND "player"='mark amos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "rank" real, "heat" real, "name" text, "nationality" text, "result" text ); Question: What is Melaine Walker's Rank? <|assistant|> SELECT SUM("rank") FROM "round_1" WHERE "name"='melaine walker';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "rank" real, "heat" real, "name" text, "nationality" text, "result" text ); Question: What is the Name of the Player with a Rank of 23 or less, Heat of 4 and Result of 55.91? <|assistant|> SELECT "name" FROM "round_1" WHERE "heat"=4 AND "rank"<23 AND "result"='55.91';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "rank" real, "heat" real, "name" text, "nationality" text, "result" text ); Question: What is the Heat of the Player with a Rank of 18 or less and Result of 55.15? <|assistant|> SELECT "heat" FROM "round_1" WHERE "rank"<18 AND "result"='55.15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mallet_and_simple_articulated_locomotive" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text, "quantity_preserved" text ); Question: What is the quantity preserved for fleet number(s) 3000–3015? <|assistant|> SELECT "quantity_preserved" FROM "mallet_and_simple_articulated_locomotive" WHERE "fleet_number_s"='3000–3015';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mallet_and_simple_articulated_locomotive" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text, "quantity_preserved" text ); Question: What manufacturer has a wheel arrangement of 4-6-6-4, and a Class of z-7? <|assistant|> SELECT "manufacturer" FROM "mallet_and_simple_articulated_locomotive" WHERE "wheel_arrangement"='4-6-6-4' AND "class"='z-7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mallet_and_simple_articulated_locomotive" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text, "quantity_preserved" text ); Question: What is the Year for fleet number 5000? <|assistant|> SELECT "year_made" FROM "mallet_and_simple_articulated_locomotive" WHERE "fleet_number_s"='5000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mallet_and_simple_articulated_locomotive" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text, "quantity_preserved" text ); Question: What year made has a Quantity made of 4? <|assistant|> SELECT "year_made" FROM "mallet_and_simple_articulated_locomotive" WHERE "quantity_made"='4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mallet_and_simple_articulated_locomotive" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text, "quantity_preserved" text ); Question: What is the quantity preserved for the serial number of mallet and simple articulated locomotives? <|assistant|> SELECT "quantity_preserved" FROM "mallet_and_simple_articulated_locomotive" WHERE "serial_numbers"='mallet and simple articulated locomotives';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silver medals did Estonia, which won more than 1 gold and less than 97 medals total, win? <|assistant|> SELECT "silver" FROM "world_championships_total_medals" WHERE "gold">1 AND "total"<97 AND "nation"='estonia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold medals did Denmark win? <|assistant|> SELECT MIN("gold") FROM "world_championships_total_medals" WHERE "nation"='denmark';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of gold medals won among nations that won more than 27 bronze and less than 305 medals total? <|assistant|> SELECT COUNT("gold") FROM "world_championships_total_medals" WHERE "bronze">27 AND "total"<305;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold medals were won by the nation that won over 4 silver medals, over 14 bronze, and 97 medals total? <|assistant|> SELECT COUNT("gold") FROM "world_championships_total_medals" WHERE "silver">4 AND "bronze">14 AND "total"=97;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goalscorers" ( "name" text, "championship" real, "league_cup" real, "fa_cup" real, "total" text ); Question: What is the highest championship that has 1 as the league cup, and 17 as the total? <|assistant|> SELECT MAX("championship") FROM "goalscorers" WHERE "league_cup"=1 AND "total"='17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goalscorers" ( "name" text, "championship" real, "league_cup" real, "fa_cup" real, "total" text ); Question: How many league cups have an FA Cup less than 0? <|assistant|> SELECT COUNT("league_cup") FROM "goalscorers" WHERE "fa_cup"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_attacked" ( "date" text, "name_of_ship" text, "flag" text, "tonnage" real, "fate" text ); Question: On what date was the Brookwood, which weighed over 5,008 tons, attacked? <|assistant|> SELECT "date" FROM "ships_attacked" WHERE "tonnage">'5,008' AND "name_of_ship"='brookwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average rank of west germany (frg), which has more than 1 silver, less than 11 gold, and 2 bronze medals? <|assistant|> SELECT AVG("rank") FROM "medal_table" WHERE "silver">1 AND "gold"<11 AND "bronze"=2 AND "nation"='west germany (frg)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "event" text, "performance" text, "athlete" text, "nation" text, "place" text, "date" text ); Question: What's the date when Yelena Isinbayeva for Russia was in Beijing, China? <|assistant|> SELECT "date" FROM "women" WHERE "nation"='russia' AND "place"='beijing, china' AND "athlete"='yelena isinbayeva';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "event" text, "performance" text, "athlete" text, "nation" text, "place" text, "date" text ); Question: What's the performance of Dire Tune? <|assistant|> SELECT "performance" FROM "women" WHERE "athlete"='dire tune';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "event" text, "performance" text, "athlete" text, "nation" text, "place" text, "date" text ); Question: What place had 14:11.15 as the performance? <|assistant|> SELECT "place" FROM "women" WHERE "performance"='14:11.15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "event" text, "performance" text, "athlete" text, "nation" text, "place" text, "date" text ); Question: What's the event that had a performance of 14:11.15 by Ethiopia? <|assistant|> SELECT "event" FROM "women" WHERE "nation"='ethiopia' AND "performance"='14:11.15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "twelfth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What was the position of the player picked after 94, by the Boston Patriots? <|assistant|> SELECT "position" FROM "twelfth_round" WHERE "pick">94 AND "team"='boston patriots';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "twelfth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What college had the 93 pick? <|assistant|> SELECT "college" FROM "twelfth_round" WHERE "pick"=93;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1952" ( "title" text, "series" text, "director" text, "characters" text, "release_date" text, "reissue" text ); Question: Does the Robert McKimson title featuring Bugs Bunny have a reissue? <|assistant|> SELECT "reissue" FROM "1952" WHERE "characters"='bugs bunny' AND "director"='robert mckimson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mark_van_bommel_international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What venue has euro 2004 q. as the competition? <|assistant|> SELECT "venue" FROM "mark_van_bommel_international_goals" WHERE "competition"='euro 2004 q.';<|endoftext|>