text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: Which Tries against have Points against larger than 109? <|assistant|> SELECT MAX("tries_against") FROM "pool_3" WHERE "points_against">109;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: What Tries against that have a Points against of 95 and Tries for larger than 20? <|assistant|> SELECT SUM("tries_against") FROM "pool_3" WHERE "points_against"=95 AND "tries_for">20;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: What Tries for has a Team of neath, and Points against larger than 109? <|assistant|> SELECT SUM("tries_for") FROM "pool_3" WHERE "team"='neath' AND "points_against">109;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_for" real, "points_against" real, "points_diff" text ); Question: How many Points against that have a Team of harlequins and Tries against smaller than 8? <|assistant|> SELECT SUM("points_against") FROM "pool_3" WHERE "team"='harlequins' AND "tries_against"<8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: What is the power that belongs to Class A with an Identifier of CBOC-FM? <|assistant|> SELECT "power" FROM "s_rebroadcaster_of_cbo_fm" WHERE "class"='a' AND "identifier"='cboc-fm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: Which class has a frequency of 91.9 fm? <|assistant|> SELECT "class" FROM "s_rebroadcaster_of_cbo_fm" WHERE "frequency"='91.9 fm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: What power belongs to the LP Class and has an Identifier of CBLI? <|assistant|> SELECT "power" FROM "s_rebroadcaster_of_cbo_fm" WHERE "class"='lp' AND "identifier"='cbli';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: Which city has a C1 class and Identifier of CBCD-FM? <|assistant|> SELECT "city_of_license" FROM "s_rebroadcaster_of_cbo_fm" WHERE "class"='c1' AND "identifier"='cbcd-fm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: Which Power has a CBLI Identifier? <|assistant|> SELECT "power" FROM "s_rebroadcaster_of_cbo_fm" WHERE "identifier"='cbli';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: What is the RECNet belonging to Class A with a Power of 3,000 watts? <|assistant|> SELECT "rec_net" FROM "s_rebroadcaster_of_cbo_fm" WHERE "class"='a' AND "power"='3,000 watts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_3" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text ); Question: What is the report in the tournament that started at 12:30? <|assistant|> SELECT "report" FROM "tournament_3" WHERE "time"='12:30';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text ); Question: Which 2007 has a 2003 of 1r? <|assistant|> SELECT "2007" FROM "grand_slam_tournament_performance_timeli" WHERE "2003"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text ); Question: Which 2006 has a 2012 of a, and a 2011 of 3r? <|assistant|> SELECT "2006" FROM "grand_slam_tournament_performance_timeli" WHERE "2012"='a' AND "2011"='3r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text ); Question: Which 2008 has a 2002 of a, and a Tournament of australian open? <|assistant|> SELECT "2008" FROM "grand_slam_tournament_performance_timeli" WHERE "2002"='a' AND "tournament"='australian open';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text ); Question: Which 2012 has a 2008 of grand slam tournaments? <|assistant|> SELECT "2012" FROM "grand_slam_tournament_performance_timeli" WHERE "2008"='grand slam tournaments';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text ); Question: Which 2002 has a 2009 of 2r? <|assistant|> SELECT "2002" FROM "grand_slam_tournament_performance_timeli" WHERE "2009"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text ); Question: Which 2010 has a 2002 of 2r? <|assistant|> SELECT "2010" FROM "grand_slam_tournament_performance_timeli" WHERE "2002"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "song" text, "canada_singles" text, "us_hot_100" text, "us_a_c" text ); Question: What is th US A.C. in 1985 with a US hot 100 of 57? <|assistant|> SELECT "us_a_c" FROM "singles" WHERE "year"=1985 AND "us_hot_100"='57';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "song" text, "canada_singles" text, "us_hot_100" text, "us_a_c" text ); Question: What is the Canada singles in 1979 with a US A.C. of 24? <|assistant|> SELECT "canada_singles" FROM "singles" WHERE "year"=1979 AND "us_a_c"='24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "song" text, "canada_singles" text, "us_hot_100" text, "us_a_c" text ); Question: What is the US A.C. in 1974? <|assistant|> SELECT "us_a_c" FROM "singles" WHERE "year"=1974;<|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 average round of player Sammy Morris? <|assistant|> SELECT AVG("round") FROM "nfl_draft" WHERE "player"='sammy morris';<|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 sum pick # of the player from round 4? <|assistant|> SELECT SUM("pick_num") FROM "nfl_draft" WHERE "round"=4;<|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: Who is the player from Arizona State? <|assistant|> SELECT "player" FROM "nfl_draft" WHERE "college"='arizona state';<|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 sum of the round of the player who plays linebacker and has a pick # greater than 251? <|assistant|> SELECT SUM("round") FROM "nfl_draft" WHERE "position"='linebacker' AND "pick_num">251;<|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: Who is the player from Arizona state with a round less than 7? <|assistant|> SELECT "player" FROM "nfl_draft" WHERE "round"<7 AND "college"='arizona state';<|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, "attendance" real ); Question: What's the highest week for the day of October 21, 1956? <|assistant|> SELECT MAX("week") FROM "schedule" WHERE "date"='october 21, 1956';<|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, "attendance" real ); Question: What is the least recent week number when the attendance is 16,562? <|assistant|> SELECT MIN("week") FROM "schedule" WHERE "attendance"='16,562';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What is Country , when Rider is Lindsay Porter? <|assistant|> SELECT "country" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "rider"='lindsay porter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What is Time, when Speed is 87.49mph? <|assistant|> SELECT "time" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "speed"='87.49mph';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What is Country, when Points are more than 12? <|assistant|> SELECT "country" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "points">12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What is Speed, when Time is 1:24.23.0? <|assistant|> SELECT "speed" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "time"='1:24.23.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What is Country, when Time is 1:29.43.60? <|assistant|> SELECT "country" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "time"='1:29.43.60';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What is the lowest Place, when Points are greater than 2? <|assistant|> SELECT MIN("place") FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "points">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real ); Question: What team was the opponent when the result was l 0-27? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "result"='l 0-27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real ); Question: What team was the opponent on 09/20/1975? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "date"='09/20/1975';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real ); Question: What is the Location of the game on 11/08/1975*? <|assistant|> SELECT "location" FROM "schedule" WHERE "date"='11/08/1975*';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold medals were awarded to the team with more than 2 bronze and exactly 29 silver medals? <|assistant|> SELECT "gold" FROM "medal_table" WHERE "bronze">2 AND "silver"=29;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "motion_picture" text, "result" text ); Question: What is the latest year that Cicely Tyson is the Golden Globe Award actor? <|assistant|> SELECT MAX("year") FROM "women" WHERE "actor"='cicely tyson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "motion_picture" text, "result" text ); Question: What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress? <|assistant|> SELECT "motion_picture" FROM "women" WHERE "year">2003 AND "result"='nominated' AND "actor"='viola davis' AND "award"='best supporting actress';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "motion_picture" text, "result" text ); Question: What Award has a date of 2002? <|assistant|> SELECT "award" FROM "women" WHERE "year"=2002;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "motion_picture" text, "result" text ); Question: What Award was received bby the Motion Picture What's Love Got To Do With It? <|assistant|> SELECT "award" FROM "women" WHERE "motion_picture"='what''s love got to do with it';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "motion_picture" text, "result" text ); Question: What is the latest Year with Marianne Jean-Baptiste as the Golden Globe Actor? <|assistant|> SELECT MAX("year") FROM "women" WHERE "actor"='marianne jean-baptiste';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" text, "singapore_gross" text ); Question: Which film was released in August 2004? <|assistant|> SELECT "title" FROM "2004" WHERE "date"='august 2004';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" text, "singapore_gross" text ); Question: What was the production cost for the film directed by 2004? <|assistant|> SELECT "production_cost" FROM "2004" WHERE "director"='2004';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" text, "singapore_gross" text ); Question: What film did Pen-Ek Ratanaruang direct? <|assistant|> SELECT "title" FROM "2004" WHERE "director"='pen-ek ratanaruang';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" text, "singapore_gross" text ); Question: When was the film directed by Pen-Ek Ratanaruang released? <|assistant|> SELECT "date" FROM "2004" WHERE "director"='pen-ek ratanaruang';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" text, "singapore_gross" text ); Question: Who directed Tequila? <|assistant|> SELECT "director" FROM "2004" WHERE "title"='tequila';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_special_representatives" ( "name" text, "born_died" text, "took_office" text, "left_office" text, "country" text ); Question: Who left office in June 2011? <|assistant|> SELECT "name" FROM "list_of_special_representatives" WHERE "left_office"='june 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_special_representatives" ( "name" text, "born_died" text, "took_office" text, "left_office" text, "country" text ); Question: What is the Born-Died date for the Representative of Italy? <|assistant|> SELECT "born_died" FROM "list_of_special_representatives" WHERE "country"='italy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_special_representatives" ( "name" text, "born_died" text, "took_office" text, "left_office" text, "country" text ); Question: What is the country of the Representative that left office as incumbent? <|assistant|> SELECT "country" FROM "list_of_special_representatives" WHERE "left_office"='incumbent';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is Package/Option, when Language is Italian, and when Television Service is Sky Radio? <|assistant|> SELECT "package_option" FROM "music" WHERE "language"='italian' AND "television_service"='sky radio';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is HDTV, when Television Service is MTV Rocks? <|assistant|> SELECT "hdtv" FROM "music" WHERE "television_service"='mtv rocks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is Television Service, when HDTV is No, and when Language is Italian? <|assistant|> SELECT "television_service" FROM "music" WHERE "hdtv"='no' AND "language"='italian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is Television Service, when Package/Option is Sky Famiglia, and when Language is Italian? <|assistant|> SELECT "television_service" FROM "music" WHERE "package_option"='sky famiglia' AND "language"='italian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "music" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What is HDTV, when Language is English, and when Television Service is MTV Dance? <|assistant|> SELECT "hdtv" FROM "music" WHERE "language"='english' AND "television_service"='mtv dance';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "one_day_batting_statistics" ( "player" text, "matches" real, "innings" real, "not_out" real, "runs" real, "high_score" text, "average" text, "strike_rate" text, "100s" real ); Question: What is the mean number of matches when the strike rate is 87.37 and the 100s is less than 0? <|assistant|> SELECT AVG("matches") FROM "one_day_batting_statistics" WHERE "strike_rate"='87.37' AND "100s"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "one_day_batting_statistics" ( "player" text, "matches" real, "innings" real, "not_out" real, "runs" real, "high_score" text, "average" text, "strike_rate" text, "100s" real ); Question: How many average 100s were there for Tim Bresnan? <|assistant|> SELECT AVG("100s") FROM "one_day_batting_statistics" WHERE "player"='tim bresnan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "services" ( "platform" real, "frequency_per_hour" real, "destination" text, "service_pattern" text, "operator" text, "line" text ); Question: How many Platforms have a Frequency of less than 2? <|assistant|> SELECT COUNT("platform") FROM "services" WHERE "frequency_per_hour"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "name_v_t_e" text, "height_cm" real, "weight_kg" real, "birthplace" text, "1999_2000_team" text ); Question: What is the 1999-2000 team, when the Height (cm) is less than 187, and when the Birthplace is Cloquet, Minnesota? <|assistant|> SELECT "1999_2000_team" FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm"<187 AND "birthplace"='cloquet, minnesota';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "name_v_t_e" text, "height_cm" real, "weight_kg" real, "birthplace" text, "1999_2000_team" text ); Question: What is the Name v t e, when the Height (cm) is greater than 179, and when the 1999-2000 team is Chicago Blackhawks? <|assistant|> SELECT "name_v_t_e" FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm">179 AND "1999_2000_team"='chicago blackhawks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "name_v_t_e" text, "height_cm" real, "weight_kg" real, "birthplace" text, "1999_2000_team" text ); Question: What is the sum of Height (cm), when the Weight (kg) is 90? <|assistant|> SELECT SUM("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "weight_kg"=90;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ); Question: Which Losses have a Pct of .451 and Finished 6th? <|assistant|> SELECT "losses" FROM "seasons" WHERE "pct"='.451' AND "finish"='6th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ); Question: Which season has Losses of 30? <|assistant|> SELECT "season" FROM "seasons" WHERE "losses"='30';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ); Question: In which Season was the Division Washington Bullets? <|assistant|> SELECT "season" FROM "seasons" WHERE "division"='washington bullets';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ); Question: In which season were there Wins of 29 and a Finished place of 3rd? <|assistant|> SELECT "season" FROM "seasons" WHERE "wins"='29' AND "finish"='3rd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" text, "easa_eu" text, "iasa_faa" text ); Question: What is the EASA (EU) when the notes show aoc 135? <|assistant|> SELECT "easa_eu" FROM "charter_airlines" WHERE "notes"='aoc 135';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" text, "easa_eu" text, "iasa_faa" text ); Question: What is the Notes when the fleet size is 3? <|assistant|> SELECT "notes" FROM "charter_airlines" WHERE "fleet_size"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" text, "easa_eu" text, "iasa_faa" text ); Question: What is the Fleet Size when the EASA (EU) is no? <|assistant|> SELECT "fleet_size" FROM "charter_airlines" WHERE "easa_eu"='no';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" text, "easa_eu" text, "iasa_faa" text ); Question: hat is the Airline when the EASA (EU) is yes? <|assistant|> SELECT "airline" FROM "charter_airlines" WHERE "easa_eu"='yes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" text, "easa_eu" text, "iasa_faa" text ); Question: What is the Airline when the notes show aoc 135? <|assistant|> SELECT "airline" FROM "charter_airlines" WHERE "notes"='aoc 135';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What is the highest Year with a Competition that is new york city marathon? <|assistant|> SELECT MAX("year") FROM "achievements" WHERE "competition"='new york city marathon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What is the Notes with a Venue that is venice, italy? <|assistant|> SELECT "notes" FROM "achievements" WHERE "venue"='venice, italy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "career_sr" text, "career_win_loss" text ); Question: What is 1994, when 2002 is ATP Masters Series? <|assistant|> SELECT "1994" FROM "doubles_performance_timeline" WHERE "2002"='atp masters series';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "career_sr" text, "career_win_loss" text ); Question: What is 2001, when 1987 is N/A, and when Career SR is N/A? <|assistant|> SELECT "2001" FROM "doubles_performance_timeline" WHERE "1987"='n/a' AND "career_sr"='n/a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "career_sr" text, "career_win_loss" text ); Question: What is 1989, when 1999 is F, and when 1994 is 2R? <|assistant|> SELECT "1989" FROM "doubles_performance_timeline" WHERE "1999"='f' AND "1994"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "career_sr" text, "career_win_loss" text ); Question: What is 2001, when 1990 is A, when 1987 is NME, and when 1997 is 1R? <|assistant|> SELECT "2001" FROM "doubles_performance_timeline" WHERE "1990"='a' AND "1987"='nme' AND "1997"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "career_sr" text, "career_win_loss" text ); Question: What is 1997, when 2003 is 0 / 4? <|assistant|> SELECT "1997" FROM "doubles_performance_timeline" WHERE "2003"='0 / 4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hits_on_german_ships" ( "ship" text, "13_5_inch_1400lb" real, "13_5_inch_1250lb" real, "12_inch" real, "total" real ); Question: What is the lowest 13.5-inch/1400lb with a 13.5-inch/1250lb less than 2, a 12-inch of 0, and a Total larger than 8? <|assistant|> SELECT MIN("13_5_inch_1400lb") FROM "hits_on_german_ships" WHERE "13_5_inch_1250lb"<2 AND "12_inch"=0 AND "total">8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hits_on_german_ships" ( "ship" text, "13_5_inch_1400lb" real, "13_5_inch_1250lb" real, "12_inch" real, "total" real ); Question: What is the lowest 12-inch when the 13.5-inch/1250lb was 0, and the ship is seydlitz? <|assistant|> SELECT MIN("12_inch") FROM "hits_on_german_ships" WHERE "13_5_inch_1250lb"=0 AND "ship"='seydlitz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hits_on_german_ships" ( "ship" text, "13_5_inch_1400lb" real, "13_5_inch_1250lb" real, "12_inch" real, "total" real ); Question: What is the lowest 13.5-inch/1400lb with a 13.5-inch/1250lb of more than 1, and a 12-inch smaller than 8? <|assistant|> SELECT MIN("13_5_inch_1400lb") FROM "hits_on_german_ships" WHERE "13_5_inch_1250lb">1 AND "12_inch"<8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hits_on_german_ships" ( "ship" text, "13_5_inch_1400lb" real, "13_5_inch_1250lb" real, "12_inch" real, "total" real ); Question: What is the average Total when the ship was lützow, with a 13.5-inch/1400lb smaller than 0? <|assistant|> SELECT AVG("total") FROM "hits_on_german_ships" WHERE "ship"='lützow' AND "13_5_inch_1400lb"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hits_on_german_ships" ( "ship" text, "13_5_inch_1400lb" real, "13_5_inch_1250lb" real, "12_inch" real, "total" real ); Question: What is the highest Total when the ship was lützow, and a 12-inch less than 8? <|assistant|> SELECT MAX("total") FROM "hits_on_german_ships" WHERE "ship"='lützow' AND "12_inch"<8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_14th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real ); Question: What is the average total 0 are nominated by the Taoiseach and the agricultural panel is greater than 5? <|assistant|> SELECT AVG("total") FROM "composition_of_the_14th_seanad" WHERE "nominated_by_the_taoiseach"=0 AND "agricultural_panel">5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_14th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real ); Question: What is the total of the cultural and educational panel when the industrial and commercial panel is 0 and the agricultural panel is greater than 0? <|assistant|> SELECT SUM("cultural_and_educational_panel") FROM "composition_of_the_14th_seanad" WHERE "industrial_and_commercial_panel"=0 AND "agricultural_panel">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_14th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real ); Question: What is the total for the University of Dublin when 2 are nominated by Taoiseach and the industrial and commercial panel is greater than 0? <|assistant|> SELECT SUM("university_of_dublin") FROM "composition_of_the_14th_seanad" WHERE "nominated_by_the_taoiseach"=2 AND "industrial_and_commercial_panel">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_14th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real ); Question: What is the highest labour panel when the university of dublin is less than 2 and the agricultural panel is greater than 5? <|assistant|> SELECT MAX("labour_panel") FROM "composition_of_the_14th_seanad" WHERE "university_of_dublin"<2 AND "agricultural_panel">5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "composition_of_the_14th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real ); Question: What is the average for the university of dublin when the industrial and commercial panel is greater than 4 and the total of the national university of ireland is larger than 3? <|assistant|> SELECT AVG("university_of_dublin") FROM "composition_of_the_14th_seanad" WHERE "industrial_and_commercial_panel">4 AND "national_university_of_ireland">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chinese_professional_baseball_league" ( "year" real, "winning_team" text, "losing_team" text, "score" text, "site" text ); Question: When has a Site of tainan city and a Score of 8–6? <|assistant|> SELECT "year" FROM "chinese_professional_baseball_league" WHERE "site"='tainan city' AND "score"='8–6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chinese_professional_baseball_league" ( "year" real, "winning_team" text, "losing_team" text, "score" text, "site" text ); Question: Which Score that has a Winning team of wei chuan dragons? <|assistant|> SELECT "score" FROM "chinese_professional_baseball_league" WHERE "winning_team"='wei chuan dragons';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world" ( "rank" real, "city_1" text, "city_2" text, "2012_passengers_in_millions" real, "2011_passengers_in_millions" text, "distance" text ); Question: What is the number of 2011 passengers in millions that have traveled a distance of 1271km? <|assistant|> SELECT "2011_passengers_in_millions" FROM "world" WHERE "distance"='1271km';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world" ( "rank" real, "city_1" text, "city_2" text, "2012_passengers_in_millions" real, "2011_passengers_in_millions" text, "distance" text ); Question: What is the number of 2012 passengers in millions that have traveled a distance of 1075km? <|assistant|> SELECT COUNT("2012_passengers_in_millions") FROM "world" WHERE "distance"='1075km';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world" ( "rank" real, "city_1" text, "city_2" text, "2012_passengers_in_millions" real, "2011_passengers_in_millions" text, "distance" text ); Question: What is the City 1 that has less than 8.211 million passengers and traveled 1075km in distance? <|assistant|> SELECT "city_1" FROM "world" WHERE "2012_passengers_in_millions"<8.211 AND "distance"='1075km';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1992_93_to_1996_97" ( "season" text, "first" text, "second" text, "third" text, "fourth" text, "fifth" text, "sixth" text ); Question: What is SECOND, when SIXTH is Victoria? <|assistant|> SELECT "second" FROM "1992_93_to_1996_97" WHERE "sixth"='victoria';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1992_93_to_1996_97" ( "season" text, "first" text, "second" text, "third" text, "fourth" text, "fifth" text, "sixth" text ); Question: What is SECOND, when FIRST is Western Australia? <|assistant|> SELECT "second" FROM "1992_93_to_1996_97" WHERE "first"='western australia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many losses does corinthians have when they scored over 22 points? <|assistant|> SELECT COUNT("lost") FROM "torneio_rio_s_o_paulo" WHERE "team"='corinthians' AND "points">22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_line_of_headphones" ( "headphone_model" text, "headphone_class" text, "driver_matched_d_b" real, "construction" text, "earpads" text, "termination" text, "us_msrp" text ); Question: What was the termination type for the headphones with comfort pads and selling for $150? <|assistant|> SELECT "termination" FROM "current_line_of_headphones" WHERE "earpads"='comfort pads' AND "us_msrp"='$150';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_line_of_headphones" ( "headphone_model" text, "headphone_class" text, "driver_matched_d_b" real, "construction" text, "earpads" text, "termination" text, "us_msrp" text ); Question: What are the earpads for the headphones that are Reference class and have MSRP of $695? <|assistant|> SELECT "earpads" FROM "current_line_of_headphones" WHERE "headphone_class"='reference' AND "us_msrp"='$695';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_line_of_headphones" ( "headphone_model" text, "headphone_class" text, "driver_matched_d_b" real, "construction" text, "earpads" text, "termination" text, "us_msrp" text ); Question: What earpads do the headphones with driver-matched dB over 0.05 and MSRP of $79 have? <|assistant|> SELECT "earpads" FROM "current_line_of_headphones" WHERE "driver_matched_d_b">0.05 AND "us_msrp"='$79';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "race_name" text, "circuit" text, "city_state" text, "date" text, "winner_s" text, "team" text ); Question: What is the name of the race from round 1? <|assistant|> SELECT "race_name" FROM "calendar" WHERE "round"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "race_name" text, "circuit" text, "city_state" text, "date" text, "winner_s" text, "team" text ); Question: Which race was in Sydney, New South Wales? <|assistant|> SELECT "race_name" FROM "calendar" WHERE "city_state"='sydney, new south wales';<|endoftext|>