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" t...
<|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" t...
<|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 Champi...
<|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 ...
<|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|> SELE...
<|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 M...
<|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|>...
<|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(...
<|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|> SELE...
<|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|> SEL...
<|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 <|ass...
<|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 "c...
<|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 "...
<|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 "...
<|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 "...
<|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 Ma...
<|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 oppo...
<|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 cl...
<|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 knowl...
<|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 opp...
<|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" ...
<|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 ov...
<|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|> ...
<|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 o...
<|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 t...
<|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_lo...
<|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|> SE...
<|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...
<|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 "wa...
<|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|> SELE...
<|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 "t...
<|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 "t...
<|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" FR...
<|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 "theo...
<|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 februar...
<|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|> SELEC...
<|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|> SEL...
<|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? <|ass...
<|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("d...
<|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"...
<|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? <|assis...
<|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? <|as...
<|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 "spo...
<|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...
<|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 <|...
<|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 t...
<|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 b...
<|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...
<|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? <|ass...
<|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|>...
<|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|> ...
<|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...
<|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...
<|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_perfo...
<|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|> S...
<|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';<|e...
<|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';<|endof...
<|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';<|endoftex...
<|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';<|endof...
<|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 ...
<|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 s...
<|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 ...
<|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? ...
<|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 "ca...
<|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 "c...
<|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 po...
<|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 small...
<|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|>...
<|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 ...
<|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 "...
<|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 "ve...
<|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 "...
<|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|> SELEC...
<|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 ...
<|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 nov...
<|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 "i...
<|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 "internationa...
<|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 "interna...
<|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? ...
<|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 popul...
<|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 $...
<|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 "sched...
<|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...
<|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 Ne...
<|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 (...
<|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/Yea...
<|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" FR...
<|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 t...
<|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|> SE...
<|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 M...
<|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|> SELE...
<|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 d...
<|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 t...
<|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?...
<|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 wher...
<|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 ); Q...
<|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 ); Q...
<|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 ); Q...
<|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 ); Q...
<|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? <|assista...