instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_35552 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the highest with a capacity of greater than 4,000 and an ave... | SELECT MAX("Highest") FROM table_35552 WHERE "Average" = '615' AND "Capacity" > '4,000' |
### Instruction:
CREATE TABLE table_203_528 (
id number,
"year" number,
"political rights" number,
"civil liberties" number,
"status" text,
"president" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the next president listed after hamani ... | SELECT "president" FROM table_203_528 WHERE id = (SELECT id FROM table_203_528 WHERE "year" = 1974) + 1 |
### Instruction:
CREATE TABLE table_6069 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the club/province of player Alberto Sgarbi, who played wing, w... | SELECT "Club/province" FROM table_6069 WHERE "Caps" < '2' AND "Position" = 'wing' AND "Player" = 'alberto sgarbi' |
### Instruction:
CREATE TABLE table_40765 (
"Season" real,
"Venue" text,
"Teams" real,
"Drivers" real,
"Champion" text,
"Second" text,
"Third" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of season when the venue was doning... | SELECT SUM("Season") FROM table_40765 WHERE "Venue" = 'donington park' AND "Second" = 'brazil' |
### Instruction:
CREATE TABLE table_204_690 (
id number,
"election" number,
"party name" text,
"total votes" number,
"share of votes" text,
"seats" number,
"share of seats" text,
"party leader(s)" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT COUNT(*) FROM table_204_690 WHERE "party leader(s)" = 'jan steytler' |
### Instruction:
CREATE TABLE table_64080 (
"Year" real,
"Category" text,
"Film" text,
"Result" text,
"Lost to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing je... | SELECT "Category" FROM table_64080 WHERE "Result" = 'nominated' AND "Lost to" = 'jennifer westfeldt ( kissing jessica stein )' |
### Instruction:
CREATE TABLE table_36728 (
"Game" real,
"January" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Points have a Record of 25 10 11, and a January larger than 2... | SELECT COUNT("Points") FROM table_36728 WHERE "Record" = '25–10–11' AND "January" > '28' |
### Instruction:
CREATE TABLE table_11281 (
"Season Number" text,
"Premiere Date" text,
"Winner" text,
"Runner Up" text,
"2nd Runner-up" text,
"3rd Runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 2nd runner-up for yuming lai (... | SELECT "2nd Runner-up" FROM table_11281 WHERE "Winner" = 'yuming lai (賴銘偉)' |
### Instruction:
CREATE TABLE table_46201 (
"Lane" real,
"Name" text,
"Country" text,
"Mark" text,
"React" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What mark has over 813 points in the United States, and a 0.152 react?
###... | SELECT "Mark" FROM table_46201 WHERE "Points" > '813' AND "Country" = 'united states' AND "React" > '0.152' |
### Instruction:
CREATE TABLE table_203_455 (
id number,
"round" number,
"#" number,
"player" text,
"nationality" text,
"college/junior/club team (league)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was picked after patrick murphy ?
##... | SELECT "player" FROM table_203_455 WHERE "#" > (SELECT "#" FROM table_203_455 WHERE "player" = 'patrick murphy') ORDER BY "#" LIMIT 1 |
### Instruction:
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
-- Using valid SQLite, answer the follo... | SELECT Type, AVG(Tonnage) FROM ship GROUP BY Type |
### Instruction:
CREATE TABLE table_17325 (
"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 "High points" FROM table_17325 WHERE "Date" = 'May 3' |
### Instruction:
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
)
CREATE TABLE papers (
paperid number,
title text
)
CREATE TABLE inst (
instid number,
name text,
country text
)
CREATE TABLE authors (
authid number,
lname text,
... | SELECT lname FROM authors WHERE fname = "Amal" |
### Instruction:
CREATE TABLE table_204_119 (
id number,
"date" text,
"time" text,
"opponent" text,
"site" text,
"tv" text,
"result" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the firs... | SELECT "date" FROM table_204_119 WHERE "result" > 70 ORDER BY "date" LIMIT 1 |
### Instruction:
CREATE TABLE table_15622 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which name has a Lane smaller than 3, a Heat larger than 4, and a Time of 2:00.80?
### Res... | SELECT "Name" FROM table_15622 WHERE "Lane" < '3' AND "Heat" > '4' AND "Time" = '2:00.80' |
### Instruction:
CREATE TABLE table_50039 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Visitor of m... | SELECT "Score" FROM table_50039 WHERE "Visitor" = 'montreal canadiens' AND "Points" = '5' |
### Instruction:
CREATE TABLE table_25471 (
"Player" text,
"Field Goals" text,
"Three Pointers" text,
"Free Throws" text,
"Assists" real,
"Steals" real,
"Rebounds" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which playe... | SELECT "Player" FROM table_25471 WHERE "Field Goals" = '18-50 .360' |
### Instruction:
CREATE TABLE table_30032 (
"Series #" real,
"Season #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the... | SELECT "Original air date" FROM table_30032 WHERE "Title" = 'Boardroom and a Parked Place' |
### Instruction:
CREATE TABLE table_65747 (
"Sunrayia FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the wins when there are 5 losses, and against is more than 12... | SELECT MAX("Wins") FROM table_65747 WHERE "Losses" = '5' AND "Against" > '1205' |
### Instruction:
CREATE TABLE table_27337 (
"2013/14" real,
"2012/13" real,
"2011/12" real,
"2010/11" real,
"Institute" text,
"Region" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of regions for 2013/14 being 27
### Response:... | SELECT COUNT("Region") FROM table_27337 WHERE "2013/14" = '27' |
### Instruction:
CREATE TABLE table_30580 (
"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.
-- How many college/junior/club teams are ther... | SELECT COUNT("College/junior/club team") FROM table_30580 WHERE "NHL team" = 'Edmonton Oilers' |
### Instruction:
CREATE TABLE table_70385 (
"Year" real,
"Entrant" text,
"Class" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Rank" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of the cadillac nor... | SELECT "Rank" FROM table_70385 WHERE "Chassis" = 'cadillac northstar lmp02' |
### Instruction:
CREATE TABLE table_68374 (
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who attended the school in 2008, that Deandria Hill attended in 2005?
### Respon... | SELECT "2008" FROM table_68374 WHERE "2005" = 'deandria hill' |
### Instruction:
CREATE TABLE table_204_786 (
id number,
"riding" text,
"candidate" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" number,
"%" number,
"rank" text,
"biographical notes" text
)
-- Using valid SQLite, answer the following questions for the table... | SELECT COUNT("candidate") FROM table_204_786 WHERE "residence" = 'halifax' |
### Instruction:
CREATE TABLE table_name_65 (
fumble_rec INTEGER,
solo VARCHAR,
player VARCHAR,
sacks VARCHAR,
fumble_force VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many fumble recoveries for scott gajos with 0 forced fubmles, 0 sacks, ... | SELECT SUM(fumble_rec) FROM table_name_65 WHERE sacks = "0" AND fumble_force = "0" AND player = "scott gajos" AND solo < 2 |
### Instruction:
CREATE TABLE table_name_91 (
record___percentage__ VARCHAR,
draw_ VARCHAR,
_05_wins VARCHAR,
draws VARCHAR,
wins VARCHAR,
matches VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the draw record (%) total for clubs with... | SELECT COUNT(record___percentage__) AS "draw_ = _05_wins" FROM table_name_91 WHERE wins > 3 AND matches = 10 AND draws > 1 |
### Instruction:
CREATE TABLE table_23647 (
"Standard Yarn Weight System" text,
"Yarn Type (US)" text,
"Ply (UK, NZ, AU)" text,
"m/100g" text,
"Wraps Per Inch (WPI)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the standard yarn weight system... | SELECT "Standard Yarn Weight System" FROM table_23647 WHERE "Wraps Per Inch (WPI)" = '7 wpi' |
### Instruction:
CREATE TABLE table_204_507 (
id number,
"bridge name" text,
"location" text,
"year completed" number,
"total length" text,
"carries" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many bridges are not as long as the ellswort... | SELECT COUNT("bridge name") FROM table_204_507 WHERE "total length" < (SELECT "total length" FROM table_204_507 WHERE "bridge name" = 'ellsworth street bridge') |
### Instruction:
CREATE TABLE table_22333 (
"District" text,
"s Barangay" real,
"Population (2010 census)" real,
"Area ( has .)" text,
"Pop. density (per km2)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the population (2010 census) if th... | SELECT MIN("Population (2010 census)") FROM table_22333 WHERE "Area ( has .)" = '66.11' |
### Instruction:
CREATE TABLE table_54376 (
"Year" real,
"Category" text,
"Nominee(s)" text,
"Episode" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the episode for jenny bicks and cindy chupack nominees in 2004
### Response:
| SELECT "Episode" FROM table_54376 WHERE "Year" = '2004' AND "Nominee(s)" = 'jenny bicks and cindy chupack' |
### Instruction:
CREATE TABLE table_996 (
"Variant id" text,
"5\u2019UTR splice" text,
"Coding" text,
"3\u2019UTR sequence" text,
"GenBank id" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 3'utr sequence with a variant id of ad'6a 4?
... | SELECT "3\u2019UTR sequence" FROM table_996 WHERE "Variant id" = 'AD''6A 4' |
### Instruction:
CREATE TABLE table_8926 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Location is Polo Grounds, when Winner is Philadelphia Eagles, and when Ye... | SELECT "Date" FROM table_8926 WHERE "Location" = 'polo grounds' AND "Winner" = 'philadelphia eagles' AND "Year" = '1948' |
### Instruction:
CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
)
-- Using val... | SELECT Location, COUNT(Location) FROM wrestler GROUP BY Location |
### Instruction:
CREATE TABLE election (
Election_ID int,
Representative_ID int,
Date text,
Votes real,
Vote_Percent real,
Seats real,
Place real
)
CREATE TABLE representative (
Representative_ID int,
Name text,
State text,
Party text,
Lifespan text
)
-- Using valid SQ... | SELECT Party, COUNT(Party) FROM representative GROUP BY Party ORDER BY Party |
### Instruction:
CREATE TABLE table_65878 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Reserved for (SC / ... | SELECT "Reserved for ( SC / ST /None)" FROM table_65878 WHERE "Constituency number" = '203' |
### Instruction:
CREATE TABLE table_name_11 (
nominated_by_the_taoiseach INTEGER,
administrative_panel VARCHAR,
industrial_and_commercial_panel VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of nominations by Taoiseach of the c... | SELECT MAX(nominated_by_the_taoiseach) FROM table_name_11 WHERE administrative_panel > 0 AND industrial_and_commercial_panel < 1 |
### Instruction:
CREATE TABLE table_28574 (
"Name" text,
"Population (2011)" real,
"Population (2006)" real,
"Change (%)" text,
"Area (km\u00b2)" text,
"Population density" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every value for a... | SELECT "Area (km\u00b2)" FROM table_28574 WHERE "Change (%)" = '-3.6' |
### Instruction:
CREATE TABLE table_64629 (
"League" text,
"number of seasons" real,
"total games" real,
"Draw" real,
"Loss" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of games with more than 18 loses, a Total League, an... | SELECT COUNT("total games") FROM table_64629 WHERE "Loss" > '18' AND "League" = 'total' AND "Draw" > '317' |
### Instruction:
CREATE TABLE table_16115 (
"Season" text,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Podiums" FROM table_16115 WHERE "Points" = '144' |
### 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.
-- which teams were played before ... | SELECT "opponent" FROM table_204_918 WHERE "week" < (SELECT "week" FROM table_204_918 WHERE "bye" = 1) |
### Instruction:
CREATE TABLE table_30763 (
"Player" text,
"County" text,
"Balls" real,
"Wickets" real,
"Average" text,
"Economy" text,
"BBI" text,
"4wi" real,
"5wi" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average ... | SELECT "Average" FROM table_30763 WHERE "Wickets" = '27' |
### Instruction:
CREATE TABLE table_62548 (
"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 average money when the score was 68-69-68-72=277?
#... | SELECT AVG("Money ( $ )") FROM table_62548 WHERE "Score" = '68-69-68-72=277' |
### Instruction:
CREATE TABLE table_51916 (
"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.
-- Who was the away team when they... | SELECT "Away team" FROM table_51916 WHERE "Away team score" = '12.9 (81)' |
### Instruction:
CREATE TABLE table_26033 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was ... | SELECT "Written by" FROM table_26033 WHERE "Title" = 'And the Rocky Goes To...' |
### Instruction:
CREATE TABLE table_38259 (
"Elementary Schools" text,
"Mascot" text,
"Address" text,
"Principal (2013-2014)" text,
"Assistant Principal (2013-2014)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the address for the assistan... | SELECT "Address" FROM table_38259 WHERE "Assistant Principal (2013-2014)" = 'kelly papke' |
### Instruction:
CREATE TABLE table_29486 (
"No. in Series" real,
"No. in Season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT MAX("No. in Season") FROM table_29486 WHERE "No. in Series" = '47' |
### Instruction:
CREATE TABLE table_name_29 (
played INTEGER,
position VARCHAR,
goals_against VARCHAR,
draws VARCHAR,
goals_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Played has Draws smaller than 7, and Goals for smaller than 61, a... | SELECT MAX(played) FROM table_name_29 WHERE draws < 7 AND goals_for < 61 AND goals_against < 48 AND position = 5 |
### Instruction:
CREATE TABLE table_55395 (
"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 time or retired time for timo glock with under 70 laps and a grid numb... | SELECT "Time/Retired" FROM table_55395 WHERE "Laps" < '70' AND "Grid" > '15' AND "Driver" = 'timo glock' |
### Instruction:
CREATE TABLE table_26790 (
"Contestant" text,
"Starting Weight (kg)" text,
"Final Weight (kg)" text,
"Weight Lost (kg)" text,
"Percentage Lost" text,
"Position (out of Eliminated Contestants)" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT "Starting Weight (kg)" FROM table_26790 WHERE "Weight Lost (kg)" = '54.6' |
### Instruction:
CREATE TABLE table_28730 (
"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 were the candidates where the result was retired Re... | SELECT "Candidates" FROM table_28730 WHERE "Result" = 'Retired Republican hold' AND "Incumbent" = 'Philemon Bliss' |
### Instruction:
CREATE TABLE table_31147 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date... | SELECT "Original air date" FROM table_31147 WHERE "Title" = 'The Big Giant Head Returns Again (Part 1)' |
### Instruction:
CREATE TABLE table_61552 (
"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 for the player with a score of 68-69-67-73=277?
... | SELECT "Money ( $ )" FROM table_61552 WHERE "Score" = '68-69-67-73=277' |
### Instruction:
CREATE TABLE table_25729 (
"District" text,
"SC/ST" text,
"Nairs" text,
"Ezhavas" text,
"Syrian Christians" text,
"Latin Christians" text,
"Muslims" text,
"Others" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Syrian Christians" FROM table_25729 WHERE "District" = 'Kollam' |
### Instruction:
CREATE TABLE table_203_256 (
id number,
"rd" number,
"home team" text,
"score" text,
"away team" text,
"result (w/d/l)" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many people attended the harlequ... | SELECT "attendance" FROM table_203_256 WHERE "home team" = 'hull' AND "away team" = 'harlequins rl' |
### Instruction:
CREATE TABLE table_7761 (
"Province of Silla" text,
"Administrative district" text,
"Pre-1009 province" text,
"Post-1009 province" text,
"Modern equivalent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Pre-1009 province has ... | SELECT "Pre-1009 province" FROM table_7761 WHERE "Post-1009 province" = 'donggye' |
### Instruction:
CREATE TABLE table_53279 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the home team scored 14.15 (... | SELECT "Away team" FROM table_53279 WHERE "Home team score" = '14.15 (99)' |
### Instruction:
CREATE TABLE table_52668 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings( $ )" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player with more than $6,570,797 in earnings and less than 27 wins?
### ... | SELECT "Player" FROM table_52668 WHERE "Earnings( $ )" > '6,570,797' AND "Wins" < '27' |
### Instruction:
CREATE TABLE table_5901 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Time has a Set 2 of 20 25, and a Date of 05 jun?
### ... | SELECT "Time" FROM table_5901 WHERE "Set 2" = '20–25' AND "Date" = '05 jun' |
### Instruction:
CREATE TABLE table_203_240 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"win" text,
"loss" text,
"save" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- f... | SELECT COUNT(*) FROM table_203_240 WHERE "attendance" > 40000 |
### Instruction:
CREATE TABLE table_17477 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" 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... | SELECT COUNT("Title") FROM table_17477 WHERE "Production code" = '2T6705' |
### Instruction:
CREATE TABLE table_41729 (
"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.
-- What is the most wins associated with under 4 e... | SELECT MAX("Wins") FROM table_41729 WHERE "Top-5" > '0' AND "Events" < '4' |
### Instruction:
CREATE TABLE table_2403 (
"Length/Weight of Missile" text,
"Diameter of torsion spring" text,
"Height of torsion spring" text,
"Machine length" text,
"Machine width" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the torsion sp... | SELECT "Length/Weight of Missile" FROM table_2403 WHERE "Diameter of torsion spring" = '38.4cm' |
### Instruction:
CREATE TABLE table_14636 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had a Women's doubles a... | SELECT "Year" FROM table_14636 WHERE "Women's doubles" = 'no competition' AND "Women's singles" = 'no competition' |
### Instruction:
CREATE TABLE table_66842 (
"Sunday" text,
"Monday" text,
"Tuesday" text,
"Wednesday" text,
"Thursday" text,
"Friday" text,
"Saturday" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Wednesday has a Sunday of ?
### Res... | SELECT "Wednesday" FROM table_66842 WHERE "Sunday" = 'གཟའ་ཉི་མ།' |
### Instruction:
CREATE TABLE table_47056 (
"Season" text,
"Races" real,
"Wins" real,
"Podiums" real,
"Poles" real,
"Fastest Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the total number of podiums for more than 4 laps, and less... | SELECT COUNT("Podiums") FROM table_47056 WHERE "Fastest Laps" > '4' AND "Races" < '149' |
### Instruction:
CREATE TABLE table_11364 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What competition was at pusk s ferenc stadium , budapest , hungary, and a Score of 1 0?
... | SELECT "Competition" FROM table_11364 WHERE "Venue" = 'puskás ferenc stadium , budapest , hungary' AND "Score" = '1–0' |
### Instruction:
CREATE TABLE table_name_65 (
investing_dragon_s_ VARCHAR,
first_aired VARCHAR,
entrepreneur_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the Investing Dragons in the episode that first aired on 18 January 2005 with the entr... | SELECT investing_dragon_s_ FROM table_name_65 WHERE first_aired = "18 january 2005" AND entrepreneur_s_ = "tracey herrtage" |
### 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 Result, COUNT(Result) FROM Acceptance GROUP BY Result ORDER BY Result |
### Instruction:
CREATE TABLE table_69887 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Try BP" text,
"Losing BP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell the Lost that has the Try BP of 10, and the Club of uwic rf... | SELECT "Lost" FROM table_69887 WHERE "Try BP" = '10' AND "Club" = 'uwic rfc' |
### Instruction:
CREATE TABLE table_204_975 (
id number,
"year" number,
"competition" text,
"location" text,
"event" text,
"final-rank" text,
"final-score" number,
"qualifying rank" number,
"qualifying score" number
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT COUNT("competition") FROM table_204_975 WHERE "location" = 'philadelphia' |
### Instruction:
CREATE TABLE table_204_392 (
id number,
"#" number,
"stadium" text,
"capacity" number,
"city" text,
"country" text,
"domed or retractable roof" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- is wembley stadium or att stadium... | SELECT "stadium" FROM table_204_392 WHERE "stadium" IN ('wembley stadium', 'at&t stadium') ORDER BY "capacity" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_44192 (
"Season" text,
"Competition" text,
"Round" text,
"Club" text,
"1st Leg" text,
"2nd Leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1st leg of the UEFA Champions League Compeition in the... | SELECT "1st Leg" FROM table_44192 WHERE "Competition" = 'uefa champions league' AND "Club" = 'skonto riga' |
### Instruction:
CREATE TABLE table_79165 (
"Year" real,
"Date" text,
"Home Team" text,
"Result" text,
"Visiting Team" text,
"Venue" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total attendance for a result... | SELECT SUM("Attendance") FROM table_79165 WHERE "Result" = '7-23' AND "Year" < '1960' |
### Instruction:
CREATE TABLE table_60786 (
"Year" real,
"First member" text,
"First party" text,
"Second member" text,
"Second party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the second member ewarlier than 1804 when Tory Henry Isherwo... | SELECT "Second member" FROM table_60786 WHERE "First party" = 'tory' AND "Year" < '1804' AND "First member" = 'henry isherwood' |
### Instruction:
CREATE TABLE table_name_82 (
year INTEGER,
entrant VARCHAR,
engine VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which is the latest year that has an engine of Offenhauser l4, a chassis of Kurtis Kraft 500c, and the... | SELECT MAX(year) FROM table_name_82 WHERE engine = "offenhauser l4" AND chassis = "kurtis kraft 500c" AND entrant = "federal engineering" |
### Instruction:
CREATE TABLE table_66927 (
"Ensemble" text,
"Gold Medals" real,
"Silver Medals" real,
"Bronze Medals" real,
"Total Medals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is Gold Medals that has salem blue devils and a Silver Me... | SELECT MIN("Gold Medals") FROM table_66927 WHERE "Ensemble" = 'salem blue devils' AND "Silver Medals" < '1' |
### Instruction:
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Draw a bar... | SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job ORDER BY AVG(age) |
### Instruction:
CREATE TABLE table_20037 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Won" real,
"Drawn" real,
"Lost" real,
"For" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT MAX("Won") FROM table_20037 WHERE "Difference" = '1' |
### Instruction:
CREATE TABLE table_204_986 (
id number,
"#" number,
"event year" number,
"season" text,
"flag bearer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who bore the flag the olympics after henry smith bore the flag ?
### Response:
| SELECT "flag bearer" FROM table_204_986 WHERE "event year" > (SELECT "event year" FROM table_204_986 WHERE "flag bearer" = 'henry smith') ORDER BY "event year" LIMIT 1 |
### Instruction:
CREATE TABLE table_63401 (
"Position" real,
"Gymnast" text,
"A Score" real,
"B Score" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the B score for the person with a total of 16.325 and an A score of more than... | SELECT AVG("B Score") FROM table_63401 WHERE "Total" = '16.325' AND "A Score" > '7.3' |
### Instruction:
CREATE TABLE table_33474 (
"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.
-- Where was the game when the hom... | SELECT "Venue" FROM table_33474 WHERE "Home team score" = '25.17 (167)' |
### Instruction:
CREATE TABLE table_23359 (
"Series #" real,
"Season #" real,
"Title" text,
"Director(s)" text,
"Writer(s)" text,
"Airdate" text,
"Production code" real,
"Arties disguises" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- F... | SELECT COUNT("Series #") FROM table_23359 WHERE "Writer(s)" = 'Max Ehrlich' |
### Instruction:
CREATE TABLE table_45636 (
"Game" real,
"Date" text,
"Opponent" 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 provi... | SELECT COUNT("Game") FROM table_45636 WHERE "Record" = '16-17' |
### Instruction:
CREATE TABLE customers (
customer_name VARCHAR,
customer_phone VARCHAR,
customer_id VARCHAR
)
CREATE TABLE mailshot_customers (
customer_id VARCHAR,
outcome_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the name and p... | SELECT T1.customer_name, T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.outcome_code = 'No Response' |
### Instruction:
CREATE TABLE table_34397 (
"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 is the name of the Winner in north carolina at the gr... | SELECT "Winner" FROM table_34397 WHERE "Location" = 'north carolina' AND "Tournament" = 'greater greensboro open' |
### Instruction:
CREATE TABLE table_32443 (
"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 total of the crowd ... | SELECT SUM("Crowd") FROM table_32443 WHERE "Away team score" = '4.8 (32)' |
### Instruction:
CREATE TABLE table_74667 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What away team has a home team ... | SELECT "Away team" FROM table_74667 WHERE "Home team score" = '15.18 (108)' |
### Instruction:
CREATE TABLE table_41490 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Difference with a ... | SELECT "Difference" FROM table_41490 WHERE "Position" < '3' AND "Points" = '17' |
### Instruction:
CREATE TABLE table_60205 (
"Benalla DFL" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Byes" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest value for Draws, when Losses is '0', and when Byes... | SELECT MIN("Draws") FROM table_60205 WHERE "Losses" = '0' AND "Byes" > '4' |
### Instruction:
CREATE TABLE table_40689 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Team has a Class of 350cc, with less than 13 points in 1959?
### Respons... | SELECT "Team" FROM table_40689 WHERE "Class" = '350cc' AND "Points" < '13' AND "Year" = '1959' |
### Instruction:
CREATE TABLE table_54124 (
"Player" text,
"Car." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average for the player with 1 TD, over 4 as a long, and under 1 car... | SELECT MIN("Avg.") FROM table_54124 WHERE "TD's" = '1' AND "Long" > '4' AND "Car." < '1' |
### Instruction:
CREATE TABLE table_20362 (
"Residence Hall" text,
"Sex" text,
"Established" real,
"Rector" text,
"Campus" text,
"Capacity" real,
"Colors" text,
"Mascot" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the rector of... | SELECT "Rector" FROM table_20362 WHERE "Mascot" = 'Phoxes' |
### Instruction:
CREATE TABLE table_name_19 (
date VARCHAR,
score VARCHAR,
location VARCHAR,
competition VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the Competition of europe/africa zone, group i, round robin, wit... | SELECT date FROM table_name_19 WHERE competition = "europe/africa zone, group i, round robin" AND result = "loss" AND location = "antalya" AND score = "1–2" |
### Instruction:
CREATE TABLE table_75823 (
"Season" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Home" text,
"Away" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has a Competition of uefa cup, and a ... | SELECT "Round" FROM table_75823 WHERE "Competition" = 'uefa cup' AND "Series" = '5–2' |
### Instruction:
CREATE TABLE table_204_156 (
id number,
"year" number,
"crystal bicycle\n(best professional cyclist)" text,
"best young rider" text,
"best manager" text,
"crystal drop of sweat\n(best helper)" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT "best young rider" FROM table_204_156 GROUP BY "best young rider" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_31456 (
"Station" text,
"Metlink code" text,
"Line(s)" text,
"Service(s)" text,
"Serves" text,
"km from Wellington" text,
"Fare zone(s)" text,
"Opened" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wh... | SELECT "km from Wellington" FROM table_31456 WHERE "Metlink code" = 'MAST' |
### Instruction:
CREATE TABLE table_204_734 (
id number,
"first name" text,
"surname" text,
"death year" number,
"beginning of\nservice" text,
"end of\nservice" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long was pilzba... | SELECT "end of\nservice" - "beginning of\nservice" FROM table_204_734 WHERE "first name" = 'pilzbach' |
### Instruction:
CREATE TABLE table_2562572_27 (
largest_ethnic_group__2002_ VARCHAR,
cyrillic_name_other_names VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the largest ethnic groups where the cyrillic name and other names is (hungarian: pacs r)?
... | SELECT largest_ethnic_group__2002_ FROM table_2562572_27 WHERE cyrillic_name_other_names = "Пачир (Hungarian: Pacsér)" |
### Instruction:
CREATE TABLE table_11906 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the result was l... | SELECT "Opponent" FROM table_11906 WHERE "Result" = 'l 13-7 ot' |
### Instruction:
CREATE TABLE Student (
fname VARCHAR,
age VARCHAR,
StuID VARCHAR,
SportName VARCHAR
)
CREATE TABLE Sportsinfo (
fname VARCHAR,
age VARCHAR,
StuID VARCHAR,
SportName VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find... | SELECT fname, age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = "Football" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = "Lacrosse") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.