instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE customer_addresses ( address_id VARCHAR ) CREATE TABLE addresses ( state_province_county VARCHAR, address_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the state names and the number of customers living in each sta...
SELECT t2.state_province_county, COUNT(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id GROUP BY t2.state_province_county
### Instruction: CREATE TABLE table_65563 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Winning Score of the Tournament with Jack Nicklaus ...
SELECT "Winning score" FROM table_65563 WHERE "Runner(s)-up" = 'jack nicklaus'
### Instruction: CREATE TABLE table_204_662 ( id number, "week" number, "date" text, "opponent" text, "result" text, "attendance" number, "bye" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many games were n october 1990 ? ### Respons...
SELECT COUNT(*) FROM table_204_662 WHERE "date" = 10 AND "date" = 1990
### Instruction: CREATE TABLE table_name_21 ( result VARCHAR, season VARCHAR, coach VARCHAR, division VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the 2000-01 season in which the IceGators were part of the Southwest division ...
SELECT result FROM table_name_21 WHERE coach = "dave farrish" AND division = "southwest" AND season = "2000-01"
### Instruction: CREATE TABLE table_15992 ( "Case/Suffix" text, "we two" text, "you and I" text, "you two" text, "them two (the two)" text, "who-two" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is who-two where you and i is ng ban? ###...
SELECT "who-two" FROM table_15992 WHERE "you and I" = 'ngœban'
### Instruction: CREATE TABLE table_24067 ( "Episode No." real, "Series No." real, "Title" text, "Directed by" text, "Written by" text, "Viewers (millions)" text, "Original airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed...
SELECT "Directed by" FROM table_24067 WHERE "Title" = 'The Departed'
### Instruction: CREATE TABLE table_54484 ( "Player" text, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the nationality of all Utah Jazz Players, that played 20...
SELECT "Nationality" FROM table_54484 WHERE "Years for Jazz" = '2011-present'
### Instruction: CREATE TABLE table_46464 ( "Res." text, "Record" text, "Opponent" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Time, when Location is 'Savannah, Georgia , United States'? #...
SELECT "Time" FROM table_46464 WHERE "Location" = 'savannah, georgia , united states'
### Instruction: CREATE TABLE table_203_502 ( id number, "team" text, "titles" number, "runner-up" number, "third place" number, "fourth place" number, "years participated" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which team has the ...
SELECT "team" FROM table_203_502 ORDER BY "titles" DESC LIMIT 1
### Instruction: CREATE TABLE table_64428 ( "Player" text, "Original Season" text, "Gender" text, "Eliminated" text, "Placing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who's the player that's male and on the original season of RW: Key West? ...
SELECT "Player" FROM table_64428 WHERE "Gender" = 'male' AND "Original Season" = 'rw: key west'
### Instruction: CREATE TABLE table_27444 ( "Prefecture" text, "City/Town" text, "High School Name" text, "Year of Previous Participation" text, "Total Number of Participation" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what prefecture is Nih...
SELECT "Prefecture" FROM table_27444 WHERE "High School Name" = 'Nihon Bunri'
### Instruction: CREATE TABLE table_3484 ( "Episode #" real, "Series #" real, "Title" text, "Director" text, "Writer" text, "Original airdate" text, "Viewers (in millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number in the se...
SELECT "Series #" FROM table_3484 WHERE "Title" = 'Puppy Love'
### Instruction: CREATE TABLE table_60646 ( "Date" text, "Opponent" text, "Score" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the game ending with a record of 31-43-2, what was the decisi...
SELECT "Decision" FROM table_60646 WHERE "Record" = '31-43-2'
### Instruction: CREATE TABLE table_64783 ( "Constituency number" text, "Name" text, "Reserved for ( SC / ST /None)" text, "District" text, "Number of electorates (2009)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the name of Constituency...
SELECT "Name" FROM table_64783 WHERE "Constituency number" = '108'
### Instruction: CREATE TABLE table_77674 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the decision when the record is 13 10 4? ...
SELECT "Decision" FROM table_77674 WHERE "Record" = '13–10–4'
### Instruction: CREATE TABLE table_203_341 ( id number, "season" text, "champion" text, "runner-up" text, "score" text, "third place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many third place wins can ericsson bobry bytom call his own...
SELECT COUNT("third place") FROM table_203_341 WHERE "third place" = 'ericsson bobry bytom'
### Instruction: CREATE TABLE table_19062 ( "Condition" text, "Prothrombin time" text, "Partial thromboplastin time" text, "Bleeding time" text, "Platelet count" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the bleeding time with condition ...
SELECT "Bleeding time" FROM table_19062 WHERE "Condition" = 'Factor V deficiency'
### Instruction: CREATE TABLE table_51524 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date did the home team of ...
SELECT "Date" FROM table_51524 WHERE "Home team" = 'footscray'
### Instruction: CREATE TABLE table_80268 ( "Episode title" text, "Villain(s)" text, "Identity(ies)" text, "Original airdate" text, "DVD volume" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the episode that aired october 8, 1988 ### Respons...
SELECT "Episode title" FROM table_80268 WHERE "Original airdate" = 'october 8, 1988'
### Instruction: CREATE TABLE table_19735 ( "Name" text, "Years" text, "League" real, "FA Cup" real, "League Cup" real, "Europe" real, "Other a" real, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What years have a total of 139?...
SELECT "Years" FROM table_19735 WHERE "Total" = '139'
### Instruction: CREATE TABLE table_79872 ( "Pick #" text, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Pick # has an NHL team of detroit red...
SELECT "Pick #" FROM table_79872 WHERE "NHL team" = 'detroit red wings'
### Instruction: CREATE TABLE table_65542 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the rank if the time was 5:54.57 and FB in notes? ### Response:
SELECT "Rank" FROM table_65542 WHERE "Notes" = 'fb' AND "Time" = '5:54.57'
### Instruction: CREATE TABLE table_3569 ( "District" real, "Incumbent" text, "Party" text, "Elected" text, "Status" text, "2010 Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the status of the election featuring incumbent m...
SELECT "Status" FROM table_3569 WHERE "Incumbent" = 'Margaret Kaiser'
### Instruction: CREATE TABLE table_27038 ( "Processor" text, "Brand name" text, "Model (list)" text, "Cores" real, "L2 Cache" text, "Socket" text, "TDP" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every value for cores if TDP is ...
SELECT "Cores" FROM table_27038 WHERE "TDP" = '17 W'
### Instruction: CREATE TABLE table_204_697 ( id number, "song" text, "artist(s)" text, "concert" number, "film" number, "1978 album" number, "2002 album" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which artist has the most concerts ? ...
SELECT "artist(s)" FROM table_204_697 ORDER BY "concert" DESC LIMIT 1
### Instruction: CREATE TABLE table_204_529 ( id number, "year" number, "personnel" text, "album" text, "label" text, "peak positions\nnor" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which album was the first to peak in the top ten positio...
SELECT "album" FROM table_204_529 WHERE "peak positions\nnor" <= 10 ORDER BY "year" LIMIT 1
### Instruction: CREATE TABLE table_2701 ( "Constituency" text, "Winner" text, "Party" text, "Margin" real, "Runner-up a" text, "Party a" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won when V. A. Muthiah was the runner-up? ### Response...
SELECT "Winner" FROM table_2701 WHERE "Runner-up a" = 'V. A. Muthiah'
### Instruction: CREATE TABLE table_60894 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Country, when To par is '1', and when Player is 'Seve Ballesteros'? ### Re...
SELECT "Country" FROM table_60894 WHERE "To par" = '1' AND "Player" = 'seve ballesteros'
### Instruction: CREATE TABLE table_79694 ( "Tournament" text, "Wins" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of top-25s for events with 0 wins? ###...
SELECT COUNT("Top-25") FROM table_79694 WHERE "Wins" < '0'
### Instruction: CREATE TABLE table_77456 ( "Game" text, "Date" text, "Home Team" text, "Result" text, "Road Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has a Road Team of new york, and a Result of 79-75? ### Response:
SELECT "Date" FROM table_77456 WHERE "Road Team" = 'new york' AND "Result" = '79-75'
### Instruction: CREATE TABLE table_34818 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Time" text, "Att." text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Opponent has a Record of 65-95? ### Response:
SELECT "Opponent" FROM table_34818 WHERE "Record" = '65-95'
### Instruction: CREATE TABLE table_42582 ( "Ship size" text, "Cargo" text, "2004" text, "2005" text, "2006" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the cargo value in 2005 with a ship size of all product carriers? ### Response:
SELECT "2005" FROM table_42582 WHERE "Ship size" = 'all product carriers'
### Instruction: CREATE TABLE table_name_11 ( origin_of_programming VARCHAR, network VARCHAR, genre VARCHAR, service VARCHAR, language VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the origin of the Malayalam Dish Service that shows gene...
SELECT origin_of_programming FROM table_name_11 WHERE service = "dish" AND language = "malayalam" AND genre = "general" AND network = "asianet plus"
### Instruction: CREATE TABLE table_name_23 ( city VARCHAR, tickets_available_since VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What city had tickets available since March 28, 2008 and went on sale on September 4, 2009? ### Response:
SELECT city FROM table_name_23 WHERE tickets_available_since = "march 28, 2008" AND date = "september 4, 2009"
### Instruction: CREATE TABLE table_train_192 ( "id" int, "hemoglobin_a1c_hba1c" float, "renal_disease" bool, "diabetic" string, "fasting_plasma_glucose" int, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- diagnosis of type ii diabetes ...
SELECT * FROM table_train_192 WHERE diabetic = 'ii'
### Instruction: CREATE TABLE table_name_43 ( earpads VARCHAR, succeeded_by VARCHAR, construction VARCHAR, sensitivity__db_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the earpads of the headphone with a plastic construction, an unknown s...
SELECT earpads FROM table_name_43 WHERE construction = "plastic" AND sensitivity__db_ = "unknown" AND succeeded_by = "sr325"
### Instruction: CREATE TABLE table_59220 ( "Physical property" text, "Helium" text, "Neon" text, "Argon" text, "Krypton" text, "Xenon" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Krypton has a Physical property of critical pressure (at...
SELECT "Krypton" FROM table_59220 WHERE "Physical property" = 'critical pressure (atm)'
### Instruction: CREATE TABLE table_11590 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which airport is in Saudi Arabia when the ICAO is oejn? ### Response:
SELECT "Airport" FROM table_11590 WHERE "Country" = 'saudi arabia' AND "ICAO" = 'oejn'
### Instruction: CREATE TABLE table_name_88 ( points_for VARCHAR, club VARCHAR, losing_bonus VARCHAR, lost VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Points For, when Losing Bonus is '2', when Lost is '8', and when Club is 'Rhyl And Distr...
SELECT points_for FROM table_name_88 WHERE losing_bonus = "2" AND lost = "8" AND club = "rhyl and district rfc"
### Instruction: CREATE TABLE table_202_197 ( id number, "year" number, "round" number, "gp" number, "w" number, "d" number, "l" number, "gf" number, "ga" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the largest gf in te...
SELECT MAX("gf") FROM table_202_197
### Instruction: CREATE TABLE table_53888 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least number of people to attend a ga...
SELECT MIN("Attendance") FROM table_53888 WHERE "Home" = 'los angeles'
### Instruction: CREATE TABLE table_78926 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest against for games played in the stade colombes, paris venue? #...
SELECT MIN("Against") FROM table_78926 WHERE "Venue" = 'stade colombes, paris'
### Instruction: CREATE TABLE table_55122 ( "Episode #" real, "# in Season" real, "Episode Name" text, "Airdate" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average episode # with a name of the origin of Donnie (part ...
SELECT AVG("Episode #") FROM table_55122 WHERE "Episode Name" = 'the origin of donnie (part 1)'
### Instruction: CREATE TABLE table_204_748 ( id number, "composer" text, "born" number, "died" number, "nationality" text, "notable works for piano" text, "remarks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many pianists completed ...
SELECT COUNT("composer") FROM table_204_748 WHERE "notable works for piano" >= 2
### Instruction: CREATE TABLE table_77600 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which home team played the Away...
SELECT "Home team" FROM table_77600 WHERE "Away team" = 'richmond'
### Instruction: CREATE TABLE table_2873 ( "Year" real, "Title of Drama" text, "Name of Role" text, "Nature of Role" text, "Co-Artists" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many locations for name of role as Xiao G...
SELECT COUNT("Location") FROM table_2873 WHERE "Name of Role" = 'Xiao Gui 小鬼'
### Instruction: CREATE TABLE table_203_842 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" number, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the total number of app...
SELECT COUNT(*) FROM table_203_842 WHERE "date" = 2005
### Instruction: CREATE TABLE table_21642 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Attendance" real, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Give the date of games agains...
SELECT "Date" FROM table_21642 WHERE "Opponent" = 'Minnesota Wild'
### Instruction: CREATE TABLE table_46148 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was his record when the method was technical s...
SELECT "Record" FROM table_46148 WHERE "Method" = 'technical submission (forearm choke)'
### Instruction: CREATE TABLE table_21755 ( "Gatchaman" text, "Battle of the Planets" text, "G-Force" text, "Eagle Riders" text, "OVA (Harmony Gold Dub)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which gatchaman has eagle riders as lukan? ###...
SELECT "Gatchaman" FROM table_21755 WHERE "Eagle Riders" = 'Lukan'
### Instruction: CREATE TABLE table_5256 ( "Episode" real, "Title" text, "Airdate (Canada)" text, "Airdate (USA)" text, "CBS airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which episode aired in the USA on 20 May 2005? ### Response:
SELECT "Episode" FROM table_5256 WHERE "Airdate (USA)" = '20 may 2005'
### Instruction: CREATE TABLE table_31955 ( "Points" real, "Name" text, "Club" text, "Tries" real, "Drop" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the fewest tries for leicester tigers with points less than 207 ### Response:
SELECT MIN("Tries") FROM table_31955 WHERE "Club" = 'leicester tigers' AND "Points" < '207'
### Instruction: CREATE TABLE table_3581 ( "Season #" real, "Series #" real, "Episode title" text, "Original air date" text, "Nick prod. #" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the series # on airdate September 21, 2002? ### Resp...
SELECT "Series #" FROM table_3581 WHERE "Original air date" = 'September 21, 2002'
### Instruction: CREATE TABLE table_24165 ( "Member countries" text, "Population" real, "Area (km\u00b2)" real, "GDP (billion US$)" text, "GDP per capita (US$)" real, "Languages" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the languages ...
SELECT "Languages" FROM table_24165 WHERE "Member countries" = 'Estonia'
### Instruction: CREATE TABLE table_60279 ( "Player" text, "Country" text, "Year(s) won" real, "Total" real, "To par" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest total for Scotland with a year won of 1985? ### Response:
SELECT MAX("Total") FROM table_60279 WHERE "Country" = 'scotland' AND "Year(s) won" = '1985'
### Instruction: CREATE TABLE table_12586 ( "Outcome" text, "Date" text, "Category" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Category of the Rodez, France To...
SELECT "Category" FROM table_12586 WHERE "Tournament" = 'rodez, france'
### Instruction: CREATE TABLE table_32571 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date did the home team ...
SELECT "Date" FROM table_32571 WHERE "Home team" = 'essendon'
### Instruction: CREATE TABLE table_203_406 ( id number, "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what brand has been construct...
SELECT "constructor" FROM table_203_406 GROUP BY "constructor" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_18546 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people on this list are named thomas abernethy...
SELECT COUNT("Candidates") FROM table_18546 WHERE "Incumbent" = 'Thomas Abernethy'
### Instruction: CREATE TABLE table_57199 ( "Date" text, "Course" text, "Distance" text, "Type" text, "Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the winner with a type of plain stage and a Course of nola to sora? #...
SELECT "Winner" FROM table_57199 WHERE "Type" = 'plain stage' AND "Course" = 'nola to sora'
### Instruction: CREATE TABLE table_21349 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real, "Competition" text, "Man of the Match" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the man of the match for 24t...
SELECT "Man of the Match" FROM table_21349 WHERE "Date" = '24th'
### Instruction: CREATE TABLE table_204_467 ( id number, "date" text, "opponents" text, "h/a" text, "result\nf-a" text, "scorers" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many games were played in september or ...
SELECT COUNT(*) FROM table_204_467 WHERE "date" IN (9, 11)
### Instruction: CREATE TABLE table_204_267 ( id number, "tie no" number, "home team" text, "score" text, "away team" text, "date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the first home team listed as having a score of 3-1 ? ### ...
SELECT "home team" FROM table_204_267 WHERE "score" = '3-1' ORDER BY "date" LIMIT 1
### Instruction: CREATE TABLE table_14585 ( "Game" real, "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the visitor for the Apri...
SELECT "Visitor" FROM table_14585 WHERE "Date" = 'april 17'
### Instruction: CREATE TABLE table_24564 ( "Country" text, "% of imports from Russia" text, "% cut" text, "Diversification" text, "Gas storage" text, "Alternative fuel" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What wast the percent cut fo...
SELECT "% cut" FROM table_24564 WHERE "Gas storage" = '80% full'
### Instruction: CREATE TABLE table_32620 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What home team played at Lake O...
SELECT "Home team" FROM table_32620 WHERE "Venue" = 'lake oval'
### Instruction: CREATE TABLE table_57583 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record of the game with Mason as the decision and Nashville ...
SELECT "Record" FROM table_57583 WHERE "Decision" = 'mason' AND "Home" = 'nashville'
### Instruction: CREATE TABLE table_203_509 ( id number, "year" number, "laetare medalist" text, "position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many lawyers have won the award between 1883 and 2014 ? ### Response:
SELECT COUNT(*) FROM table_203_509 WHERE "position" = 'lawyer' AND "year" >= 1883 AND "year" <= 2014
### Instruction: CREATE TABLE table_35912 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Stadium" text, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What opponent has balboa stadium as the opponent...
SELECT "Opponent" FROM table_35912 WHERE "Stadium" = 'balboa stadium'
### Instruction: CREATE TABLE table_28957 ( "Rd." text, "Circuit" text, "City / State" text, "Date" text, "Championship" text, "Challenge" text, "Production" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which circuit was held on 25 28 marc...
SELECT "Circuit" FROM table_28957 WHERE "Date" = '25–28 March'
### Instruction: CREATE TABLE table_name_13 ( lok_sabha VARCHAR, party_affiliation VARCHAR, duration VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Lok Sabha for Dravida Munnetra Kazhagam, in 1999-04? ### Response:
SELECT lok_sabha FROM table_name_13 WHERE party_affiliation = "dravida munnetra kazhagam" AND duration = "1999-04"
### Instruction: CREATE TABLE table_203_168 ( id number, "team name" text, "leagues" text, "base" text, "year started" text, "year ended" text, "notable riders" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many teams were ended in the ...
SELECT COUNT("team name") FROM table_203_168 WHERE "year ended" >= present_ref - 10
### Instruction: CREATE TABLE table_63434 ( "Constituency number" text, "Name" text, "Reserved for ( SC / ST /None)" text, "District" text, "Number of electorates (2009)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Reserved For of Lah...
SELECT "Reserved for ( SC / ST /None)" FROM table_63434 WHERE "Name" = 'lahar'
### Instruction: CREATE TABLE table_38926 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Save" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Score has a Opponent of Boston red sox and a Save of sager? ### Response:
SELECT "Score" FROM table_38926 WHERE "Opponent" = 'boston red sox' AND "Save" = 'sager'
### Instruction: CREATE TABLE table_27305 ( "Team" text, "#" real, "Primary Sponsor" text, "Driver(s)" text, "Listed Owner(s)" text, "Engine" text, "Chassis" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who drives the abc supply sponsored ...
SELECT "Driver(s)" FROM table_27305 WHERE "Primary Sponsor" = 'ABC Supply'
### Instruction: CREATE TABLE table_name_15 ( schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc nuremberg ii? ### Respo...
SELECT schwaben FROM table_name_15 WHERE oberbayern = "fc bayern munich ii" AND mittelfranken = "1. fc nuremberg ii"
### Instruction: CREATE TABLE table_11384 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which away team was at windy hi...
SELECT "Away team" FROM table_11384 WHERE "Venue" = 'windy hill'
### Instruction: CREATE TABLE table_11388 ( "Year" real, "Main colour(s)" text, "Additional colour(s)" text, "Main sponsor(s)" text, "Additional major sponsor(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the main color(s) for marlboro?...
SELECT "Main colour(s)" FROM table_11388 WHERE "Main sponsor(s)" = 'marlboro'
### Instruction: CREATE TABLE table_4142 ( "By-election" real, "Electorate" text, "Date" text, "Incumbent" text, "Reason" text, "Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When ihaia tainui is the incumbent what is the date? ### Re...
SELECT "Date" FROM table_4142 WHERE "Incumbent" = 'Ihaia Tainui'
### Instruction: CREATE TABLE table_54181 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is melbourne's away score?...
SELECT "Away team score" FROM table_54181 WHERE "Away team" = 'melbourne'
### Instruction: CREATE TABLE table_10098 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/Junior/Club Team (League)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What college or club team did Dale Mitchell play for? ...
SELECT "College/Junior/Club Team (League)" FROM table_10098 WHERE "Player" = 'dale mitchell'
### Instruction: CREATE TABLE table_32739 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What home team played at the we...
SELECT "Home team" FROM table_32739 WHERE "Venue" = 'western oval'
### Instruction: CREATE TABLE table_55450 ( "Date" text, "Tournament" text, "Winning score" text, "To par" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What tournament took place on 7 Aug 2011? ...
SELECT "Tournament" FROM table_55450 WHERE "Date" = '7 aug 2011'
### Instruction: CREATE TABLE table_63058 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "TV Time" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Tv Time of the game with an Attendance of 73,578? ###...
SELECT "TV Time" FROM table_63058 WHERE "Attendance" = '73,578'
### Instruction: CREATE TABLE table_47871 ( "Season" text, "Coach" text, "Captain" text, "Alternate (1)" text, "Alternate (2)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the alternate for Andy Brown, and Nick Grady? ### Response:
SELECT "Alternate (2)" FROM table_47871 WHERE "Coach" = 'andy brown' AND "Captain" = 'nick grady'
### Instruction: CREATE TABLE table_34714 ( "Year" text, "National Champion" text, "Runner-Up" text, "Location" text, "Host" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- At what Location did Robert Morris University (Illinois) Host the Lindenwood ...
SELECT "Location" FROM table_34714 WHERE "Host" = 'robert morris university (illinois)' AND "National Champion" = 'lindenwood'
### Instruction: CREATE TABLE table_25524 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of the episode whose...
SELECT "Title" FROM table_25524 WHERE "No. in series" = '31'
### Instruction: CREATE TABLE table_11769 ( "Name" text, "Wheel arrangement" text, "SR No." text, "Manufacturer" text, "Year made" real, "Year withdrawn" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who manufactured the vehicle that was withdr...
SELECT "Manufacturer" FROM table_11769 WHERE "Year withdrawn" = '1927'
### Instruction: CREATE TABLE table_38991 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who ha the gold and 1 bronze, and more than 0 silver? ### Response:
SELECT "Gold" FROM table_38991 WHERE "Bronze" = '1' AND "Silver" > '0'
### Instruction: CREATE TABLE table_name_44 ( draw VARCHAR, jury VARCHAR, televote VARCHAR, artist VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much Draw has a Televote larger than 18, and an Artist of elizabeth anastasiou, and a Jury larger th...
SELECT COUNT(draw) FROM table_name_44 WHERE televote > 18 AND artist = "elizabeth anastasiou" AND jury > 4
### Instruction: CREATE TABLE table_30567 ( "Pick #" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team did David McLay play for? ### ...
SELECT "College/junior/club team" FROM table_30567 WHERE "Player" = 'David McLay'
### Instruction: CREATE TABLE table_name_76 ( grid INTEGER, time_retired VARCHAR, laps VARCHAR, constructor VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the average Grid for a Maserati with less than 80 laps, and a Time/Retired of +2 laps? ...
SELECT AVG(grid) FROM table_name_76 WHERE laps < 80 AND constructor = "maserati" AND time_retired = "+2 laps"
### Instruction: CREATE TABLE table_77455 ( "Game" text, "Date" text, "Home Team" text, "Result" text, "Road Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Road Team has a Home Team of rochester, and a Result of 89-92? ### Response:
SELECT "Road Team" FROM table_77455 WHERE "Home Team" = 'rochester' AND "Result" = '89-92'
### Instruction: CREATE TABLE table_77995 ( "Round" text, "Date" text, "Opponent" text, "Venue" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Opponent with a Round with 3, and a Venue of home? ### Response:
SELECT "Opponent" FROM table_77995 WHERE "Round" = '3' AND "Venue" = 'home'
### Instruction: CREATE TABLE table_60074 ( "Players" text, "Position" text, "Year" text, "Ht/Wt" text, "Bats/Throws" text, "Hometown (Last School)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What side does Ryan Overland Bat/Throws from? #...
SELECT "Bats/Throws" FROM table_60074 WHERE "Players" = 'ryan overland'
### Instruction: CREATE TABLE table_14751 ( "Country" text, "Film title used in nomination" text, "Language" text, "Original name" text, "Director" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the original name of the film that used the ti...
SELECT "Original name" FROM table_14751 WHERE "Film title used in nomination" = 'olympics 40'
### Instruction: CREATE TABLE table_204_748 ( id number, "composer" text, "born" number, "died" number, "nationality" text, "notable works for piano" text, "remarks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many english composers a...
SELECT COUNT("composer") FROM table_204_748 WHERE "nationality" = 'english'
### Instruction: CREATE TABLE table_203_146 ( id number, "year" number, "association" text, "category" text, "nominated work" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which association awarded jones ' first award after the y...
SELECT "association" FROM table_203_146 WHERE "year" > 2000 ORDER BY "year" LIMIT 1
### Instruction: CREATE TABLE table_41601 ( "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the director for the episode titled 'home...
SELECT "Directed by" FROM table_41601 WHERE "Title" = 'homewrecker for the holidays'
### Instruction: CREATE TABLE table_4663 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What venue featured fitzroy as t...
SELECT "Venue" FROM table_4663 WHERE "Home team" = 'fitzroy'