text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "april" real, "opponent" text, "score" text, "record" text ); Question: Name the opponent with record of 38-34-10 <|assistant|> SELECT "opponent" FROM "schedule_and_results" WHERE "record"='38-34-10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "april" real, "opponent" text, "score" text, "record" text ); Question: Name the total number of April for game more than 81 and reord of 38-33-10 <|assistant|> SELECT COUNT("april") FROM "schedule_and_results" WHERE "record"='38-33-10' AND "game">81;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); Question: what series was on may 14 <|assistant|> SELECT "series" FROM "playoffs" WHERE "date"='may 14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What is the to par that has england as the country, with 66 as a score? <|assistant|> SELECT "to_par" FROM "first_round" WHERE "country"='england' AND "score"=66;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What country has a score less than 68, and paul casey as the player? <|assistant|> SELECT "country" FROM "first_round" WHERE "score"<68 AND "player"='paul casey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What is the lowest score that has alastair forsyth as the player? <|assistant|> SELECT MIN("score") FROM "first_round" WHERE "player"='alastair forsyth';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: How many scores have paul casey as a player? <|assistant|> SELECT COUNT("score") FROM "first_round" WHERE "player"='paul casey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "locomotive" text, "pre_conversion" text, "entered_service_t" text, "re_entered_service_p" text, "owner" text ); Question: Who owns the item that was a T326 before conversion and re-entered service on 11 September 1985? <|assistant|> SELECT "owner" FROM "locomotives" WHERE "re_entered_service_p"='11 september 1985' AND "pre_conversion"='t326';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "locomotive" text, "pre_conversion" text, "entered_service_t" text, "re_entered_service_p" text, "owner" text ); Question: What date did the T328 that entered service on 18 June 1956 re-enter service? <|assistant|> SELECT "re_entered_service_p" FROM "locomotives" WHERE "entered_service_t"='18 june 1956' AND "pre_conversion"='t328';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "locomotive" text, "pre_conversion" text, "entered_service_t" text, "re_entered_service_p" text, "owner" text ); Question: Which of V/Line Passenger's pre-conversions re-entered service on 23 November 1984? <|assistant|> SELECT "pre_conversion" FROM "locomotives" WHERE "owner"='v/line passenger' AND "re_entered_service_p"='23 november 1984';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "locomotive" text, "pre_conversion" text, "entered_service_t" text, "re_entered_service_p" text, "owner" text ); Question: Who owns the locomotive that entered service on 30 October 1956? <|assistant|> SELECT "owner" FROM "locomotives" WHERE "entered_service_t"='30 october 1956';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the score of the game when the record was 50-85? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='50-85';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the loss of the game when the record was 46-84? <|assistant|> SELECT "loss" FROM "game_log" WHERE "record"='46-84';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the record at the game with a loss of Cook (14–7)? <|assistant|> SELECT "record" FROM "game_log" WHERE "loss"='cook (14–7)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); Question: What album is 4:53 long? <|assistant|> SELECT "album" FROM "official_versions" WHERE "length"='4:53';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_performance_timeline" ( "tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text ); Question: Which 1989 has a 1986 of 99? <|assistant|> SELECT "1989" FROM "grand_slam_performance_timeline" WHERE "1986"='99';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_performance_timeline" ( "tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text ); Question: Which 1983 has a Tournament of wimbledon? <|assistant|> SELECT "1983" FROM "grand_slam_performance_timeline" WHERE "tournament"='wimbledon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_performance_timeline" ( "tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text ); Question: Which Tournament has A in 1987? <|assistant|> SELECT "tournament" FROM "grand_slam_performance_timeline" WHERE "1987"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_performance_timeline" ( "tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text ); Question: Which 1988 has a 1985 of 2r? <|assistant|> SELECT "1988" FROM "grand_slam_performance_timeline" WHERE "1985"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_performance_timeline" ( "tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text ); Question: Which 1988 has a 1982 of 104? <|assistant|> SELECT "1988" FROM "grand_slam_performance_timeline" WHERE "1982"='104';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_performance_timeline" ( "tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text ); Question: Which Tournament has a 1984 of 1r? <|assistant|> SELECT "tournament" FROM "grand_slam_performance_timeline" WHERE "1984"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_intel_80579_processors" ( "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: Release date of 2008 q3 has what release price? <|assistant|> SELECT "release_price_usd" FROM "table_of_intel_80579_processors" WHERE "release_date"='2008 q3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_intel_80579_processors" ( "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: Frequency of 1.2 ghz, and a Release price ( USD ) of $70 is what socket? <|assistant|> SELECT "socket" FROM "table_of_intel_80579_processors" WHERE "frequency"='1.2 ghz' AND "release_price_usd"='$70';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_intel_80579_processors" ( "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: Socket of fcbga1088, and a Voltage of 1v, and a Part number(s) of nu80579ez600cnu80579ez600ct is what mult? <|assistant|> SELECT "mult" FROM "table_of_intel_80579_processors" WHERE "socket"='fcbga1088' AND "voltage"='1v' AND "part_number_s"='nu80579ez600cnu80579ez600ct';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_intel_80579_processors" ( "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: Spec number of slj6d(b1)slj6f(b1) has what mult.? <|assistant|> SELECT "mult" FROM "table_of_intel_80579_processors" WHERE "s_spec_number"='slj6d(b1)slj6f(b1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_intel_80579_processors" ( "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: Socket of without quickassist has what release price? <|assistant|> SELECT "release_price_usd" FROM "table_of_intel_80579_processors" WHERE "socket"='without quickassist';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_intel_80579_processors" ( "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); Question: Release date of 2008 q3, and a Part number(s) of nu80579ez009c has what Release price ( USD )? <|assistant|> SELECT "release_price_usd" FROM "table_of_intel_80579_processors" WHERE "release_date"='2008 q3' AND "part_number_s"='nu80579ez009c';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "new_zealand" real, "hong_kong" real, "singapore" real, "london" real, "brisbane" real, "cardiff" real, "durban" real, "santiago" real, "mar_del_plata" real, "beijing" real, "kuala_lumpur" real, "points" real ); Question: What is the lowest Hong Kong value with a 0 Brisbane value and a greater than 0 Kuala Lumpur value? <|assistant|> SELECT MIN("hong_kong") FROM "standings" WHERE "brisbane"=0 AND "kuala_lumpur">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "new_zealand" real, "hong_kong" real, "singapore" real, "london" real, "brisbane" real, "cardiff" real, "durban" real, "santiago" real, "mar_del_plata" real, "beijing" real, "kuala_lumpur" real, "points" real ); Question: What is the highest Kuala Lumpur value with a Durban value less than 1 and a Mar Del Plata value greater than 0? <|assistant|> SELECT MAX("kuala_lumpur") FROM "standings" WHERE "durban"<1 AND "mar_del_plata">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "new_zealand" real, "hong_kong" real, "singapore" real, "london" real, "brisbane" real, "cardiff" real, "durban" real, "santiago" real, "mar_del_plata" real, "beijing" real, "kuala_lumpur" real, "points" real ); Question: What is the highest New Zealand value with a Hong Kong value less than 0? <|assistant|> SELECT MAX("new_zealand") FROM "standings" WHERE "hong_kong"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "new_zealand" real, "hong_kong" real, "singapore" real, "london" real, "brisbane" real, "cardiff" real, "durban" real, "santiago" real, "mar_del_plata" real, "beijing" real, "kuala_lumpur" real, "points" real ); Question: What is the average Singapore value with a London value less than 0? <|assistant|> SELECT AVG("singapore") FROM "standings" WHERE "london"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_history" ( "year" real, "pick" text, "player" text, "position" text, "country" text, "previous_team_league" text ); Question: What position was picked for Canada on Pick 8? <|assistant|> SELECT "position" FROM "first_round_history" WHERE "country"='canada' AND "pick"='8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_history" ( "year" real, "pick" text, "player" text, "position" text, "country" text, "previous_team_league" text ); Question: What is the position that is shown for 2011? <|assistant|> SELECT "position" FROM "first_round_history" WHERE "year"=2011;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "personal_life" ( "year" real, "song_title" text, "film_name" text, "language" text, "music_director" text ); Question: what language is seethaiah in <|assistant|> SELECT "language" FROM "personal_life" WHERE "film_name"='seethaiah';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_to_2002" ( "year" text, "title" text, "role" text, "producer" text, "director" text ); Question: Which Producer has a Role of rizzette? <|assistant|> SELECT "producer" FROM "2000_to_2002" WHERE "role"='rizzette';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_to_2002" ( "year" text, "title" text, "role" text, "producer" text, "director" text ); Question: Which Title has a Director of rowell santiago? <|assistant|> SELECT "title" FROM "2000_to_2002" WHERE "director"='rowell santiago';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_to_2002" ( "year" text, "title" text, "role" text, "producer" text, "director" text ); Question: Which Year has a Producer of viva films, and a Title of magkapatid? <|assistant|> SELECT "year" FROM "2000_to_2002" WHERE "producer"='viva films' AND "title"='magkapatid';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_to_2002" ( "year" text, "title" text, "role" text, "producer" text, "director" text ); Question: Which Director has a Role of melissa? <|assistant|> SELECT "director" FROM "2000_to_2002" WHERE "role"='melissa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1989_90" text, "1990_91" text, "1991_1992" real ); Question: What is the total number of averages where the played is more than 38, the 1990-91 is 39, and the 1989-90 is 34? <|assistant|> SELECT SUM("average") FROM "relegation" WHERE "played">38 AND "1990_91"='39' AND "1989_90"='34';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1989_90" text, "1990_91" text, "1991_1992" real ); Question: Which 1990-91 has an average number of 1.035? <|assistant|> SELECT "1990_91" FROM "relegation" WHERE "average"=1.035;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1989_90" text, "1990_91" text, "1991_1992" real ); Question: Which team has a 1990-91 number of 39 and a 1989-90 number of 34? <|assistant|> SELECT "team" FROM "relegation" WHERE "1990_91"='39' AND "1989_90"='34';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1989_90" text, "1990_91" text, "1991_1992" real ); Question: Which played number has an average of 1.026 and a 1989-90 that is 36? <|assistant|> SELECT "played" FROM "relegation" WHERE "average">1.026 AND "1989_90"='36';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "title_history" ( "wrestler" text, "times" real, "date" text, "place" text, "successful_defenses" real ); Question: Who was the wrestler when there was over 1 time? <|assistant|> SELECT "wrestler" FROM "title_history" WHERE "times">1;<|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, "result" text, "game_site" text, "attendance" real ); Question: What results has a week larger than 13? <|assistant|> SELECT "result" FROM "schedule" WHERE "week">13;<|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, "result" text, "game_site" text, "attendance" real ); Question: What results has a week smaller than 2? <|assistant|> SELECT "result" FROM "schedule" WHERE "week"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What was the score for game number 30? <|assistant|> SELECT "score" FROM "game_log" WHERE "game"=30;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What is the sum for the game with a score of 103–126? <|assistant|> SELECT SUM("game") FROM "game_log" WHERE "score"='103–126';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What is the lowest game number that has a Record of 3–33? <|assistant|> SELECT MIN("game") FROM "game_log" WHERE "record"='3–33';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: what score was on february 21 <|assistant|> SELECT "score" FROM "regular_season" WHERE "february"=21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What is the nationality of the player from the Ohio State University (NCAA) Team? <|assistant|> SELECT "nationality" FROM "draft_picks" WHERE "college_junior_club_team_league"='ohio state university (ncaa)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What is the lowest round of the Kitchener Rangers (OHA)? <|assistant|> SELECT MIN("round") FROM "draft_picks" WHERE "college_junior_club_team_league"='kitchener rangers (oha)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What is the position of Pierre Daigneault? <|assistant|> SELECT "position" FROM "draft_picks" WHERE "player"='pierre daigneault';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "economic_profile" ( "geographic_unit" text, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); Question: What is the average 2006 value with a 2010 value of 417.9 and a 2011 value greater than 426.7? <|assistant|> SELECT AVG("2006") FROM "economic_profile" WHERE "2010"=417.9 AND "2011">426.7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "economic_profile" ( "geographic_unit" text, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); Question: What is the 2011 total with a 2008 value greater than 346.5, a 2009 value of 392, and a 2010 value bigger than 354.6? <|assistant|> SELECT COUNT("2011") FROM "economic_profile" WHERE "2008">346.5 AND "2009"=392 AND "2010">354.6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "economic_profile" ( "geographic_unit" text, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); Question: What is the total 2008 value with a 2006 value greater than 322.7, a 353.9 in 2011, and a 2009 less than 392? <|assistant|> SELECT COUNT("2008") FROM "economic_profile" WHERE "2006">322.7 AND "2011"=353.9 AND "2009"<392;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "economic_profile" ( "geographic_unit" text, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); Question: What is the highest 2009 value with a 2006 value smaller than 280.4, a 2007 less than 2.2, and a 2011 less than 3.5? <|assistant|> SELECT MAX("2009") FROM "economic_profile" WHERE "2006"<280.4 AND "2007"<2.2 AND "2010"<3.5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "economic_profile" ( "geographic_unit" text, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); Question: What is the average 2007 value with a 2009 value greater than 2.8, a 4.9 in 2010, and a 2006 less than 2.5? <|assistant|> SELECT AVG("2007") FROM "economic_profile" WHERE "2009">2.8 AND "2010"=4.9 AND "2006"<2.5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "economic_profile" ( "geographic_unit" text, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); Question: What is the 2006 total with a 2010 value greater than 417.9? <|assistant|> SELECT COUNT("2006") FROM "economic_profile" WHERE "2010">417.9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: when has an Opponent of @ philadelphia phillies and an Attendance of 20,072? <|assistant|> SELECT "date" FROM "game_log" WHERE "opponent"='@ philadelphia phillies' AND "attendance"='20,072';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: Which Opponent is on april 28? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "date"='april 28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: Which Record has an Attendance of 24,597? <|assistant|> SELECT "record" FROM "game_log" WHERE "attendance"='24,597';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: Which Record has a Loss of o'connor (0-1)? <|assistant|> SELECT "record" FROM "game_log" WHERE "loss"='o''connor (0-1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: which attendance has a Loss of drese (0-2)? <|assistant|> SELECT "attendance" FROM "game_log" WHERE "loss"='drese (0-2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sapporo" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: Who is the person that has 119.5 m? <|assistant|> SELECT "name" FROM "sapporo" WHERE "1st_m"=119.5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sapporo" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: What is the highest 2nd in (m) that has a Rank more than 2 and Points more than 249.3 <|assistant|> SELECT MAX("2nd_m") FROM "sapporo" WHERE "rank">2 AND "points">249.3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sapporo" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: Which 2nd (m) has a 1st (m) of 120.5 and Points smaller than 249.9? <|assistant|> SELECT AVG("2nd_m") FROM "sapporo" WHERE "1st_m"=120.5 AND "points"<249.9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: What is the first date of election for the incumbent that was re-elected in the South Carolina 1 district? <|assistant|> SELECT "first_elected" FROM "south_carolina" WHERE "result"='re-elected' AND "district"='south carolina 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Who was the incumbent who was first elected in 1876? <|assistant|> SELECT "incumbent" FROM "south_carolina" WHERE "first_elected"='1876';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Who was the Democratic incumbent in the South Carolina 5 District? <|assistant|> SELECT "incumbent" FROM "south_carolina" WHERE "party"='democratic' AND "district"='south carolina 5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: What is the first elected date for the incumbent in the South Carolina 4 district? <|assistant|> SELECT "first_elected" FROM "south_carolina" WHERE "district"='south carolina 4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "number" real, "name_of_administrative_unit" text, "telephone_052" text, "area_km_2" real, "population_people" real ); Question: Which area has a telephone of (052) of 3862279? <|assistant|> SELECT "area_km_2" FROM "administrative_divisions" WHERE "telephone_052"='3862279';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "number" real, "name_of_administrative_unit" text, "telephone_052" text, "area_km_2" real, "population_people" real ); Question: What is the sum of area with a population of 5,615 and number more than 6? <|assistant|> SELECT SUM("area_km_2") FROM "administrative_divisions" WHERE "population_people"='5,615' AND "number">6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_championship_points_in_a_season" ( "driver" text, "points" real, "season" text, "races" real, "percentage_of_possible_points" text ); Question: Which driver had points over 252 in the season of 2012 with a percentage of possible points at 55.60%? <|assistant|> SELECT "driver" FROM "most_championship_points_in_a_season" WHERE "points">252 AND "season"='2012' AND "percentage_of_possible_points"='55.60%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_championship_points_in_a_season" ( "driver" text, "points" real, "season" text, "races" real, "percentage_of_possible_points" text ); Question: What is the number of races that took place with points of 257? <|assistant|> SELECT SUM("races") FROM "most_championship_points_in_a_season" WHERE "points"=257;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_championship_points_in_a_season" ( "driver" text, "points" real, "season" text, "races" real, "percentage_of_possible_points" text ); Question: What is the number of points that driver fernando alonso has in the season he had 20 races? <|assistant|> SELECT SUM("points") FROM "most_championship_points_in_a_season" WHERE "races"=20 AND "driver"='fernando alonso';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_championship_points_in_a_season" ( "driver" text, "points" real, "season" text, "races" real, "percentage_of_possible_points" text ); Question: What was the average Points of the season driver Fernando Alonso had a percentage of possible points of 53.05%? <|assistant|> SELECT AVG("points") FROM "most_championship_points_in_a_season" WHERE "driver"='fernando alonso' AND "percentage_of_possible_points"='53.05%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "name" text, "position" text, "college" text ); Question: What position has 217 as the pick? <|assistant|> SELECT "position" FROM "nfl_draft" WHERE "pick"=217;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); Question: Which score has a record of 18-21-7? <|assistant|> SELECT "score" FROM "schedule_and_results" WHERE "record"='18-21-7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "season" text, "team" text, "country" text, "division" real, "apps" real, "goals" real ); Question: What is the lowest value for apps in 2009 season in a division less than 1? <|assistant|> SELECT MIN("apps") FROM "career_statistics" WHERE "season"='2009' AND "division"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "season" text, "team" text, "country" text, "division" real, "apps" real, "goals" real ); Question: What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29? <|assistant|> SELECT SUM("goals") FROM "career_statistics" WHERE "team"='torpedo moscow' AND "division"=1 AND "apps"<29;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); Question: Which Remixed by has a Version of album version, and an Album of les mots? <|assistant|> SELECT "remixed_by" FROM "official_versions" WHERE "version"='album version' AND "album"='les mots';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); Question: How long was the instrumental version in 1986? <|assistant|> SELECT "length" FROM "official_versions" WHERE "year"=1986 AND "version"='instrumental';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); Question: Which long version was remixed in 1986? <|assistant|> SELECT "remixed_by" FROM "official_versions" WHERE "year"=1986 AND "version"='long version';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); Question: Who was Canada's lead? <|assistant|> SELECT "lead" FROM "teams" WHERE "country"='canada';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); Question: What was Canada's skip? <|assistant|> SELECT "skip" FROM "teams" WHERE "country"='canada';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); Question: Which country has a Lead of sarah wazney? <|assistant|> SELECT "country" FROM "teams" WHERE "lead"='sarah wazney';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); Question: Which Lead has a Third of jeanne ellegaard? <|assistant|> SELECT "lead" FROM "teams" WHERE "third"='jeanne ellegaard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); Question: Which Skip has a Third of sara carlsson? <|assistant|> SELECT "skip" FROM "teams" WHERE "third"='sara carlsson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); Question: Which Skip has a Second of vicki adams? <|assistant|> SELECT "skip" FROM "teams" WHERE "second"='vicki adams';<|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, "city" text, "mascot" text, "enrollment" real, "county" text ); Question: Enrollment that has a School of south central (union mills) has what sum? <|assistant|> SELECT SUM("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "school"='south central (union mills)';<|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, "city" text, "mascot" text, "enrollment" real, "county" text ); Question: Mascot of blazers involves what city? <|assistant|> SELECT "city" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='blazers';<|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, "city" text, "mascot" text, "enrollment" real, "county" text ); Question: County of 46 laporte is what school? <|assistant|> SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "county"='46 laporte';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); Question: What is the average Laps that shows spun off for time? <|assistant|> SELECT AVG("laps") FROM "sprint_race" WHERE "time"='spun off';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); Question: What is the average Laps for the Mexico team with a grid number of more than 1? <|assistant|> SELECT AVG("laps") FROM "sprint_race" WHERE "grid">1 AND "team"='mexico';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); Question: What is name of the drive with a Time of +13.315? <|assistant|> SELECT "driver" FROM "sprint_race" WHERE "time"='+13.315';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); Question: What is the total grid number that has 14 laps and a time of +29.483? <|assistant|> SELECT COUNT("grid") FROM "sprint_race" WHERE "laps"=14 AND "time"='+29.483';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); Question: What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid? <|assistant|> SELECT COUNT("laps") FROM "sprint_race" WHERE "time"='collision' AND "team"='switzerland' AND "grid"<11;<|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, "time_et" text, "result" text, "record" text ); Question: What is the time of the game after week 4 against the Baltimore Ravens? <|assistant|> SELECT "time_et" FROM "schedule" WHERE "week">4 AND "opponent"='baltimore ravens';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "nominated_work" text, "category" text, "result" text ); Question: What nominated work has seattle international film festival as the award? <|assistant|> SELECT "nominated_work" FROM "awards_and_nominations" WHERE "award"='seattle international film festival';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "nominated_work" text, "category" text, "result" text ); Question: What award has breakthrough performance as the category? <|assistant|> SELECT "award" FROM "awards_and_nominations" WHERE "category"='breakthrough performance';<|endoftext|>