instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_43327 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Rank for 1996 2007, when there are more than 108 goals?
### Resp... | SELECT COUNT("Rank") FROM table_43327 WHERE "Years" = '1996–2007' AND "Goals" > '108' |
### Instruction:
CREATE TABLE table_74072 (
"Player" text,
"Team" text,
"Matches" real,
"Runs" real,
"Average" text,
"Strike rate" text,
"Highest Score" text,
"100s" real,
"50s" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is ... | SELECT "Highest Score" FROM table_74072 WHERE "Team" = 'Sussex' |
### Instruction:
CREATE TABLE table_204_575 (
id number,
"place" number,
"position" text,
"number" number,
"name" text,
"league one" number,
"fa cup" number,
"league cup" number,
"football league trophy" number,
"total" number
)
-- Using valid SQLite, answer the following quest... | SELECT "name" FROM table_204_575 ORDER BY "total" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_77589 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings( $ )" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players named bob charles with earnings over $7,646,958?
### Response:
| SELECT COUNT("Rank") FROM table_77589 WHERE "Player" = 'bob charles' AND "Earnings( $ )" > '7,646,958' |
### Instruction:
CREATE TABLE table_28389 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" text,
"Primary Conference" text,
"Colors" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Institution" FROM table_28389 WHERE "Nickname" = 'Seahawks' |
### Instruction:
CREATE TABLE table_202_150 (
id number,
"election" number,
"member" text,
"party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years after sir carne rasch 's election was john macnamara elected ?
### Response:
| SELECT (SELECT "election" FROM table_202_150 WHERE "member" = 'john macnamara') - (SELECT "election" FROM table_202_150 WHERE "member" = 'sir carne rasch, bt') |
### Instruction:
CREATE TABLE table_33351 (
"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 was the away team wit... | SELECT "Away team" FROM table_33351 WHERE "Away team score" = '9.11 (65)' |
### Instruction:
CREATE TABLE table_72162 (
"Character" text,
"Fate" text,
"Actor" text,
"First Episode" text,
"Final Episode" text,
"Duration" text,
"Final Episode Count" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the total numbe... | SELECT COUNT("Final Episode Count") FROM table_72162 WHERE "First Episode" = 'L.A.' |
### Instruction:
CREATE TABLE table_8137 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Team" FROM table_8137 WHERE "High rebounds" = 'david lee (15)' |
### Instruction:
CREATE TABLE table_55589 (
"Place" real,
"Name" text,
"From" real,
"Until" real,
"Titles" text,
"Seconds" text,
"Thirds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the second number when from is prior to 2006 and... | SELECT "Seconds" FROM table_55589 WHERE "From" < '2006' AND "Thirds" = '4' |
### Instruction:
CREATE TABLE table_53810 (
"Title" text,
"Other performer(s)" text,
"Director(s)" text,
"Album" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On the album titled Loud who was the other performer on the song directed by... | SELECT "Other performer(s)" FROM table_53810 WHERE "Director(s)" = 'melina matsoukas' AND "Album" = 'loud' |
### Instruction:
CREATE TABLE table_train_236 (
"id" int,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"estimated_glomerular_filtration_rate_egfr" int,
"hba1c" float,
"fbg" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT * FROM table_train_236 WHERE fbg > 180 |
### Instruction:
CREATE TABLE table_20014 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Won" real,
"Drawn" real,
"Lost" real,
"For" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT MIN("Lost") FROM table_20014 WHERE "Team" = 'Corinthians' |
### Instruction:
CREATE TABLE table_36294 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points have a Record of 12 2 4 1, and a November larger than 22... | SELECT AVG("Points") FROM table_36294 WHERE "Record" = '12–2–4–1' AND "November" > '22' |
### Instruction:
CREATE TABLE table_41947 (
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was on at 8:30 when dancing with the stars: the results was on at 9:30?
### Response:
| SELECT "8:30" FROM table_41947 WHERE "9:30" = 'dancing with the stars: the results' |
### Instruction:
CREATE TABLE table_train_187 (
"id" int,
"pregnancy_or_lactation" bool,
"renal_disease" bool,
"diabetic" string,
"liver_disease" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- diagnosed with type i or type ii diab... | SELECT * FROM table_train_187 WHERE diabetic = 'i' OR diabetic = 'ii' |
### Instruction:
CREATE TABLE table_33456 (
"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 games featured a home ... | SELECT COUNT("Crowd") FROM table_33456 WHERE "Home team score" = '12.18 (90)' |
### Instruction:
CREATE TABLE table_51231 (
"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 away team has a home team ... | SELECT "Away team" FROM table_51231 WHERE "Home team score" = '10.13 (73)' |
### Instruction:
CREATE TABLE table_name_77 (
plaid_cymru VARCHAR,
polling_organisation_client VARCHAR,
date_s__conducted VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the plaid cymru for Polling organisation/client of yougov/itv wales for 4 may ... | SELECT plaid_cymru FROM table_name_77 WHERE polling_organisation_client = "yougov/itv wales" AND date_s__conducted = "4 may 2011" |
### Instruction:
CREATE TABLE table_68077 (
"Week" real,
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the visiting team on weeks under 12 and at Sports ... | SELECT "Visiting Team" FROM table_68077 WHERE "Week" < '12' AND "Stadium" = 'sports authority field at mile high' |
### Instruction:
CREATE TABLE table_35290 (
"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 standard register ping tournament,... | SELECT "Winning score" FROM table_35290 WHERE "Tournament" = 'standard register ping' AND "Runner(s)-up" = 'kelly robbins' |
### Instruction:
CREATE TABLE Songs (
Title VARCHAR,
SongId VARCHAR
)
CREATE TABLE Band (
id VARCHAR,
Lastname VARCHAR
)
CREATE TABLE Performance (
bandmate VARCHAR,
SongId VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find all the songs p... | SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = "Heilo" |
### Instruction:
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT rID, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID |
### Instruction:
CREATE TABLE table_4540 (
"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 was the largest crowd size ... | SELECT MAX("Crowd") FROM table_4540 WHERE "Away team score" = '7.11 (53)' |
### Instruction:
CREATE TABLE table_52539 (
"Rider" text,
"Horse" text,
"Faults" text,
"Round 1 + 2A + 2B + 3A Points" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What horse did not start and had a total of over 16.16?
### Respons... | SELECT "Horse" FROM table_52539 WHERE "Faults" = 'did not start' AND "Total" > '16.16' |
### Instruction:
CREATE TABLE table_28813 (
"Western" text,
"Central" text,
"Eastern" text,
"Old Galician (13th\u201315th c.)" text,
"Portuguese" text,
"Spanish" text,
"Latin" text,
"English" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "Eastern" FROM table_28813 WHERE "English" = 'light' |
### Instruction:
CREATE TABLE table_31455 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Location Attendance" FROM table_31455 WHERE "Team" = 'Los Angeles' |
### Instruction:
CREATE TABLE table_11049 (
"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 venue has a Home team sco... | SELECT "Venue" FROM table_11049 WHERE "Home team score" = '11.11 (77)' |
### Instruction:
CREATE TABLE table_52200 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Rebounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In game 34 Curtis Borchardt played on which team with less than 275 rebounds?
### Response:
| SELECT "Team" FROM table_52200 WHERE "Rebounds" < '275' AND "Games" < '34' AND "Name" = 'curtis borchardt' |
### Instruction:
CREATE TABLE table_59238 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Lost" FROM table_59238 WHERE "Tries against" = '77' |
### Instruction:
CREATE TABLE table_6075 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins were in the Masters Tournament wit... | SELECT MAX("Wins") FROM table_6075 WHERE "Tournament" = 'masters tournament' AND "Events" < '15' |
### Instruction:
CREATE TABLE table_42860 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the option from Italy with general tele... | SELECT "Package/Option" FROM table_42860 WHERE "Country" = 'italy' AND "Content" = 'general television' AND "Television service" = 'cielo' |
### Instruction:
CREATE TABLE table_203_696 (
id number,
"year" number,
"single" text,
"charts\nfr" number,
"charts\nbel\nwa" number,
"charts\nswi" number,
"certification" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wh... | SELECT "single" FROM table_203_696 WHERE "year" >= 2012 |
### Instruction:
CREATE TABLE table_51025 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Bonus Points" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Points for" FROM table_51025 WHERE "Club" = 'fall bay rfc' |
### Instruction:
CREATE TABLE table_32449 (
"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 hosted a home team w... | SELECT "Venue" FROM table_32449 WHERE "Home team score" = '6.12 (48)' |
### Instruction:
CREATE TABLE table_74043 (
"Team" text,
"Contest and round" text,
"Opponent" text,
"1st leg score*" text,
"2nd leg score**" text,
"Aggregate score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score between Marsei... | SELECT "2nd leg score**" FROM table_74043 WHERE "Opponent" = 'Marseille' |
### Instruction:
CREATE TABLE table_28142 (
"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.
-- Who w... | SELECT "Written by" FROM table_28142 WHERE "Production code" = '2J5153' |
### Instruction:
CREATE TABLE table_7255 (
"Year" real,
"Regional Gross Value Added" real,
"Agriculture" text,
"Industry" text,
"Services" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the industry number with a Regional Gross Value Added o... | SELECT "Industry" FROM table_7255 WHERE "Regional Gross Value Added" > '4,569' AND "Year" > '2005' |
### Instruction:
CREATE TABLE table_16130 (
"No." real,
"#" real,
"Title" text,
"Director" text,
"Writer" text,
"US air date" text,
"Storyteller" text,
"Villains" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the villains in the... | SELECT "Villains" FROM table_16130 WHERE "Title" = 'The Tale of The Forever Game' |
### Instruction:
CREATE TABLE table_26609958_1 (
groundwater_discharge__million_m_3__ INTEGER,
hydrographic_basin VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When cabarita river is the hydrographic basin what is the lowest groundwater discharge (million m... | SELECT MIN(groundwater_discharge__million_m_3__) FROM table_26609958_1 WHERE hydrographic_basin = "Cabarita River" |
### Instruction:
CREATE TABLE table_25681 (
"Autonomous Community" text,
"Organization" text,
"Television Channels" text,
"Radio Stations" text,
"Foundation" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many foundation dates were there when th... | SELECT COUNT("Foundation") FROM table_25681 WHERE "Television Channels" = 'Canal Nou Canal Nou Dos Canal Nou 24 TVVi' |
### Instruction:
CREATE TABLE table_62422 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"Team from" text,
"League from" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has a Team from of ottawa 67's, and a Pi... | SELECT "Position" FROM table_62422 WHERE "Team from" = 'ottawa 67''s' AND "Pick #" < '47' |
### Instruction:
CREATE TABLE table_30133_1 (
gdp_at_constant_prices__thb_trillions_ VARCHAR,
current_account_balance__percent_of_gdp_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the GDP at constant prices for a current account balance of 12.8?
... | SELECT gdp_at_constant_prices__thb_trillions_ FROM table_30133_1 WHERE current_account_balance__percent_of_gdp_ = "12.8" |
### Instruction:
CREATE TABLE table_76840 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the away team when the ... | SELECT "Away team" FROM table_76840 WHERE "Home team score" = '17.6 (108)' |
### Instruction:
CREATE TABLE table_78287 (
"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 venue did the away team s... | SELECT "Venue" FROM table_78287 WHERE "Away team score" = '12.10 (82)' |
### Instruction:
CREATE TABLE table_25220821_3 (
fri_4_june VARCHAR,
wed_2_june VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Friday 4 June if the Wednesday 2 June is 20' 50.62 108.608mph?
### Response:
| SELECT fri_4_june FROM table_25220821_3 WHERE wed_2_june = "20' 50.62 108.608mph" |
### Instruction:
CREATE TABLE table_14304 (
"Rank by average" real,
"Competition finish" real,
"Couple" text,
"Total" real,
"Number of dances" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of competition fi... | SELECT COUNT("Competition finish") FROM table_14304 WHERE "Total" = '90' AND "Rank by average" > '5' |
### Instruction:
CREATE TABLE table_22961 (
"Year" text,
"Location" text,
"Class 1" text,
"Best UK team" text,
"Class 1-200" text,
"Class 3" text,
"Class 1a" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the class 3 for silverstone rmi... | SELECT "Class 3" FROM table_22961 WHERE "Location" = 'Silverstone' AND "Class 1" = 'RMIT University' |
### Instruction:
CREATE TABLE table_204_400 (
id number,
"district" number,
"senator" text,
"party" text,
"caucus" text,
"first elected" number,
"counties represented" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- have at least 5 democrats ... | SELECT (SELECT COUNT(*) FROM table_204_400 WHERE "party" = 'democratic' AND "counties represented" = 'brooklyn') >= 5 |
### Instruction:
CREATE TABLE table_name_26 (
model VARCHAR,
top_speed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How fast can the SLK200K, with a top speed of 236km/h (147mph), accelerate to 100km/h (62mph)?
### Response:
| SELECT 0 AS _100km_h__62mph_ FROM table_name_26 WHERE model = "slk200k" AND top_speed = "236km/h (147mph)" |
### Instruction:
CREATE TABLE table_28128 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" text,
"Jockey" text,
"Winner/2nd" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was... | SELECT "Distance" FROM table_28128 WHERE "Race" = 'Manikato Stakes' |
### 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 was t... | SELECT "population\n(ab)" FROM table_203_731 WHERE "city" = 'seriate' |
### Instruction:
CREATE TABLE table_49673 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the entrant when the points is 42 (45) and the chassis is brabham bt20?
### Resp... | SELECT "Entrant" FROM table_49673 WHERE "Points" = '42 (45)' AND "Chassis" = 'brabham bt20' |
### Instruction:
CREATE TABLE table_16294 (
"Season" text,
"Series" text,
"Team Name" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Position" FROM table_16294 WHERE "Races" = '6' |
### Instruction:
CREATE TABLE table_55502 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Matches" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the rank when the player is henry shefflin an... | SELECT SUM("Rank") FROM table_55502 WHERE "Player" = 'henry shefflin' AND "Matches" > '4' |
### Instruction:
CREATE TABLE table_32865 (
"Club" text,
"Played" real,
"Lost" real,
"Drawn" real,
"Against" real,
"Diff." real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest draws when more than 6 are played an... | SELECT MAX("Drawn") FROM table_32865 WHERE "Against" = '54' AND "Played" > '6' |
### Instruction:
CREATE TABLE table_8934 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average amount of Gold medals won when there were more than 1 sil... | SELECT AVG("Gold") FROM table_8934 WHERE "Silver" > '1' AND "Bronze" < '2' |
### Instruction:
CREATE TABLE table_204_641 (
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.
-- what is... | SELECT COUNT("driver") FROM table_204_641 WHERE "time/retired" = 'engine' |
### Instruction:
CREATE TABLE table_name_74 (
events_won_by_kcl VARCHAR,
year VARCHAR,
winner VARCHAR,
events_won_by_kclMS VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which event won by KCLMS in 2008 has KCLMS as the winner and less than 10 wins b... | SELECT events_won_by_kcl FROM table_name_74 WHERE winner = "kclms" AND events_won_by_kclMS < 10 AND year = 2008 |
### Instruction:
CREATE TABLE table_17796 (
"Year" real,
"Road Opened" text,
"Road Closed" text,
"Freight Carried s Tonne" real,
"Super B Capacity Reached [ citation needed ]" text,
"Number of Truck Loads North" real
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT MAX("Year") FROM table_17796 WHERE "Road Closed" = 'April 13' |
### Instruction:
CREATE TABLE table_20297 (
"#" real,
"Advocate # 1" text,
"Advocate # 2" text,
"Root of All Evil" text,
"Poll winner" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the poll winner for march 19, 20... | SELECT COUNT("Poll winner") FROM table_20297 WHERE "Original air date" = 'March 19, 2008' |
### Instruction:
CREATE TABLE table_11044 (
"Outcome" text,
"Date" real,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Marty Riessen team up with a partne... | SELECT "Date" FROM table_11044 WHERE "Surface" = 'carpet' AND "Partner" = 'marty riessen' |
### Instruction:
CREATE TABLE table_33657 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the match where the opponent ... | SELECT "Score" FROM table_33657 WHERE "Opponents in the final" = 'james cerretani todd perry' |
### Instruction:
CREATE TABLE table_33971 (
"Season" real,
"Team" text,
"Wins" real,
"Losses" real,
"Draws" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Draws have Losses smaller than 16, and a Team of university, and Wins larger than 0?
#... | SELECT AVG("Draws") FROM table_33971 WHERE "Losses" < '16' AND "Team" = 'university' AND "Wins" > '0' |
### Instruction:
CREATE TABLE table_48372 (
"Season" real,
"Team 1" text,
"Score" text,
"Team 2" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which season was there a game with the score of 1:3 played at the venue of national stadium... | SELECT SUM("Season") FROM table_48372 WHERE "Score" = '1:3' AND "Venue" = 'national stadium, maldives' |
### Instruction:
CREATE TABLE table_2661 (
"Performance comparison" text,
"78 Fury" text,
"78 Monaco" text,
"79 St. Regis" text,
"80 St. Regis" text,
"81 St. Regis" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every performance compari... | SELECT "Performance comparison" FROM table_2661 WHERE "80 St. Regis" = '360' |
### Instruction:
CREATE TABLE table_53452 (
"Rank" real,
"Constituency" text,
"Winning party 2003" text,
"Swing to gain" real,
"SNP's place 2003" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which constituency had the conservati... | SELECT "Constituency" FROM table_53452 WHERE "Winning party 2003" = 'conservative' |
### Instruction:
CREATE TABLE table_22555 (
"Nation" text,
"Rider" text,
"Horse" text,
"Cross Country Penalties" text,
"Total Penalties" text,
"Total Team Penalties" text,
"Team Rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many p... | SELECT COUNT("Total Penalties") FROM table_22555 WHERE "Rider" = 'Eric Vigeanel' |
### Instruction:
CREATE TABLE table_1056 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text,
"Team classification" text,
"Combativity award" text
)
-- Using valid SQLite, answer ... | SELECT "Points classification" FROM table_1056 WHERE "Young rider classification" = 'Roman Kreuziger' |
### Instruction:
CREATE TABLE table_55167 (
"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 the name of the home te... | SELECT "Home team" FROM table_55167 WHERE "Home team score" = '11.16 (82)' |
### Instruction:
CREATE TABLE table_27537 (
"Round" text,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the fastest lap for pi... | SELECT "Fastest Lap" FROM table_27537 WHERE "Winning team" = 'Piquet Sports' AND "Circuit" = 'Silverstone' |
### Instruction:
CREATE TABLE table_74080 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How ma... | SELECT COUNT("Drawn") FROM table_74080 WHERE "Won" = '10' |
### Instruction:
CREATE TABLE table_203_398 (
id number,
"year" number,
"vidhan sabha" text,
"members of legislative assembly" text,
"winning party" text,
"nearest contesting party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the winn... | SELECT "winning party" FROM table_203_398 WHERE "members of legislative assembly" = 'shri durga prasad' |
### Instruction:
CREATE TABLE table_37349 (
"Week" real,
"Date" text,
"Opponent" text,
"Time ( ET )" text,
"Game site" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the game of heinz field... | SELECT "Result" FROM table_37349 WHERE "Game site" = 'heinz field' AND "Record" = '2-5' |
### Instruction:
CREATE TABLE table_17314 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT COUNT("High points") FROM table_17314 WHERE "Team" = '@ Milwaukee' |
### Instruction:
CREATE TABLE table_20831 (
"Season" text,
"President" text,
"General Sec" text,
"Treasurer" text,
"Fixtures Sec" text,
"Social Sec Bradford" text,
"Social Sec Leeds" text,
"Media Officer" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT COUNT("Season") FROM table_20831 WHERE "Treasurer" = 'Dave Reid' |
### Instruction:
CREATE TABLE table_75836 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Bronze with a Nation of egypt (egy) and with a Gold that... | SELECT MIN("Bronze") FROM table_75836 WHERE "Nation" = 'egypt (egy)' AND "Gold" < '2' |
### Instruction:
CREATE TABLE table_36086 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Aggregate has a 2-1 1st leg, and is from Belgrano?
### Respon... | SELECT "Aggregate" FROM table_36086 WHERE "1st Leg" = '2-1' AND "Home (1st leg)" = 'belgrano' |
### Instruction:
CREATE TABLE table_77633 (
"YEAR" real,
"Seniors" text,
"Reserves" text,
"Thirds (Under 17's)" text,
"Fourths (Under 14's)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Thirds (Under 17's) have a Reserve of barnawartha?
##... | SELECT "Thirds (Under 17's)" FROM table_77633 WHERE "Reserves" = 'barnawartha' |
### Instruction:
CREATE TABLE table_30984 (
"Club" text,
"Outgoing Head Coach" text,
"Date of vacancy" text,
"Manner of departure" text,
"Incoming Head Coach" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the... | SELECT "Outgoing Head Coach" FROM table_30984 WHERE "Manner of departure" = 'Gardening leave 1' |
### Instruction:
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
-- U... | SELECT advisor FROM student GROUP BY advisor ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE Customers (
customer_id VARCHAR,
customer_first_name VARCHAR,
customer_last_name VARCHAR
)
CREATE TABLE Accounts (
customer_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many accounts does the customer with firs... | SELECT COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Art" AND T2.customer_last_name = "Turcotte" |
### Instruction:
CREATE TABLE table_40502 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Hi... | SELECT "High points" FROM table_40502 WHERE "Score" = 'l 64–94 (ot)' |
### Instruction:
CREATE TABLE table_204_951 (
id number,
"candidate" text,
"votes" number,
"percentage" text,
"counties" number,
"delegates" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who received more votes , duncan hunter or alan keyes ?... | SELECT "candidate" FROM table_204_951 WHERE "candidate" IN ('duncan hunter', 'alan keyes') ORDER BY "votes" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_79775 (
"Region/Country" text,
"Local name" text,
"Network" text,
"Dates aired" text,
"Starring" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the network in the United Kingdom which aired in ... | SELECT "Network" FROM table_79775 WHERE "Region/Country" = 'united kingdom' AND "Dates aired" = '1985–1992' |
### Instruction:
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
-- Using valid SQLite, answer the following question... | SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cname = T2.cname |
### Instruction:
CREATE TABLE table_4042 (
"School" text,
"Gender" text,
"Age Range" text,
"Religious Affiliation" text,
"Location" text,
"School website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school has a website of http://www.sj... | SELECT "School" FROM table_4042 WHERE "School website" = 'http://www.sjfisher.herts.sch.uk/' |
### Instruction:
CREATE TABLE table_15309 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Club" FROM table_15309 WHERE "Tries for" = '100' |
### Instruction:
CREATE TABLE table_29171 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many date of ... | SELECT COUNT("Date of appointment") FROM table_29171 WHERE "Date of vacancy" = '2 October 2010' |
### Instruction:
CREATE TABLE table_4405 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result when there were... | SELECT "Res." FROM table_4405 WHERE "Round" < '3' AND "Opponent" = 'gil rael' |
### Instruction:
CREATE TABLE table_44783 (
"Name of Deity" text,
"Bhuta(Tatwa)" text,
"Name of the Stone (Sila)" text,
"Name of the River" text,
"Name of the State where found in India" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nam... | SELECT "Name of the River" FROM table_44783 WHERE "Name of the State where found in India" = 'madhya pradesh' |
### Instruction:
CREATE TABLE table_14600 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent of the runner-up afte... | SELECT "Opponents" FROM table_14600 WHERE "Year" > '2012' AND "Outcome" = 'runner-up' |
### Instruction:
CREATE TABLE table_10412 (
"Class" text,
"Type" text,
"Quantity" real,
"Date" text,
"LNER Class" text,
"1946 LNER nos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which class has less in quantity than 174 between the years 1... | SELECT "Class" FROM table_10412 WHERE "Quantity" < '174' AND "Date" = '1921–23' |
### Instruction:
CREATE TABLE table_37519 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which home ... | SELECT "Home team" FROM table_37519 WHERE "Away team" = 'brisbane lions' |
### Instruction:
CREATE TABLE table_15974 (
"#" real,
"City" text,
"1981 Census" real,
"1991 Census" real,
"2001 Census" real,
"2010 Est." real,
"Region" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many 2010 estimations have been done... | SELECT COUNT("2010 Est.") FROM table_15974 WHERE "City" = 'Cremona' |
### Instruction:
CREATE TABLE table_16476 (
"Episode Air Date" text,
"Audition City" text,
"Date" text,
"First Audition Venue" text,
"Callback Date" text,
"Callback Venue" text,
"Golden Tickets" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "Audition City" FROM table_16476 WHERE "Callback Venue" = 'Charleston Area Convention Center' |
### Instruction:
CREATE TABLE table_name_13 (
date INTEGER,
u_boats_destroyed__kuk_ VARCHAR,
tonnage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed as the average Date that has U-boats destroyed (KuK) of 2 with Tonnage of 1,514,050?
### ... | SELECT AVG(date) FROM table_name_13 WHERE u_boats_destroyed__kuk_ = "2" AND tonnage = "1,514,050" |
### Instruction:
CREATE TABLE table_name_83 (
name VARCHAR,
date_of_birth VARCHAR,
weight VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Name, when Weight is 'kg (lb)', when Club is 'Gezira', and when Date of Birth is '1974-02-1... | SELECT name FROM table_name_83 WHERE weight = "kg (lb)" AND club = "gezira" AND date_of_birth = "1974-02-18" |
### Instruction:
CREATE TABLE table_23751 (
"Draft Year" real,
"Player" text,
"Summer Team" text,
"College" text,
"MLB Team" text,
"Draft Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what draft round in 2012 did a player from Rio Hon... | SELECT "Draft Round" FROM table_23751 WHERE "College" = 'Rio Hondo' AND "Draft Year" = '2012' |
### Instruction:
CREATE TABLE table_train_18 (
"id" int,
"with_cardiac_pacemaker" bool,
"neuromuscular_disease" bool,
"diabetic_polyneuropathy" bool,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT * FROM table_train_18 WHERE neuromuscular_disease = 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.