text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "energy_efficient_e_series" ( "model_number" text, "stepping" text, "frequency" text, "l2_cache" text, "multi_1" text, "v_core" text, "socket" text, "release_date" text, "part_number_s" text ); Question: When was the release date for technology that has a Multi 1 of 10.5×? <|assistant|> SELECT "release_date" FROM "energy_efficient_e_series" WHERE "multi_1"='10.5×';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "energy_efficient_e_series" ( "model_number" text, "stepping" text, "frequency" text, "l2_cache" text, "multi_1" text, "v_core" text, "socket" text, "release_date" text, "part_number_s" text ); Question: What's the stepping amount for adh4450iaa5do? <|assistant|> SELECT "stepping" FROM "energy_efficient_e_series" WHERE "part_number_s"='adh4450iaa5do';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart_career_results" ( "year" real, "team" text, "wins" real, "points" real, "championship_finish" text ); Question: Which Wins is the highest one that has a Year larger than 1996, and a Championship Finish of 1st, and Points smaller than 168? <|assistant|> SELECT MAX("wins") FROM "cart_career_results" WHERE "year">1996 AND "championship_finish"='1st' AND "points"<168;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart_career_results" ( "year" real, "team" text, "wins" real, "points" real, "championship_finish" text ); Question: Which Year is the highest that has a Team of walker racing, and Wins larger than 1? <|assistant|> SELECT MAX("year") FROM "cart_career_results" WHERE "team"='walker racing' AND "wins">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart_career_results" ( "year" real, "team" text, "wins" real, "points" real, "championship_finish" text ); Question: Which Points have a Year larger than 1998, and Wins of 1? <|assistant|> SELECT AVG("points") FROM "cart_career_results" WHERE "year">1998 AND "wins"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest bronze number when silver shows 2, and the total is 8? <|assistant|> SELECT MIN("bronze") FROM "medal_table" WHERE "silver"=2 AND "total"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the silver number when gold is more than 4, and the total is less than 24? <|assistant|> SELECT AVG("silver") FROM "medal_table" WHERE "gold">4 AND "total"<24;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the gold number when the total is 8 and bronze is more than 4? <|assistant|> SELECT AVG("gold") FROM "medal_table" WHERE "total"=8 AND "bronze">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the sum of Total for 0 gold and less than 2, silver with a rank of 6? <|assistant|> SELECT SUM("total") FROM "medal_table" WHERE "gold"=0 AND "silver"<2 AND "rank"='6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average Gold when silver is more than 2, and bronze is more than 1 <|assistant|> SELECT AVG("gold") FROM "medal_table" WHERE "silver">2 AND "bronze">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average Bronze when silver is more than 2, and rank is 2, and gold more than 2 <|assistant|> SELECT AVG("bronze") FROM "medal_table" WHERE "silver">2 AND "rank"='2' AND "gold">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_cities_by_latitude" ( "latitude" text, "longitude" text, "city" text, "state" text, "country" text ); Question: What city in Svalbard has a longitude of 15°39′e? <|assistant|> SELECT "city" FROM "list_of_cities_by_latitude" WHERE "state"='svalbard' AND "longitude"='15°39′e';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_cities_by_latitude" ( "latitude" text, "longitude" text, "city" text, "state" text, "country" text ); Question: If the latitude is 77°28′n, what is the longitude? <|assistant|> SELECT "longitude" FROM "list_of_cities_by_latitude" WHERE "latitude"='77°28′n';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_cities_by_latitude" ( "latitude" text, "longitude" text, "city" text, "state" text, "country" text ); Question: If the latitude is 76°25′n, what is the longitude? <|assistant|> SELECT "longitude" FROM "list_of_cities_by_latitude" WHERE "latitude"='76°25′n';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_cities_by_latitude" ( "latitude" text, "longitude" text, "city" text, "state" text, "country" text ); Question: If the latitude is 71°18′n, what is the longitude? <|assistant|> SELECT "longitude" FROM "list_of_cities_by_latitude" WHERE "latitude"='71°18′n';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_titles_5" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: Who is the partner facing the opponents florian Mayer & alexander waske in the final? <|assistant|> SELECT "partner" FROM "doubles_titles_5" WHERE "opponents_in_the_final"='florian mayer & alexander waske';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_titles_5" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: Which tournament has a hard surface and final opponents rohan bopanna & mustafa ghouse? <|assistant|> SELECT "tournament" FROM "doubles_titles_5" WHERE "surface"='hard' AND "opponents_in_the_final"='rohan bopanna & mustafa ghouse';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_titles_5" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: On which date did the tournament final with the clay surface take place? <|assistant|> SELECT "date" FROM "doubles_titles_5" WHERE "surface"='clay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_titles_5" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: Which tournament features the partner julian knowle? <|assistant|> SELECT "tournament" FROM "doubles_titles_5" WHERE "partner"='julian knowle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_titles_5" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: On which date is the tournament final with the opponents michael berrer & kenneth carlsen? <|assistant|> SELECT "date" FROM "doubles_titles_5" WHERE "opponents_in_the_final"='michael berrer & kenneth carlsen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); Question: What was the score after february 4 in the game 61? <|assistant|> SELECT "score" FROM "schedule_and_results" WHERE "february">4 AND "game"=61;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is Arkansas State's total pick number with an overal lower than 242? <|assistant|> SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "college"='arkansas state' AND "overall"<242;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Who is from the College of Cincinnati? <|assistant|> SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "college"='cincinnati';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the overall number for a kicker with a pick of less than 6? <|assistant|> SELECT COUNT("overall") FROM "atlanta_falcons_draft_history" WHERE "position"='kicker' AND "pick_num"<6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which college has a defensive end with a round less than 6? <|assistant|> SELECT "college" FROM "atlanta_falcons_draft_history" WHERE "round">6 AND "position"='defensive end';<|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 record has a score of 111-96? <|assistant|> SELECT "record" FROM "game_log" WHERE "score"='111-96';<|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 score for a game after 34 with a record of 31-11? <|assistant|> SELECT "score" FROM "game_log" WHERE "game">34 AND "record"='31-11';<|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 date with a resulted score of 130-100? <|assistant|> SELECT "date" FROM "game_log" WHERE "score"='130-100';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theory_of_the_five_elements" ( "element" text, "wood" text, "fire" text, "earth" text, "metal" text, "water" text ); Question: Which Water has a Metal of contracting? <|assistant|> SELECT "water" FROM "theory_of_the_five_elements" WHERE "metal"='contracting';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theory_of_the_five_elements" ( "element" text, "wood" text, "fire" text, "earth" text, "metal" text, "water" text ); Question: Which Metal has an Element of heavenly stems? <|assistant|> SELECT "metal" FROM "theory_of_the_five_elements" WHERE "element"='heavenly stems';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theory_of_the_five_elements" ( "element" text, "wood" text, "fire" text, "earth" text, "metal" text, "water" text ); Question: Which water has green wood? <|assistant|> SELECT "water" FROM "theory_of_the_five_elements" WHERE "wood"='green';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theory_of_the_five_elements" ( "element" text, "wood" text, "fire" text, "earth" text, "metal" text, "water" text ); Question: Which earth has west metal? <|assistant|> SELECT "earth" FROM "theory_of_the_five_elements" WHERE "metal"='west';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theory_of_the_five_elements" ( "element" text, "wood" text, "fire" text, "earth" text, "metal" text, "water" text ); Question: Which wood has stabilizing earth? <|assistant|> SELECT "wood" FROM "theory_of_the_five_elements" WHERE "earth"='stabilizing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theory_of_the_five_elements" ( "element" text, "wood" text, "fire" text, "earth" text, "metal" text, "water" text ); Question: Which fire has dry metal? <|assistant|> SELECT "fire" FROM "theory_of_the_five_elements" WHERE "metal"='dry';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "commandants_list" ( "rank" text, "name" text, "begin_date" text, "end_date" text, "notes" text ); Question: what name has a Rank of lieutenant colonel, and a Begin Date of 1904-02-22 22 february 1904? <|assistant|> SELECT "name" FROM "commandants_list" WHERE "rank"='lieutenant colonel' AND "begin_date"='1904-02-22 22 february 1904';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: Oklahoma State produced a player in which position in the draft? <|assistant|> SELECT "position" FROM "nfl_draft" WHERE "school_club_team"='oklahoma state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What is the highest round where a back named Ed Cody can be found? <|assistant|> SELECT MAX("round") FROM "nfl_draft" WHERE "position"='back' AND "player"='ed cody';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "season" real, "team" text, "wins" real, "losses" real, "draws" real ); Question: Which Losses is the lowest one that has a Season smaller than 1920, and Draws larger than 0? <|assistant|> SELECT MIN("losses") FROM "australia" WHERE "season"<1920 AND "draws">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "season" real, "team" text, "wins" real, "losses" real, "draws" real ); Question: Which Draws have Losses larger than 16, and a Season larger than 1966? <|assistant|> SELECT SUM("draws") FROM "australia" WHERE "losses">16 AND "season">1966;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "season" real, "team" text, "wins" real, "losses" real, "draws" real ); Question: Which Draws have a Team of annandale, and Losses smaller than 13? <|assistant|> SELECT SUM("draws") FROM "australia" WHERE "team"='annandale' AND "losses"<13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "season" real, "team" text, "wins" real, "losses" real, "draws" real ); Question: Which Draws have Losses smaller than 16, and a Team of university, and Wins larger than 0? <|assistant|> SELECT AVG("draws") FROM "australia" WHERE "losses"<16 AND "team"='university' AND "wins">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "season" real, "team" text, "wins" real, "losses" real, "draws" real ); Question: Which Wins is the lowest one that has a Season smaller than 1920, and Losses smaller than 14? <|assistant|> SELECT MIN("wins") FROM "australia" WHERE "season"<1920 AND "losses"<14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text ); Question: Which date had a sport of Academics? <|assistant|> SELECT "date" FROM "2011_2012" WHERE "sport"='academics';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_2012" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text ); Question: Which date had a site of N/A? <|assistant|> SELECT "date" FROM "2011_2012" WHERE "site"='n/a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives_withdrawn_from_service" ( "name_or_designation" text, "wheel_arrangement" text, "builder" text, "year_built" text, "year_withdrawn" text ); Question: what was the builder in 1929 <|assistant|> SELECT "builder" FROM "locomotives_withdrawn_from_service" WHERE "year_built"='1929';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: What was the attendance for the March 6 game, where one of the teams had 53 points. <|assistant|> SELECT "attendance" FROM "game_log" WHERE "points"=53 AND "date"='march 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: For the game with 6,126 in attendance, how many points did both teams have in the standings? <|assistant|> SELECT COUNT("points") FROM "game_log" WHERE "attendance"='6,126';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the record of the team with a St. Louis home? <|assistant|> SELECT "record" FROM "game_log" WHERE "home"='st. louis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "territorial_and_overseas_regions_recordh" ( "country" text, "territory" text, "name" text, "birth_date" text, "death_date" text ); Question: What country has a territory of French Guiana? <|assistant|> SELECT "country" FROM "territorial_and_overseas_regions_recordh" WHERE "territory"='french guiana';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008_12" text, "2013" text ); Question: Which 2008-12 has a 2013 of A, and a Tournament of wimbledon? <|assistant|> SELECT "2008_12" FROM "doubles_performance_timeline" WHERE "2013"='a' AND "tournament"='wimbledon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008_12" text, "2013" text ); Question: Which 2013 has a 2007 of A, and a Tournament of french open? <|assistant|> SELECT "2013" FROM "doubles_performance_timeline" WHERE "2007"='a' AND "tournament"='french open';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008_12" text, "2013" text ); Question: Which 2013 has a 2008-12 of A, and a 2007 of A, and a Tournament of us open? <|assistant|> SELECT "2013" FROM "doubles_performance_timeline" WHERE "2008_12"='a' AND "2007"='a' AND "tournament"='us open';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008_12" text, "2013" text ); Question: Which 2013 has a 2006 of grand slam tournaments? <|assistant|> SELECT "2013" FROM "doubles_performance_timeline" WHERE "2006"='grand slam tournaments';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008_12" text, "2013" text ); Question: Which 2006 has a 2007 of A? <|assistant|> SELECT "2006" FROM "doubles_performance_timeline" WHERE "2007"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008_12" text, "2013" text ); Question: Which 2008-12 has a 2007 of A, and a Tournament of us open? <|assistant|> SELECT "2008_12" FROM "doubles_performance_timeline" WHERE "2007"='a' AND "tournament"='us open';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the record on April 1? <|assistant|> SELECT "record" FROM "april" WHERE "date"='april 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What's the score on April 9? <|assistant|> SELECT "score" FROM "april" WHERE "date"='april 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Where was home on April 3? <|assistant|> SELECT "home" FROM "april" WHERE "date"='april 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What's the score on April 9? <|assistant|> SELECT "score" FROM "april" WHERE "date"='april 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the average number of points of the team with more than 18 played? <|assistant|> SELECT AVG("points") FROM "torneo_clausura" WHERE "played">18;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the lowest score of the team with 19 points and less than 18 played? <|assistant|> SELECT MIN("scored") FROM "torneo_clausura" WHERE "points"=19 AND "played"<18;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the average number of draws of the team with less than 17 points and less than 4 wins? <|assistant|> SELECT AVG("draws") FROM "torneo_clausura" WHERE "points"<17 AND "wins"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "catalogue" ( "artist" text, "title" text, "release_date" text, "format" text, "cat_num" text ); Question: What is the title of the record with an artist of Tangorodrim, category number FSR006? <|assistant|> SELECT "title" FROM "catalogue" WHERE "artist"='tangorodrim' AND "cat_num"='fsr006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "catalogue" ( "artist" text, "title" text, "release_date" text, "format" text, "cat_num" text ); Question: What was the format of the release by Triumfall? <|assistant|> SELECT "format" FROM "catalogue" WHERE "artist"='triumfall';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "catalogue" ( "artist" text, "title" text, "release_date" text, "format" text, "cat_num" text ); Question: What is the category number that was released in November 2007? <|assistant|> SELECT "cat_num" FROM "catalogue" WHERE "release_date"='november 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which is the lowest round to have a pick of 12 and position of linebacker? <|assistant|> SELECT MIN("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num"=12 AND "position"='linebacker';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which player was picked in round 15 with a pick smaller than 13? <|assistant|> SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "pick_num"<13 AND "round"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: How many picks were from Lamar College? <|assistant|> SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "college"='lamar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: How many overall values have a college of Notre Dame and rounds over 2? <|assistant|> SELECT COUNT("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='notre dame' AND "round">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_individual_scores" ( "rank" text, "runs" text, "player" text, "opponent" text, "venue" text, "season" text ); Question: What player was at Albion? <|assistant|> SELECT "player" FROM "highest_individual_scores" WHERE "venue"='albion';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_individual_scores" ( "rank" text, "runs" text, "player" text, "opponent" text, "venue" text, "season" text ); Question: Where was the venue that had 274 runs? <|assistant|> SELECT "venue" FROM "highest_individual_scores" WHERE "runs"='274';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_individual_scores" ( "rank" text, "runs" text, "player" text, "opponent" text, "venue" text, "season" text ); Question: which athlete played against Queensland? <|assistant|> SELECT "player" FROM "highest_individual_scores" WHERE "opponent"='queensland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_individual_scores" ( "rank" text, "runs" text, "player" text, "opponent" text, "venue" text, "season" text ); Question: Where is the venue with more than 245 runs? <|assistant|> SELECT "venue" FROM "highest_individual_scores" WHERE "runs"='245';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_individual_scores" ( "rank" text, "runs" text, "player" text, "opponent" text, "venue" text, "season" text ); Question: Where did Jack Badcock play? <|assistant|> SELECT "venue" FROM "highest_individual_scores" WHERE "player"='jack badcock';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_13_6_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: Which Surface has a Date of 16 november 2007? <|assistant|> SELECT "surface" FROM "doubles_13_6_7" WHERE "date"='16 november 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: Name the date for 2004 afc asian cup qualifier <|assistant|> SELECT "date" FROM "international_goals" WHERE "competition"='2004 afc asian cup qualifier';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: Name the venue for 23 january 2009 <|assistant|> SELECT "venue" FROM "international_goals" WHERE "date"='23 january 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: Name the competition for khartoum <|assistant|> SELECT "competition" FROM "international_goals" WHERE "venue"='khartoum';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_c_slovenia" ( "games" real, "drawn" real, "lost" real, "goal_difference" text, "points" real ); Question: What is the fewest ties the team had with fewer than 7 games? <|assistant|> SELECT MIN("drawn") FROM "world_championship_group_c_slovenia" WHERE "games"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "counties" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real ); Question: What is the population for a county that has a median income of $69,760? <|assistant|> SELECT "population" FROM "counties" WHERE "median_household_income"='$69,760';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "counties" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real ); Question: What county has $51,456 income per capita? <|assistant|> SELECT "county" FROM "counties" WHERE "per_capita_income"='$51,456';<|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" text ); Question: Who was the opponent when attendance was 60,355? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "attendance"='60,355';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "financial_performance" ( "year_ended" text, "passengers_flown" real, "employees_average_year" real, "net_profit_loss_sek" real, "basic_eps_sek" real ); Question: Which Net profit/loss (SEK) has a Basic eps (SEK) of -6.58, and Employees (Average/Year) larger than 31,035? <|assistant|> SELECT SUM("net_profit_loss_sek") FROM "financial_performance" WHERE "basic_eps_sek"=-6.58 AND "employees_average_year">'31,035';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "financial_performance" ( "year_ended" text, "passengers_flown" real, "employees_average_year" real, "net_profit_loss_sek" real, "basic_eps_sek" real ); Question: Which Passengers flown has a Net profit/loss (SEK) smaller than -6,360,000,000, and Employees (Average/Year) smaller than 34,544, and a Basic eps (SEK) of -18.2? <|assistant|> SELECT SUM("passengers_flown") FROM "financial_performance" WHERE "net_profit_loss_sek"<'-6,360,000,000' AND "employees_average_year"<'34,544' AND "basic_eps_sek"=-18.2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "financial_performance" ( "year_ended" text, "passengers_flown" real, "employees_average_year" real, "net_profit_loss_sek" real, "basic_eps_sek" real ); Question: Which average Net profit/loss (SEK) has Employees (Average/Year) larger than 18,786, and a Year ended of 2000*, and Passengers flown larger than 23,240,000? <|assistant|> SELECT AVG("net_profit_loss_sek") FROM "financial_performance" WHERE "employees_average_year">'18,786' AND "year_ended"='2000*' AND "passengers_flown">'23,240,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "financial_performance" ( "year_ended" text, "passengers_flown" real, "employees_average_year" real, "net_profit_loss_sek" real, "basic_eps_sek" real ); Question: How many Employees (Average/Year) have a Net profit/loss (SEK) larger than 4,936,000,000, and a Basic eps (SEK) larger than 1.06? <|assistant|> SELECT COUNT("employees_average_year") FROM "financial_performance" WHERE "net_profit_loss_sek">'4,936,000,000' AND "basic_eps_sek">1.06;<|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 is the result when 13 is the week? <|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 average week has shea stadium as the game site, and 1979-12-09 as the date? <|assistant|> SELECT AVG("week") FROM "schedule" WHERE "game_site"='shea stadium' AND "date"='1979-12-09';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); Question: Name the most rank for the United States with wins less than 1 <|assistant|> SELECT MAX("rank") FROM "leaders" WHERE "country"='united states' AND "wins"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); Question: Name the most rank for wins more than 0 and events of 26 <|assistant|> SELECT MAX("rank") FROM "leaders" WHERE "events"=26 AND "wins">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); Question: Name the average earnings for rank of 3 and wins less than 3 <|assistant|> SELECT AVG("earnings") FROM "leaders" WHERE "rank"=3 AND "wins"<3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "communes" ( "rank" text, "city" text, "population" real, "area_km_2" real, "density_inhabitants_km_2" real, "altitude_mslm" real ); Question: What is the average area of the city that has a density less than than 206.2 and an altitude of less than 85? <|assistant|> SELECT AVG("area_km_2") FROM "communes" WHERE "density_inhabitants_km_2"<206.2 AND "altitude_mslm"<85;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "communes" ( "rank" text, "city" text, "population" real, "area_km_2" real, "density_inhabitants_km_2" real, "altitude_mslm" real ); Question: What is the lowest density of alessandria where the area is bigger than 16.02 and altitude is less than 116? <|assistant|> SELECT MIN("density_inhabitants_km_2") FROM "communes" WHERE "area_km_2">16.02 AND "altitude_mslm"<116 AND "city"='alessandria';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "communes" ( "rank" text, "city" text, "population" real, "area_km_2" real, "density_inhabitants_km_2" real, "altitude_mslm" real ); Question: What is the lowest density of serravalle scrivia? <|assistant|> SELECT MIN("density_inhabitants_km_2") FROM "communes" WHERE "city"='serravalle scrivia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "communes" ( "rank" text, "city" text, "population" real, "area_km_2" real, "density_inhabitants_km_2" real, "altitude_mslm" real ); Question: What is the lowest population of alessandria where the altitude is less than 197 and density is less than 461.8? <|assistant|> SELECT MIN("population") FROM "communes" WHERE "altitude_mslm"<197 AND "city"='alessandria' AND "density_inhabitants_km_2"<461.8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overlap_between_multiple_social_network_" ( "site" text, "bebo" real, "facebook" real, "friendster" real, "linked_in" real, "my_space" real, "ning" real, "orkut" real, "plaxo" real ); Question: What myspace has linkedin as the site, with an orkit greater than 3? <|assistant|> SELECT AVG("my_space") FROM "overlap_between_multiple_social_network_" WHERE "site"='linkedin' AND "orkut">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overlap_between_multiple_social_network_" ( "site" text, "bebo" real, "facebook" real, "friendster" real, "linked_in" real, "my_space" real, "ning" real, "orkut" real, "plaxo" real ); Question: How many linkedin have Facebook as the site, with a myspace less than 64? <|assistant|> SELECT COUNT("linked_in") FROM "overlap_between_multiple_social_network_" WHERE "site"='facebook' AND "my_space"<64;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overlap_between_multiple_social_network_" ( "site" text, "bebo" real, "facebook" real, "friendster" real, "linked_in" real, "my_space" real, "ning" real, "orkut" real, "plaxo" real ); Question: What is the highest Ning that has a bebo less than 4, an orkut less than 100, with a plaxo greater than 0? <|assistant|> SELECT MAX("ning") FROM "overlap_between_multiple_social_network_" WHERE "bebo"<4 AND "orkut"<100 AND "plaxo">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overlap_between_multiple_social_network_" ( "site" text, "bebo" real, "facebook" real, "friendster" real, "linked_in" real, "my_space" real, "ning" real, "orkut" real, "plaxo" real ); Question: What is the average plaxo that has a myspace greater than 64, a bebo greater than 3, with 4 as the friendster? <|assistant|> SELECT AVG("plaxo") FROM "overlap_between_multiple_social_network_" WHERE "my_space">64 AND "bebo">3 AND "friendster"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "title" text, "label" text, "format" text, "album" text ); Question: What album has the title I Need A Life with the label of warp records / paper bag records? <|assistant|> SELECT "album" FROM "singles" WHERE "label"='warp records / paper bag records' AND "title"='i need a life';<|endoftext|>