instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_41300 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the tournament played 13 Nove... | SELECT "Tournament" FROM table_41300 WHERE "Date" = '13 november 2000' |
### Instruction:
CREATE TABLE table_28702 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT MAX("Production code") FROM table_28702 |
### Instruction:
CREATE TABLE table_20079931_4 (
highest_scoring_team VARCHAR,
circuit_location VARCHAR,
winning_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the highest scoring team in the round in Ring Knutstorp in which Polestar Racing i... | SELECT highest_scoring_team FROM table_20079931_4 WHERE circuit_location = "Ring Knutstorp" AND winning_team = "Polestar Racing" |
### Instruction:
CREATE TABLE table_7203 (
"Rank" text,
"Name" text,
"Height m / ft" text,
"Floors" real,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of floors that have years under 2008 and were named Guinness Tower?
... | SELECT COUNT("Floors") FROM table_7203 WHERE "Year" < '2008' AND "Name" = 'guinness tower' |
### Instruction:
CREATE TABLE table_25593 (
"Stage" real,
"Winner" text,
"General classification" text,
"Mountains classification" text,
"Points classification" text,
"Sprints classification" text,
"Team classification" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "Mountains classification" FROM table_25593 WHERE "Winner" = 'Michael Albasini' |
### Instruction:
CREATE TABLE table_21231 (
"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_21231 WHERE "Game" = '46' |
### Instruction:
CREATE TABLE table_204_841 (
id number,
"no." number,
"temple" text,
"honzon (main image)" text,
"city/town/village" text,
"prefecture" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the names of each temple in the city... | SELECT "temple" FROM table_204_841 WHERE "city/town/village" = 'naruto' |
### Instruction:
CREATE TABLE table_27247 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date... | SELECT "Date" FROM table_27247 WHERE "Game site" = 'Olympic Stadium' |
### Instruction:
CREATE TABLE table_204_607 (
id number,
"season" number,
"date" text,
"location" text,
"discipline" text,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- aspen and lienz in 2009 are the only races where this racer got wha... | SELECT "place" FROM table_204_607 WHERE "date" = 2009 AND "location" = 'aspen' |
### Instruction:
CREATE TABLE table_16083 (
"Headstamp ID" text,
"Primer Annulus Color" text,
"Bullet Tip Color" text,
"Other Features" text,
"Functional Type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many primers annulus colors were there... | SELECT COUNT("Primer Annulus Color") FROM table_16083 WHERE "Bullet Tip Color" = 'White' |
### Instruction:
CREATE TABLE table_204_614 (
id number,
"date announced" text,
"plant name" text,
"location" text,
"date of closing" text,
"products" text,
"employees" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which plant builds the ... | SELECT "plant name" FROM table_204_614 WHERE "products" = 'ford triton engine' |
### Instruction:
CREATE TABLE table_50489 (
"Position" real,
"Equipment" text,
"Points" real,
"Wins" text,
"Second" text,
"Third" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Equipment, when Points is less than 6, and when Position is ... | SELECT "Equipment" FROM table_50489 WHERE "Points" < '6' AND "Position" = '53' |
### Instruction:
CREATE TABLE table_70775 (
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Matches" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the tally with total less than 27 and average more than 3.41
##... | SELECT "Tally" FROM table_70775 WHERE "Total" < '27' AND "Average" > '3.41' |
### Instruction:
CREATE TABLE table_21 (
"Equivalent NATO Rank Code" text,
"Rank in Spanish" text,
"Rank in English" text,
"Commonwealth equivalent" text,
"US Air Force equivalent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If you're a major gen... | SELECT "Commonwealth equivalent" FROM table_21 WHERE "US Air Force equivalent" = 'Major General' |
### Instruction:
CREATE TABLE table_72667 (
"#" real,
"Minnesota River Conference" text,
"Records" text,
"Pct." text,
"MRC Championships" real,
"Solo" real,
"Co-Champions" real,
"State Champions" real
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT COUNT("Records") FROM table_72667 WHERE "#" = '2' |
### Instruction:
CREATE TABLE table_46022 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is CFL Team, when Pick # is greater than 34, and when College is Boise State?
... | SELECT "CFL Team" FROM table_46022 WHERE "Pick #" > '34' AND "College" = 'boise state' |
### Instruction:
CREATE TABLE table_13760 (
"Debut year" real,
"Player" text,
"Games" real,
"Goals" real,
"Years at club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest goals listed for player Sid O'neill, with Games larger than 1... | SELECT MIN("Goals") FROM table_13760 WHERE "Player" = 'sid o''neill' AND "Games" > '1' |
### Instruction:
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
)
CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
)
-- Using valid SQLite, answer the follo... | SELECT Snatch, Total FROM body_builder |
### Instruction:
CREATE TABLE table_42629 (
"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.
-- Which of the highest drawn has... | SELECT MAX("Drawn") FROM table_42629 WHERE "Played" < '10' |
### Instruction:
CREATE TABLE table_62713 (
"Year" real,
"Class" text,
"Team" text,
"Machine" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the machine that ranked 4th and has 2 w... | SELECT "Machine" FROM table_62713 WHERE "Rank" = '4th' AND "Wins" = '2' |
### Instruction:
CREATE TABLE table_66365 (
"Number" real,
"Song Title" text,
"Lyricist" text,
"Singer(s)" text,
"Length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the singer for the song numbered 3, with lyricist Dev Kohli?
### Respo... | SELECT "Singer(s)" FROM table_66365 WHERE "Lyricist" = 'dev kohli' AND "Number" = '3' |
### Instruction:
CREATE TABLE table_34482 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Game has a Record of 4 2 1, and Points larger than 9?
### Resp... | SELECT SUM("Game") FROM table_34482 WHERE "Record" = '4–2–1' AND "Points" > '9' |
### Instruction:
CREATE TABLE table_203_354 (
id number,
"party" text,
"candidate(s)" text,
"votes" number,
"percentage" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- between the uup party and the dup party , which had more votes in the 1996 foru... | SELECT "party" FROM table_203_354 WHERE "party" IN ('uup', 'dup') ORDER BY "votes" DESC LIMIT 1 |
### Instruction:
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
)
CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
)
CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
-- Using valid SQLite, answer the following q... | SELECT Name, Age FROM editor ORDER BY Age |
### Instruction:
CREATE TABLE table_203_79 (
id number,
"year" number,
"film" text,
"publisher" text,
"director" text,
"distributor" text,
"worldwide gross" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many films are ... | SELECT COUNT("film") FROM table_203_79 WHERE "publisher" = 'caliber comics' |
### Instruction:
CREATE TABLE table_48848 (
"Result" text,
"Opponent" text,
"Method" text,
"Date" text,
"Round" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has a Method of ko, and an Opponent of alfonse d'amore?
### Response:
| SELECT "Round" FROM table_48848 WHERE "Method" = 'ko' AND "Opponent" = 'alfonse d''amore' |
### Instruction:
CREATE TABLE table_50534 (
"Season" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the season with a Skip of Eve Muirhead and a third of Kerry Barr?
### Response:
| SELECT "Season" FROM table_50534 WHERE "Skip" = 'eve muirhead' AND "Third" = 'kerry barr' |
### Instruction:
CREATE TABLE table_53423 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Away team played at the W... | SELECT "Away team" FROM table_53423 WHERE "Venue" = 'windy hill' |
### Instruction:
CREATE TABLE table_25061 (
"Name" text,
"#" real,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text,
"High School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many height entries are the... | SELECT COUNT("Height") FROM table_25061 WHERE "Home Town" = 'Lagos, Nigeria' |
### Instruction:
CREATE TABLE table_73838 (
"No. in season" real,
"No. in series" real,
"Title" text,
"Canadian airdate" text,
"US airdate" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the us airdate of 'love l... | SELECT "US airdate" FROM table_73838 WHERE "Title" = 'Love Lockdown" Part One' |
### Instruction:
CREATE TABLE table_30392 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When gray wolve... | SELECT COUNT("Institution") FROM table_30392 WHERE "Team Nickname" = 'Gray Wolves' |
### Instruction:
CREATE TABLE table_80429 (
"Season" text,
"Team Name" text,
"Games" real,
"Losses" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the sum of points for the 1963 season when there are more than 30 games?
### R... | SELECT SUM("Points") FROM table_80429 WHERE "Season" = '1963' AND "Games" > '30' |
### Instruction:
CREATE TABLE table_17730 (
"Program" text,
"Degree" text,
"Focus" text,
"Teaching language" text,
"Duration (years)" text,
"full-time/part-time" text,
"ECTS Credit Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What ... | SELECT "Program" FROM table_17730 WHERE "Focus" = 'General Management' |
### Instruction:
CREATE TABLE table_55553 (
"Riding" text,
"Candidate" text,
"Gender" text,
"Residence" text,
"Occupation" text,
"Votes" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the occupation of the candidate that... | SELECT "Occupation" FROM table_55553 WHERE "Riding" = 'labrador' |
### Instruction:
CREATE TABLE table_1143 (
"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.
-- Name the attendance for september 19, 1976
##... | SELECT MIN("Attendance") FROM table_1143 WHERE "Date" = 'September 19, 1976' |
### Instruction:
CREATE TABLE table_name_50 (
col__m_ INTEGER,
peak VARCHAR,
prominence__m_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the lowest Col (m) with a Peak of pico basil , and a Prominence (m) smaller than 3,011?
### Response:
| SELECT MIN(col__m_) FROM table_name_50 WHERE peak = "pico basilé" AND prominence__m_ < 3 OFFSET 011 |
### Instruction:
CREATE TABLE table_63201 (
"Year" real,
"Song" text,
"Artist" text,
"Genre" text,
"Band Tour Venue" text,
"Exportable?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What song has the band tour vnue of 6. tool (usa) encore?
#... | SELECT "Song" FROM table_63201 WHERE "Band Tour Venue" = '6. tool (usa) encore' |
### Instruction:
CREATE TABLE table_5013 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many field goals were there, where the points where less than 45 and th... | SELECT AVG("Field goals") FROM table_5013 WHERE "Touchdowns" < '15' AND "Points" < '45' |
### 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.
-- Visualize ... | SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY job DESC |
### Instruction:
CREATE TABLE table_59760 (
"Round" text,
"Club" text,
"Home" text,
"Away" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the aggregate for the first round for K.S.V. Waregem?
### Response:
| SELECT "Aggregate" FROM table_59760 WHERE "Round" = 'first round' AND "Club" = 'k.s.v. waregem' |
### Instruction:
CREATE TABLE table_13163 (
"Province" text,
"Rd 1" real,
"Rd 2 1" text,
"Rd 3" real,
"Rd 4" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Rd 3 has a Rd 2 1 of 0+1?
### Response:
| SELECT "Rd 3" FROM table_13163 WHERE "Rd 2 1" = '0+1' |
### Instruction:
CREATE TABLE table_19272 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of points for rig... | SELECT COUNT("Points") FROM table_19272 WHERE "Position" = 'Right halfback' AND "Starter" = 'yes' |
### Instruction:
CREATE TABLE table_8538 (
"Discipline" text,
"Championship" text,
"Circuit" text,
"Event" text,
"Session" text,
"Cause" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The 2001 NASCAR Winston Cup Series championship has what has ... | SELECT "Circuit" FROM table_8538 WHERE "Championship" = '2001 nascar winston cup series' |
### Instruction:
CREATE TABLE table_204_12 (
id number,
"area served" text,
"city of license" text,
"vc" number,
"rf" number,
"callsign" text,
"network" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- does evansville have mo... | SELECT (SELECT COUNT(*) FROM table_204_12 WHERE "city of license" = 'evansville') > 4 |
### Instruction:
CREATE TABLE table_68501 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at the game that had a loss of Saarloos (7-7)?
... | SELECT "Opponent" FROM table_68501 WHERE "Loss" = 'saarloos (7-7)' |
### Instruction:
CREATE TABLE accounts (
custid number,
name text
)
CREATE TABLE checking (
custid number,
balance number
)
CREATE TABLE savings (
custid number,
balance number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of cu... | SELECT COUNT(*), T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name |
### Instruction:
CREATE TABLE table_32491 (
"Name" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average grid number for paul cruickshank racing with less than 27 laps?
### R... | SELECT AVG("Grid") FROM table_32491 WHERE "Team" = 'paul cruickshank racing' AND "Laps" < '27' |
### Instruction:
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
-- Using valid SQLite, answer the following ques... | SELECT COUNT(*), rank FROM captain WHERE age < 50 GROUP BY rank |
### Instruction:
CREATE TABLE table_68051 (
"Name" text,
"Years" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average decile of Ruapehu college, which has a state authority... | SELECT AVG("Decile") FROM table_68051 WHERE "Authority" = 'state' AND "Name" = 'ruapehu college' |
### Instruction:
CREATE TABLE table_67368 (
"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 totals have a Bronze of 0, and a Gold smaller than 0?
### Respon... | SELECT SUM("Total") FROM table_67368 WHERE "Bronze" = '0' AND "Gold" < '0' |
### Instruction:
CREATE TABLE table_40102 (
"Championship" text,
"Current champion(s)" text,
"Previous champion(s)" text,
"Date won" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which championship had a previous champion of 'de... | SELECT "Championship" FROM table_40102 WHERE "Previous champion(s)" = 'defeated justin corino in tournament final' |
### Instruction:
CREATE TABLE table_19257 (
"AGR Power Station" text,
"Net MWe" real,
"Construction started" real,
"Connected to grid" real,
"Commercial operation" real,
"Accounting closure date" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT MIN("Accounting closure date") FROM table_19257 WHERE "AGR Power Station" = 'Hunterston B' |
### Instruction:
CREATE TABLE table_37288 (
"Title" text,
"Publisher" text,
"Developer" text,
"Release date" text,
"ESRB" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Did Microsoft Game Studios release Amped: Freestyle Snowboarding?
### Res... | SELECT "Release date" FROM table_37288 WHERE "Publisher" = 'microsoft game studios' AND "Title" = 'amped: freestyle snowboarding' |
### Instruction:
CREATE TABLE table_203_60 (
id number,
"outcome" text,
"no." number,
"date" text,
"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.
-- how... | SELECT COUNT(*) FROM table_203_60 WHERE "date" < 1985 |
### Instruction:
CREATE TABLE table_31833 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the opponents for partner of yvonne ... | SELECT "Opponents" FROM table_31833 WHERE "Partner" = 'yvonne meusburger' |
### Instruction:
CREATE TABLE table_54565 (
"Discipline" text,
"Season" real,
"Performance" text,
"Place" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the performance length of the 1999 season in bydgoszcz, poland?
### Resp... | SELECT "Performance" FROM table_54565 WHERE "Season" = '1999' AND "Place" = 'bydgoszcz, poland' |
### Instruction:
CREATE TABLE table_31105 (
"Week of" text,
"Tournament" text,
"Champion" text,
"Runner-up" text,
"Semifinalists" text,
"Quarterfinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the quarterfinalists when the runn... | SELECT "Quarterfinalists" FROM table_31105 WHERE "Runner-up" = 'Andrew Pattison' |
### Instruction:
CREATE TABLE table_28556 (
"Episode #" real,
"Prod #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Originalairdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times was the episode directed by maury g... | SELECT COUNT("Originalairdate") FROM table_28556 WHERE "Directed by" = 'Maury Geraghty' |
### Instruction:
CREATE TABLE table_21493 (
"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_21493 WHERE "Team" = 'Charlotte' |
### Instruction:
CREATE TABLE table_63477 (
"District" real,
"Incumbent" text,
"2008 Status" text,
"Democratic" text,
"Republican" text,
"Green" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the incumbent when Bo Itshaky was the Republi... | SELECT "Incumbent" FROM table_63477 WHERE "Republican" = 'bo itshaky' |
### Instruction:
CREATE TABLE table_203_14 (
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 international goals did te... | SELECT COUNT(*) FROM table_203_14 WHERE "date" = 2009 |
### Instruction:
CREATE TABLE table_37148 (
"Rank" real,
"Country/territory/entity" text,
"Population" real,
"% of world population" text,
"Region" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most population for seychelles and rank less ... | SELECT MAX("Population") FROM table_37148 WHERE "Country/territory/entity" = 'seychelles' AND "Rank" < '13' |
### Instruction:
CREATE TABLE table_11869 (
"Name" text,
"Premiere" text,
"Finale" text,
"Original teams" text,
"The Biggest Loser" text,
"At-Home Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the season when Pete Thomas was the... | SELECT "The Biggest Loser" FROM table_11869 WHERE "At-Home Winner" = 'pete thomas' |
### Instruction:
CREATE TABLE table_32251 (
"Season" real,
"Series" text,
"Team" text,
"Races" text,
"Wins" text,
"Poles" text,
"Podiums" text,
"Points" text,
"Final Placing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which races... | SELECT "Races" FROM table_32251 WHERE "Podiums" = '2' |
### 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.
-- Return a b... | SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY gender |
### Instruction:
CREATE TABLE table_76877 (
"Date" text,
"Round" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Scorers" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the attendance number in the... | SELECT SUM("Attendance") FROM table_76877 WHERE "Round" = 'final' |
### Instruction:
CREATE TABLE table_27174 (
"Player" text,
"Minutes" real,
"Field Goals" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the number of take... | SELECT COUNT("Steals") FROM table_27174 WHERE "Blocks" = '1' |
### Instruction:
CREATE TABLE table_12941 (
"White" text,
"Black" text,
"Year" real,
"Result" text,
"Moves" real,
"Tournament" text,
"Opening" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year had e34 Nimzo-Indian defence is the open... | SELECT "Year" FROM table_12941 WHERE "Opening" = 'e34 nimzo-indian defence' |
### Instruction:
CREATE TABLE table_name_83 (
to_par VARCHAR,
money___$__ VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the to par for $242,813 with score 68-72-74-66=280
### Response:
| SELECT to_par FROM table_name_83 WHERE money___$__ = "242,813" AND score = 68 - 72 - 74 - 66 = 280 |
### Instruction:
CREATE TABLE table_13060 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What teams has a home of 1-0, in the season 1988-89?
### Response:
| SELECT "Teams" FROM table_13060 WHERE "Home" = '1-0' AND "Season" = '1988-89' |
### Instruction:
CREATE TABLE table_204_143 (
id number,
"national park" text,
"region" text,
"land area (km2)" number,
"established" number,
"visitation (2009)" number,
"coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- last finni... | SELECT "national park" FROM table_204_143 ORDER BY "established" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_48471 (
"Name" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Time/Retired, when Team is 'Team Vodafone', and when Grid is greater than 4?
### ... | SELECT "Time/Retired" FROM table_48471 WHERE "Team" = 'team vodafone' AND "Grid" > '4' |
### Instruction:
CREATE TABLE table_204_394 (
id number,
"year" number,
"album" text,
"label" text,
"peak chart\npositions\nus" number,
"peak chart\npositions\nus r&b" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the only label that shares m... | SELECT "label" FROM table_204_394 GROUP BY "label" HAVING COUNT(*) > 1 |
### Instruction:
CREATE TABLE table_204_918 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"record" text,
"attendance" number,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many points did the ravens ... | SELECT "result" - "result" FROM table_204_918 WHERE "week" = 13 |
### Instruction:
CREATE TABLE table_56221 (
"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 crowd size at Junc... | SELECT MAX("Crowd") FROM table_56221 WHERE "Venue" = 'junction oval' |
### Instruction:
CREATE TABLE table_62884 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which position did Ilju t enko finish in the European Championships held prior to 2... | SELECT "Position" FROM table_62884 WHERE "Year" < '2008' AND "Competition" = 'european championships' |
### Instruction:
CREATE TABLE table_73540 (
"Horizontal order" real,
"Height order" real,
"Soundfield type" text,
"Number of channels" real,
"Channels" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the height order is 1 and the soundfield type i... | SELECT "Channels" FROM table_73540 WHERE "Soundfield type" = 'mixed-order' AND "Height order" = '1' |
### Instruction:
CREATE TABLE table_name_79 (
year VARCHAR,
apparatus VARCHAR,
competition_description VARCHAR,
rank_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Year, when Competition Description is 'U.S. Championships', when Rank-Fi... | SELECT year FROM table_name_79 WHERE competition_description = "u.s. championships" AND rank_final < 3 AND apparatus = "all-around" |
### Instruction:
CREATE TABLE table_train_200 (
"id" int,
"gender" string,
"fasting_triglycerides" int,
"fasting_plasma_glucose" int,
"smoking" bool,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT * FROM table_train_200 WHERE smoking = 0 |
### Instruction:
CREATE TABLE table_64598 (
"Name" text,
"Games" text,
"W-League" text,
"Finals" text,
"Goals" real,
"Years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had more than 2 goals and 11 (2) games?
### Response:
| SELECT "Years" FROM table_64598 WHERE "Goals" > '2' AND "Games" = '11 (2)' |
### Instruction:
CREATE TABLE table_train_49 (
"id" int,
"consent" bool,
"palliative_treatment" bool,
"acute_mesenteric_ischemia" bool,
"receiving_vasopressor" bool,
"septic_shock" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT * FROM table_train_49 WHERE palliative_treatment = 1 |
### Instruction:
CREATE TABLE table_77626 (
"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.
-- When Melbourne was the Away tea... | SELECT "Away team score" FROM table_77626 WHERE "Away team" = 'melbourne' |
### Instruction:
CREATE TABLE table_203_184 (
id number,
"tie no" number,
"home team" text,
"score" text,
"away team" text,
"attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- chesterfield is listed with a score of 1-0 , but what team is... | SELECT "home team" FROM table_203_184 WHERE "score" = '2-2' |
### Instruction:
CREATE TABLE table_23307 (
"English Name" text,
"Chinese Name (Simplified / Traditional)" text,
"Pinyin" text,
"Population" real,
"Post Code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Pinyin name of the county with a... | SELECT "Pinyin" FROM table_23307 WHERE "Post Code" = '246500' |
### Instruction:
CREATE TABLE table_32377 (
"Season" text,
"Team" text,
"League Apps" real,
"League Goals" real,
"Cup Apps" real,
"Cup Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many cup goals for the season with more than 34 leag... | SELECT AVG("Cup Goals") FROM table_32377 WHERE "League Apps" > '34' |
### Instruction:
CREATE TABLE table_32384 (
"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 score for Fitzroy w... | SELECT "Home team score" FROM table_32384 WHERE "Home team" = 'fitzroy' |
### Instruction:
CREATE TABLE table_69732 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Outcome for the Date of July 16, 2011?
### Response:
| SELECT "Outcome" FROM table_69732 WHERE "Date" = 'july 16, 2011' |
### Instruction:
CREATE TABLE table_29500 (
"Number" real,
"Player" text,
"Position" text,
"Seasons by team" text,
"Year of induction into Pro Football Hall of Fame" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position was the player who was... | SELECT "Position" FROM table_29500 WHERE "Year of induction into Pro Football Hall of Fame" = '1980' |
### Instruction:
CREATE TABLE table_56855 (
"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.
-- Where was match which had Joe Lauz... | SELECT "Location" FROM table_56855 WHERE "Opponent" = 'joe lauzon' |
### Instruction:
CREATE TABLE table_71301 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the qualification with more than 162 laps in 1953?
### Response:
| SELECT "Qual" FROM table_71301 WHERE "Laps" > '162' AND "Year" = '1953' |
### Instruction:
CREATE TABLE table_name_75 (
production_code VARCHAR,
written_by VARCHAR,
season__number VARCHAR,
series__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production code of the episode written by Gary Sturgis that i... | SELECT production_code FROM table_name_75 WHERE season__number > 23 AND series__number < 126 AND written_by = "gary sturgis" |
### Instruction:
CREATE TABLE table_204_650 (
id number,
"season" number,
"level" number,
"name" text,
"position" text,
"nationality" text,
"international\ncaps" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the last player from e... | SELECT "name" FROM table_204_650 WHERE "nationality" = 'england' ORDER BY "season" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_203_202 (
id number,
"network" text,
"company" text,
"mobile prefixes" text,
"mobile examples" text,
"landline prefixes" text,
"landline examples" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "network" FROM table_203_202 WHERE "landline prefixes" IS NULL |
### Instruction:
CREATE TABLE table_45362 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Res., when Event is 'KOTC 11 - Domination'?... | SELECT "Res." FROM table_45362 WHERE "Event" = 'kotc 11 - domination' |
### Instruction:
CREATE TABLE table_21313498_1 (
original_air_date VARCHAR,
us_viewers__millions_ VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was the premiere when a 3.3 millions of North American watched the episode whose wri... | SELECT original_air_date FROM table_21313498_1 WHERE us_viewers__millions_ = "3.3" AND written_by = "Rob Wright" |
### Instruction:
CREATE TABLE table_10986 (
"Player" text,
"Dates of captaincy" text,
"Lost" real,
"Tied" real,
"No result" real,
"% win [A ]" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What dates of captaincy for a win % of 35.71?
### Res... | SELECT "Dates of captaincy" FROM table_10986 WHERE "% win [A ]" = '35.71' |
### Instruction:
CREATE TABLE table_204_232 (
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.
-- which country scored the least medals ?
### Re... | SELECT "nation" FROM table_204_232 WHERE "total" = (SELECT MIN("total") FROM table_204_232) |
### Instruction:
CREATE TABLE table_29718 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Table" text,
"Incoming manager" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "Table" FROM table_29718 WHERE "Team" = 'Slovan Bratislava' |
### Instruction:
CREATE TABLE table_19256 (
"Total#" real,
"Series#" real,
"Title" text,
"Writer" text,
"Director" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which episodes have Patrick Lau as the director and Lisa ... | SELECT "Title" FROM table_19256 WHERE "Director" = 'Patrick Lau' AND "Writer" = 'Lisa Holdsworth' |
### Instruction:
CREATE TABLE table_1453 (
"Official #" real,
"TF1 #" real,
"French title" text,
"English title" text,
"Air date (France)" text,
"Original Beechwood Bunny Tale / Source material" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Nam... | SELECT MAX("Official #") FROM table_1453 WHERE "TF1 #" = '42' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.