instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_78703 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the First Elected date of the Republican with Results of retired repu... | SELECT MIN("First elected") FROM table_78703 WHERE "Party" = 'republican' AND "Results" = 'retired republican hold' |
### Instruction:
CREATE TABLE table_203_486 (
id number,
"place" number,
"team" text,
"matches" number,
"won" number,
"drawn" number,
"lost" number,
"difference" text,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how man... | SELECT COUNT("team") FROM table_203_486 WHERE "won" >= 4 |
### 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.
-- list the opponents which are under... | SELECT "opponent" FROM table_203_537 WHERE "competition" = 'friendly' |
### Instruction:
CREATE TABLE table_77821 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Home team has a Venue of ... | SELECT "Home team" FROM table_77821 WHERE "Venue" = 'mcg' |
### Instruction:
CREATE TABLE table_name_46 (
v_oc__v_ VARCHAR,
t__µm_ VARCHAR,
i_sc__a_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the V OC (V), when t ( m) is greater than 5, and when I SC (A) is 0.8?
### Response:
| SELECT v_oc__v_ FROM table_name_46 WHERE t__µm_ > 5 AND i_sc__a_ = "0.8" |
### Instruction:
CREATE TABLE inst (
instid number,
name text,
country text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
)
CREATE TABLE authors (
authid number,
lname text,
fname text
)
CREATE TABLE papers (
paperid number,
... | SELECT COUNT(*) FROM papers |
### Instruction:
CREATE TABLE table_203_115 (
id number,
"name of place" text,
"counties" number,
"principal county" text,
"lower zip code" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which county is listed above calciana ?
### Response:
| SELECT "name of place" FROM table_203_115 WHERE id = (SELECT id FROM table_203_115 WHERE "name of place" = 'calciana') - 1 |
### Instruction:
CREATE TABLE table_33838 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- December smaller than 21, and a Opponent of buffalo sabres had what score?
### Respons... | SELECT "Score" FROM table_33838 WHERE "December" < '21' AND "Opponent" = 'buffalo sabres' |
### Instruction:
CREATE TABLE table_25280 (
"Constituency" text,
"Winner" text,
"Party" text,
"Margin" real,
"Runner-up a" text,
"Party a" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many margins have a winner of S. Singaravadivel?
### ... | SELECT COUNT("Margin") FROM table_25280 WHERE "Winner" = 'S. Singaravadivel' |
### Instruction:
CREATE TABLE table_1735 (
"Episode" real,
"Original title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text,
"Duration" text,
"Viewership" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of... | SELECT COUNT("Duration") FROM table_1735 WHERE "Viewership" = '5.46 million' |
### Instruction:
CREATE TABLE table_80152 (
"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.
-- Who won the Mixed Doubles in 2007... | SELECT "Mixed doubles" FROM table_80152 WHERE "Year" = '2007' |
### Instruction:
CREATE TABLE table_40002 (
"Date" text,
"Title" text,
"Director" text,
"Producer" text,
"Production Cost" text,
"Singapore Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Production Cost with a Date that is feb... | SELECT "Production Cost" FROM table_40002 WHERE "Date" = 'february 2000' |
### Instruction:
CREATE TABLE table_55216 (
"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 is the home team that playe... | SELECT "Home team score" FROM table_55216 WHERE "Venue" = 'mcg' |
### Instruction:
CREATE TABLE table_32366 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the qual 1 for rusport and had a best of 58.665?
### Response:
| SELECT "Qual 1" FROM table_32366 WHERE "Team" = 'rusport' AND "Best" = '58.665' |
### Instruction:
CREATE TABLE table_49867 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which home team had a score of 85-101?
### R... | SELECT "Home team" FROM table_49867 WHERE "Score" = '85-101' |
### Instruction:
CREATE TABLE table_937 (
"Number" real,
"Astronaut" text,
"Agency" text,
"Total EVAs" real,
"Total Time Hours:Minutes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total EVAs of the walk that lasted 45:34?
### Respon... | SELECT MAX("Total EVAs") FROM table_937 WHERE "Total Time Hours:Minutes" = '45:34' |
### Instruction:
CREATE TABLE table_24906 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team had a manag... | SELECT "Team" FROM table_24906 WHERE "Replaced by" = 'Ebrahim Talebi' |
### Instruction:
CREATE TABLE table_74348 (
"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 is the nationality of the player picke... | SELECT "Nationality" FROM table_74348 WHERE "NHL team" = 'Washington Capitals' |
### Instruction:
CREATE TABLE table_203_548 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the numerical difference of total medals... | SELECT MAX("total") - MIN("total") FROM table_203_548 |
### Instruction:
CREATE TABLE table_13749 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What lane did Bronte Barratt, who had a rank larger than 4, swim in?
### Response:
| SELECT AVG("Lane") FROM table_13749 WHERE "Name" = 'bronte barratt' AND "Rank" > '4' |
### Instruction:
CREATE TABLE table_203_620 (
id number,
"tie no" number,
"home team" text,
"score" text,
"away team" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of spectators in attendance in the hull ... | SELECT "attendance" FROM table_203_620 WHERE "away team" = 'oldham athletic' |
### Instruction:
CREATE TABLE table_64429 (
"Player" text,
"Original Season" text,
"Gender" text,
"Eliminated" text,
"Placing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the player eliminated on episode 8 of Fresh Meat?
### Response:
| SELECT "Player" FROM table_64429 WHERE "Original Season" = 'fresh meat' AND "Eliminated" = 'episode 8' |
### Instruction:
CREATE TABLE table_77546 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was there a game at Kardin... | SELECT "Date" FROM table_77546 WHERE "Venue" = 'kardinia park' |
### Instruction:
CREATE TABLE table_204_160 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is listed previous to prue watt ?
### Response:
| SELECT "name" FROM table_204_160 WHERE id = (SELECT id FROM table_204_160 WHERE "name" = 'prue watt') - 1 |
### Instruction:
CREATE TABLE table_61713 (
"Date" text,
"Opponent#" text,
"Rank #" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent when the attendance was 87,453?
### Response... | SELECT "Opponent#" FROM table_61713 WHERE "Attendance" = '87,453' |
### Instruction:
CREATE TABLE table_50556 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the overall draft pick of the player who was a db and attended... | SELECT "Overall" FROM table_50556 WHERE "College" = 'iowa' AND "Position" = 'db' |
### Instruction:
CREATE TABLE table_58109 (
"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 did South Melbourne play ... | SELECT "Venue" FROM table_58109 WHERE "Home team" = 'south melbourne' |
### Instruction:
CREATE TABLE table_name_15 (
top_10 INTEGER,
poles VARCHAR,
top_5 VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Top 10 has a Top 5 larger than 1, and a Year of 2003, and Poles larger than 0?
### Response:
| SELECT AVG(top_10) FROM table_name_15 WHERE top_5 > 1 AND year = 2003 AND poles > 0 |
### Instruction:
CREATE TABLE table_32747 (
"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 date of the game w... | SELECT "Date" FROM table_32747 WHERE "Home team" = 'richmond' |
### Instruction:
CREATE TABLE table_58010 (
"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.
-- How much did the home team st k... | SELECT "Home team score" FROM table_58010 WHERE "Home team" = 'st kilda' |
### Instruction:
CREATE TABLE table_62052 (
"Round" real,
"Race" text,
"Circuit" text,
"Date" text,
"Event" text,
"Winning driver" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for round when the race was Int. Adac Preis Von Zweibr c... | SELECT "Round" FROM table_62052 WHERE "Race" = 'int. adac preis von zweibrücken' |
### Instruction:
CREATE TABLE table_44874 (
"State" text,
"Preliminary Average" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Semifinal Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the evening gown score for t... | SELECT "Evening Gown" FROM table_44874 WHERE "State" = 'mississippi' |
### Instruction:
CREATE TABLE table_55718 (
"Match" real,
"Date" text,
"Competition or tour" text,
"Ground" text,
"Opponent" text,
"Score1" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a date 21 jul 2007?
### Response:
| SELECT "Opponent" FROM table_55718 WHERE "Date" = '21 jul 2007' |
### Instruction:
CREATE TABLE table_4633 (
"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 venue features geelong as t... | SELECT "Venue" FROM table_4633 WHERE "Away team" = 'geelong' |
### Instruction:
CREATE TABLE table_28213 (
"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 "Length of stay permitted" FROM table_28213 WHERE "Countries and Territories" = 'Jersey' |
### Instruction:
CREATE TABLE table_19448 (
"Position" text,
"Number" real,
"Name" text,
"Height" text,
"Weight" text,
"Class" text,
"Hometown" text,
"Games\u2191" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all weights for t... | SELECT "Weight" FROM table_19448 WHERE "Number" = '27' |
### Instruction:
CREATE TABLE table_16616 (
"Rank" real,
"Dismissals" real,
"Player" text,
"Nationality" text,
"Catches" real,
"Stumpings" real,
"Career Span" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many stumpings has Paul Nixon i... | SELECT "Stumpings" FROM table_16616 WHERE "Player" = 'Paul Nixon' |
### Instruction:
CREATE TABLE table_53097 (
"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 listed crowd at win... | SELECT "Crowd" FROM table_53097 WHERE "Venue" = 'windy hill' |
### Instruction:
CREATE TABLE table_56344 (
"Grand Prix" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Whi... | SELECT "Winning Driver" FROM table_56344 WHERE "Location" = 'imola' |
### Instruction:
CREATE TABLE table_name_61 (
wins__outdoor_ INTEGER,
wins__indoor_ VARCHAR,
rank VARCHAR,
wins__total_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average wins outdoor with rank more than 4 and wins less than 3 with outdo... | SELECT AVG(wins__outdoor_) FROM table_name_61 WHERE rank > 4 AND wins__total_ < 3 AND wins__indoor_ > 0 |
### Instruction:
CREATE TABLE table_name_61 (
grid INTEGER,
driver VARCHAR,
laps VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average grid that has over 8 laps, a Time/Retired of +2 laps, and peter gethin driving?
... | SELECT AVG(grid) FROM table_name_61 WHERE laps > 8 AND time_retired = "+2 laps" AND driver = "peter gethin" |
### Instruction:
CREATE TABLE table_19372 (
"Tour" text,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the womens singles for korea ope... | SELECT "Womens singles" FROM table_19372 WHERE "Tour" = 'Korea Open Super Series' |
### Instruction:
CREATE TABLE table_43749 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player from the United States with a score of 71-72=143?
### Response:
| SELECT "Player" FROM table_43749 WHERE "Country" = 'united states' AND "Score" = '71-72=143' |
### Instruction:
CREATE TABLE table_21281 (
"Country" text,
"Preliminary" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Give swimsuit scores of participants 8.847 in prelim... | SELECT "Swimsuit" FROM table_21281 WHERE "Preliminary" = '8.847' |
### Instruction:
CREATE TABLE table_46740 (
"Letter" text,
"IPv6 address" text,
"AS-number" text,
"Operator" text,
"Location #sites (global/local)" text,
"Software" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which location has an AS-number o... | SELECT "Location #sites (global/local)" FROM table_46740 WHERE "AS-number" = 'n/a' |
### Instruction:
CREATE TABLE table_43542 (
"Round" real,
"Race Name" text,
"Circuit" text,
"City/Location" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For which location was the round smaller than 11 and the circuit streets of denve... | SELECT "City/Location" FROM table_43542 WHERE "Round" < '11' AND "Circuit" = 'streets of denver' |
### Instruction:
CREATE TABLE table_14590 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the To par for t10 place and score of 72-71=143
### Response:
| SELECT "To par" FROM table_14590 WHERE "Place" = 't10' AND "Score" = '72-71=143' |
### Instruction:
CREATE TABLE table_71903 (
"No.1" text,
"No.2" text,
"No.3" text,
"No.5" text,
"No.6" text,
"FINAL" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is no.3 when Claudio Sylvie is no.1?
### Response:
| SELECT "No.3" FROM table_71903 WHERE "No.1" = 'claudio sylvie' |
### Instruction:
CREATE TABLE table_44506 (
"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 Score has a Set 1 of 25 16?
### Response:
| SELECT "Score" FROM table_44506 WHERE "Set 1" = '25–16' |
### Instruction:
CREATE TABLE table_204_495 (
id number,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" number,
"scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many games had an attendance of more than 1... | SELECT COUNT(*) FROM table_204_495 WHERE "attendance" > 10000 |
### Instruction:
CREATE TABLE table_78972 (
"Name" text,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Name that has the Height of 6-5, and the Year of ... | SELECT "Name" FROM table_78972 WHERE "Height" = '6-5' AND "Year" = 'junior' |
### Instruction:
CREATE TABLE table_18373863_2 (
mlb_team VARCHAR,
years_played VARCHAR,
fcsl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when deland is the fcsl team and 2008 is the year played who is the mlb team?
### Response:
| SELECT mlb_team FROM table_18373863_2 WHERE years_played = "2008" AND fcsl_team = "DeLand" |
### Instruction:
CREATE TABLE table_19781 (
"English gloss" text,
"Santee-Sisseton" text,
"Yankton-Yanktonai" text,
"Northern Lakota" text,
"Southern Lakota" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the santee sisseton for morning
### R... | SELECT "Santee-Sisseton" FROM table_19781 WHERE "English gloss" = 'morning' |
### Instruction:
CREATE TABLE table_69350 (
"Name" text,
"Country" text,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is moving during winter from wal... | SELECT "Moving from" FROM table_69350 WHERE "Transfer window" = 'winter' AND "Country" = 'wal' |
### Instruction:
CREATE TABLE table_name_46 (
loser VARCHAR,
result VARCHAR,
winner VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the Loser when the winner was new england patriots, and a Location of giants stad... | SELECT loser FROM table_name_46 WHERE winner = "new england patriots" AND location = "giants stadium" AND result = "30–28" |
### Instruction:
CREATE TABLE table_5143 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which count... | SELECT "County" FROM table_5143 WHERE "Median family income" = '$46,426' |
### Instruction:
CREATE TABLE table_58584 (
"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 did north melbourne play ... | SELECT "Venue" FROM table_58584 WHERE "Away team" = 'north melbourne' |
### Instruction:
CREATE TABLE table_12800 (
"Draft" real,
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest pick of player paul stasiuk from a round greater than 12?
### Respo... | SELECT MIN("Pick") FROM table_12800 WHERE "Player" = 'paul stasiuk' AND "Round" > '12' |
### Instruction:
CREATE TABLE table_45958 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Grid has a Rider of randy de puniet, and Laps smaller than 24?
### Response:
| SELECT MAX("Grid") FROM table_45958 WHERE "Rider" = 'randy de puniet' AND "Laps" < '24' |
### Instruction:
CREATE TABLE table_41020 (
"City of license" text,
"Identifier" text,
"Frequency" text,
"Power" text,
"Class" text,
"RECNet" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the power that belongs to Class A with an Identi... | SELECT "Power" FROM table_41020 WHERE "Class" = 'a' AND "Identifier" = 'cboc-fm' |
### Instruction:
CREATE TABLE table_23248869_10 (
score VARCHAR,
location_attendance VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every score for location attendance of Madison Square Garden 19,763 and game less than 80.0?
### R... | SELECT score FROM table_23248869_10 WHERE location_attendance = "Madison Square Garden 19,763" AND game < 80.0 |
### Instruction:
CREATE TABLE table_name_98 (
year INTEGER,
drivers VARCHAR,
poles VARCHAR,
fast_laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Year during which the Driver Adrian Quaife-Hobbs has fewer than 2 Poles, and 0 Fa... | SELECT AVG(year) FROM table_name_98 WHERE poles < 2 AND fast_laps = 0 AND drivers = "adrian quaife-hobbs" |
### Instruction:
CREATE TABLE table_71021 (
"Draw" real,
"Artist" text,
"Song" text,
"Votes" real,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average place for the song called 'homme' that has voes larger than 1320?
### Res... | SELECT AVG("Place") FROM table_71021 WHERE "Song" = 'homme' AND "Votes" > '1320' |
### Instruction:
CREATE TABLE table_45429 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" text,
"Position" text,
"Years" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During what years was the Jersey Numbers 34, 30 played?
... | SELECT "Years" FROM table_45429 WHERE "Jersey Number(s)" = '34, 30' |
### Instruction:
CREATE TABLE table_74762 (
"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 home team score for... | SELECT "Home team score" FROM table_74762 WHERE "Home team" = 'footscray' |
### Instruction:
CREATE TABLE table_73131 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Number of Dances" real,
"Total Points" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place would you be in if your rank by av... | SELECT "Place" FROM table_73131 WHERE "Rank by average" < '2.0' |
### Instruction:
CREATE TABLE table_76721 (
"Newspaper/Magazine" text,
"Type" text,
"Language" text,
"Headquarter" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Headquarter, when Language is English, and when Type is Independ... | SELECT "Headquarter" FROM table_76721 WHERE "Language" = 'english' AND "Type" = 'independent online news portal' |
### Instruction:
CREATE TABLE table_59572 (
"Manufacturer" text,
"Model" text,
"Kit/Factory" text,
"Wing" text,
"Seats" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Kit/Factory has a J250 model made by Jabiru?
### Response:
| SELECT "Kit/Factory" FROM table_59572 WHERE "Manufacturer" = 'jabiru' AND "Model" = 'j250' |
### Instruction:
CREATE TABLE table_62985 (
"Year" real,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Distance" text,
"Time" text,
"Purse" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the trainer of the winner sk... | SELECT "Trainer" FROM table_62985 WHERE "Winner" = 'skylighter' |
### Instruction:
CREATE TABLE table_11269 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did the Home Team score 5.10 (40)?
### Re... | SELECT "Venue" FROM table_11269 WHERE "Home team score" = '5.10 (40)' |
### Instruction:
CREATE TABLE table_221315_3 (
max_speed__mph_ VARCHAR,
usaf_space_flights VARCHAR,
total_flights VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many numbers were recorded under max speed for 1 USAF space flight and total flights 34?
... | SELECT COUNT(max_speed__mph_) FROM table_221315_3 WHERE usaf_space_flights = 1 AND total_flights = 34 |
### Instruction:
CREATE TABLE table_55744 (
"Name" text,
"Country" text,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the country for 6-month loan and moving from of ... | SELECT "Country" FROM table_55744 WHERE "Type" = '6-month loan' AND "Moving from" = 'lens' |
### Instruction:
CREATE TABLE table_80188 (
"Season" text,
"Team" text,
"Country" text,
"Division" real,
"Apps" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What division was Ukraine in 2006/07?
### Response:
| SELECT "Division" FROM table_80188 WHERE "Country" = 'ukraine' AND "Season" = '2006/07' |
### Instruction:
CREATE TABLE table_15214 (
"Game" real,
"Date" text,
"Score" text,
"Location" text,
"Time" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was date when the time was 2:26 and the location was Riverfront St... | SELECT "Date" FROM table_15214 WHERE "Time" = '2:26' AND "Location" = 'riverfront stadium' |
### Instruction:
CREATE TABLE table_22947 (
"Season" text,
"Club" text,
"Country" text,
"Championship" text,
"National Cup" text,
"International Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the national cup statistics when the Cha... | SELECT "National Cup" FROM table_22947 WHERE "Championship" = '21 app / 6 goals' |
### Instruction:
CREATE TABLE table_53826 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Runner(s)-up on the Date 4 Oct 2009?
### Response... | SELECT "Runner(s)-up" FROM table_53826 WHERE "Date" = '4 oct 2009' |
### Instruction:
CREATE TABLE table_204_526 (
id number,
"name" text,
"#" number,
"position" text,
"height" text,
"weight" number,
"year" text,
"home town" text,
"high school" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many p... | SELECT COUNT("name") FROM table_204_526 WHERE "year" <> 'junior' |
### Instruction:
CREATE TABLE table_74107 (
"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 MIN("No. in season") FROM table_74107 |
### Instruction:
CREATE TABLE table_204_668 (
id number,
"#" number,
"menteri besar" text,
"took office" text,
"left office" text,
"party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years was jaafar mohamed in office ?
### Respons... | SELECT "left office" - "took office" FROM table_204_668 WHERE "menteri besar" = 'jaafar mohamed' |
### Instruction:
CREATE TABLE table_7058 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team was the visitor when Milt Palacio (15) was the leading s... | SELECT "Visitor" FROM table_7058 WHERE "Leading scorer" = 'milt palacio (15)' |
### Instruction:
CREATE TABLE table_19931 (
"Series Ep." text,
"Episode" real,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the titles of segment c for series episode i... | SELECT "Segment C" FROM table_19931 WHERE "Series Ep." = '21-08' |
### Instruction:
CREATE TABLE table_17967 (
"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 the highest number of gold medals Naugatuck HS won?
... | SELECT MAX("Gold Medals") FROM table_17967 WHERE "Ensemble" = 'Naugatuck HS' |
### Instruction:
CREATE TABLE table_13725 (
"Protocol" text,
"Power Line" text,
"Radio-Frequency" text,
"Open Source?" text,
"Needs Neutral Wire?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Does it need neutral wire when the power line and open ... | SELECT "Needs Neutral Wire?" FROM table_13725 WHERE "Power Line" = 'no' AND "Open Source?" = 'no' |
### Instruction:
CREATE TABLE table_204_620 (
id number,
"title" text,
"year" number,
"language" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what title is before dhol in 2007 ?
### Response:
| SELECT "title" FROM table_204_620 WHERE id = (SELECT id FROM table_204_620 WHERE "title" = 'dhol') - 1 |
### Instruction:
CREATE TABLE table_47534 (
"Frequency" text,
"Call sign" text,
"Location" text,
"Name / Format" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Owner has a Name / Format of 105.3 kool fm - hot adult contemporary?
... | SELECT "Owner" FROM table_47534 WHERE "Name / Format" = '105.3 kool fm - hot adult contemporary' |
### Instruction:
CREATE TABLE table_30922 (
"Stage" real,
"Winner" text,
"General classification" text,
"Mountains Classification" text,
"Points classification" text,
"Sprints Classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "General classification" FROM table_30922 WHERE "Winner" = 'Steven Kruijswijk' |
### Instruction:
CREATE TABLE table_30452 (
"Player" text,
"Cap(s)" real,
"Goal(s)" real,
"International Debut" text,
"Club(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 2010 v australia is the interantional debut what is the club?
### R... | SELECT "Club(s)" FROM table_30452 WHERE "International Debut" = '2010 v Australia' |
### Instruction:
CREATE TABLE table_23879 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Thundering Herd points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game wh... | SELECT "Result" FROM table_23879 WHERE "Record" = '2-1' |
### Instruction:
CREATE TABLE table_28785 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Patient Portrayer" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was writte... | SELECT "Written by" FROM table_28785 WHERE "Patient Portrayer" = 'Alex Carter' |
### Instruction:
CREATE TABLE table_62000 (
"Date" text,
"Result" text,
"Score" text,
"Venue" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the friendly competition on 23 January 2010?
### Response:
| SELECT "Result" FROM table_62000 WHERE "Competition" = 'friendly' AND "Date" = '23 january 2010' |
### Instruction:
CREATE TABLE table_15023 (
"Year" real,
"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.
-- Name the women's singles for 1991... | SELECT "Women's singles" FROM table_15023 WHERE "Year" = '1991' |
### Instruction:
CREATE TABLE table_57480 (
"Name" text,
"Block" text,
"Launch date/time (UTC)" text,
"COSPAR ID" text,
"Rocket" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rocket has a COSPAR ID of 2002-001a?
### Response:
| SELECT "Rocket" FROM table_57480 WHERE "COSPAR ID" = '2002-001a' |
### Instruction:
CREATE TABLE table_35096 (
"Date" text,
"Result" text,
"Score" text,
"Venue" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Result of w, and a Competition of 1968 asian cup happened on what date?
### Response:
| SELECT "Date" FROM table_35096 WHERE "Result" = 'w' AND "Competition" = '1968 asian cup' |
### Instruction:
CREATE TABLE table_37415 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the s... | SELECT "Series" FROM table_37415 WHERE "Date" = 'may 6' |
### Instruction:
CREATE TABLE table_2115 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What location contains a school that has... | SELECT "Location" FROM table_2115 WHERE "Enrollment" = '2686' |
### Instruction:
CREATE TABLE table_47820 (
"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 date of the game on week 9 with attendance greater than 41,863?
### Respo... | SELECT "Date" FROM table_47820 WHERE "Attendance" > '41,863' AND "Week" = '9' |
### Instruction:
CREATE TABLE table_76647 (
"Target/Approach" text,
"Candidate Name" text,
"Trial Phase" text,
"Trial Start Date" text,
"Expected End Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Trial Start Date, when Candidate Name ... | SELECT "Trial Start Date" FROM table_76647 WHERE "Candidate Name" = 'pbt2' |
### Instruction:
CREATE TABLE table_20737 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the home team score a... | SELECT "Home team score" FROM table_20737 WHERE "Away team" = 'Collingwood' |
### Instruction:
CREATE TABLE table_18605 (
"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.
-- Which political party is involved where John J. Delaney... | SELECT "Party" FROM table_18605 WHERE "Incumbent" = 'John J. Delaney' |
### Instruction:
CREATE TABLE table_203_473 (
id number,
"no." number,
"date" text,
"tournament" text,
"winning score" text,
"margin\nof victory" text,
"runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what month were the most to... | SELECT "date" FROM table_203_473 GROUP BY "date" ORDER BY COUNT(*) DESC LIMIT 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.