instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_66664 (
"Round" real,
"Opponent" text,
"Result" text,
"Opp." real,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the result when the round is less than 7 and the opponent is melbourne storm?
###... | SELECT "Result" FROM table_66664 WHERE "Round" < '7' AND "Opponent" = 'melbourne storm' |
### Instruction:
CREATE TABLE table_5985 (
"Year" text,
"Sports" text,
"Competitors" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the Year Yugoslavia won 1 Silver, how many Gold m... | SELECT "Gold" FROM table_5985 WHERE "Silver" = '1' |
### Instruction:
CREATE TABLE table_68539 (
"Number" real,
"Player" text,
"Shoots" text,
"Position" text,
"Acquired" real,
"Place of Birth" text,
"Joined from" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for shoots for craig pe... | SELECT "Shoots" FROM table_68539 WHERE "Player" = 'craig peacock a' |
### Instruction:
CREATE TABLE table_1341640_11 (
party VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the party with the candidates newt gingrich (r) 59.1% dock h. davis (d) 40.9%?
### Response:
| SELECT party FROM table_1341640_11 WHERE candidates = "Newt Gingrich (R) 59.1% Dock H. Davis (D) 40.9%" |
### Instruction:
CREATE TABLE table_27905 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type / Location" text,
"Settlement destiny" text,
"Largest ethnic group (year)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the settlement d... | SELECT "Settlement destiny" FROM table_27905 WHERE "Settlement" = 'Aleksandrovo' |
### Instruction:
CREATE TABLE table_204_279 (
id number,
"name of place" text,
"number\nof\ncounties" number,
"principal\ncounty" text,
"zip code\nlower" number,
"zip code\nupper" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- are there above ... | SELECT (SELECT COUNT("name of place") FROM table_204_279) > 30 |
### Instruction:
CREATE TABLE table_23465864_6 (
rider VARCHAR,
fri_28_aug VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the rider when Fri 28 Aug was 24' 23.36 92.820mph?
### Response:
| SELECT rider FROM table_23465864_6 WHERE fri_28_aug = "24' 23.36 92.820mph" |
### Instruction:
CREATE TABLE table_19594 (
"Year" real,
"Candidate" text,
"Hare quota" real,
"Mandate" text,
"List Votes" real,
"List Pct" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of list votes for 20.95%
### Respo... | SELECT COUNT("List Votes") FROM table_19594 WHERE "List Pct" = '20.95%' |
### Instruction:
CREATE TABLE table_47990 (
"Year" real,
"Round" real,
"Pick" real,
"Player" text,
"NBA Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pick number in a year earlier than 2009, with a round higher than 1?
### Respo... | SELECT COUNT("Pick") FROM table_47990 WHERE "Year" < '2009' AND "Round" > '1' |
### Instruction:
CREATE TABLE table_45401 (
"Province" text,
"Provincial capital" text,
"Largest city" text,
"Area (km 2 )" real,
"Population (2013)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Nelspruit's population?
### Response:
| SELECT COUNT("Population (2013)") FROM table_45401 WHERE "Largest city" = 'nelspruit' |
### Instruction:
CREATE TABLE table_57361 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which time/retired had 75 laps and Pedro de la Rosa as a driver?
### Response:
| SELECT "Time/Retired" FROM table_57361 WHERE "Laps" = '75' AND "Driver" = 'pedro de la rosa' |
### Instruction:
CREATE TABLE table_42595 (
"Title" text,
"Length" text,
"Writer" text,
"Composer" text,
"Arranger" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title track that is 3:50 and arranged by Tarek Akef?
### Response:
| SELECT "Title" FROM table_42595 WHERE "Arranger" = 'tarek akef' AND "Length" = '3:50' |
### Instruction:
CREATE TABLE WINE (
Name VARCHAR,
Score VARCHAR,
Grape VARCHAR
)
CREATE TABLE GRAPES (
Grape VARCHAR,
Color VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names and scores of wines that are made of white color grape... | SELECT T2.Name, T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "White" |
### Instruction:
CREATE TABLE table_204_511 (
id number,
"number" number,
"driver" text,
"entrant" text,
"chassis" text,
"engine" text,
"tyre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tony bettenhausen and paul russo drove cars with wh... | SELECT "engine" FROM table_204_511 WHERE "driver" = 'tony bettenhausen' |
### Instruction:
CREATE TABLE table_2379 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the original title for not nominated result... | SELECT "Original title" FROM table_2379 WHERE "Result" = 'Not Nominated' AND "Film title used in nomination" = 'Report on Death' |
### Instruction:
CREATE TABLE table_75195 (
"Player" 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 smallest number of field goals for players with 4 touchdowns a... | SELECT MIN("Field goals") FROM table_75195 WHERE "Touchdowns" = '4' AND "Extra points" < '9' |
### Instruction:
CREATE TABLE table_62350 (
"Name" text,
"Hometown" text,
"Games" text,
"Goals" text,
"Assists" text,
"Points" text,
"Pen. Min." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games were played by the player with 127... | SELECT "Games" FROM table_62350 WHERE "Assists" = '127' |
### Instruction:
CREATE TABLE table_60089 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When has an Event of ufc 123?
##... | SELECT "Time" FROM table_60089 WHERE "Event" = 'ufc 123' |
### Instruction:
CREATE TABLE table_203_52 (
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 had ... | SELECT "driver" FROM table_203_52 ORDER BY "time/retired" LIMIT 1 |
### Instruction:
CREATE TABLE representative (
Representative_ID int,
Name text,
State text,
Party text,
Lifespan text
)
CREATE TABLE election (
Election_ID int,
Representative_ID int,
Date text,
Votes real,
Vote_Percent real,
Seats real,
Place real
)
-- Using valid SQ... | SELECT Party, COUNT(*) FROM representative GROUP BY Party |
### Instruction:
CREATE TABLE table_3374 (
"Skip (Club)" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the h... | SELECT MAX("W") FROM table_3374 |
### Instruction:
CREATE TABLE table_48461 (
"Year" text,
"Date" text,
"Circuit" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which circuit did Jim Clark win in 1962?
### Respo... | SELECT "Circuit" FROM table_48461 WHERE "Winning driver" = 'jim clark' AND "Year" = '1962' |
### Instruction:
CREATE TABLE table_66836 (
"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 the rank with more than 40 laps and a 23 finish?
### Response:
| SELECT "Rank" FROM table_66836 WHERE "Laps" > '40' AND "Finish" = '23' |
### Instruction:
CREATE TABLE table_60340 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Craig Parry with a score of 68-68=136 is in what place?
### Response:
| SELECT "Place" FROM table_60340 WHERE "Score" = '68-68=136' AND "Player" = 'craig parry' |
### Instruction:
CREATE TABLE table_8183 (
"Club" text,
"Sport" text,
"Founded" real,
"League" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Club has a Founded smaller than 1882, and a League of fa premier league?
### Response... | SELECT "Club" FROM table_8183 WHERE "Founded" < '1882' AND "League" = 'fa premier league' |
### Instruction:
CREATE TABLE table_16030 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the championship in Wimbledo... | SELECT "Year" FROM table_16030 WHERE "Championship" = 'Wimbledon (2)' |
### Instruction:
CREATE TABLE table_16506 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT "Team" FROM table_16506 WHERE "Outgoing manager" = 'John Meyler' |
### Instruction:
CREATE TABLE table_30541 (
"#" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Winnings ($)" real,
"After" real,
"Before" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest after when th... | SELECT MIN("After") FROM table_30541 WHERE "Player" = 'Adam Scott' |
### Instruction:
CREATE TABLE table_57680 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is shintaro ishiwatari's time?
### Response:
| SELECT "Time" FROM table_57680 WHERE "Opponent" = 'shintaro ishiwatari' |
### Instruction:
CREATE TABLE table_42436 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average draft pick number from Carson-Newman College before Round 7?
### R... | SELECT AVG("Pick #") FROM table_42436 WHERE "College" = 'carson-newman' AND "Round" < '7' |
### Instruction:
CREATE TABLE table_23389 (
"Team & Boat name" text,
"Sail no." text,
"Flag" text,
"Design Firm" text,
"Builder" text,
"Skipper" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the builders of the boat designed by Botin C... | SELECT "Builder" FROM table_23389 WHERE "Design Firm" = 'Botin Carkeek' |
### Instruction:
CREATE TABLE table_56437 (
"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 Fitzroy score at their... | SELECT "Home team score" FROM table_56437 WHERE "Home team" = 'fitzroy' |
### Instruction:
CREATE TABLE table_41995 (
"Date" text,
"Location" text,
"Country" text,
"Event" text,
"Winner" text,
"Runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country was the game played when it was played from April 11-A... | SELECT "Country" FROM table_41995 WHERE "Date" = 'april 11-april 21' |
### Instruction:
CREATE TABLE table_17015 (
"Ships name" text,
"Entered service" text,
"Ended service" text,
"Gross Tonnage" real,
"Type of Vessel" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the gross tonnage of the ship that ended serv... | SELECT "Gross Tonnage" FROM table_17015 WHERE "Ended service" = '1866' |
### Instruction:
CREATE TABLE table_26253 (
"Year" text,
"District-wide" real,
"High schools" real,
"Middle schools" real,
"Elementary schools" real,
"Other programs & adjustments" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most dis... | SELECT MAX("District-wide") FROM table_26253 WHERE "Other programs & adjustments" = '1639' |
### Instruction:
CREATE TABLE table_72453 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"2007 Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times was incumbent onzlee ware elected?
### Resp... | SELECT COUNT("Elected") FROM table_72453 WHERE "Incumbent" = 'Onzlee Ware' |
### Instruction:
CREATE TABLE table_29655 (
"Week #" text,
"Theme" text,
"Song Choice" text,
"Original Artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the original artist of ' Preciso Saber Viver'?
... | SELECT "Original Artist" FROM table_29655 WHERE "Song Choice" = 'É Preciso Saber Viver' |
### Instruction:
CREATE TABLE table_23873 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Tar Heels points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times were Duke the opponents?
... | SELECT COUNT("Opponents") FROM table_23873 WHERE "Opponent" = 'Duke' |
### Instruction:
CREATE TABLE table_40608 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Rebounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Rank, when Name is Travis Watson, and when Games is less than 14?
### Re... | SELECT MAX("Rank") FROM table_40608 WHERE "Name" = 'travis watson' AND "Games" < '14' |
### Instruction:
CREATE TABLE table_203_176 (
id number,
"name" text,
"full name" text,
"caps" number,
"goals" number,
"first cap" text,
"opponent" text,
"club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players scored at le... | SELECT COUNT("name") FROM table_203_176 WHERE "goals" >= 30 |
### Instruction:
CREATE TABLE table_54323 (
"Goal" real,
"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 the Daugava Stadium, Riga, Latvia?
### Respon... | SELECT "Competition" FROM table_54323 WHERE "Venue" = 'daugava stadium, riga, latvia' |
### Instruction:
CREATE TABLE table_26616 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When tiger-cats is the opponent what is th... | SELECT "Location" FROM table_26616 WHERE "Opponent" = 'Tiger-Cats' |
### Instruction:
CREATE TABLE table_26571 (
"Processor" text,
"Brand name" text,
"Model (list)" text,
"Cores" real,
"L2 Cache" text,
"Socket" text,
"TDP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the brand name associated with a... | SELECT "Brand name" FROM table_26571 WHERE "Model (list)" = 'E4xxx' |
### Instruction:
CREATE TABLE table_55712 (
"Region" text,
"Date" real,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Under what label was the album with the catalog of 3645 and came out later than 1987?
###... | SELECT "Label" FROM table_55712 WHERE "Catalog" = '3645' AND "Date" > '1987' |
### Instruction:
CREATE TABLE table_68963 (
"Episode" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what order were the Bee Gees as the artist when it was a result of bot... | SELECT "Order #" FROM table_68963 WHERE "Result" = 'bottom 3' AND "Original artist" = 'bee gees' |
### Instruction:
CREATE TABLE table_204_13 (
id number,
"finished" text,
"post" number,
"horse" text,
"jockey" text,
"trainer" text,
"owner" text,
"time / behind" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the top... | SELECT "trainer" FROM table_204_13 ORDER BY "finished" LIMIT 1 |
### Instruction:
CREATE TABLE table_name_54 (
erp_w VARCHAR,
frequency_mhz VARCHAR,
city_of_license VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which ERP W has a Frequency MHz larger than 89.1, and a City of license of de queen, arkansas?
### Respon... | SELECT erp_w FROM table_name_54 WHERE frequency_mhz > 89.1 AND city_of_license = "de queen, arkansas" |
### Instruction:
CREATE TABLE table_77786 (
"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 date of the game be... | SELECT "Date" FROM table_77786 WHERE "Home team" = 'melbourne' |
### Instruction:
CREATE TABLE table_70790 (
"Model" text,
"Specification" text,
"Build date" text,
"Total produced" real,
"Wheel arrangement" text,
"Prime mover" text,
"Power output" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which model... | SELECT "Model" FROM table_70790 WHERE "Specification" = 'dl-718' |
### Instruction:
CREATE TABLE table_50852 (
"Name" text,
"Other names" text,
"Birth" text,
"Death" text,
"Death Place" text,
"Mother" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is other names when death is may 23, 1821?
### Response:
| SELECT "Other names" FROM table_50852 WHERE "Death" = 'may 23, 1821' |
### Instruction:
CREATE TABLE table_71255 (
"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 name of the venue when the competition was friendly, with a Result of 2 3?
... | SELECT "Venue" FROM table_71255 WHERE "Competition" = 'friendly' AND "Result" = '2–3' |
### Instruction:
CREATE TABLE table_203_824 (
id number,
"pick #" number,
"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 nhl team had the l... | SELECT "nhl team" FROM table_203_824 ORDER BY "pick #" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_363 (
"Rocket launch" text,
"Launch Date" text,
"Mission" text,
"Institutional authority" text,
"Launch Site" text,
"Outcomes" text,
"Derivatives" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which autho... | SELECT COUNT("Derivatives") FROM table_363 WHERE "Rocket launch" = 'Rehbar-5' |
### Instruction:
CREATE TABLE tweets (
id number,
uid number,
text text,
createdate time
)
CREATE TABLE user_profiles (
uid number,
name text,
email text,
partitionid number,
followers number
)
CREATE TABLE follows (
f1 number,
f2 number
)
-- Using valid SQLite, answer th... | SELECT COUNT(DISTINCT uid) FROM tweets |
### Instruction:
CREATE TABLE table_12340907_1 (
cost_per_capita VARCHAR,
total_costs__2005_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When total costs (2005) are $700,116, what is the cost per capita?
### Response:
| SELECT cost_per_capita FROM table_12340907_1 WHERE total_costs__2005_ = "$700,116" |
### Instruction:
CREATE TABLE table_203_650 (
id number,
"ceremony" text,
"award" text,
"category" text,
"name" text,
"outcome" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in which ceremony did the film win the most awards ?
### Response:
| SELECT "ceremony" FROM table_203_650 WHERE "outcome" = 'won' GROUP BY "ceremony" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_204_924 (
id number,
"match" number,
"date" text,
"ground" text,
"opponent" text,
"score1" text,
"pos." number,
"pts." number,
"gd" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many games d... | SELECT COUNT(*) FROM table_204_924 WHERE "date" = 9 |
### Instruction:
CREATE TABLE table_204_205 (
id number,
"class" text,
"no" number,
"team" text,
"drivers" text,
"chassis" text,
"engine" text,
"laps" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many laps does v10 kleber have ?
... | SELECT "laps" FROM table_204_205 WHERE "team" = 'v10 kleber' |
### Instruction:
CREATE TABLE table_name_54 (
predecessor VARCHAR,
date VARCHAR,
district VARCHAR,
congress VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What predecessor has a district less than 11, 68th as the Congress, and may 1, 1923 as the date... | SELECT predecessor FROM table_name_54 WHERE district < 11 AND congress = "68th" AND date = "may 1, 1923" |
### Instruction:
CREATE TABLE table_203_2 (
id number,
"name" text,
"mineral" text,
"opened" text,
"closed" text,
"years connected" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- looking at the top of the table , what is the na... | SELECT "name", "closed" FROM table_203_2 WHERE id = 1 |
### Instruction:
CREATE TABLE table_3786 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day in February did the team play... | SELECT "February" FROM table_3786 WHERE "Opponent" = 'Boston Bruins' |
### Instruction:
CREATE TABLE table_51661 (
"Edition" text,
"Round" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What surface was the April 24, 2003 match played on?
### Response:
| SELECT "Surface" FROM table_51661 WHERE "Date" = 'april 24, 2003' |
### Instruction:
CREATE TABLE table_15185133_1 (
no_in_season VARCHAR,
written_by VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season has an episode written by john o'bryan and directed by ethan spaulding?
### Response:
| SELECT no_in_season FROM table_15185133_1 WHERE written_by = "John O'Bryan" AND directed_by = "Ethan Spaulding" |
### Instruction:
CREATE TABLE table_48173 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the location when the time... | SELECT "Location" FROM table_48173 WHERE "Time" = '3:15' |
### Instruction:
CREATE TABLE table_203_537 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total games took place in... | SELECT COUNT("date") FROM table_203_537 WHERE "date" = 1999 |
### Instruction:
CREATE TABLE table_36838 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has a DOB of 13 may 1987?
### Response:
| SELECT "Position" FROM table_36838 WHERE "D.O.B." = '13 may 1987' |
### Instruction:
CREATE TABLE table_25328 (
"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.
-- Name the result for cowboys points being 2... | SELECT COUNT("Result") FROM table_25328 WHERE "Cowboys points" = '23' |
### Instruction:
CREATE TABLE table_21652 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the gam... | SELECT "Score" FROM table_21652 WHERE "Date" = 'December 11' |
### Instruction:
CREATE TABLE table_203_804 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times is hesketh fo... | SELECT COUNT(*) FROM table_203_804 WHERE "constructor" = 'hesketh-ford' |
### Instruction:
CREATE TABLE table_38548 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which method did pride bushido 10 ... | SELECT "Method" FROM table_38548 WHERE "Event" = 'pride bushido 10' |
### Instruction:
CREATE TABLE table_31380 (
"Value" text,
"Dimensions" text,
"Main Color" text,
"Obverse" text,
"Reverse" text,
"Watermark" text,
"Date of issue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the dimensions of the c... | SELECT "Dimensions" FROM table_31380 WHERE "Value" = '₩200' |
### Instruction:
CREATE TABLE table_203_451 (
id number,
"year" number,
"film" text,
"role" text,
"language" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what role did kajal play before pooja ?
### Response:
| SELECT "role" FROM table_203_451 WHERE id = (SELECT id FROM table_203_451 WHERE "role" = 'pooja') - 1 |
### Instruction:
CREATE TABLE table_name_99 (
date VARCHAR,
location_attendance VARCHAR,
high_rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Location Attendance of madison square garden 19,763, and a High rebounds of david lee (... | SELECT date FROM table_name_99 WHERE location_attendance = "madison square garden 19,763" AND high_rebounds = "david lee (12)" |
### Instruction:
CREATE TABLE table_78691 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date of Birth, when Height is 'Head Coach: Adel Shamala'?
#... | SELECT "Date of Birth" FROM table_78691 WHERE "Height" = 'head coach: adel shamala' |
### Instruction:
CREATE TABLE table_30439 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many studen... | SELECT "Enrollment" FROM table_30439 WHERE "Team Nickname" = 'Comets' |
### Instruction:
CREATE TABLE table_1555308_1 (
bleeding_time VARCHAR,
platelet_count VARCHAR,
prothrombin_time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How is the bleeding time wherein platelet count is decreased and prothrombin time is unaffected... | SELECT bleeding_time FROM table_1555308_1 WHERE platelet_count = "Decreased" AND prothrombin_time = "Unaffected" |
### Instruction:
CREATE TABLE table_26045 (
"Years led" text,
"Span of years led" real,
"Player" text,
"Titles won at point of lead" real,
"Total Career titles" real,
"Tournament at which lead began" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "Total Career titles" FROM table_26045 WHERE "Player" = 'Roy Emerson' |
### Instruction:
CREATE TABLE table_78492 (
"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.
-- On what date was a game played ... | SELECT "Date" FROM table_78492 WHERE "Venue" = 'windy hill' |
### Instruction:
CREATE TABLE table_13471 (
"Event" text,
"Record" text,
"Nationality" text,
"Date" text,
"Games" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date were the 1997 Bridgetown games in which a Martinique girl competed?
### R... | SELECT "Date" FROM table_13471 WHERE "Nationality" = 'martinique' AND "Games" = '1997 bridgetown' |
### Instruction:
CREATE TABLE table_44568 (
"Event" text,
"Record" text,
"Athlete" text,
"Nationality" text,
"Date" text,
"Meet" text,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Place that has a Date of 4 august 2012?... | SELECT "Place" FROM table_44568 WHERE "Date" = '4 august 2012' |
### Instruction:
CREATE TABLE table_16431 (
"Rnd" real,
"Race Name" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In Round 6, how many winn... | SELECT COUNT("Winning driver") FROM table_16431 WHERE "Rnd" = '6' |
### Instruction:
CREATE TABLE table_204_678 (
id number,
"record" text,
"athlete" text,
"nation" text,
"venue" text,
"date" text,
"#" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country is the only one to have only one record hold... | SELECT "nation" FROM table_204_678 GROUP BY "nation" HAVING COUNT(*) = 1 |
### Instruction:
CREATE TABLE table_204_882 (
id number,
"number" number,
"builder" text,
"entered service" text,
"withdrawn" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of the only locomotive to be withdrawn ... | SELECT "number" FROM table_204_882 WHERE "withdrawn" < 1945 |
### Instruction:
CREATE TABLE table_52926 (
"Class" text,
"Wheels" text,
"Date" text,
"No. built" real,
"Loco Nos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date were more than 5 built with 4-4-2 wheels?
### Response:
| SELECT "Date" FROM table_52926 WHERE "Wheels" = '4-4-2' AND "No. built" > '5' |
### Instruction:
CREATE TABLE table_52024 (
"Stadium" text,
"Capacity" real,
"City" text,
"Club" text,
"Opening" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest capacity with an opening larger than 2015 in Trabzon?
### Response:
| SELECT MIN("Capacity") FROM table_52024 WHERE "Opening" > '2015' AND "City" = 'trabzon' |
### Instruction:
CREATE TABLE table_74726 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the crowd size at Vict... | SELECT "Crowd" FROM table_74726 WHERE "Venue" = 'victoria park' |
### Instruction:
CREATE TABLE table_75719 (
"Region" text,
"Date" real,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Label has a Date smaller than 2008, and a Catalog of fall cd 006?
### Response:
| SELECT "Label" FROM table_75719 WHERE "Date" < '2008' AND "Catalog" = 'fall cd 006' |
### Instruction:
CREATE TABLE table_19894 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what episode was segment D ned... | SELECT MAX("Episode") FROM table_19894 WHERE "Segment D" = 'ned Can Corn' |
### Instruction:
CREATE TABLE table_70400 (
"Year" real,
"Division" text,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What open cup did they play in when they finished 2nd, northe... | SELECT "Open Cup" FROM table_70400 WHERE "Reg. Season" = '2nd, northeast' |
### Instruction:
CREATE TABLE table_25949 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points were there sc... | SELECT MAX("Points") FROM table_25949 WHERE "Date" = 'October 27' |
### Instruction:
CREATE TABLE table_12210 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time where the record ... | SELECT "Time" FROM table_12210 WHERE "Record" = '10-1' |
### Instruction:
CREATE TABLE table_name_94 (
gold INTEGER,
rank VARCHAR,
bronze VARCHAR,
total VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which is the highest Gold that has a total smaller than 4 and a silver of 1, and a bron... | SELECT MAX(gold) FROM table_name_94 WHERE total < 4 AND silver = 1 AND bronze < 2 AND rank = "13" |
### Instruction:
CREATE TABLE table_22917 (
"Version" text,
"Code name" text,
"Release date" text,
"Desktops" text,
"Servers" text,
"Kernel Version" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the release date of the operating system... | SELECT "Release date" FROM table_22917 WHERE "Kernel Version" = '2.6.31' |
### Instruction:
CREATE TABLE table_61349 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team played at home for the second leg and has an aggregate sc... | SELECT "Home (2nd leg)" FROM table_61349 WHERE "Aggregate" = '2-4' |
### Instruction:
CREATE TABLE table_60741 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tournament was held on July 13, 2008?
### Response:
| SELECT "Tournament" FROM table_60741 WHERE "Date" = 'july 13, 2008' |
### Instruction:
CREATE TABLE table_28212 (
"Countries and Territories" text,
"Conditions of access" text,
"Length of stay permitted" text,
"Fee (if applicable)" text,
"Access using a Croatian identity card" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "Fee (if applicable)" FROM table_28212 WHERE "Countries and Territories" = 'Norway' |
### Instruction:
CREATE TABLE table_65057 (
"Heat" real,
"Name" text,
"Nationality" text,
"Reaction" real,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average reaction for brigitte foster-hylton after heat 1?
### Response:
| SELECT AVG("Reaction") FROM table_65057 WHERE "Heat" > '1' AND "Name" = 'brigitte foster-hylton' |
### Instruction:
CREATE TABLE table_67981 (
"Competition" text,
"Venue" text,
"Year" real,
"Category" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the competitions that occurred before 2006 in SVK Nitra?
### Response:
| SELECT "Competition" FROM table_67981 WHERE "Year" < '2006' AND "Venue" = 'svk nitra' |
### Instruction:
CREATE TABLE table_45305 (
"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 country was the golfer from who had a money amount of 45,000?... | SELECT "Country" FROM table_45305 WHERE "Money ( $ )" = '45,000' |
### Instruction:
CREATE TABLE table_1341586_39 (
incumbent VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the incumbent with candidates being tom ridge (r) 80.9% joylyn blackwell (d) 19.1%
### Response:
| SELECT incumbent FROM table_1341586_39 WHERE candidates = "Tom Ridge (R) 80.9% Joylyn Blackwell (D) 19.1%" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.