instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_41627 (
"Name" text,
"Career" text,
"Goals" real,
"Appearances" real,
"Goals/Game Ratio" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Lee Smith's highest number of goals when he made fewer than 364 appe... | SELECT MAX("Goals") FROM table_41627 WHERE "Name" = 'lee smith' AND "Appearances" < '364' |
### Instruction:
CREATE TABLE table_40969 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player plays Guard-Forward Position for School/Club Team... | SELECT "Player" FROM table_40969 WHERE "Position" = 'guard-forward' AND "School/Club Team" = 'pepperdine' |
### Instruction:
CREATE TABLE table_48196 (
"Test flight" text,
"Date" text,
"Speed" text,
"Altitude" text,
"Crew" text,
"Duration" text,
"Comment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Crew, when Date is July 26, 1977?
##... | SELECT "Crew" FROM table_48196 WHERE "Date" = 'july 26, 1977' |
### Instruction:
CREATE TABLE table_79513 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rank has a Bronze of 1, and a Nation of lithuania?
### Response:
| SELECT "Rank" FROM table_79513 WHERE "Bronze" = '1' AND "Nation" = 'lithuania' |
### Instruction:
CREATE TABLE table_50666 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Lowest against for tour match on 21 july 1990?
### Response:
| SELECT MIN("Against") FROM table_50666 WHERE "Status" = 'tour match' AND "Date" = '21 july 1990' |
### Instruction:
CREATE TABLE table_2877 (
"#" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Production Code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the numbe... | SELECT "#" FROM table_2877 WHERE "Director" = 'Whitney Ransick' |
### Instruction:
CREATE TABLE table_3441 (
"Actor/Actress" text,
"Character" text,
"First Appearance" text,
"Last Appearance" text,
"Duration" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the actor/actress with a first ap... | SELECT "Actor/Actress" FROM table_3441 WHERE "First Appearance" = '3 June 2007' |
### Instruction:
CREATE TABLE table_52378 (
"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 away team with st ... | SELECT "Away team score" FROM table_52378 WHERE "Away team" = 'st kilda' |
### Instruction:
CREATE TABLE table_59806 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year(s) won has a To par smaller than 12, and a Player of john daly?
### Res... | SELECT "Year(s) won" FROM table_59806 WHERE "To par" < '12' AND "Player" = 'john daly' |
### Instruction:
CREATE TABLE table_60128 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Venue has a Year smaller than 1986, and a Position of 6th?
###... | SELECT "Venue" FROM table_60128 WHERE "Year" < '1986' AND "Position" = '6th' |
### Instruction:
CREATE TABLE table_39006 (
"Outcome" text,
"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 was the score on 7 februar... | SELECT "Score" FROM table_39006 WHERE "Date" = '7 february 2008' |
### Instruction:
CREATE TABLE table_61579 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won in 1997 with a finish of t48?
### Response:
| SELECT "Player" FROM table_61579 WHERE "Finish" = 't48' AND "Year(s) won" = '1997' |
### Instruction:
CREATE TABLE table_17953 (
"Season" text,
"Airdate" text,
"The Mole" text,
"Winner" text,
"Runner-up" text,
"Prize money" text,
"International destination" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's runner-up with... | SELECT "Runner-up" FROM table_17953 WHERE "Season" = 'Season 13' |
### Instruction:
CREATE TABLE table_64 (
"Approximate Age" text,
"Virtues" text,
"Psycho Social Crisis" text,
"Significant Relationship" text,
"Existential Question [ not in citation given ]" text,
"Examples" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT COUNT("Significant Relationship") FROM table_64 WHERE "Virtues" = 'Will' |
### Instruction:
CREATE TABLE table_204_665 (
id number,
"rank" number,
"name" text,
"notability" text,
"birthplace" text,
"advocate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is ranked after wayne gretzky ?
### Response:
| SELECT "name" FROM table_204_665 WHERE id = (SELECT id FROM table_204_665 WHERE "name" = 'wayne gretzky') + 1 |
### Instruction:
CREATE TABLE table_203_426 (
id number,
"year" number,
"title" text,
"peak chart positions\naus" number,
"peak chart positions\nnz" number,
"peak chart positions\nuk" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT COUNT("title") FROM table_203_426 WHERE "album" = 'single-only release' |
### Instruction:
CREATE TABLE table_203_239 (
id number,
"year" number,
"title" text,
"chinese title" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- did lantern come out in 1994 or 1997 ?
### Response:
| SELECT "year" FROM table_203_239 WHERE "year" IN (1994, 1997) AND "title" = 'lantern' |
### Instruction:
CREATE TABLE table_26691 (
"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 "Team" FROM table_26691 WHERE "Position in table" = '19th' |
### Instruction:
CREATE TABLE table_34131 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Gold that has the Silver of south korea, and the Year of 1986?
### Re... | SELECT "Gold" FROM table_34131 WHERE "Silver" = 'south korea' AND "Year" = '1986' |
### Instruction:
CREATE TABLE table_30117 (
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Originalairdate" text,
"Viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest episode number that... | SELECT MIN("Episode #") FROM table_30117 WHERE "Viewers (millions)" = '4.03' |
### Instruction:
CREATE TABLE table_name_57 (
record VARCHAR,
opponent VARCHAR,
november VARCHAR,
game VARCHAR,
decision VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record for a game smaller than 24, Lundqvist was the decision, Nov... | SELECT record FROM table_name_57 WHERE game < 24 AND decision = "lundqvist" AND november < 8 AND opponent = "new york islanders" |
### Instruction:
CREATE TABLE table_70623 (
"Team" text,
"Truck(s)" text,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Owner(s)" text,
"Crew Chief" text,
"Rounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the driver for crew ch... | SELECT "Driver(s)" FROM table_70623 WHERE "Crew Chief" = 'nick carlson' |
### Instruction:
CREATE TABLE table_70284 (
"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 is Chitwood's lowest completed number of laps with a qualifying time of 12... | SELECT MIN("Laps") FROM table_70284 WHERE "Qual" = '124.619' |
### Instruction:
CREATE TABLE table_21001903_2 (
tour VARCHAR,
mixed_doubles VARCHAR,
womens_singles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when mixed doubles is zheng bo ma jin and womens singles is wang yihan, what was the tour?
### Response:... | SELECT tour FROM table_21001903_2 WHERE mixed_doubles = "Zheng Bo Ma Jin" AND womens_singles = "Wang Yihan" |
### Instruction:
CREATE TABLE table_15107 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the attendance larger than 29,319 and had a score of 7-6?
### Respons... | SELECT "Date" FROM table_15107 WHERE "Attendance" > '29,319' AND "Score" = '7-6' |
### Instruction:
CREATE TABLE table_55678 (
"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_55678 WHERE "Residence" = 'windsor junction' |
### Instruction:
CREATE TABLE table_38381 (
"Series Ep." text,
"Episode" real,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Segment A entry for the episode that has ... | SELECT "Segment A" FROM table_38381 WHERE "Segment D" = 'diesel filters' |
### Instruction:
CREATE TABLE table_52062 (
"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_52062 WHERE "Date" = 'november 16' |
### Instruction:
CREATE TABLE table_25410 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the last year that Andre Agas... | SELECT MAX("Year") FROM table_25410 WHERE "Opponent in the final" = 'Andre Agassi' |
### Instruction:
CREATE TABLE table_29048 (
"Date" text,
"Time" text,
"Visiting team" text,
"Home team" text,
"Site" text,
"Broadcast" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the home team... | SELECT "Home team" FROM table_29048 WHERE "Broadcast" = 'Big East Network' |
### 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.
-- who was... | SELECT "driver" FROM table_204_584 WHERE "time/retired" = 'accident' |
### Instruction:
CREATE TABLE table_70395 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Before the year 1988, what is the lowest number of points that entrant Coloni SpA scored?... | SELECT MIN("Points") FROM table_70395 WHERE "Entrant" = 'coloni spa' AND "Year" < '1988' |
### Instruction:
CREATE TABLE table_28090 (
"Entered [A ]" text,
"Weeks in top 10" real,
"Single" text,
"Artist" text,
"Peak" real,
"Peak reached [A ]" text,
"Weeks at number 1" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the song... | SELECT "Single" FROM table_28090 WHERE "Artist" = 'Travis' |
### Instruction:
CREATE TABLE table_64765 (
"Rank" text,
"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 least gold when the rank is 10 and silver is less than 0?
###... | SELECT MIN("Gold") FROM table_64765 WHERE "Rank" = '10' AND "Silver" < '0' |
### Instruction:
CREATE TABLE table_1341672_6 (
result VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times did an election feature the result robert l. leggett (d) 50.2% albert dehr (r) 49.8%?
### Response:
| SELECT COUNT(result) FROM table_1341672_6 WHERE candidates = "Robert L. Leggett (D) 50.2% Albert Dehr (R) 49.8%" |
### Instruction:
CREATE TABLE table_6598 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game with a result of ... | SELECT "Date" FROM table_6598 WHERE "Week" < '12' AND "Result" = 'bye' |
### Instruction:
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
-- Using valid SQLite, answer the following questions for t... | SELECT Rank, COUNT(Rank) FROM captain GROUP BY Rank |
### Instruction:
CREATE TABLE table_name_39 (
no_5 VARCHAR,
no_6 VARCHAR,
no_2 VARCHAR,
no_4 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is No. 5, when No. 2 is Olivia, when No. 4 is Ava, and when No. 6 is Abigail?
### Response:
| SELECT no_5 FROM table_name_39 WHERE no_2 = "olivia" AND no_4 = "ava" AND no_6 = "abigail" |
### Instruction:
CREATE TABLE table_name_53 (
object_type VARCHAR,
ngc_number VARCHAR,
declination___j2000__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which object type had an NGC number greater than 6357 and a declination (J2000) of 45 34 ?
### R... | SELECT object_type FROM table_name_53 WHERE ngc_number > 6357 AND declination___j2000__ = "°45′34″" |
### Instruction:
CREATE TABLE table_24040 (
"Episode #" real,
"Episode" real,
"Title" text,
"Director" text,
"Writer" text,
"Original airdate" text,
"U.S. airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the us airdate for 'B... | SELECT "U.S. airdate" FROM table_24040 WHERE "Title" = 'Bear Breasts' |
### Instruction:
CREATE TABLE table_55404 (
"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 sum of gold where silver is more than 2 and the total is 12?
#... | SELECT SUM("Gold") FROM table_55404 WHERE "Silver" > '2' AND "Total" = '12' |
### Instruction:
CREATE TABLE table_39885 (
"Name" text,
"Novelty" text,
"Status" text,
"Authors" text,
"Unit" text,
"Location" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has the status of jr synonym of protosialis casc... | SELECT "Novelty" FROM table_39885 WHERE "Status" = 'jr synonym of protosialis casca' |
### Instruction:
CREATE TABLE table_58570 (
"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 of the ... | SELECT COUNT("Crowd") FROM table_58570 WHERE "Home team" = 'north melbourne' |
### Instruction:
CREATE TABLE table_55748 (
"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 home team score at... | SELECT "Home team score" FROM table_55748 WHERE "Away team" = 'north melbourne' |
### Instruction:
CREATE TABLE table_54975 (
"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 average crowd for t... | SELECT AVG("Crowd") FROM table_54975 WHERE "Home team" = 'north melbourne' |
### Instruction:
CREATE TABLE table_20031 (
"State" text,
"Date of Polls" text,
"Seats (ACs)" real,
"Date of Counting" text,
"Incumbent" text,
"Election Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many dates of polls occur in the ... | SELECT COUNT("Date of Polls") FROM table_20031 WHERE "State" = 'Madhya Pradesh' |
### Instruction:
CREATE TABLE table_53700 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Series" FROM table_53700 WHERE "Date" = 'april 30' |
### Instruction:
CREATE TABLE table_name_94 (
comp INTEGER,
rating VARCHAR,
yds_game VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of Comp which has a Yds/game smaller than 209.5,brytus Name, and a Rating smaller than 100?... | SELECT SUM(comp) FROM table_name_94 WHERE yds_game < 209.5 AND name = "brytus" AND rating < 100 |
### Instruction:
CREATE TABLE table_18250 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the incumbent with candidates being bud shuster ... | SELECT "Incumbent" FROM table_18250 WHERE "Candidates" = 'Bud Shuster (R) Unopposed' |
### Instruction:
CREATE TABLE table_9970 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Game, when Opponent is 'Cleveland Barons', and when March is less than 8?... | SELECT SUM("Game") FROM table_9970 WHERE "Opponent" = 'cleveland barons' AND "March" < '8' |
### Instruction:
CREATE TABLE table_75207 (
"Game #" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the visitor team of game 19 with Los Angeles as ... | SELECT "Visitor" FROM table_75207 WHERE "Home" = 'los angeles' AND "Game #" = '19' |
### Instruction:
CREATE TABLE table_46907 (
"Game" real,
"Date" real,
"Opponent" text,
"Score" text,
"Decision" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Location/Attendance, when Score... | SELECT "Location/Attendance" FROM table_46907 WHERE "Score" = '4-5 (ot)' |
### Instruction:
CREATE TABLE table_54463 (
"Club" text,
"Swedish championship titles" real,
"Allsvenskan titles" real,
"Introduced" real,
"Stars symbolizes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest amount of swedish champi... | SELECT MAX("Swedish championship titles") FROM table_54463 WHERE "Introduced" < '2006' |
### Instruction:
CREATE TABLE table_21964 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sogn)" text,
"Church Name" text,
"Year Built" real,
"Location of the Church" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what parish is the sub-parish fortun... | SELECT "Parish (Prestegjeld)" FROM table_21964 WHERE "Sub-Parish (Sogn)" = 'Fortun' |
### Instruction:
CREATE TABLE table_33760 (
"Team" text,
"Chassis" text,
"Engine" text,
"Driver(s)" text,
"Sponsor(s)" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who sponsors Josele Garza in all rounds?
### Response:
| SELECT "Sponsor(s)" FROM table_33760 WHERE "Rounds" = 'all' AND "Driver(s)" = 'josele garza' |
### Instruction:
CREATE TABLE table_28704 (
"Rank" real,
"Athlete" text,
"Country" text,
"Distance (metres)" text,
"Points" text,
"Adjusted Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of times points were list... | SELECT COUNT("Points") FROM table_28704 WHERE "Distance (metres)" = '41.05' |
### Instruction:
CREATE TABLE table_1250 (
"No. in series" text,
"No. Disc" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Length (minutes)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the minim... | SELECT MIN("No. Disc") FROM table_1250 WHERE "No. in series" = '14' |
### Instruction:
CREATE TABLE table_56673 (
"Outcome" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score in the final had a tournament of $25,000 Glasgow, Great ... | SELECT "Score in the final" FROM table_56673 WHERE "Tournament" = '$25,000 glasgow, great britain' |
### Instruction:
CREATE TABLE table_25864 (
"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("Record") FROM table_25864 WHERE "Game" = '30' |
### Instruction:
CREATE TABLE table_203_815 (
id number,
"pick #" number,
"nfl team" text,
"player" text,
"position" text,
"college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which other team besides the new york giants drafted an end in ro... | SELECT "nfl team" FROM table_203_815 WHERE "nfl team" <> 'new york giants' AND "position" = 'end' |
### Instruction:
CREATE TABLE table_203_452 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many lap... | SELECT "laps" FROM table_203_452 WHERE "driver" = 'paul tracy' |
### Instruction:
CREATE TABLE table_4244 (
"Constituency No." real,
"Vidhan Sabha Constituency" text,
"Reservation for SC/ST" text,
"District" text,
"Lok Sabha" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many reservations for sc/st are there... | SELECT COUNT("Reservation for SC/ST") FROM table_4244 WHERE "Constituency No." = '191' |
### Instruction:
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
-- Using valid SQ... | SELECT Author, COUNT(Author) FROM submission GROUP BY Author |
### Instruction:
CREATE TABLE table_50919 (
"Episode" text,
"Air Date" text,
"Timeslot" text,
"18-49" text,
"Viewers" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of viewers for the episode that has an 18-49 of 1.8/6?
... | SELECT MAX("Viewers") FROM table_50919 WHERE "18-49" = '1.8/6' |
### Instruction:
CREATE TABLE table_204_543 (
id number,
"national team" text,
"title(s)\nrepresented" text,
"first\nworn" number,
"number\nof stars" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many stars does the french t... | SELECT "number\nof stars" FROM table_204_543 WHERE "national team" = 'france' |
### Instruction:
CREATE TABLE table_1341884_40 (
district VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What district featured an election between james a. byrne (d) 59.3% joseph r. burns (r) 40.7%?
### Response:
| SELECT district FROM table_1341884_40 WHERE candidates = "James A. Byrne (D) 59.3% Joseph R. Burns (R) 40.7%" |
### Instruction:
CREATE TABLE Participates_in (
StuID VARCHAR
)
CREATE TABLE Student (
fname VARCHAR,
lname VARCHAR,
StuID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first and last name of the student participating in the most activi... | SELECT T1.fname, T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_6624 (
"Cardinal direction" text,
"Burmese" text,
"Sanskrit" text,
"English" text,
"Planet" text,
"Sign" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sign of the Burmese taninganwe ?
### Respon... | SELECT "Sign" FROM table_6624 WHERE "Burmese" = 'taninganwe တနင်္ဂနွေ' |
### Instruction:
CREATE TABLE table_74454 (
"Tournament" text,
"Player" text,
"Nationality" text,
"Team" text,
"Games played" real,
"Goals conceded" real,
"Coefficient" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the coefficient f... | SELECT "Coefficient" FROM table_74454 WHERE "Player" = 'Agustín Marchesín (1)' |
### Instruction:
CREATE TABLE table_29136 (
"English" text,
"Proto-Semitic" text,
"IPA" text,
"Arabic" text,
"Hebrew" text,
"Tigrinya" text,
"Sabaean" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the arabic for amu te
### Response:
| SELECT "Arabic" FROM table_29136 WHERE "Tigrinya" = 'ħamuʃte' |
### Instruction:
CREATE TABLE table_69951 (
"Program" text,
"Degree" text,
"Teaching language" text,
"Duration (years)" real,
"full-time/part-time" text,
"ECTS Credit Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the teaching la... | SELECT "Teaching language" FROM table_69951 WHERE "Program" = 'master of quantitative finance' |
### Instruction:
CREATE TABLE table_18612 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many candidates were in the election featuring broo... | SELECT COUNT("First elected") FROM table_18612 WHERE "Candidates" = 'Brooks Hays (D) Unopposed' |
### Instruction:
CREATE TABLE table_39155 (
"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 8 2 0, and Points larger than 16?
### Res... | SELECT SUM("Game") FROM table_39155 WHERE "Record" = '8–2–0' AND "Points" > '16' |
### Instruction:
CREATE TABLE table_53838 (
"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.
-- Name the home team scored 9.8 (... | SELECT "Home team" FROM table_53838 WHERE "Home team score" = '9.8 (62)' |
### Instruction:
CREATE TABLE table_52508 (
"MLB season" text,
"Team season" text,
"League" text,
"Division" text,
"Finish" text,
"Wins" text,
"Losses" text,
"Win %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which MLB division has a... | SELECT "Division" FROM table_52508 WHERE "Wins" = '76' |
### Instruction:
CREATE TABLE table_33273 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total points" real,
"Number of dances" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many dances placed below 1 with a point t... | SELECT "Number of dances" FROM table_33273 WHERE "Place" > '1' AND "Total points" = '40' |
### Instruction:
CREATE TABLE table_70329 (
"Tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 2012 when 2011 is qf
### Response:
| SELECT "2012" FROM table_70329 WHERE "2011" = 'qf' |
### Instruction:
CREATE TABLE table_73436 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Cowboys points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the Cowboys score 13 points in 19... | SELECT "Date" FROM table_73436 WHERE "Cowboys points" = '13' |
### Instruction:
CREATE TABLE table_6274 (
"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.
-- Which Top-5 is the lowest one that has Wins smal... | SELECT MIN("Top-5") FROM table_6274 WHERE "Wins" < '0' |
### Instruction:
CREATE TABLE table_4170 (
"Series #" real,
"Production Code" real,
"Title" text,
"Directed by" text,
"Written by" text,
"United States Original Airdate" text,
"Canada Original Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Series #" FROM table_4170 WHERE "Title" = 'My Fair Rebound' |
### Instruction:
CREATE TABLE table_31120 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the season ... | SELECT "Season #" FROM table_31120 WHERE "Production code" = '3.89' |
### Instruction:
CREATE TABLE table_4023 (
"Representative" text,
"Party" text,
"Years" text,
"Congress" text,
"District Home" text,
"Occupation" text,
"Electoral history" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party is listed f... | SELECT "Party" FROM table_4023 WHERE "Congress" = '85th' |
### Instruction:
CREATE TABLE table_73250 (
"Conference" text,
"Regular Season Winner" text,
"Conference Player of the Year" text,
"Conference Tournament" text,
"Tournament Venue (City)" text,
"Tournament Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Tournament Venue (City)" FROM table_73250 WHERE "Conference" = 'Ivy League' |
### Instruction:
CREATE TABLE affected_region (
storm_id VARCHAR
)
CREATE TABLE storm (
name VARCHAR,
max_speed VARCHAR,
storm_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the storm name and max speed which affected the greatest number ... | SELECT T1.name, T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_38468 (
"Number" text,
"Date" text,
"Pitcher" text,
"Team" text,
"Inning" text,
"Length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date when the pitcher was Jason Marquis and the length was 4... | SELECT "Date" FROM table_38468 WHERE "Pitcher" = 'jason marquis' AND "Length" = '410' |
### Instruction:
CREATE TABLE table_203_36 (
id number,
"parish" text,
"locality" text,
"parish priest" text,
"founded" number,
"closed" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- other than st mary , which parish was founded by fr frank t... | SELECT "parish" FROM table_203_36 WHERE "parish" <> 'st mary' AND "parish priest" = 'fr frank thorpe' |
### Instruction:
CREATE TABLE table_13687 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the attendance in a week larter than 4, on December 6, 1992?
### Response:
| SELECT "Attendance" FROM table_13687 WHERE "Week" > '4' AND "Date" = 'december 6, 1992' |
### Instruction:
CREATE TABLE table_25721 (
"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_25721 WHERE "Team" = 'Utah' |
### Instruction:
CREATE TABLE table_204_468 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was ric... | SELECT "pos" FROM table_204_468 WHERE "driver" = 'richie hearn' |
### Instruction:
CREATE TABLE table_5492 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Winning score of 69-68-68-70=275?
### Response:
| SELECT "Date" FROM table_5492 WHERE "Winning score" = '69-68-68-70=275' |
### Instruction:
CREATE TABLE table_44804 (
"Year" real,
"Network" text,
"Play-by-play" text,
"Color commentator(s)" text,
"Pregame host" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What network has a Play-by-play by Jack Edwards in 2000?
### R... | SELECT "Network" FROM table_44804 WHERE "Play-by-play" = 'jack edwards' AND "Year" = '2000' |
### Instruction:
CREATE TABLE table_203_671 (
id number,
"name" text,
"rank" text,
"age" number,
"years until mandatory retirement" text,
"appointed by" text,
"year appointed" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- hom many justice... | SELECT COUNT("name") FROM table_203_671 WHERE "years until mandatory retirement" > 10 |
### Instruction:
CREATE TABLE table_26736 (
"Series No." real,
"Episode No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"UK Ratings (BBC2 Rank)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name th... | SELECT "Written by" FROM table_26736 WHERE "Directed by" = 'John Trefor' |
### Instruction:
CREATE TABLE table_4514 (
"Rank" text,
"Name and flag" text,
"Water area (km 2 )" real,
"Water area as percentage of total area" text,
"Percentage of national freshwater area" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which pro... | SELECT "Name and flag" FROM table_4514 WHERE "Water area (km 2 )" = '0' |
### Instruction:
CREATE TABLE table_54428 (
"Congresswoman" text,
"State" text,
"Date of delivery" text,
"Mother's age" real,
"Baby gender" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How old was the mother who delivered on December 15, 2008?
#... | SELECT "Mother's age" FROM table_54428 WHERE "Date of delivery" = 'december 15, 2008' |
### Instruction:
CREATE TABLE table_30162 (
"Proceed to Quarter-final" text,
"Match points" text,
"Aggregate score" text,
"Points margin" real,
"Eliminated from competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the match points w... | SELECT "Match points" FROM table_30162 WHERE "Eliminated from competition" = 'Bordeaux-Bègles' |
### Instruction:
CREATE TABLE table_10813 (
"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.
-- In the game where Melbourne was... | SELECT "Away team score" FROM table_10813 WHERE "Away team" = 'melbourne' |
### Instruction:
CREATE TABLE table_52143 (
"Year" real,
"Single" text,
"U.S. Country" text,
"U.S." text,
"U.S. AC" text,
"Album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the best album in 1965?
### Response:
| SELECT "U.S. AC" FROM table_52143 WHERE "Album" = 'the best' AND "Year" = '1965' |
### Instruction:
CREATE TABLE table_949 (
"No." text,
"Name" text,
"Livery" text,
"Arrival" real,
"Type" text,
"Configuration" text,
"Builder" text,
"Built" real,
"Status" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Name" FROM table_949 WHERE "Builder" = 'Kerr Stuart' |
### Instruction:
CREATE TABLE table_15333 (
"Representative" text,
"Title" text,
"Presentation of Credentials" text,
"Termination of Mission" text,
"Appointed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Appointed has Termination of Miss... | SELECT "Appointed by" FROM table_15333 WHERE "Termination of Mission" = 'april 7, 2005' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.