instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_52329 ( "Pac-12" text, "Lost" real, "Tied" real, "Pct." real, "Years" real, "Total Games" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total games associated with the Pac-12 of california and 117 ye...
SELECT "Total Games" FROM table_52329 WHERE "Years" = '117' AND "Pac-12" = 'california'
### Instruction: CREATE TABLE table_77773 ( "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. -- If the away team scored 7.3 (45...
SELECT "Home team score" FROM table_77773 WHERE "Away team score" = '7.3 (45)'
### Instruction: CREATE TABLE table_26653 ( "District" text, "Vacator" text, "Reason for Vacancy" text, "Successor" text, "Date of successors taking office" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the person died May 22, 1895 is the reas...
SELECT "District" FROM table_26653 WHERE "Reason for Vacancy" = 'Died May 22, 1895'
### Instruction: CREATE TABLE table_24538587_13 ( l3_cache VARCHAR, brand_name__list_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the l3 cache for core i7-2xxxqe, i7-26xxqm, i7-27xxqm ### Response:
SELECT l3_cache FROM table_24538587_13 WHERE brand_name__list_ = "Core i7-2xxxQE, i7-26xxQM, i7-27xxQM"
### Instruction: CREATE TABLE table_68302 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What United States Player has a To par of +4 and a Score of 71-77=148? ### Response:
SELECT "Player" FROM table_68302 WHERE "Country" = 'united states' AND "To par" = '+4' AND "Score" = '71-77=148'
### Instruction: CREATE TABLE table_29152 ( "Common Name" text, "Genus & Species" text, "NCBI Accession Number" text, "Length (AA)" real, "% Identity to C7orf38" real, "% Similarity to C7orf38" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What...
SELECT "Common Name" FROM table_29152 WHERE "Length (AA)" = '1323'
### Instruction: CREATE TABLE table_61779 ( "Year" real, "Award ceremony" text, "Role" text, "Production" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Production in 2009 had a Result of Nominated at the Helpmann awards Award C...
SELECT "Production" FROM table_61779 WHERE "Result" = 'nominated' AND "Year" = '2009' AND "Award ceremony" = 'helpmann awards'
### Instruction: CREATE TABLE table_3729 ( "#" real, "Matches As Captain" text, "Player" text, "Asian Cup Played As A Captain" text, "Years Active" text, "Caps(Goals)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the years active whe...
SELECT "Years Active" FROM table_3729 WHERE "Asian Cup Played As A Captain" = 'Qatar 1988'
### Instruction: CREATE TABLE table_204_809 ( id number, "draw" number, "country" text, "language" text, "artist" text, "song" text, "english translation" text, "national final" text, "place" number, "points" number ) -- Using valid SQLite, answer the following questions for th...
SELECT "points" FROM table_204_809 WHERE "country" = 'russia'
### Instruction: CREATE TABLE table_27995 ( "Episode #" real, "The W\u00f8rd" text, "Guest" text, "Introductory phrase" text, "Original airdate" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the word for the epi...
SELECT "The W\u00f8rd" FROM table_27995 WHERE "Original airdate" = 'February 11'
### Instruction: CREATE TABLE table_22393 ( "Episode" text, "Garfield Episode 1" text, "U.S. Acres Episode" text, "Garfield Episode 2" text, "Original Airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many 2nd episodes for u.s. acres episo...
SELECT COUNT("Garfield Episode 2") FROM table_22393 WHERE "U.S. Acres Episode" = 'The Orson Awards'
### Instruction: CREATE TABLE table_61451 ( "Class" text, "DRG Number(s)" text, "Quantity" real, "Year(s) of Manufacture" text, "Type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the quantity when the DRG was E 62 01 E 62 05? ### Respon...
SELECT COUNT("Quantity") FROM table_61451 WHERE "DRG Number(s)" = 'e 62 01–e 62 05'
### Instruction: CREATE TABLE shipments ( order_id VARCHAR, shipment_tracking_number VARCHAR ) CREATE TABLE orders ( date_order_placed VARCHAR, order_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the order placed whose shipment tracking...
SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452
### Instruction: CREATE TABLE table_9397 ( "Year" real, "Manufacturer" text, "Start" text, "Finish" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the latest year with a start of 3 and a finish of 40 for the morgan-mcclure team? ...
SELECT MAX("Year") FROM table_9397 WHERE "Start" = '3' AND "Team" = 'morgan-mcclure' AND "Finish" = '40'
### Instruction: CREATE TABLE table_203_266 ( id number, "group" text, "members" number, "caucusing" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what group has the same number of caucusing members as rpr group ? ### Response:
SELECT "group" FROM table_203_266 WHERE "group" <> 'rpr group' AND "caucusing" = (SELECT "caucusing" FROM table_203_266 WHERE "group" = 'rpr group')
### Instruction: CREATE TABLE table_13621 ( "School" text, "Location" text, "Mascot" text, "Enrollment" real, "IHSAA Class" text, "# / County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the enrollment at the school with IHSAA class A...
SELECT "Enrollment" FROM table_13621 WHERE "IHSAA Class" = 'a' AND "Mascot" = 'vikings'
### Instruction: CREATE TABLE table_204_749 ( id number, "courthouse" text, "city" text, "street address" text, "jurisdiction" text, "dates of use" text, "named for" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long has the city of b...
SELECT "dates of use" - "dates of use" FROM table_204_749 WHERE "city" = 'brattleboro'
### Instruction: CREATE TABLE table_204_256 ( id number, "position" number, "club" text, "played" number, "points" number, "wins" number, "draws" number, "losses" number, "goals for" number, "goals against" number, "goal difference" number ) -- Using valid SQLite, answer th...
SELECT COUNT("position") FROM table_204_256
### Instruction: CREATE TABLE table_5276 ( "Club" text, "Sport" text, "League" text, "Titles" real, "Founded" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Founded has a League of women's flat track derby association, and a Club of omaha roll...
SELECT AVG("Founded") FROM table_5276 WHERE "League" = 'women''s flat track derby association' AND "Club" = 'omaha rollergirls'
### Instruction: CREATE TABLE table_21142 ( "Country" text, "Name" text, "Network" text, "Premiere" text, "Host(s)" text, "Judges" text, "Seasons and Winners" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the seasons and winners that a...
SELECT "Seasons and Winners" FROM table_21142 WHERE "Premiere" = '28 January 2007'
### Instruction: CREATE TABLE table_9084 ( "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 Diego Saraiva's record when he fought for 3...
SELECT "Record" FROM table_9084 WHERE "Round" = '3' AND "Opponent" = 'danny suarez'
### Instruction: CREATE TABLE table_66012 ( "Ship" text, "Year" real, "Dates" text, "Line" text, "From" text, "Distance" text, "Days, hours, minutes" text, "Speed" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Days, hours, m...
SELECT "Days, hours, minutes" FROM table_66012 WHERE "Dates" = '21 – 26 october'
### Instruction: CREATE TABLE table_30701 ( "Constellation" text, "IAU abbreviation" text, "Other abbreviation" text, "Genitive" text, "Family" text, "Origin" text, "Meaning" text, "Brightest star" text ) -- Using valid SQLite, answer the following questions for the tables provided abo...
SELECT "Brightest star" FROM table_30701 WHERE "Meaning" = 'archer'
### Instruction: CREATE TABLE table_77449 ( "Game" text, "Date" text, "Opponent" text, "Result" text, "Dolphins' points" text, "Opponents' Points" text, "Record" text, "Streak" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT "Streak" FROM table_77449 WHERE "Game" = '2'
### Instruction: CREATE TABLE table_21100 ( "Rank" real, "Team" text, "Round1" real, "Round2" real, "Round3" real, "Round4" real, "Round5" real, "Total Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score for round 2 ...
SELECT COUNT("Round2") FROM table_21100 WHERE "Team" = 'Team Toshiba'
### Instruction: CREATE TABLE table_4167 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- W...
SELECT "Written by" FROM table_4167 WHERE "Title" = 'There Goes the Neighborhood'
### Instruction: CREATE TABLE table_train_67 ( "id" int, "corticosteroid_therapy" bool, "viral_infection" bool, "active_infection" bool, "hiv_infection" bool, "neutropenia" int, "receiving_prednisolone" int, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following q...
SELECT * FROM table_train_67 WHERE age >= 18
### Instruction: CREATE TABLE table_68813 ( "Code Name" text, "Function (figure)" text, "Real Name" text, "Birthplace" text, "Serial number" text, "Primary military speciality" text, "Secondary military speciality" text, "Equipment" text ) -- Using valid SQLite, answer the following qu...
SELECT "Code Name" FROM table_68813 WHERE "Birthplace" = 'hawaii'
### Instruction: CREATE TABLE table_name_33 ( population_per_km²__2009_ INTEGER, province VARCHAR, area__km²_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Population per km (2009) that is in western province, with an Area (km ) larg...
SELECT MAX(population_per_km²__2009_) FROM table_name_33 WHERE province = "western province" AND area__km²_ > 5 OFFSET 475
### Instruction: CREATE TABLE table_17912 ( "Year" real, "Delaware" text, "Maryland" text, "New Jersey" text, "New York" text, "Pennsylvania" text, "Washington, D.C." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who played in Maryland the ...
SELECT "Maryland" FROM table_17912 WHERE "Pennsylvania" = 'Deep Run Valley LL Hilltown'
### Instruction: CREATE TABLE table_35116 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Attendance has an Opponent of phillies, and a Record of 30-33? ...
SELECT SUM("Attendance") FROM table_35116 WHERE "Opponent" = 'phillies' AND "Record" = '30-33'
### Instruction: CREATE TABLE table_51345 ( "Year" real, "Award" text, "Category" text, "Type" text, "Title" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What award was won in the best sound category for the exorcist before 1998? ### Response:
SELECT "Award" FROM table_51345 WHERE "Year" < '1998' AND "Type" = 'won' AND "Category" = 'best sound' AND "Title" = 'the exorcist'
### Instruction: CREATE TABLE table_9721 ( "Year" real, "Miss Earth Venezuela" text, "1st Runner Up" text, "2nd Runner Up" text, "3rd Runner Up" text, "4th Runner Up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the miss earth venezuela...
SELECT "Miss Earth Venezuela" FROM table_9721 WHERE "2nd Runner Up" = 'maría escalante'
### Instruction: CREATE TABLE table_203_362 ( id number, "school" text, "location" text, "outright titles" number, "shared titles" number, "runners-up" number, "total finals" number, "last title" number, "last final" number ) -- Using valid SQLite, answer the following questions fo...
SELECT "total finals" FROM table_203_362 WHERE "school" = 'foyle college'
### Instruction: CREATE TABLE Customers_cards ( customer_id VARCHAR ) CREATE TABLE Customers ( customer_first_name VARCHAR, customer_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the customer ids and firstname without a credit card. ### Respo...
SELECT customer_id, customer_first_name FROM Customers EXCEPT SELECT T1.customer_id, T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = "Credit"
### Instruction: CREATE TABLE table_36231 ( "Air Date" text, "Rating" real, "Share" real, "18-49" text, "Viewers [Live] (m)" real, "Viewers [DVR+7] (m)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of the live viewers for episo...
SELECT SUM("Viewers [Live] (m)") FROM table_36231 WHERE "Share" > '5'
### Instruction: CREATE TABLE table_204_11 ( id number, "year" number, "fbs opponent" text, "result" text, "opponent's conference" text, "opponent's head coach" text, "charleston southern's head coach" text ) -- Using valid SQLite, answer the following questions for the tables provided abo...
SELECT COUNT("year") FROM table_204_11 WHERE "charleston southern's head coach" = 'david dowd'
### Instruction: CREATE TABLE Acceptance ( Submission_ID int, Workshop_ID int, Result text ) CREATE TABLE submission ( Submission_ID int, Scores real, Author text, College text ) CREATE TABLE workshop ( Workshop_ID int, Date text, Venue text, Name text ) -- Using valid SQ...
SELECT Venue, COUNT(Venue) FROM workshop GROUP BY Venue
### Instruction: CREATE TABLE table_204_168 ( id number, "date" text, "time" text, "opponent" text, "site" text, "tv" text, "result" text, "attendance" number, "record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many teams ha...
SELECT COUNT("opponent") FROM table_204_168 WHERE "attendance" <= 1000
### Instruction: CREATE TABLE table_70087 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which week was on October 11, 1970 and an attendance larger than 41,379. ### Response...
SELECT "Week" FROM table_70087 WHERE "Attendance" > '41,379' AND "Date" = 'october 11, 1970'
### Instruction: CREATE TABLE table_204_442 ( id number, "institution" text, "location" text, "enrollment" number, "nickname" text, "varsity\nsports" number, "rugby\nsince" text, "head coach" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT "rugby\nsince" FROM table_204_442 WHERE "nickname" = 'terrapins'
### Instruction: CREATE TABLE table_57225 ( "Rank" real, "Name" text, "Nation" text, "SP+FS" real, "Points" real, "Places" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank for points less than 166.96, and a Places of 166? ### Re...
SELECT AVG("Rank") FROM table_57225 WHERE "Points" < '166.96' AND "Places" = '166'
### Instruction: CREATE TABLE table_203_537 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many euro 2000 qualifying comp...
SELECT COUNT(DISTINCT "date") FROM table_203_537 WHERE "competition" = 'euro 2000 qualifying'
### Instruction: CREATE TABLE table_15967 ( "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. -- What positions does the college/junior/club t...
SELECT "Position" FROM table_15967 WHERE "College/junior/club team" = 'Molot Perm (Russia)'
### Instruction: CREATE TABLE table_66583 ( "Latest stable release" text, "Developer" text, "3D support?" text, "Runs on POSIX style systems ?" text, "Runs on Windows?" text, "User Interface Language(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT "Runs on POSIX style systems ?" FROM table_66583 WHERE "Developer" = 'andéor'
### Instruction: CREATE TABLE table_52386 ( "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 team did the away team pla...
SELECT "Home team" FROM table_52386 WHERE "Away team score" = '11.9 (75)'
### Instruction: CREATE TABLE table_59575 ( "Name" text, "Father" text, "Birth" text, "Marriage" text, "Became Duchess" text, "Ceased to be Duchess" text, "Death" text, "Spouse" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did the...
SELECT "Death" FROM table_59575 WHERE "Spouse" = 'philippe'
### Instruction: CREATE TABLE table_201_27 ( id number, "#" number, "secretary of state" text, "prime minister" text, "tenure" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what secretary of state served under both prime minister laurier and prime ...
SELECT "secretary of state" FROM table_201_27 WHERE "prime minister" = 'laurier' INTERSECT SELECT "secretary of state" FROM table_201_27 WHERE "prime minister" = 'king'
### Instruction: CREATE TABLE table_name_66 ( height__cm_ INTEGER, birthdate VARCHAR, weight__kg_ VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Height when the weight is less than 91 and the position is d, and a...
SELECT AVG(height__cm_) FROM table_name_66 WHERE weight__kg_ < 91 AND position = "d" AND birthdate = "july 4, 1975"
### Instruction: CREATE TABLE table_203_35 ( id number, "pos" text, "rider" text, "manufacturer" text, "time/retired" text, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the next rider after tetsuya harada ? ### Response:
SELECT "rider" FROM table_203_35 WHERE "pos" = (SELECT "pos" FROM table_203_35 WHERE "rider" = 'tetsuya harada') + 1
### Instruction: CREATE TABLE table_204_975 ( id number, "year" number, "competition" text, "location" text, "event" text, "final-rank" text, "final-score" number, "qualifying rank" number, "qualifying score" number ) -- Using valid SQLite, answer the following questions for the ta...
SELECT COUNT(*) FROM table_204_975 WHERE "qualifying score" > 15.2
### Instruction: CREATE TABLE table_204_511 ( id number, "number" number, "driver" text, "entrant" text, "chassis" text, "engine" text, "tyre" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- did jimmy bryan or jack fairman have a d tyre ? #...
SELECT "driver" FROM table_204_511 WHERE "driver" IN ('jimmy bryan', 'jack fairman') AND "tyre" = 'd'
### Instruction: CREATE TABLE table_name_78 ( allsvenskan_titles INTEGER, introduced VARCHAR, stars_symbolizes VARCHAR, club VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many allsvenskan titles did club aik have after its introduction after 200...
SELECT SUM(allsvenskan_titles) FROM table_name_78 WHERE stars_symbolizes = "number of swedish championship titles" AND club = "aik" AND introduced > 2000
### Instruction: CREATE TABLE table_65262 ( "Title" text, "Series" text, "Director" text, "Production Number" text, "Release date" text, "reissue?" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the title that was directed by...
SELECT "Title" FROM table_65262 WHERE "Director" = 'friz freleng' AND "Production Number" = '443'
### Instruction: CREATE TABLE table_72181 ( "Route Name" text, "Direction" text, "Termini" text, "Junctions" text, "Length" text, "Population Area" text, "Remarks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many junctions have 'repla...
SELECT COUNT("Junctions") FROM table_72181 WHERE "Remarks" = 'Replaced by BSI-35'
### Instruction: CREATE TABLE table_6145 ( "Call sign" text, "Frequency" text, "City of license" text, "Watts" real, "Class" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Frequency that is smaller than 100,000 Watts in guymon, oklahoma?...
SELECT "Frequency" FROM table_6145 WHERE "Watts" < '100,000' AND "City of license" = 'guymon, oklahoma'
### Instruction: CREATE TABLE table_23856 ( "No. in series" real, "No. in season" real, "Title" text, "Directedby" text, "Writtenby" text, "Originalairdate" text, "Production code" text, "U.S.viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables...
SELECT "Writtenby" FROM table_23856 WHERE "Title" = 'Balm'
### Instruction: CREATE TABLE table_73491 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the championship for clay and co...
SELECT "Championship" FROM table_73491 WHERE "Surface" = 'Clay' AND "Opponent in the final" = 'Corrado Barazzutti'
### Instruction: CREATE TABLE table_67552 ( "Season" real, "Series" text, "Races" text, "Wins" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championshi...
SELECT MIN("Season") FROM table_67552 WHERE "Races" = '6' AND "Series" = 'all-japan gt championship' AND "Wins" = '2'
### Instruction: CREATE TABLE table_43488 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Crowd" real, "Box Score" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the Score th...
SELECT "Score" FROM table_43488 WHERE "Home team" = 'townsville crocodiles'
### Instruction: CREATE TABLE table_202_143 ( id number, "pos" text, "no" number, "driver" text, "constructor" text, "laps" number, "time/retired" text, "grid" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how lon...
SELECT "time/retired" FROM table_202_143 WHERE "driver" = 'michael schumacher'
### Instruction: CREATE TABLE table_65122 ( "Class (old) to 1868" text, "Railway number(s)" text, "Quantity" real, "Year(s) of manufacture" text, "Type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the Class (old) to 1868 that has ...
SELECT "Class (old) to 1868" FROM table_65122 WHERE "Quantity" > '8'
### Instruction: CREATE TABLE musical ( Musical_ID int, Name text, Year int, Award text, Category text, Nominee text, Result text ) CREATE TABLE actor ( Actor_ID int, Name text, Musical_ID int, Character text, Duration text, age int ) -- Using valid SQLite, answer ...
SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee
### Instruction: CREATE TABLE table_203_425 ( id number, "season" number, "driver" text, "equipment" text, "position" number, "points" number, "races" number, "wins" number, "second" number, "third" number ) -- Using valid SQLite, answer the following questions for the tables p...
SELECT "points" FROM table_203_425 WHERE "season" = 2007
### Instruction: CREATE TABLE table_74231 ( "Year Location" text, "Mens Singles" text, "Womens Singles" text, "Mens Doubles" text, "Womens Doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the place and when was the year when the women...
SELECT "Year Location" FROM table_74231 WHERE "Womens Doubles" = 'Bai Yang Niu Jianfeng'
### Instruction: CREATE TABLE table_5908 ( "Season" text, "W(OT)" real, "W(GWS)*" text, "L(GWS)*" text, "L(OT)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many OT wins associated with a L(GWS)* of 3, and a L(OT) larger than 1? ### Response...
SELECT SUM("W(OT)") FROM table_5908 WHERE "L(GWS)*" = '3' AND "L(OT)" > '1'
### Instruction: CREATE TABLE table_58092 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which rank has more than 1 silver, more than 1 gold, and more than 4 bronze...
SELECT "Rank" FROM table_58092 WHERE "Silver" > '1' AND "Gold" > '1' AND "Bronze" > '4'
### Instruction: CREATE TABLE table_28181 ( "Institution" text, "Seniors" text, "Juniors" text, "Women" text, "Status" text, "Founded" real, "Affiliation (Population)" text, "Color" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provide...
SELECT MAX("Founded") FROM table_28181 WHERE "Color" = 'Green and White'
### Instruction: CREATE TABLE table_203_523 ( id number, "state" text, "swimsuit" number, "interview" number, "evening gown" number, "average" number, "finalists" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of p...
SELECT "swimsuit" + "interview" + "evening gown" FROM table_203_523 WHERE "state" = 'kansas'
### Instruction: CREATE TABLE table_204_111 ( id number, "name" text, "animal type" text, "introduced" number, "reintroduced" text, "retired" number, "beanie baby resembled" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total nu...
SELECT COUNT("name") FROM table_204_111 WHERE "reintroduced" = 'neon'
### Instruction: CREATE TABLE table_12101 ( "Date" text, "Epicenter" text, "Magnitude" text, "Intensity" text, "Casualties" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the epicenter of the earthquake on March 2, 1825 with an unknown inten...
SELECT "Epicenter" FROM table_12101 WHERE "Intensity" = 'unknown' AND "Date" = 'march 2, 1825'
### Instruction: CREATE TABLE table_51419 ( "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. -- How many attended the game when...
SELECT "Crowd" FROM table_51419 WHERE "Home team score" = '5.6 (36)'
### Instruction: CREATE TABLE table_51651 ( "Race" text, "Circuit" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Constructor" text, "Tyre" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT "Tyre" FROM table_51651 WHERE "Circuit" = 'zandvoort'
### Instruction: CREATE TABLE table_32846 ( "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. -- At what venue did the home team...
SELECT "Venue" FROM table_32846 WHERE "Home team score" = '12.19 (91)'
### Instruction: CREATE TABLE table_27662 ( "Date" text, "Tournament" text, "Location" text, "Opponent" text, "Stadium" text, "Score" text, "Indian Scorers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the Indian scorers is the Chinador...
SELECT "Score" FROM table_27662 WHERE "Indian Scorers" = 'Chinadorai Sabeeth'
### Instruction: CREATE TABLE table_27260 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F.L." real, "Podiums" real, "Points" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "Points" FROM table_27260 WHERE "Position" = '8th'
### Instruction: CREATE TABLE table_15740 ( "Discipline" text, "2003 Cadiz" text, "2007 Cascais" text, "2011 Perth" text, "2014 Santander" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 2014 Santander together with 2003 Cadiz of Finn ? ...
SELECT "2014 Santander" FROM table_15740 WHERE "2003 Cadiz" = 'finn'
### Instruction: CREATE TABLE table_71545 ( "Date" text, "Winner" text, "Score" text, "Location" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Winner, when the Location is Clemson, SC, and when the Date is November 17, 20...
SELECT "Winner" FROM table_71545 WHERE "Location" = 'clemson, sc' AND "Date" = 'november 17, 2012'
### 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 had more...
SELECT "team" FROM table_203_502 WHERE "team" IN ('michigan state', 'colorado college') ORDER BY "titles" DESC LIMIT 1
### Instruction: CREATE TABLE table_79068 ( "Elimination" text, "Wrestler" text, "Team" text, "Eliminated by" text, "Elimination Move" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Elimination Move is listed against Wrestler H...
SELECT "Elimination Move" FROM table_79068 WHERE "Eliminated by" = 'batista' AND "Wrestler" = 'henry'
### Instruction: CREATE TABLE table_54023 ( "Rank" real, "Name" text, "City" text, "Height (m)" real, "Height (ft)" real, "Floors" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total of floors when the name is k lntriangle and rank ...
SELECT SUM("Floors") FROM table_54023 WHERE "Name" = 'kölntriangle' AND "Rank" < '63'
### Instruction: CREATE TABLE table_204_535 ( id number, "pos" text, "rider" text, "manufacturer" text, "laps" number, "time/retired" text, "grid" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- of those in the top 15 p...
SELECT "rider" FROM table_204_535 WHERE "pos" <= 15 ORDER BY "points" LIMIT 1
### Instruction: CREATE TABLE table_10605 ( "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. -- Motor Racing Developments used which tire in r...
SELECT "Tyre" FROM table_10605 WHERE "Entrant" = 'motor racing developments' AND "Rounds" = '3-12'
### Instruction: CREATE TABLE table_74119 ( "Program" text, "Exercise" text, "Week" text, "Muscles Worked" text, "Type" text, "Ab Ripper X" text, "Length" text, "Equipment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the ab ri...
SELECT "Ab Ripper X" FROM table_74119 WHERE "Length" = '92:24'
### Instruction: CREATE TABLE table_train_182 ( "id" int, "allergy_to_sulfa" bool, "creatinine_clearance_cl" float, "liver_disease" bool, "allergy_to_glyburide" bool, "allergy_to_metformin" bool, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT * FROM table_train_182 WHERE allergy_to_metformin = 1
### Instruction: CREATE TABLE table_42603 ( "Week" real, "Date" text, "Result" text, "Record" text, "Opponent" text, "Points For" real, "Points Against" real, "First Downs" real, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT AVG("First Downs") FROM table_42603 WHERE "Date" = 'december 4'
### Instruction: CREATE TABLE table_203_688 ( id number, "category" text, "speed\n(km/h)" number, "speed\n(mph)" number, "vehicle" text, "pilot" text, "date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the pilot for the north amer...
SELECT "pilot" FROM table_203_688 WHERE "vehicle" = 'north american x-15'
### Instruction: CREATE TABLE table_73679 ( "Name" text, "Position" text, "Period" text, "Appearances\u00b9" real, "Goals\u00b9" real, "Nationality\u00b2" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many games had less than 7 goals scored...
SELECT COUNT("Appearances\u00b9") FROM table_73679 WHERE "Goals\u00b9" = '7'
### Instruction: CREATE TABLE table_62070 ( "Mininera DFL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many losses for the team with 3 wins and more than 1919 against?...
SELECT MIN("Losses") FROM table_62070 WHERE "Wins" = '3' AND "Against" > '1919'
### Instruction: CREATE TABLE table_67171 ( "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. -- The Estevan Bruins (WCHL) are affiliated wi...
SELECT "NHL team" FROM table_67171 WHERE "College/junior/club team" = 'estevan bruins (wchl)'
### Instruction: CREATE TABLE table_203_52 ( id number, "pos" text, "no" number, "driver" text, "constructor" text, "laps" number, "time/retired" text, "grid" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- of all t...
SELECT "driver" FROM table_203_52 WHERE "pos" = 'ret' ORDER BY "laps" LIMIT 1
### Instruction: CREATE TABLE table_204_727 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who finished after austria in rank ? ### Respo...
SELECT "nation" FROM table_204_727 WHERE "rank" = (SELECT "rank" FROM table_204_727 WHERE "nation" = 'austria') + 1
### Instruction: CREATE TABLE table_64102 ( "Rank" real, "Artist" text, "Album" text, "Peak position" real, "Sales" real, "Certification" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What artist had a peak position under 2, and more than 200,0...
SELECT "Artist" FROM table_64102 WHERE "Peak position" < '2' AND "Sales" > '200,000'
### Instruction: CREATE TABLE table_2751 ( "Team" text, "SEC Wins" real, "SEC Losses" real, "Percentage" text, "Home Record" text, "Road Record" text, "Overall Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different SEC Win...
SELECT COUNT("SEC Wins") FROM table_2751 WHERE "Overall Record" = '30-4'
### Instruction: CREATE TABLE table_204_293 ( id number, "district" number, "name" text, "party" text, "district office" text, "first elected" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- j.p morrell was elected in 2008 - the same as which o...
SELECT "name" FROM table_204_293 WHERE "name" <> 'j.p. morrell' AND "first elected" = 2008
### Instruction: CREATE TABLE table_203_731 ( id number, "pos." text, "city" text, "population\n(ab)" number, "surface\n(km2)" number, "density\n(ab/km2)" number, "altitude\n(mslm)" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what city ...
SELECT "city" FROM table_203_731 ORDER BY "altitude\n(mslm)" DESC LIMIT 1
### Instruction: CREATE TABLE table_203_283 ( id number, "#" number, "name" text, "strike tone\n(st-1/16)" text, "weight\n(kg)" number, "diameter\n(mm)" number, "inscription" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of...
SELECT "name" FROM table_203_283 ORDER BY "diameter\n(mm)" DESC LIMIT 1
### Instruction: CREATE TABLE table_4054 ( "Executed person" text, "Date of execution" text, "Place of execution" text, "Crime" text, "Method" text, "Under President" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was executed during preside...
SELECT "Executed person" FROM table_4054 WHERE "Under President" = 'Charles de Gaulle' AND "Crime" = 'Child murder after rape'
### Instruction: CREATE TABLE table_name_53 ( rank__week_ INTEGER, rank__night_ VARCHAR, rating VARCHAR, viewers__millions_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average week rank with 1.2 ratings, less than 1.94 million viewers,...
SELECT AVG(rank__week_) FROM table_name_53 WHERE rating = 1.2 AND viewers__millions_ < 1.94 AND rank__night_ < 11
### Instruction: CREATE TABLE table_train_79 ( "id" int, "fasting_triglycerides" int, "fasting_total_cholesterol" int, "fasting_glucose" int, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- laboratory findings of fasting tri...
SELECT * FROM table_train_79 WHERE fasting_triglycerides >= 200