instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_name_16 (
assets__us INTEGER,
company VARCHAR,
revenues__us$_billion_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the smallest assets with a Company of piraeus bank, and a Revenue (US$ billion) smaller than... | SELECT MIN(assets__us) AS $_billion_ FROM table_name_16 WHERE company = "piraeus bank" AND revenues__us$_billion_ < 3.9 |
### Instruction:
CREATE TABLE table_34559 (
"Year" text,
"Team" text,
"Progress" text,
"Score" text,
"Opponents" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has Opponents of valencia, and a Year of 2011 12?
### Response:
| SELECT "Score" FROM table_34559 WHERE "Opponents" = 'valencia' AND "Year" = '2011–12' |
### Instruction:
CREATE TABLE table_34144 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mean round number for center position when the pick numbe... | SELECT AVG("Round") FROM table_34144 WHERE "Position" = 'center' AND "Pick #" < '23' |
### Instruction:
CREATE TABLE table_56650 (
"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 did the away team score wh... | SELECT "Away team score" FROM table_56650 WHERE "Home team" = 'carlton' |
### Instruction:
CREATE TABLE table_32953 (
"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 attendance at the ... | SELECT "Crowd" FROM table_32953 WHERE "Venue" = 'kardinia park' |
### Instruction:
CREATE TABLE table_48210 (
"Winner" text,
"Country" text,
"Winter Olympics" real,
"FIS Nordic World Ski Championships" text,
"Holmenkollen" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the winter olympics year when the fis... | SELECT "Winter Olympics" FROM table_48210 WHERE "FIS Nordic World Ski Championships" = '1976' |
### Instruction:
CREATE TABLE table_36979 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the overall number of the player from Utah with a pick # high... | SELECT SUM("Overall") FROM table_36979 WHERE "College" = 'utah' AND "Pick #" < '7' |
### Instruction:
CREATE TABLE table_7675 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Match Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at the game with a resul... | SELECT "Opponent" FROM table_7675 WHERE "Result" = 'w 13–12' |
### Instruction:
CREATE TABLE table_204_996 (
id number,
"no." text,
"air date" text,
"network" text,
"household\nrating" number,
"viewers\n(millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- after 18.9 what network had the next highest n... | SELECT "network" FROM table_204_996 ORDER BY "viewers\n(millions)" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_62898 (
"Title" text,
"Type" text,
"Artist" text,
"Label" text,
"Standard number" text,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Title has the Label of Columbia and Standard number of... | SELECT "Title" FROM table_62898 WHERE "Label" = 'columbia' AND "Standard number" = 'codc-8760' |
### Instruction:
CREATE TABLE table_35797 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest value for ... | SELECT MAX("Lost") FROM table_35797 WHERE "Position" > '10' |
### Instruction:
CREATE TABLE table_22921 (
"Self-identification" text,
"Moldovan census" real,
"% Core Moldova" text,
"Transnistrian census" real,
"% Transnistria + Bender" text,
"Total" real,
"%" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "%" FROM table_22921 WHERE "Total" = '57613' |
### Instruction:
CREATE TABLE table_78577 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time of Max Biaggi with more than 2 grids, 20 laps?
### Response:
| SELECT "Time" FROM table_78577 WHERE "Grid" > '2' AND "Laps" = '20' AND "Rider" = 'max biaggi' |
### Instruction:
CREATE TABLE table_33335 (
"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 away side's score w... | SELECT "Away team score" FROM table_33335 WHERE "Home team" = 'richmond' |
### Instruction:
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
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
)
-- U... | SELECT fname, lname FROM student |
### Instruction:
CREATE TABLE table_20275 (
"Name" text,
"Overs Bowled" text,
"Maidens" real,
"Runs Conceded" real,
"Wickets" real,
"Extras" real,
"E.R." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the wickets when overs bowled is 9
... | SELECT "Wickets" FROM table_20275 WHERE "Overs Bowled" = '9' |
### Instruction:
CREATE TABLE table_203_739 (
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.
-- in the 2003 summer universiade , which countries... | SELECT "nation" FROM table_203_739 ORDER BY "total" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_19722436_2 (
lmp1_winning_team VARCHAR,
gt1_winning_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When peter kox roman rusinov is the gt1 of the winning team how many lmp1 winning teams are there?
### Response:
| SELECT COUNT(lmp1_winning_team) FROM table_19722436_2 WHERE gt1_winning_team = "Peter Kox Roman Rusinov" |
### Instruction:
CREATE TABLE table_21826 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many ... | SELECT COUNT("Written by") FROM table_21826 WHERE "Directed by" = 'Alison Maclean' |
### Instruction:
CREATE TABLE table_40241 (
"Call sign" text,
"Frequency MHz" text,
"City of license" text,
"ERP W" real,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least ERP W when the freguency MHz is 89.3 fm?
### Resp... | SELECT MIN("ERP W") FROM table_40241 WHERE "Frequency MHz" = '89.3 fm' |
### Instruction:
CREATE TABLE table_46649 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of played values for teams with more than 14 poi... | SELECT COUNT("Played") FROM table_46649 WHERE "Points" > '14' AND "Drawn" > '1' |
### Instruction:
CREATE TABLE table_5890 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average Year that has Points that's smaller than 9 with a Rank of 24t... | SELECT AVG("Year") FROM table_5890 WHERE "Points" < '9' AND "Rank" = '24th' |
### Instruction:
CREATE TABLE table_36933 (
"Matches" real,
"Innings" real,
"Not out" real,
"Runs" real,
"High Score" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many runs were there when there was 1 match and les than 86 ... | SELECT SUM("Runs") FROM table_36933 WHERE "Matches" = '1' AND "Average" < '86' |
### Instruction:
CREATE TABLE table_32618 (
"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 played at Glenfe... | SELECT "Away team" FROM table_32618 WHERE "Venue" = 'glenferrie oval' |
### Instruction:
CREATE TABLE table_12582 (
"Standard order" real,
"English translation" text,
"Transcription (based on Pinyin)" text,
"Traditional Chinese" text,
"Simplified Chinese" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highes... | SELECT MAX("Standard order") FROM table_12582 WHERE "Transcription (based on Pinyin)" = 'she jiang' |
### Instruction:
CREATE TABLE table_8580 (
"DVD title" text,
"Season" text,
"Aspect ratio" text,
"Episode count" real,
"Time length" text,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which season has more than 5 episodes each 1... | SELECT "Season" FROM table_8580 WHERE "Episode count" > '5' AND "Time length" = '159 minutes' |
### Instruction:
CREATE TABLE table_53163 (
"Title" text,
"Composer(s)" text,
"Guest performer" text,
"Producer(s)" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which title has a Black Ice for a guest performer and a length of 5:49?
... | SELECT "Title" FROM table_53163 WHERE "Guest performer" = 'black ice' AND "Time" = '5:49' |
### Instruction:
CREATE TABLE table_56399 (
"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 was south melb... | SELECT "Date" FROM table_56399 WHERE "Away team" = 'south melbourne' |
### Instruction:
CREATE TABLE table_26951 (
"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.
-- Name the goals for daniel sanchez
### Res... | SELECT "Goals\u00b9" FROM table_26951 WHERE "Name" = 'Daniel Sanchez' |
### Instruction:
CREATE TABLE table_9015 (
"Verb" text,
"2 (VF)" text,
"2 (F)" text,
"3 (F)" text,
"2/3 (P)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHICH 2/3 (P) has a 2 (VF) of dhutish?
### Response:
| SELECT "2/3 (P)" FROM table_9015 WHERE "2 (VF)" = 'তুই dhutish' |
### Instruction:
CREATE TABLE table_69668 (
"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 total gold from New zealand and a rank less than 14?
### Resp... | SELECT SUM("Gold") FROM table_69668 WHERE "Nation" = 'new zealand' AND "Rank" < '14' |
### Instruction:
CREATE TABLE table_52702 (
"Player" text,
"Car." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Craig Whelihan's average when his yards are smaller than 0?
### Respo... | SELECT SUM("Avg.") FROM table_52702 WHERE "Player" = 'craig whelihan' AND "Yards" < '0' |
### Instruction:
CREATE TABLE table_32463 (
"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 Geelong's score when t... | SELECT "Home team score" FROM table_32463 WHERE "Home team" = 'geelong' |
### Instruction:
CREATE TABLE table_57270 (
"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 home team of lake o... | SELECT "Home team score" FROM table_57270 WHERE "Venue" = 'lake oval' |
### Instruction:
CREATE TABLE table_39373 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Overall has a Pick # larger than 9, and a Round larger than ... | SELECT COUNT("Overall") FROM table_39373 WHERE "Pick #" > '9' AND "Round" > '5' |
### Instruction:
CREATE TABLE table_74206 (
"Series #" real,
"Season #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote e... | SELECT "Written by" FROM table_74206 WHERE "Season #" = '23' |
### Instruction:
CREATE TABLE table_68210 (
"Number" real,
"Name of the song" text,
"Singer" text,
"Drama" text,
"Kind of the song" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which song has a ending theme, and is sung by miriam yeung?
### Resp... | SELECT "Name of the song" FROM table_68210 WHERE "Kind of the song" = 'ending theme' AND "Singer" = 'miriam yeung' |
### Instruction:
CREATE TABLE table_67479 (
"Name" text,
"Discovered" real,
"Museum" text,
"Museum city" text,
"Discoverer" text,
"Formation" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who discovered the specimen at the ... | SELECT "Discoverer" FROM table_67479 WHERE "Museum" = 'burpee museum of natural history' |
### Instruction:
CREATE TABLE table_204_362 (
id number,
"episode" number,
"airdate" text,
"game 1" text,
"game 2" text,
"game 3" text,
"viewers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which episode of the whole 19 yards had the leas... | SELECT "episode" FROM table_204_362 ORDER BY "viewers" LIMIT 1 |
### Instruction:
CREATE TABLE table_204_498 (
id number,
"location" text,
"building" text,
"year" number,
"km" number,
"monument" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which location has more total km , kelsterbach or stadion ?
### ... | SELECT "location" FROM table_204_498 WHERE "location" IN ('kelsterbach', 'stadion') GROUP BY "location" ORDER BY SUM("km") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_52960 (
"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.
-- Name the visitor from vancouver on february 24
... | SELECT "Visitor" FROM table_52960 WHERE "Home" = 'vancouver' AND "Date" = 'february 24' |
### Instruction:
CREATE TABLE table_6769 (
"SANSKRT" text,
"CHINESE" text,
"VIETNAMESE" text,
"JAPANESE" text,
"KOREAN" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which VIETNAMESE has a CHINESE of / p x m ?
### Response:
| SELECT "VIETNAMESE" FROM table_6769 WHERE "CHINESE" = '婆須密 / póxūmì' |
### Instruction:
CREATE TABLE table_name_61 (
position VARCHAR,
played VARCHAR,
goals_against VARCHAR,
points_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of positions when there are more than 48 goals against, 1 of 29 po... | SELECT COUNT(position) FROM table_name_61 WHERE goals_against > 48 AND points_1 = "29" AND played < 34 |
### Instruction:
CREATE TABLE table_20355 (
"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 "Score" FROM table_20355 WHERE "Game" = '51' |
### Instruction:
CREATE TABLE table_55046 (
"Name" text,
"Model" text,
"Park" text,
"Opened" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the rollercoaster that opened in 2004 in bobbejaanland?
### Response:
| SELECT "Name" FROM table_55046 WHERE "Opened" = '2004' AND "Park" = 'bobbejaanland' |
### Instruction:
CREATE TABLE table_61746 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country scored 70-68-71-71=280?
### Response:
| SELECT "Country" FROM table_61746 WHERE "Score" = '70-68-71-71=280' |
### Instruction:
CREATE TABLE table_78518 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the driver is Juan Manuel Fangio and laps is less than 39, what is the highes... | SELECT MAX("Grid") FROM table_78518 WHERE "Laps" < '39' AND "Driver" = 'juan manuel fangio' |
### Instruction:
CREATE TABLE table_13016 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Coun... | SELECT "County" FROM table_13016 WHERE "Median household income" = '$37,230' |
### Instruction:
CREATE TABLE table_73002 (
"Round" real,
"Date" text,
"Grand Prix" text,
"Circuit" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Luis Salom had the fastest lap o... | SELECT "Circuit" FROM table_73002 WHERE "Fastest Lap" = 'Luis Salom' |
### Instruction:
CREATE TABLE table_12310 (
"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.
-- Which Opponent has a Time of 0:38?... | SELECT "Opponent" FROM table_12310 WHERE "Time" = '0:38' |
### Instruction:
CREATE TABLE table_32204 (
"Rank" real,
"Player" text,
"Country" text,
"Weeks" real,
"Order" real,
"Majors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the highest order amount in weeks prier to 15 and a major less t... | SELECT MAX("Order") FROM table_32204 WHERE "Weeks" < '15' AND "Majors" < '1' |
### Instruction:
CREATE TABLE table_54672 (
"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 large was the crowd when Ca... | SELECT COUNT("Crowd") FROM table_54672 WHERE "Away team" = 'carlton' |
### Instruction:
CREATE TABLE table_31660 (
"Date" text,
"Result" text,
"Opponent" text,
"Method" text,
"Round" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the opponent knockout Barry Prior in more than 2 rounds?
### Response:
| SELECT "Date" FROM table_31660 WHERE "Method" = 'knockout' AND "Round" > '2' AND "Opponent" = 'barry prior' |
### Instruction:
CREATE TABLE table_24634 (
"Team" text,
"Car(s)" text,
"#" real,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Listed Owner(s)" text,
"Crew Chief" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of car does Jeff Ful... | SELECT "Car(s)" FROM table_24634 WHERE "Driver(s)" = 'Jeff Fuller' |
### Instruction:
CREATE TABLE table_22441 (
"Round" text,
"Clubs remaining" real,
"Clubs involved" real,
"Winners from previous round" text,
"New entries this round" text,
"Leagues entering at this round" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Round" FROM table_22441 WHERE "Winners from previous round" = '8' |
### Instruction:
CREATE TABLE table_30465 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text,
"Team classification" text
)
-- Using valid SQLite, answer the following questions for t... | SELECT "Team classification" FROM table_30465 WHERE "Winner" = 'Hayden Roulston' |
### Instruction:
CREATE TABLE table_3160 (
"Saddle cloth" real,
"Horse" text,
"Trainer" text,
"Jockey" text,
"Weight (kg)" text,
"Barrier [b ]" real,
"Placing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For which jockey was the weight in... | SELECT "Jockey" FROM table_3160 WHERE "Weight (kg)" = '53.5' |
### 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 age >= 18 |
### Instruction:
CREATE TABLE table_70893 (
"Date" text,
"Round" text,
"Opponents" text,
"Result F\u2013A" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result F_A on 17 December 2002?
### Response:
| SELECT "Result F\u2013A" FROM table_70893 WHERE "Date" = '17 december 2002' |
### Instruction:
CREATE TABLE table_52224 (
"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.
-- I want the average events for top 10 less than ... | SELECT AVG("Events") FROM table_52224 WHERE "Top-10" < '4' |
### Instruction:
CREATE TABLE table_9342 (
"Episode" text,
"7 Deadly Sin" text,
"Challenge Winner" text,
"Challenge Loser" text,
"Voted In To 'El Duelo'" text,
"Eliminated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which winner has a Challe... | SELECT "Challenge Winner" FROM table_9342 WHERE "Challenge Loser" = 'alexcy' |
### Instruction:
CREATE TABLE table_34973 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game with an attendanc... | SELECT "Date" FROM table_34973 WHERE "Attendance" > '62,491' |
### Instruction:
CREATE TABLE table_50258 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which money has a Country of united states, and a Place of t6?
#... | SELECT AVG("Money ( $ )") FROM table_50258 WHERE "Country" = 'united states' AND "Place" = 't6' |
### Instruction:
CREATE TABLE table_4878 (
"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 Geelong's score when th... | SELECT "Away team score" FROM table_4878 WHERE "Away team" = 'geelong' |
### Instruction:
CREATE TABLE table_77286 (
"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 time did the even tachi palac... | SELECT "Time" FROM table_77286 WHERE "Event" = 'tachi palace fights 3' |
### Instruction:
CREATE TABLE table_1181 (
"Constituency" text,
"Electorate" real,
"s Spoilt vote" real,
"Total poll (%)" text,
"For (%)" text,
"Against (%)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which electorate is 54787 of the constit... | SELECT "Constituency" FROM table_1181 WHERE "Electorate" = '54787' |
### Instruction:
CREATE TABLE table_204_357 (
id number,
"year" number,
"div." text,
"pos." text,
"cup" text,
"top scorer (league)" text,
"score" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- total times vokhid shodiev was the league scor... | SELECT COUNT(*) FROM table_204_357 WHERE "top scorer (league)" = 'vokhid shodiev' |
### Instruction:
CREATE TABLE table_39699 (
"Call sign" text,
"Launched" text,
"Transmitting from" text,
"Coverage" text,
"Languages" text,
"Frequency" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the frequency of the station with a co... | SELECT "Frequency" FROM table_39699 WHERE "Coverage" = 'oaxaca guerrero puebla' |
### Instruction:
CREATE TABLE table_62371 (
"Date" text,
"Series" text,
"Circuit" text,
"City / State" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the circuit for Team Peter Jackson Racing in the ATCC Roun... | SELECT "Circuit" FROM table_62371 WHERE "Team" = 'peter jackson racing' AND "Series" = 'atcc round 4' |
### Instruction:
CREATE TABLE table_22093 (
"State (class)" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date of successors formal installation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the successor formally in... | SELECT "State (class)" FROM table_22093 WHERE "Date of successors formal installation" = 'December 3, 1858' |
### Instruction:
CREATE TABLE table_27727 (
"Number" real,
"Name" text,
"Vertices" text,
"Hypotenuse 0 c" text,
"Vertical 0 b" text,
"Horizontal 0 a" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the hypotenuse for vertices ymf
### Respo... | SELECT "Hypotenuse 0 c" FROM table_27727 WHERE "Vertices" = '月山泛 ΔYMF' |
### Instruction:
CREATE TABLE table_9555 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team... | SELECT "Team" FROM table_9555 WHERE "Car No." = '11' |
### Instruction:
CREATE TABLE table_204_584 (
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 man... | SELECT COUNT("driver") FROM table_204_584 WHERE "laps" >= 52 |
### Instruction:
CREATE TABLE table_6247 (
"Windows" text,
"Mac OS X" text,
"Linux" text,
"Other Unix" text,
"AmigaOS" text,
"Android" text,
"Windows Mobile" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which AmigaOS has a Windows Mobile o... | SELECT "AmigaOS" FROM table_6247 WHERE "Windows Mobile" = 'no' AND "Android" = 'no' |
### Instruction:
CREATE TABLE table_56110 (
"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 did the away team score at... | SELECT "Away team score" FROM table_56110 WHERE "Venue" = 'kardinia park' |
### Instruction:
CREATE TABLE table_28010 (
"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.
-- Who were the guests for Augus... | SELECT "Guest" FROM table_28010 WHERE "Original airdate" = 'August 16' |
### Instruction:
CREATE TABLE table_55875 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the team's record on may 12 when they play the giants?
### ... | SELECT "Record" FROM table_55875 WHERE "Opponent" = 'giants' AND "Date" = 'may 12' |
### Instruction:
CREATE TABLE table_476 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Intergiro classification" text,
"Trofeo Fast Team" text
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT COUNT("General classification") FROM table_476 WHERE "Winner" = 'Evgeni Berzin' |
### Instruction:
CREATE TABLE table_15486 (
"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 highest number of bronzes for countries ranking over 5 with 0 g... | SELECT MAX("Bronze") FROM table_15486 WHERE "Rank" > '5' AND "Gold" < '0' |
### Instruction:
CREATE TABLE body_builder (
body_builder_id number,
people_id number,
snatch number,
clean_jerk number,
total number
)
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
birth_date text,
birth_place text
)
-- Using valid SQLit... | SELECT birth_place, COUNT(*) FROM people GROUP BY birth_place |
### Instruction:
CREATE TABLE table_66341 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of heat for christophe lebon when lane is less than 4?
##... | SELECT COUNT("Heat") FROM table_66341 WHERE "Lane" < '4' AND "Name" = 'christophe lebon' |
### Instruction:
CREATE TABLE Courses (
course_name VARCHAR,
course_id VARCHAR
)
CREATE TABLE Student_Course_Enrolment (
course_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the course that has the most student enrollment?
### ... | SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_13046 (
"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.
-- Which Position has a Round larger than 4, and a Player o... | SELECT "Position" FROM table_13046 WHERE "Round" > '4' AND "Player" = 'patrick johnson' |
### Instruction:
CREATE TABLE table_65618 (
"Name" text,
"Country" text,
"Status" text,
"Moving to" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has the status of transferred, moving to of released, and Solano as... | SELECT "Country" FROM table_65618 WHERE "Status" = 'transferred' AND "Moving to" = 'released' AND "Name" = 'solano' |
### Instruction:
CREATE TABLE table_61526 (
"Quarterback" text,
"Games" real,
"Teams" text,
"Wins" real,
"Losses" real,
"Percent" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average wins when teams is lions and the percent is more... | SELECT AVG("Wins") FROM table_61526 WHERE "Teams" = 'lions' AND "Percent" > '0' |
### Instruction:
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How old is... | SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY job |
### Instruction:
CREATE TABLE table_203_723 (
id number,
"year" number,
"song" text,
"us hot 100" number,
"us msr" number,
"us a.c." number,
"can" number,
"uk singles" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wh... | SELECT COUNT("song") FROM table_203_723 |
### Instruction:
CREATE TABLE table_49075 (
"Year" real,
"Title" text,
"Producer" text,
"Narrator" text,
"Author" text,
"Citation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the title when the citation is honor and the narrator is li... | SELECT "Title" FROM table_49075 WHERE "Citation" = 'honor' AND "Narrator" = 'lincoln hoppe' |
### Instruction:
CREATE TABLE table_22954 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Replaced by" FROM table_22954 WHERE "Team" = 'Sheffield United' |
### Instruction:
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
-- Using valid SQLite, answer the following questions for t... | SELECT Class, COUNT(Class) FROM captain GROUP BY Class |
### Instruction:
CREATE TABLE table_57330 (
"Council" text,
"2003 result" text,
"Notional control (based on 2003 results)" text,
"2007 result" text,
"Details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the 2003 result for the falkirk coun... | SELECT "2003 result" FROM table_57330 WHERE "Council" = 'falkirk' |
### Instruction:
CREATE TABLE table_20766 (
"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.
-- What is the largest crowd when... | SELECT MAX("Crowd") FROM table_20766 WHERE "Home team" = 'Essendon' |
### Instruction:
CREATE TABLE table_56064 (
"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 people attended games ... | SELECT SUM("Crowd") FROM table_56064 WHERE "Home team" = 'st kilda' |
### Instruction:
CREATE TABLE table_2432 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse ( $ )" real,
"Winner" text,
"Score" text,
"1st Prize ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many winners scored exactly 202... | SELECT COUNT("Winner") FROM table_2432 WHERE "Score" = '202 (-11)' |
### Instruction:
CREATE TABLE table_40522 (
"Year" text,
"Team" text,
"GP/GS" text,
"Goals" text,
"Assists" text,
"Total Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the assists for the Team of Florida and the total points of 7... | SELECT "Assists" FROM table_40522 WHERE "Team" = 'florida' AND "Total Points" = '75' |
### Instruction:
CREATE TABLE table_72882 (
"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 "Score" FROM table_72882 WHERE "Game" = '81' |
### Instruction:
CREATE TABLE table_11543 (
"Year" real,
"Date" text,
"Location" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day was the result a win, the score 2-1, and the year before 2012?
### Response:
| SELECT "Date" FROM table_11543 WHERE "Result" = 'win' AND "Score" = '2-1' AND "Year" < '2012' |
### Instruction:
CREATE TABLE table_77775 (
"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 did the away team score wh... | SELECT "Away team score" FROM table_77775 WHERE "Home team" = 'collingwood' |
### Instruction:
CREATE TABLE table_57827 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many bronze medals for the nation ranked above 2, and under 0 golds?
... | SELECT COUNT("Bronze") FROM table_57827 WHERE "Rank" < '2' AND "Gold" < '0' |
### Instruction:
CREATE TABLE table_54678 (
"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 venue when Colling... | SELECT "Venue" FROM table_54678 WHERE "Away team" = 'collingwood' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.