instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_74715 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average week number of all the matches where less than 22,604 people attended?
### Response:
|
SELECT AVG("Week") FROM table_74715 WHERE "Attendance" < '22,604'
|
### Instruction:
CREATE TABLE table_52845 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many in attendance with a loss of volquez (1 4)?
### Response:
|
SELECT "Attendance" FROM table_52845 WHERE "Loss" = 'volquez (1–4)'
|
### Instruction:
CREATE TABLE table_23264 (
"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.
-- Name the incumbent for north carolina 9
### Response:
|
SELECT "Incumbent" FROM table_23264 WHERE "District" = 'North Carolina 9'
|
### Instruction:
CREATE TABLE table_11287 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Lap of damon hill, with a Grid smaller than 1?
### Response:
|
SELECT AVG("Laps") FROM table_11287 WHERE "Driver" = 'damon hill' AND "Grid" < '1'
|
### Instruction:
CREATE TABLE table_203_5 (
id number,
"season" text,
"competition" text,
"round" text,
"opponent" text,
"home" text,
"away" text,
"aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the last competition they took place in ?
### Response:
|
SELECT "competition" FROM table_203_5 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_55419 (
"Rd #" real,
"Pick #" real,
"Player" text,
"Team (League)" text,
"Reg GP" real,
"Pl GP" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the highest pick number for PI GP more than 55
### Response:
|
SELECT MAX("Pick #") FROM table_55419 WHERE "Pl GP" > '55'
|
### Instruction:
CREATE TABLE table_21942 (
"Actor in original production" text,
"Actor required" text,
"GamePlan" text,
"FlatSpin" text,
"RolePlay" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the requirements for the role played by Robert Austin in the original production?
### Response:
|
SELECT "Actor required" FROM table_21942 WHERE "Actor in original production" = 'Robert Austin'
|
### Instruction:
CREATE TABLE table_name_98 (
to_par VARCHAR,
margin_of_victory VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is To par, when Margin of Victory is '2 Strokes', and when Tournament is 'Women's British Open'?
### Response:
|
SELECT to_par FROM table_name_98 WHERE margin_of_victory = "2 strokes" AND tournament = "women's british open"
|
### Instruction:
CREATE TABLE table_17356106_1 (
series__number INTEGER,
directed_by VARCHAR,
season__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum series number what is smaller than season 7.0 and directed by Laura Innes?
### Response:
|
SELECT MAX(series__number) FROM table_17356106_1 WHERE directed_by = "Laura Innes" AND season__number < 7.0
|
### Instruction:
CREATE TABLE table_39599 (
"District" text,
"Name" text,
"Party" text,
"Hometown" text,
"First Elected" real,
"Towns Represented" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many values of first elected are for district 16?
### Response:
|
SELECT COUNT("First Elected") FROM table_39599 WHERE "District" = '16'
|
### Instruction:
CREATE TABLE table_35732 (
"Date" text,
"Opponent" text,
"Result" text,
"Score" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Laker's record when they played against Kansas City Kings?
### Response:
|
SELECT "Record" FROM table_35732 WHERE "Opponent" = 'kansas city kings'
|
### Instruction:
CREATE TABLE table_72525 (
"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 most touchdowns for field goals being 1
### Response:
|
SELECT MAX("Touchdowns") FROM table_72525 WHERE "Field goals" = '1'
|
### Instruction:
CREATE TABLE table_name_60 (
inchicore_class VARCHAR,
gswr_class VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t?
### Response:
|
SELECT inchicore_class FROM table_name_60 WHERE gswr_class < 268 AND type = "0-4-2t"
|
### Instruction:
CREATE TABLE table_77408 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Player, when Score is '66-74-76=216'?
### Response:
|
SELECT "Player" FROM table_77408 WHERE "Score" = '66-74-76=216'
|
### Instruction:
CREATE TABLE table_37221 (
"Disaster" text,
"Type" text,
"Location" text,
"Deaths" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the disaster that was located in Ontario with 223 deaths?
### Response:
|
SELECT "Disaster" FROM table_37221 WHERE "Location" = 'ontario' AND "Deaths" = '223'
|
### Instruction:
CREATE TABLE table_53511 (
"Player" text,
"Car." real,
"Yards" text,
"Avg." text,
"TD's" real,
"Long" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player had a Long of 5 and Yards of 6?
### Response:
|
SELECT "Player" FROM table_53511 WHERE "Long" = '5' AND "Yards" = '6'
|
### Instruction:
CREATE TABLE table_68959 (
"Episode" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What result did Janis Ian have in the episode of top 3?
### Response:
|
SELECT "Result" FROM table_68959 WHERE "Episode" = 'top 3' AND "Original artist" = 'janis ian'
|
### Instruction:
CREATE TABLE table_23038 (
"Application" text,
"Latest release date and version" text,
"Developed by" text,
"Platforms" text,
"Mainly Used For" text,
"License" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the application for caligari corporation
### Response:
|
SELECT "Application" FROM table_23038 WHERE "Developed by" = 'Caligari Corporation'
|
### Instruction:
CREATE TABLE table_name_30 (
year_started INTEGER,
number_of_cars VARCHAR,
car__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year started is the lowest one that has a Number of cars larger than 7, and a Car # of 100?
### Response:
|
SELECT MIN(year_started) FROM table_name_30 WHERE number_of_cars > 7 AND car__number = "100"
|
### Instruction:
CREATE TABLE table_28677723_10 (
christer_tornell INTEGER,
karianne_gulliksen VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed under chister tornell when karianne gulliksen is 7?
### Response:
|
SELECT MIN(christer_tornell) FROM table_28677723_10 WHERE karianne_gulliksen = 7
|
### Instruction:
CREATE TABLE Accounts (
statement_id VARCHAR,
account_details VARCHAR
)
CREATE TABLE Statements (
statement_details VARCHAR,
statement_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show statement id, statement detail, account detail for accounts.
### Response:
|
SELECT T1.statement_id, T2.statement_details, T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id
|
### Instruction:
CREATE TABLE table_80299 (
"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 finish place with a qual of 123.660?
### Response:
|
SELECT "Finish" FROM table_80299 WHERE "Qual" = '123.660'
|
### Instruction:
CREATE TABLE table_63654 (
"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 above.
-- Which round has 4 clubs involved?
### Response:
|
SELECT "Round" FROM table_63654 WHERE "Clubs involved" = '4'
|
### Instruction:
CREATE TABLE table_71049 (
"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 game score was there for the team with a record of 84-56?
### Response:
|
SELECT "Score" FROM table_71049 WHERE "Record" = '84-56'
|
### Instruction:
CREATE TABLE table_3950 (
"Order" real,
"Episode" text,
"Original airdate" text,
"Timeslot" text,
"Viewers (millions)" text,
"Nightly rank" real,
"Weekly rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which episode was #1 in the order?
### Response:
|
SELECT "Episode" FROM table_3950 WHERE "Order" = '1'
|
### Instruction:
CREATE TABLE table_79585 (
"Year" real,
"Game" text,
"Genre" text,
"Platform" text,
"Publisher" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Genre has a Game of tony hawk's pro skater 2?
### Response:
|
SELECT "Genre" FROM table_79585 WHERE "Game" = 'tony hawk''s pro skater 2'
|
### Instruction:
CREATE TABLE table_1020 (
"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.
-- What is the least amount of points made by Herrnstein?
### Response:
|
SELECT MIN("Points") FROM table_1020 WHERE "Player" = 'Herrnstein'
|
### Instruction:
CREATE TABLE table_58861 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Money ($) amount of the Player with a To par of e?
### Response:
|
SELECT "Money ( $ )" FROM table_58861 WHERE "To par" = 'e'
|
### Instruction:
CREATE TABLE table_21365 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the area is 59.73, what is the official name?
### Response:
|
SELECT "Official Name" FROM table_21365 WHERE "Area km 2" = '59.73'
|
### Instruction:
CREATE TABLE table_17029 (
"Ships name" text,
"Date entered service" text,
"Date withdrawn" text,
"Tonnage" real,
"Type of Ship" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are all the date withdrawn for koningin beatrix
### Response:
|
SELECT "Date withdrawn" FROM table_17029 WHERE "Ships name" = 'Koningin Beatrix'
|
### Instruction:
CREATE TABLE table_49092 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To Par" real,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average To Par, when Player is 'Billy Casper'?
### Response:
|
SELECT AVG("To Par") FROM table_49092 WHERE "Player" = 'billy casper'
|
### Instruction:
CREATE TABLE table_name_84 (
margin_of_victory VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the margin of victory when the winning score was 9 (72-68-64-67=271)?
### Response:
|
SELECT margin_of_victory FROM table_name_84 WHERE winning_score = −9(72 - 68 - 64 - 67 = 271)
|
### Instruction:
CREATE TABLE table_28882 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party did robert p. letcher represent?
### Response:
|
SELECT "Party" FROM table_28882 WHERE "Incumbent" = 'Robert P. Letcher'
|
### Instruction:
CREATE TABLE table_51236 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" real,
"Laps" real,
"Winnings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who drove the dodge with a car # less than 5?
### Response:
|
SELECT "Driver" FROM table_51236 WHERE "Car #" < '5' AND "Make" = 'dodge'
|
### Instruction:
CREATE TABLE table_46584 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To Par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Country, when Place is 'T9', and when Player is 'Jay Hebert'?
### Response:
|
SELECT "Country" FROM table_46584 WHERE "Place" = 't9' AND "Player" = 'jay hebert'
|
### Instruction:
CREATE TABLE table_14746 (
"Name" text,
"Species Authority" text,
"Order" text,
"Family" text,
"Red List" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the order for a red list of 7 in the didelphidae family?
### Response:
|
SELECT "Order" FROM table_14746 WHERE "Red List" = '7' AND "Family" = 'didelphidae'
|
### Instruction:
CREATE TABLE table_2084 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player is from the California Golden Seals?
### Response:
|
SELECT "Player" FROM table_2084 WHERE "NHL team" = 'California Golden Seals'
|
### Instruction:
CREATE TABLE table_76649 (
"Rider" text,
"Manufacturer" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which rider had a time/retired od +19.909?
### Response:
|
SELECT "Rider" FROM table_76649 WHERE "Time/Retired" = '+19.909'
|
### Instruction:
CREATE TABLE table_32040 (
"Round" text,
"Date(s)" text,
"Clubs from the previous round" text,
"Clubs involved" real,
"Fixtures" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 4 clubs are involved, what is the average number of fixtures?
### Response:
|
SELECT AVG("Fixtures") FROM table_32040 WHERE "Clubs involved" = '4'
|
### Instruction:
CREATE TABLE table_71031 (
"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.
-- What was the Money ($) amount for Cary Middlecoff?
### Response:
|
SELECT "Money ( $ )" FROM table_71031 WHERE "Player" = 'cary middlecoff'
|
### Instruction:
CREATE TABLE table_1868929_1 (
upper_index_kcal__nm_3 VARCHAR,
lower_index_mj__nm_3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the upper index kcal/nm3 for 62.47
### Response:
|
SELECT upper_index_kcal__nm_3 FROM table_1868929_1 WHERE lower_index_mj__nm_3 = "62.47"
|
### Instruction:
CREATE TABLE table_name_63 (
outcome VARCHAR,
opponent VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Outcome, when Opponent is Victoria Azarenka, and when Score is 6 2, 2 6, 7 5?
### Response:
|
SELECT outcome FROM table_name_63 WHERE opponent = "victoria azarenka" AND score = "6–2, 2–6, 7–5"
|
### Instruction:
CREATE TABLE table_48635 (
"Title" text,
"Writer" text,
"Format" text,
"Company" text,
"release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the release date of the album written by Ford, Phil Phil Ford under BBC Audio?
### Response:
|
SELECT "release date" FROM table_48635 WHERE "Company" = 'bbc audio' AND "Writer" = 'ford, phil phil ford'
|
### Instruction:
CREATE TABLE table_49172 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What pick was used to select a Defensive End in round 8?
### Response:
|
SELECT SUM("Pick") FROM table_49172 WHERE "Position" = 'defensive end' AND "Round" = '8'
|
### Instruction:
CREATE TABLE table_34774 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the alternate for the team for which Monika Wagner is the third?
### Response:
|
SELECT "Alternate" FROM table_34774 WHERE "Third" = 'monika wagner'
|
### Instruction:
CREATE TABLE table_71835 (
"Park" text,
"Tower height" text,
"Drop height*" text,
"Speed" text,
"Model" text,
"Opened" text,
"Height requirement" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What park opened in 1999?
### Response:
|
SELECT "Park" FROM table_71835 WHERE "Opened" = '1999'
|
### Instruction:
CREATE TABLE elimination (
Elimination_Move VARCHAR,
Wrestler_ID VARCHAR
)
CREATE TABLE wrestler (
Name VARCHAR,
Wrestler_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of wrestlers and the elimination moves?
### Response:
|
SELECT T2.Name, T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID
|
### Instruction:
CREATE TABLE table_18526 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many results does the California 29 voting district have?
### Response:
|
SELECT COUNT("Result") FROM table_18526 WHERE "District" = 'California 29'
|
### Instruction:
CREATE TABLE table_name_24 (
name VARCHAR,
family VARCHAR,
species_authority VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has canidae as family and canis rufus audubon & bachman, 1851 as species/authority?
### Response:
|
SELECT name FROM table_name_24 WHERE family = "canidae" AND species_authority = "canis rufus audubon & bachman, 1851"
|
### Instruction:
CREATE TABLE table_35222 (
"Date" text,
"Label" text,
"Region" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Label has a Format of 7' single, and a Date of 1988?
### Response:
|
SELECT "Label" FROM table_35222 WHERE "Format" = '7" single' AND "Date" = '1988'
|
### Instruction:
CREATE TABLE table_25102 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of reason for change for not filled this congress
### Response:
|
SELECT COUNT("Reason for change") FROM table_25102 WHERE "Date successor seated" = 'Not filled this congress'
|
### Instruction:
CREATE TABLE table_8531 (
"Heat" real,
"Lane" real,
"Name" text,
"Country" text,
"Mark" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many lanes have 2 as the heat, and susanna kallur as the name?
### Response:
|
SELECT SUM("Lane") FROM table_8531 WHERE "Heat" = '2' AND "Name" = 'susanna kallur'
|
### Instruction:
CREATE TABLE table_6953 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Glenys Bakker was second for which nation?
### Response:
|
SELECT "Nation" FROM table_6953 WHERE "Second" = 'glenys bakker'
|
### Instruction:
CREATE TABLE table_4611 (
"Team" text,
"Chassis" text,
"Engine" text,
"Tires" text,
"Drivers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What engine does Chip Mead of Parts Washer Service use?
### Response:
|
SELECT "Engine" FROM table_4611 WHERE "Team" = 'parts washer service' AND "Drivers" = 'chip mead'
|
### Instruction:
CREATE TABLE table_29983 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which part on the team does rick schuhwerk play
### Response:
|
SELECT "Position" FROM table_29983 WHERE "Player" = 'Rick Schuhwerk'
|
### Instruction:
CREATE TABLE table_58100 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the universiade held in 1959?
### Response:
|
SELECT "Venue" FROM table_58100 WHERE "Tournament" = 'universiade' AND "Year" = '1959'
|
### Instruction:
CREATE TABLE table_46603 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result fot the UFC 85 event?
### Response:
|
SELECT "Res." FROM table_46603 WHERE "Event" = 'ufc 85'
|
### Instruction:
CREATE TABLE table_204_449 (
id number,
"no" number,
"episode" text,
"title" text,
"original airdate" text,
"viewers" number,
"nightly\nrank" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what episode had the most viewers ?
### Response:
|
SELECT "title" FROM table_204_449 ORDER BY "viewers" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_121 (
id number,
"year" text,
"game" text,
"developer" text,
"setting" text,
"platform" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the name of the only business simulation video game developed by frog city ?
### Response:
|
SELECT "game" FROM table_204_121 WHERE "developer" = 'frog city'
|
### Instruction:
CREATE TABLE table_80277 (
"Year" real,
"Competition" text,
"Wins" real,
"Draws" real,
"Loses" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What highest Year has Wins 15 and Losses less than 5?
### Response:
|
SELECT MAX("Year") FROM table_80277 WHERE "Wins" = '15' AND "Loses" < '5'
|
### Instruction:
CREATE TABLE table_36073 (
"Date" text,
"Tournament" text,
"Location" text,
"Winner" text,
"Score" text,
"1st prize ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did Lanny Wadkins (6) win?
### Response:
|
SELECT "Date" FROM table_36073 WHERE "Winner" = 'lanny wadkins (6)'
|
### Instruction:
CREATE TABLE table_15575 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At what stadium was the game with the final score of 26-24 played?
### Response:
|
SELECT "Stadium" FROM table_15575 WHERE "Final Score" = '26-24'
|
### Instruction:
CREATE TABLE table_train_52 (
"id" int,
"pregnancy_or_lactation" bool,
"consent" bool,
"surgery" bool,
"hemodynamic_instability" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- invasive hemodynamic monitoring
### Response:
|
SELECT * FROM table_train_52 WHERE hemodynamic_instability = 1
|
### Instruction:
CREATE TABLE table_40195 (
"Round" text,
"Date" text,
"Matches" real,
"Clubs" text,
"Prize money" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Matches, when Prize Money is 5,000?
### Response:
|
SELECT MAX("Matches") FROM table_40195 WHERE "Prize money" = '£5,000'
|
### Instruction:
CREATE TABLE table_68621 (
"Date" text,
"Location" text,
"Nature of incident" text,
"Circumstances" text,
"Casualties" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the incident of 2009-09-05?
### Response:
|
SELECT "Location" FROM table_68621 WHERE "Date" = '2009-09-05'
|
### Instruction:
CREATE TABLE table_17876 (
"No" real,
"Player" text,
"Height" text,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's current club with player being nikolaos chatzivrettas
### Response:
|
SELECT "Current Club" FROM table_17876 WHERE "Player" = 'Nikolaos Chatzivrettas'
|
### Instruction:
CREATE TABLE table_35699 (
"Track" text,
"City" text,
"State" text,
"Opened (closing date if defunct)" text,
"Surface" text,
"Length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the city the track of manzanita speedway is in?
### Response:
|
SELECT "City" FROM table_35699 WHERE "Track" = 'manzanita speedway'
|
### Instruction:
CREATE TABLE table_25171 (
"Position" text,
"Name" text,
"Jersey Number" real,
"Age" real,
"Height" text,
"Weight" real,
"College" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result for Wisconsin?
### Response:
|
SELECT "Result" FROM table_25171 WHERE "College" = 'Wisconsin'
|
### Instruction:
CREATE TABLE table_67507 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did Judd v8 has in 1989?
### Response:
|
SELECT COUNT("Points") FROM table_67507 WHERE "Engine" = 'judd v8' AND "Year" = '1989'
|
### Instruction:
CREATE TABLE table_203_784 (
id number,
"no. in\nseries" number,
"no. in\nseason" number,
"performer" text,
"appearance" text,
"air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many comedians made their only appearance on comedy central presents in season 15 ?
### Response:
|
SELECT COUNT("performer") FROM table_203_784
|
### Instruction:
CREATE TABLE table_45482 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE SCORE FOR 2010 fifa world cup qualification?
### Response:
|
SELECT "Score" FROM table_45482 WHERE "Competition" = '2010 fifa world cup qualification'
|
### Instruction:
CREATE TABLE table_2430014_8 (
directed_by VARCHAR,
uk_ratings__bbc2_rank_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many directors worked on the episode with 2.27m (5) is the ratings?
### Response:
|
SELECT COUNT(directed_by) FROM table_2430014_8 WHERE uk_ratings__bbc2_rank_ = "2.27m (5)"
|
### Instruction:
CREATE TABLE table_2355 (
"Sd" real,
"Player" text,
"Points" real,
"Points defending" real,
"Points won" real,
"New points" real,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the max when they score 2200?
### Response:
|
SELECT MAX("New points") FROM table_2355 WHERE "Points" = '2200'
|
### Instruction:
CREATE TABLE table_name_44 (
place INTEGER,
time VARCHAR,
points VARCHAR,
machine VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which place has points larger than 1, a bmw machine, and a time of 1:18.47.6?
### Response:
|
SELECT MIN(place) FROM table_name_44 WHERE points > 1 AND machine = "bmw" AND time = "1:18.47.6"
|
### Instruction:
CREATE TABLE table_35863 (
"Gauge" text,
"Railway" text,
"Works no." text,
"Year" text,
"Builder" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Year is the Works No. 2040-2049?
### Response:
|
SELECT "Year" FROM table_35863 WHERE "Works no." = '2040-2049'
|
### Instruction:
CREATE TABLE table_71431 (
"Country" text,
"Film title used in nomination" text,
"Language" text,
"Original title" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the film title that is spanish from peru
### Response:
|
SELECT "Film title used in nomination" FROM table_71431 WHERE "Language" = 'spanish' AND "Country" = 'peru'
|
### Instruction:
CREATE TABLE table_name_17 (
points INTEGER,
draw VARCHAR,
jury VARCHAR,
artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Jury larger than 6, and a Artist of zhenya rasskazova, and a Draw larger than 9 had what sum of points?
### Response:
|
SELECT SUM(points) FROM table_name_17 WHERE jury > 6 AND artist = "zhenya rasskazova" AND draw > 9
|
### Instruction:
CREATE TABLE table_204_431 (
id number,
"yacht" text,
"nation" text,
"owner" text,
"skipper" text,
"launch year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of yachts launched in 2001 ?
### Response:
|
SELECT COUNT("yacht") FROM table_204_431 WHERE "launch year" = 2001
|
### Instruction:
CREATE TABLE table_40220 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Team 1 when Team 2 is Jac Port-Gentil?
### Response:
|
SELECT "Team 1" FROM table_40220 WHERE "Team 2" = 'jac port-gentil'
|
### Instruction:
CREATE TABLE table_75634 (
"Year" text,
"Name" text,
"Political affiliation" text,
"Deputy" text,
"Deputy's affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Political affiliation of deputy john dallat?
### Response:
|
SELECT "Political affiliation" FROM table_75634 WHERE "Deputy" = 'john dallat'
|
### Instruction:
CREATE TABLE table_32208 (
"Player" text,
"Nationality" text,
"Position" text,
"From" text,
"School/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player is from 2012 and North Carolina?
### Response:
|
SELECT "Player" FROM table_32208 WHERE "From" = '2012' AND "School/Country" = 'north carolina'
|
### Instruction:
CREATE TABLE table_27774 (
"Rank by average" real,
"Competition finish" real,
"Couple" text,
"Total" real,
"Number of dances" real,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What couple averaged 21.0?
### Response:
|
SELECT "Couple" FROM table_27774 WHERE "Average" = '21.0'
|
### Instruction:
CREATE TABLE table_name_21 (
consider VARCHAR,
candidate VARCHAR,
poll_source VARCHAR,
oppose VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of people said they would consider Rudy Giuliani as a candidate according to the Newsweek poll that showed 32% opposed him?
### Response:
|
SELECT consider FROM table_name_21 WHERE poll_source = "newsweek poll" AND oppose = "32%" AND candidate = "rudy giuliani"
|
### Instruction:
CREATE TABLE table_3694 (
"Episode" real,
"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.
-- How many episodes had 4.44m viewers?
### Response:
|
SELECT COUNT("Episode") FROM table_3694 WHERE "Viewers" = '4.44m'
|
### Instruction:
CREATE TABLE table_49466 (
"Game" text,
"Date" text,
"Home team" text,
"Result" text,
"Road team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result has a Home team of portland, and a Date of may 31?
### Response:
|
SELECT "Result" FROM table_49466 WHERE "Home team" = 'portland' AND "Date" = 'may 31'
|
### Instruction:
CREATE TABLE table_75171 (
"Year" real,
"Male" text,
"Female" text,
"Album" text,
"Live Performance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which male is paired with dido in 2004?
### Response:
|
SELECT "Male" FROM table_75171 WHERE "Year" < '2004' AND "Female" = 'dido'
|
### Instruction:
CREATE TABLE table_71267 (
"Year" real,
"Venue" text,
"Winner" text,
"Country" text,
"Score" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was France's highest score when the venue was Bokskogens?
### Response:
|
SELECT MAX("Score") FROM table_71267 WHERE "Country" = 'france' AND "Venue" = 'bokskogens'
|
### Instruction:
CREATE TABLE table_name_86 (
draws INTEGER,
played VARCHAR,
goal_difference VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the number of draws when the Elche CF club played 38 and had a goal difference of -16?
### Response:
|
SELECT MIN(draws) FROM table_name_86 WHERE goal_difference > -16 AND club = "elche cf" AND played > 38
|
### Instruction:
CREATE TABLE table_48578 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which tournament was Silke Meier the opponent in the final?
### Response:
|
SELECT "Tournament" FROM table_48578 WHERE "Opponent in the final" = 'silke meier'
|
### Instruction:
CREATE TABLE table_32472 (
"Year" real,
"Championship" text,
"Winning score" text,
"Margin" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the most recent year that Kathy Ahern was a runner-up?
### Response:
|
SELECT MAX("Year") FROM table_32472 WHERE "Runner(s)-up" = 'kathy ahern'
|
### Instruction:
CREATE TABLE table_41136 (
"S No" real,
"Team (A)" text,
"Team (B)" text,
"Winner" text,
"Margin" text,
"Match Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Team (B), when S No is greater than 17?
### Response:
|
SELECT "Team (B)" FROM table_41136 WHERE "S No" > '17'
|
### Instruction:
CREATE TABLE table_63522 (
"Club" text,
"League" text,
"Sport" text,
"Venue" text,
"Established" real,
"Capacity" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the venue established after 1948?
### Response:
|
SELECT "Venue" FROM table_63522 WHERE "Established" > '1948'
|
### Instruction:
CREATE TABLE table_14322 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which is the opponent when the record was 43-56?
### Response:
|
SELECT "Opponent" FROM table_14322 WHERE "Record" = '43-56'
|
### Instruction:
CREATE TABLE table_52579 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the surface on june 11, 1995
### Response:
|
SELECT "Surface" FROM table_52579 WHERE "Date" = 'june 11, 1995'
|
### Instruction:
CREATE TABLE table_49653 (
"Stop no." text,
"Platform" text,
"Line" text,
"Stopping pattern" text,
"Destination" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Stop No., when Destination is Perth, and when Line is Midland?
### Response:
|
SELECT "Stop no." FROM table_49653 WHERE "Destination" = 'perth' AND "Line" = 'midland'
|
### Instruction:
CREATE TABLE table_59216 (
"Physical property" text,
"Helium" text,
"Neon" text,
"Argon" text,
"Krypton" text,
"Xenon" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Xenon has a Helium of 5.1?
### Response:
|
SELECT "Xenon" FROM table_59216 WHERE "Helium" = '5.1'
|
### Instruction:
CREATE TABLE table_15657 (
"Team" text,
"Car(s)" text,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Owner(s)" text,
"Crew Chief" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team does Reed Sorenson drive for?
### Response:
|
SELECT "Team" FROM table_15657 WHERE "Driver(s)" = 'reed sorenson'
|
### Instruction:
CREATE TABLE table_29033869_3 (
venue VARCHAR,
opponent VARCHAR,
position_on_ladder VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue did collingsworth play essendon in when they had the 3rd position on the ladder?
### Response:
|
SELECT venue FROM table_29033869_3 WHERE opponent = "Essendon" AND position_on_ladder = "3rd"
|
### Instruction:
CREATE TABLE table_40749 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Home team when Farnborough Town was the Away team?
### Response:
|
SELECT "Home team" FROM table_40749 WHERE "Away team" = 'farnborough town'
|
### Instruction:
CREATE TABLE table_train_267 (
"id" int,
"pregnancy_or_lactation" bool,
"smoking" bool,
"allergy_to_nuts" bool,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- smoker
### Response:
|
SELECT * FROM table_train_267 WHERE smoking = 1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.