text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_18_7_11" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What surface was used when she played with Rem...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_tournament_results" ( "year" real, "record" text, "seed" text, "region" text, "results" text ); Question: What Results has the Record of 28-12? <|assistant|> SELECT "results" FROM "ncaa_to...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_tournament_results" ( "year" real, "record" text, "seed" text, "region" text, "results" text ); Question: What Results has a Seed #12 and a Year that's smaller than 1996 <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_tournament_results" ( "year" real, "record" text, "seed" text, "region" text, "results" text ); Question: What's the highest Year with the Record of 18-12? <|assistant|> SELECT MAX("year")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_tournament_results" ( "year" real, "record" text, "seed" text, "region" text, "results" text ); Question: What's the highest Year with the Region of Southeast? <|assistant|> SELECT MAX("ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_tournament_results" ( "year" real, "record" text, "seed" text, "region" text, "results" text ); Question: What Record has a Year that's larger than 2012? <|assistant|> SELECT "record" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "result" text, "score" text, "record" text, "streak" text ); Question: What is the Laker's record when they played against Kansas City Kings? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "old_chinese" ( "word" text, "pronunciation_a" text, "meaning_a" text, "pronunciation_b" text, "meaning_b" text ); Question: Name the pronunciation for 傳 <|assistant|> SELECT "pronunciation_a" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "old_chinese" ( "word" text, "pronunciation_a" text, "meaning_a" text, "pronunciation_b" text, "meaning_b" text ); Question: Name the pronunciation for meaning of king <|assistant|> SELECT "pron...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "old_chinese" ( "word" text, "pronunciation_a" text, "meaning_a" text, "pronunciation_b" text, "meaning_b" text ); Question: Name the word with pronunciation b of *sɨks <|assistant|> SELECT "wor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "old_chinese" ( "word" text, "pronunciation_a" text, "meaning_a" text, "pronunciation_b" text, "meaning_b" text ); Question: Name the pronunciation for meaning b of border, frontier <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "old_chinese" ( "word" text, "pronunciation_a" text, "meaning_a" text, "pronunciation_b" text, "meaning_b" text ); Question: Name the pronunciation b for meaning of grind <|assistant|> SELECT "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_de_futsal" ( "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2013" text, "total" real ); Question: What is the 2008 value that was...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_de_futsal" ( "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2013" text, "total" real ); Question: What is the average total that ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_de_futsal" ( "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2013" text, "total" real ); Question: What is the 2008 value with a 7...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "name" text, "location" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What is the Location ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "name" text, "location" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What State has an Ope...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "name" text, "location" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What is the Location ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "name" text, "location" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What is the Location ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "name" text, "location" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What is the Name with...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_7_4_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What is the Score with an Opponent that is amand...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_7_4_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What is the Score with an Outcome of runner-up, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "four_consecutive_home_runs_by_a_team_in_" ( "team" text, "date" text, "opponent" text, "pitcher" text, "inn" text, "venue" text ); Question: Who was the pitcher on June 8, 1961? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "four_consecutive_home_runs_by_a_team_in_" ( "team" text, "date" text, "opponent" text, "pitcher" text, "inn" text, "venue" text ); Question: What team had the record asscoiated with the 9th i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "four_consecutive_home_runs_by_a_team_in_" ( "team" text, "date" text, "opponent" text, "pitcher" text, "inn" text, "venue" text ); Question: In what venue did the Boston Red Sox play in? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "four_consecutive_home_runs_by_a_team_in_" ( "team" text, "date" text, "opponent" text, "pitcher" text, "inn" text, "venue" text ); Question: Who was the pitcher with the record recorded in th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: When David E. Finley was the incumbent what was the result? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: When someone was first elected in 1898 what was the result? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: What party has an incumbent of Stanyarne Wilson? <|assistant|> SELECT "party"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: When the incumbent was William Elliott, what was the result? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What is the 8:00 that has da vinci's inquest as the 9:00...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What 10:00 has party of five as 9:30? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What 9:00 has entertainment tonight as 7:00? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text ); Question: Score of 2-1, and a Competition of pl, and a Date of december 22, 2006 had what opponents? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text ); Question: Date of april 3, 2007 had what score? <|assistant|> SELECT "score" FROM "results" WHERE "da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text ); Question: Competition of pl, and a Score of 1-1, and a Opponents of kelantan had what date? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text ); Question: Venue of klfa stadium, cheras, and a Score of 3-3 had what competition? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text ); Question: Opponents of police, and a Venue of selayang municipal council stadium had what date? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "date" text, "venue" text, "opponents" text, "score" text, "competition" text ); Question: Competition of fa cup rd 1 had what venue? <|assistant|> SELECT "venue" FROM "results" WHER...
<|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: Who was the visiting team on January 27? <|assistant|> SELECT "visitor" FROM "game_log" WHERE "dat...
<|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 home team that played on February 25? <|assistant|> SELECT "home" FROM "game_log" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Name the date with chicago visiting <|assistant|> SELECT "date" FROM "november" WHERE "visitor"='c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Name the home with chicago visiting <|assistant|> SELECT "home" FROM "november" WHERE "visitor"='c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalscorers" ( "name" text, "goals" real, "apps" real, "avge" real, "career" text ); Question: What is the highest number of apps of the player with more than 63 goals and an avge of 0.45? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_goalscorers" ( "name" text, "goals" real, "apps" real, "avge" real, "career" text ); Question: What is the total avge of John Hall, who has less than 63 goals? <|assistant|> SELECT COUNT("a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "champion" text, "venue" text, "location" text, "score" text ); Question: When did Kim Thompson win with 278 score? <|assistant|> SELECT SUM("year") FROM "winners" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "champion" text, "venue" text, "location" text, "score" text ); Question: Where did Steve Gotsche win? <|assistant|> SELECT "venue" FROM "winners" WHERE "champion"='stev...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_buildings" ( "rank" real, "building" text, "city" text, "height_m_ft" text, "built" real ); Question: What is the sum of Rank with a build year earlier than 2007 for the howard johnso...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_buildings" ( "rank" real, "building" text, "city" text, "height_m_ft" text, "built" real ); Question: What is the Height (m/ft) for bucharest Built in 2009, and a Rank of 13? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_buildings" ( "rank" real, "building" text, "city" text, "height_m_ft" text, "built" real ); Question: What city is the bucharest tower center (btc) located in? <|assistant|> SELECT "c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_buildings" ( "rank" real, "building" text, "city" text, "height_m_ft" text, "built" real ); Question: What is the name of the building in Bucharest with a rank of less than 12? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "completed_buildings" ( "rank" real, "building" text, "city" text, "height_m_ft" text, "built" real ); Question: What city was the building built in 1988? <|assistant|> SELECT "city" FROM "compl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boston_bruins_4_hartford_whalers_2" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the score of the Boston Bruins game from April 11? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boston_bruins_4_hartford_whalers_2" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the record of the Hartford Whalers home team with the April 13 g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boston_bruins_4_hartford_whalers_2" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the score of the visiting Hartford Whalers game from April 11? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "busiest_international_routes_from_portla" ( "rank" real, "airport" text, "metropolitan_area" text, "passengers" real, "carriers" text ); Question: Which Passengers have Carriers of air canada? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "busiest_international_routes_from_portla" ( "rank" real, "airport" text, "metropolitan_area" text, "passengers" real, "carriers" text ); Question: Which Metropolitan area has Passengers larger ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "busiest_international_routes_from_portla" ( "rank" real, "airport" text, "metropolitan_area" text, "passengers" real, "carriers" text ); Question: Which Metropolitan area has an Airport of toro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_of_polling" text, "link" text, "liberal" real, "green" real ); Question: What is the link for january 31 – february 3, 2011? <|assistant|> SELECT "li...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_of_polling" text, "link" text, "liberal" real, "green" real ); Question: On what date of polling was the Polling Firm forum research with 7 green and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_of_polling" text, "link" text, "liberal" real, "green" real ); Question: Which september 26–28, 2011 polling firm had a Link of html, less than 36 li...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "polling_firm" text, "date_of_polling" text, "link" text, "liberal" real, "green" real ); Question: What june 21–22, 2011 polling has green smaller than 13? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_skyscrapers_in_afric" ( "name" text, "city" text, "years_as_tallest" text, "metres" real, "feet" real, "floors" real ); Question: What is listed under the Years as tallest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_skyscrapers_in_afric" ( "name" text, "city" text, "years_as_tallest" text, "metres" real, "feet" real, "floors" real ); Question: What's the lowest Floors with Feet that's...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_skyscrapers_in_afric" ( "name" text, "city" text, "years_as_tallest" text, "metres" real, "feet" real, "floors" real ); Question: What is the sum of Metres wiht a Feet tha...
<|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, "record" text, "game_site" text, "attendance" real ); Question: What is the lowest week number that there was a game on...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_squad" ( "player" text, "position" text, "height_m" real, "weight_kg" real, "years" text ); Question: What is the highest weight of the position scrum half? <|assistant|> SELECT MAX("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "engine" text, "type" text, "displacement" text, "power" text, "torque" text ); Question: What is the power of the engine with a torque of n·m (lb·ft) at1,500rpm? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "engine" text, "type" text, "displacement" text, "power" text, "torque" text ); Question: Which torque value is associated with the 1.3 16V multijet engine? <|assistant|> SELECT "tor...
<|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: What is the lowest against v...
<|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: What is the average position...
<|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: What is the largest value fo...
<|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: What is the total of all aga...
<|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: What is the lowest against v...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real ); Question: What tournament located is mississippi was nov 5 <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real ); Question: what is the 1st prize for may 21 <|assistant|> SELECT SUM("1s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_no_4" ( "title" text, "year" real, "platform_s" text, "director" text, "producer" text ); Question: Who is the director of the game with HIroshi Sato as the producer on the GBA platform? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_no_4" ( "title" text, "year" real, "platform_s" text, "director" text, "producer" text ); Question: Who is the director of Last Window: The Secret of Cape West 3? <|assistant|> SELECT "di...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_no_4" ( "title" text, "year" real, "platform_s" text, "director" text, "producer" text ); Question: What is the platform of the 2010 game with Shuichiro Nishiya as director? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Opponent is on October of 29? <|assistant|> SELECT "opponent" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real ); Question: WHich October has a Record of 1–0–0? <|assistant|> SELECT MIN("october"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Opponent has a October larger than 20 with a Score of 2–2? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_major_championship" ( "year" real, "dates" text, "venue" text, "champion" text, "country" text, "score" real, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "purse" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_major_championship" ( "year" real, "dates" text, "venue" text, "champion" text, "country" text, "score" real, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "purse" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the average number of points for a team in the 250cc clas...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the smallest number of points for a 1981 team? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the fewest number of wins for a team ranked 8th with fewe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What was the rank of the 1983 team in the 250cc class? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Which district has joseph t. johnson as an incumbent? <|assistant|> SELECT "d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: What was the result for james o'h. patterson when first elected in 1904? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Which party was re-elected in south carolina 5 district? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Which party was joseph t. johnson in? <|assistant|> SELECT "party" FROM "sout...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Which party was first elected in 1898? <|assistant|> SELECT "party" FROM "sou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Which district won when first elected in 1900? <|assistant|> SELECT "district...
<|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, "wins" real ); Question: How many wins did the player who earned $6,607,562 have? <|assistant|> SELECT SUM("wins") FROM "...
<|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, "wins" real ); Question: What is the average earnings made by Greg Norman? <|assistant|> SELECT AVG("earnings") FROM "lea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: what city has a game of friendly and an opponent of tunisia? <|assistant|> SELECT "city" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: what are the results of the opponent of spain? <|assistant|> SELECT "results" FROM "1973" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: what results are dated december 19? <|assistant|> SELECT "results" FROM "1973" WHERE "date"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: what city has the results of 4:2? <|assistant|> SELECT "city" FROM "1973" WHERE "results"='4:...