instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_15004 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the nation when bronze is less than 4 and the total is more than 4
#... | SELECT "Nation" FROM table_15004 WHERE "Total" > '4' AND "Bronze" < '4' |
### Instruction:
CREATE TABLE table_51387 (
"Name" text,
"Bodyweight" real,
"Snatch" real,
"Clean & jerk" real,
"Total (kg)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Of weightlifters who weighed more than 136.16, who had the highest Total?
#... | SELECT MAX("Total (kg)") FROM table_51387 WHERE "Bodyweight" > '136.16' |
### Instruction:
CREATE TABLE table_name_61 (
area_km_2 INTEGER,
member_state VARCHAR,
population_in_millions VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest area km2 of the member state of the Czech Republic and has a population in mil... | SELECT MIN(area_km_2) FROM table_name_61 WHERE member_state = "czech republic" AND population_in_millions < 10.3 |
### Instruction:
CREATE TABLE table_20073 (
"Genus/Species" text,
"Common Name" text,
"Accession Number" text,
"Length" text,
"Similarity" text,
"Identity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What identities do the genus/species arabi... | SELECT "Identity" FROM table_20073 WHERE "Genus/Species" = 'Arabidopsis thaliana' |
### Instruction:
CREATE TABLE table_3192 (
"Episode #" real,
"Production Count" real,
"Original Airdate" text,
"Prod. Code" text,
"Title" text,
"Viewing Figures millions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production numb... | SELECT COUNT("Production Count") FROM table_3192 WHERE "Title" = 'Mine’s A Double' |
### Instruction:
CREATE TABLE table_79231 (
"School" text,
"Mascot" text,
"Location" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What location has kingsmen... | SELECT "Location" FROM table_79231 WHERE "Mascot" = 'kingsmen' |
### Instruction:
CREATE TABLE table_39448 (
"PRINT NAME" text,
"NICKNAME" text,
"NUMBER OF COLORS" text,
"FRAMED SIZE" text,
"DATE COMPLETED" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the print name in 07/87?
### Response:
| SELECT "PRINT NAME" FROM table_39448 WHERE "DATE COMPLETED" = '07/87' |
### Instruction:
CREATE TABLE table_49492 (
"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.
-- What is Year (Ceremony), when Director is 'Wang... | SELECT "Year (Ceremony)" FROM table_49492 WHERE "Director" = 'wang siu-di' |
### Instruction:
CREATE TABLE table_19583 (
"#" real,
"Title" text,
"Length" text,
"Writer" text,
"Composer" text,
"Arranger" text,
"Dialect" text,
"Mix Engineer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What track number is 4:29 i... | SELECT "#" FROM table_19583 WHERE "Length" = '4:29' |
### Instruction:
CREATE TABLE table_26065 (
"Place came" text,
"Artist" text,
"Category" text,
"Act" text,
"Semi-final" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During the act, Performance of 'Lost' by Anouk, what was the re... | SELECT "Result" FROM table_26065 WHERE "Act" = 'Performance of "Lost" by Anouk' |
### Instruction:
CREATE TABLE table_32572 (
"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 South Melbourne's home... | SELECT "Home team score" FROM table_32572 WHERE "Home team" = 'south melbourne' |
### Instruction:
CREATE TABLE table_51512 (
"Channel" real,
"Video" text,
"Aspect" text,
"PSIP Short Name" text,
"Network" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What network has an aspect of 4:3 and a PSIP Short Name of qvc?
### Response:... | SELECT "Network" FROM table_51512 WHERE "Aspect" = '4:3' AND "PSIP Short Name" = 'qvc' |
### Instruction:
CREATE TABLE table_name_43 (
release_date VARCHAR,
socket VARCHAR,
voltage VARCHAR,
mult VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the microprocessor with 1.65 1.7 v, a mult of 4.5 , and a slot 1 socket released?
### ... | SELECT release_date FROM table_name_43 WHERE voltage = "1.65–1.7 v" AND mult = "4.5×" AND socket = "slot 1" |
### Instruction:
CREATE TABLE table_5883 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of Silver medals with 2 Bronze and 0 Gold?
### Response... | SELECT COUNT("Silver") FROM table_5883 WHERE "Bronze" = '2' AND "Gold" < '0' |
### Instruction:
CREATE TABLE table_1605 (
"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.
-- How many times did Vior... | SELECT COUNT("Date of vacancy") FROM table_1605 WHERE "Replaced by" = 'Viorel Moldovan' |
### Instruction:
CREATE TABLE table_13959 (
"Name" text,
"Games" text,
"A-League" text,
"Finals" text,
"Clean Sheets" real,
"Saves" real,
"Years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the A-league with 39 saves?
### Respon... | SELECT "A-League" FROM table_13959 WHERE "Saves" = '39' |
### Instruction:
CREATE TABLE table_60798 (
"Battle" text,
"Date" text,
"Bulgarian Commander" text,
"Byzantine Commander" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Result of the Battle of Marcellae in 756?
### Respo... | SELECT "Result" FROM table_60798 WHERE "Battle" = 'battle of marcellae' AND "Date" = '756' |
### Instruction:
CREATE TABLE table_32958 (
"Institution" text,
"Government" real,
"Aided" real,
"Unaided" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which higher secondary school listing has the lowest total and an Aided amount la... | SELECT MIN("Total") FROM table_32958 WHERE "Institution" = 'higher secondary school' AND "Aided" > '14' |
### Instruction:
CREATE TABLE table_28583 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the district incumbent Saxby Chambliss elected?
#... | SELECT MAX("Elected") FROM table_28583 WHERE "Incumbent" = 'Saxby Chambliss' |
### Instruction:
CREATE TABLE table_69335 (
"Ship" text,
"Builder" text,
"Namesake" text,
"Renamed" text,
"Laid down" text,
"Launched" text,
"Commissioned or completed(*)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the original ... | SELECT "Renamed" FROM table_69335 WHERE "Ship" = 'ajax' |
### Instruction:
CREATE TABLE table_61121 (
"Title" text,
"Author" text,
"Doctor" text,
"Companion(s)" text,
"Published" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What title was published on November 2001 and has a 1st Doctor?
### Response:
| SELECT "Title" FROM table_61121 WHERE "Doctor" = '1st' AND "Published" = 'november 2001' |
### Instruction:
CREATE TABLE member_attendance (
member_id number,
performance_id number,
num_of_pieces number
)
CREATE TABLE member (
member_id text,
name text,
nationality text,
role text
)
CREATE TABLE performance (
performance_id number,
date text,
host text,
location ... | SELECT COUNT(*) FROM performance |
### Instruction:
CREATE TABLE table_10901 (
"Player" text,
"Pos." text,
"From" text,
"School/Country" text,
"Rebs" real,
"Asts" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of asts when rebs are larger than 1,189?
### Resp... | SELECT "Asts" FROM table_10901 WHERE "Rebs" > '1,189' |
### Instruction:
CREATE TABLE table_21433 (
"Episode Number" real,
"Air Date" text,
"Event 1" text,
"Event 2" text,
"Event 3" text,
"Event 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On how many different dates was event 1 Suspension Bridg... | SELECT COUNT("Air Date") FROM table_21433 WHERE "Event 1" = 'Suspension Bridge' |
### Instruction:
CREATE TABLE table_77064 (
"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 October 14, 2007?
### Response:
| SELECT "Tournament" FROM table_77064 WHERE "Date" = 'october 14, 2007' |
### Instruction:
CREATE TABLE table_41409 (
"Name" text,
"Status" text,
"Authors" text,
"Location" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of gao chiappe meng o'connor wang cheng liu?
### Response:
| SELECT "Name" FROM table_41409 WHERE "Authors" = 'gao chiappe meng o''connor wang cheng liu' |
### Instruction:
CREATE TABLE table_13804 (
"Year" text,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What game has a platform(s) of playstation 3, when the genre is platform game?
##... | SELECT "Game" FROM table_13804 WHERE "Platform(s)" = 'playstation 3' AND "Genre" = 'platform game' |
### Instruction:
CREATE TABLE table_1198 (
"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.
-- Name the number of series episode ... | SELECT COUNT("Series Ep.") FROM table_1198 WHERE "Segment A" = 's Piston' |
### Instruction:
CREATE TABLE table_43296 (
"Name" text,
"Years" text,
"League a" text,
"FA Cup" text,
"League Cup" text,
"Other b" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Other b when the FA Cup shows 3 (17)... | SELECT "Other b" FROM table_43296 WHERE "FA Cup" = '3 (17)' |
### Instruction:
CREATE TABLE table_38659 (
"NTFA Div 2" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Of the teams that had more than 0 byes, what was the total number of l... | SELECT COUNT("Losses") FROM table_38659 WHERE "Byes" < '0' |
### Instruction:
CREATE TABLE table_20270 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the margin of victory w... | SELECT "Margin of victory" FROM table_20270 WHERE "No." = '15' |
### Instruction:
CREATE TABLE table_36832 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance number for the venue of La... | SELECT "Attendance" FROM table_36832 WHERE "Venue" = 'lakeside park' |
### Instruction:
CREATE TABLE table_14703 (
"Name" text,
"Country" text,
"Loan Club" text,
"Started" text,
"Ended" text,
"Start Source" text,
"End Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the End Source from the Hartlep... | SELECT "End Source" FROM table_14703 WHERE "Loan Club" = 'hartlepool united' |
### Instruction:
CREATE TABLE table_63958 (
"Name" text,
"Nationality" text,
"Races won" real,
"Races ridden" real,
"Win average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many races did the German racer that won less than 10 races ride?
... | SELECT COUNT("Races ridden") FROM table_63958 WHERE "Nationality" = 'german' AND "Races won" < '10' |
### Instruction:
CREATE TABLE table_7220 (
"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.
-- For the tournament ending with a margin of victory of 2 strokes,... | SELECT "Runner(s)-up" FROM table_7220 WHERE "Margin of victory" = '2 strokes' |
### Instruction:
CREATE TABLE table_62049 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the peterborough phantoms play at a venue of home?
### Response:
| SELECT "Date" FROM table_62049 WHERE "Venue" = 'home' AND "Opponent" = 'peterborough phantoms' |
### Instruction:
CREATE TABLE table_345 (
"Number Range" text,
"Introduced" text,
"Builder" text,
"Engine" text,
"Weight (long tons)" text,
"Seats" text,
"Withdrawn" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the... | SELECT "Notes" FROM table_345 WHERE "Number Range" = '17' |
### Instruction:
CREATE TABLE table_14059 (
"Gene" text,
"Route of administration" text,
"Phase" text,
"Subject number" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the statue of the aat gene, which has an intramuscular rout... | SELECT "Status" FROM table_14059 WHERE "Route of administration" = 'intramuscular' AND "Gene" = 'aat' |
### Instruction:
CREATE TABLE table_28641 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total points" text,
"Number of dances" real,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least place when the couple is Ke... | SELECT MIN("Place") FROM table_28641 WHERE "Couple" = 'Keiron & Brianne' |
### Instruction:
CREATE TABLE table_203_764 (
id number,
"name" text,
"date" number,
"nation" text,
"displacement" text,
"speed" text,
"number" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many consecutive escorts w... | SELECT COUNT(*) FROM table_203_764 WHERE "date" = '1943' |
### Instruction:
CREATE TABLE table_48362 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Branding of the Metro Manila Frequency with a Callsign of DWBL?
###... | SELECT "Branding" FROM table_48362 WHERE "Location" = 'metro manila' AND "Callsign" = 'dwbl' |
### Instruction:
CREATE TABLE table_1496582_1 (
gdp_millions_of_usd__2009_ VARCHAR,
country___territory VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the GDP (in millions USD) of Indonesia in 2009?
### Response:
| SELECT COUNT(gdp_millions_of_usd__2009_) FROM table_1496582_1 WHERE country___territory = "Indonesia" |
### Instruction:
CREATE TABLE table_76442 (
"Date" text,
"Event" text,
"City" text,
"Oil Pattern" text,
"Winner (Title #)" text,
"Runner-up" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has an Event of constructio... | SELECT "Score" FROM table_76442 WHERE "Event" = 'constructionjobs.com classic' |
### Instruction:
CREATE TABLE table_23730 (
"Date" text,
"Presenter" text,
"Guest 1" text,
"Guest 2" text,
"Guest 3" text,
"Guest 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the guest 4 for steve lamacq
### Response:
| SELECT "Guest 4" FROM table_23730 WHERE "Guest 2" = 'Steve Lamacq' |
### Instruction:
CREATE TABLE table_16639 (
"Rd." real,
"Grand Prix" 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.
-- What number is the Canadi... | SELECT "Rd." FROM table_16639 WHERE "Grand Prix" = 'Canadian Grand Prix' |
### Instruction:
CREATE TABLE table_203_293 (
id number,
"years of appearance" text,
"title" text,
"network" text,
"character name" text,
"actor" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the last show aired by ab... | SELECT "title" FROM table_203_293 WHERE "network" = 'abc' ORDER BY "years of appearance" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_58899 (
"Glenelg FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many byes were then when there were less than 737 against?
### R... | SELECT SUM("Byes") FROM table_58899 WHERE "Against" < '737' |
### Instruction:
CREATE TABLE table_7608 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Away team that has a Tie no of replay, and a Score of 1 2?
### Response:
| SELECT "Away team" FROM table_7608 WHERE "Tie no" = 'replay' AND "Score" = '1–2' |
### Instruction:
CREATE TABLE table_39277 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has a class of 500cc and rank of 16th?
### Response:
| SELECT "Team" FROM table_39277 WHERE "Class" = '500cc' AND "Rank" = '16th' |
### Instruction:
CREATE TABLE table_39721 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has a Round smaller than 14, and a College of illinois... | SELECT "Position" FROM table_39721 WHERE "Round" < '14' AND "College" = 'illinois' |
### Instruction:
CREATE TABLE table_26656 (
"District" text,
"Vacator" text,
"Reason for Vacancy" text,
"Successor" text,
"Date of successors taking office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When massachusetts 6th is the district what i... | SELECT "Reason for Vacancy" FROM table_26656 WHERE "District" = 'Massachusetts 6th' |
### Instruction:
CREATE TABLE table_45722 (
"Japanese" text,
"R\u014dmaji" text,
"Meaning" text,
"Chinese" text,
"Romanization" text,
"Source language" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What language did the word mahjong originate f... | SELECT "Source language" FROM table_45722 WHERE "Meaning" = 'mahjong' |
### Instruction:
CREATE TABLE table_23043 (
"No." real,
"Country" text,
"Local title" text,
"Format" text,
"Start Date" text,
"End Date" text,
"Episodes" real,
"Premiere/Air Dates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was ... | SELECT MIN("Episodes") FROM table_23043 |
### Instruction:
CREATE TABLE table_68581 (
"Frequency" real,
"Callsign" text,
"Brand" text,
"Format" text,
"City of License" text,
"Website" text,
"Webcast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of frequecy with brand ... | SELECT SUM("Frequency") FROM table_68581 WHERE "Brand" = 'exa fm' |
### Instruction:
CREATE TABLE table_17216 (
"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.
-- 3488 is the enrollment amount of what c... | SELECT "Institution" FROM table_17216 WHERE "Enrollment" = '3488' |
### Instruction:
CREATE TABLE table_73361 (
"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.
-- Who direc... | SELECT "Directed by" FROM table_73361 WHERE "Title" = 'Freaky Friday' |
### Instruction:
CREATE TABLE table_669 (
"Year" real,
"Finish position" text,
"1st day" text,
"2nd day" text,
"3rd day" text,
"4th Day" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many 3rd day with 2nd day being bumped by magdalene
###... | SELECT COUNT("3rd day") FROM table_669 WHERE "2nd day" = 'bumped by Magdalene' |
### Instruction:
CREATE TABLE table_204_228 (
id number,
"year" number,
"title" text,
"credit" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the role listed after cameo appearance ?
### Response:
| SELECT "role" FROM table_204_228 WHERE id = (SELECT id FROM table_204_228 WHERE "role" = 'cameo appearance') + 1 |
### Instruction:
CREATE TABLE table_18296 (
"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.
-- What are the candidates in the district whose incumbent... | SELECT "Candidates" FROM table_18296 WHERE "Incumbent" = 'Gus Yatron' |
### Instruction:
CREATE TABLE table_23215 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type of the school whose st... | SELECT "Type" FROM table_23215 WHERE "Nickname" = 'Tigers' |
### Instruction:
CREATE TABLE table_name_99 (
total INTEGER,
silver VARCHAR,
nation VARCHAR,
bronze VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average total when bronze is more than 0, gold is 0, the nation is united... | SELECT AVG(total) FROM table_name_99 WHERE bronze > 0 AND gold = 0 AND nation = "united states (usa)" AND silver < 0 |
### Instruction:
CREATE TABLE table_4798 (
"Rank" real,
"Player" text,
"Years" text,
"Games" real,
"Ast. Avg." real,
"Total Assists" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average rank for players with less than 2.9 Assists p... | SELECT AVG("Rank") FROM table_4798 WHERE "Ast. Avg." < '2.9' |
### Instruction:
CREATE TABLE table_65792 (
"Rank" real,
"Summit" text,
"Country" text,
"Island" text,
"Col (m)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the summit when the rank is less than 2 and has a col (m) of 0?
### Response:
| SELECT "Summit" FROM table_65792 WHERE "Col (m)" = '0' AND "Rank" < '2' |
### Instruction:
CREATE TABLE table_71265 (
"Year" real,
"Manufacturer" text,
"Start" text,
"Finish" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team finished 35 in a ford before 1997?
### Response:
| SELECT "Team" FROM table_71265 WHERE "Year" < '1997' AND "Manufacturer" = 'ford' AND "Finish" = '35' |
### Instruction:
CREATE TABLE table_name_76 (
money___ INTEGER,
to_par VARCHAR,
place VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which average money has a Place of t10, and a Player of denny shute, and a To par larger than 12?
#... | SELECT AVG(money___) AS $__ FROM table_name_76 WHERE place = "t10" AND player = "denny shute" AND to_par > 12 |
### Instruction:
CREATE TABLE table_name_14 (
name VARCHAR,
laps VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team had less than 159 laps and a time or retired time of 4:00:30.7537 (retired - fire)?
### Response:
| SELECT name FROM table_name_14 WHERE laps < 159 AND time_retired = "4:00:30.7537 (retired - fire)" |
### Instruction:
CREATE TABLE table_61769 (
"Outcome" text,
"Date" real,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest date when the championship was Monterrey W... | SELECT MIN("Date") FROM table_61769 WHERE "Championship" = 'monterrey wct, mexico' |
### Instruction:
CREATE TABLE table_45508 (
"Pinnacle height" text,
"Year" real,
"Structure type" text,
"Main use" text,
"Country" text,
"Town" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the earliest year that a structure was locate... | SELECT MIN("Year") FROM table_45508 WHERE "Town" = 'gray court, south carolina' |
### Instruction:
CREATE TABLE table_40173 (
"Candidate" text,
"Votes" real,
"Percentage" text,
"Counties" real,
"Delegates" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Counties when Mitt Romney was the candidate with less than... | SELECT MAX("Counties") FROM table_40173 WHERE "Candidate" = 'mitt romney' AND "Delegates" < '0' |
### Instruction:
CREATE TABLE table_46550 (
"Round" real,
"Overall Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the overall pick numbe... | SELECT COUNT("Overall Pick") FROM table_46550 WHERE "Round" < '3' |
### Instruction:
CREATE TABLE table_204_402 (
id number,
"rank" number,
"player" text,
"from" text,
"to" text,
"transfer fee\n(\u20ac million)" number,
"year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average total of the ... | SELECT AVG("transfer fee\n(\u20ac million)") FROM table_204_402 |
### Instruction:
CREATE TABLE table_204_863 (
id number,
"state" text,
"city/county" text,
"population served" number,
"charter type" text,
"station name" text,
"web site" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many stations orig... | SELECT COUNT("station name") FROM table_204_863 WHERE "city/county" = 'columbia' |
### Instruction:
CREATE TABLE table_67501 (
"Season" real,
"Cars Entered" real,
"Winning Driver" text,
"Second Driver" text,
"Third Driver" text,
"Race Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Winning Driver has a Second Driv... | SELECT "Winning Driver" FROM table_67501 WHERE "Second Driver" = 'jimmy bryan' |
### Instruction:
CREATE TABLE table_26115 (
"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 is every location for th... | SELECT "Location" FROM table_26115 WHERE "Date" = 'March 20' |
### Instruction:
CREATE TABLE table_24109 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Black Knights points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponent for black knights ... | SELECT "Opponent" FROM table_24109 WHERE "Black Knights points" = '27' |
### Instruction:
CREATE TABLE table_22032 (
"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.
-- If second leg is Newell's Old Boys, what name is first leg?
### Re... | SELECT "1st Leg" FROM table_22032 WHERE "Home (2nd leg)" = 'Newell''s Old Boys' |
### Instruction:
CREATE TABLE table_36163 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the opponent on 26 october 1889?
### Response:
| SELECT "Opponents" FROM table_36163 WHERE "Date" = '26 october 1889' |
### Instruction:
CREATE TABLE table_name_41 (
ties VARCHAR,
season VARCHAR,
losses VARCHAR,
wins VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Ties have Wins smaller than 1, and Games of 6, and Losses of 6, and a Season l... | SELECT COUNT(ties) FROM table_name_41 WHERE wins < 1 AND games = 6 AND losses = 6 AND season > 1941 |
### Instruction:
CREATE TABLE table_62646 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog number" text,
"Lyrics" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Region of the release with Catalog number 3 12046 2?
... | SELECT "Region" FROM table_62646 WHERE "Catalog number" = '3 12046 2' |
### Instruction:
CREATE TABLE table_name_65 (
entrant VARCHAR,
driver VARCHAR,
rounds VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the entrant for Gabriele Tarquini with all rounds and a JH24 JH25 Chassis?
### Response:
| SELECT entrant FROM table_name_65 WHERE rounds = "all" AND chassis = "jh24 jh25" AND driver = "gabriele tarquini" |
### Instruction:
CREATE TABLE table_203_19 (
id number,
"number" number,
"builder" text,
"type" text,
"date" number,
"length" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- did american car company or w.l. holman car company bu... | SELECT DISTINCT "builder" FROM table_203_19 WHERE "length" = 44 |
### Instruction:
CREATE TABLE table_79125 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result F-A has Opponents of rosenborg?
### Response:
| SELECT "Result F \u2013 A" FROM table_79125 WHERE "Opponents" = 'rosenborg' |
### Instruction:
CREATE TABLE table_61896 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Diane Deluna was the cyber girl in week 4 who was the cyber girl in week 2?
### Re... | SELECT "Week 2" FROM table_61896 WHERE "Week 4" = 'diane deluna' |
### 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.
-- Bar chart ... | SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY job |
### Instruction:
CREATE TABLE table_203_452 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the ... | SELECT "team" FROM table_203_452 WHERE id = 1 |
### Instruction:
CREATE TABLE table_80393 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which chassis is more recent than 1972 and has more than 0 Pts. ?
### Response:
| SELECT "Chassis" FROM table_80393 WHERE "Year" > '1972' AND "Pts." > '0' |
### Instruction:
CREATE TABLE table_57146 (
"Number & Name" text,
"Description" text,
"Livery" text,
"Owner(s)" text,
"Date" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which owner has a description of Mark 1 CK and is dated 1953?
### Response:... | SELECT "Owner(s)" FROM table_57146 WHERE "Date" = '1953' AND "Description" = 'mark 1 ck' |
### Instruction:
CREATE TABLE table_name_41 (
average VARCHAR,
team VARCHAR,
matches VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the sum of 100s that has the Team of deccan chargers, and the Match of 8, and the Average larger than 35.5... | SELECT SUM(100 AS s) FROM table_name_41 WHERE team = "deccan chargers" AND matches = 8 AND average > 35.57 |
### Instruction:
CREATE TABLE table_21272 (
"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.
-- What was the manner in... | SELECT "Manner of departure" FROM table_21272 WHERE "Outgoing manager" = 'Petrik Sander' |
### Instruction:
CREATE TABLE table_23334 (
"District" real,
"Representative" text,
"Party" text,
"Residence" text,
"Counties represented" text,
"Term ends" real,
"First Elected" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total ... | SELECT COUNT("District") FROM table_23334 WHERE "Representative" = 'Rob Teplitz' |
### Instruction:
CREATE TABLE table_name_36 (
division INTEGER,
year VARCHAR,
reg_season VARCHAR,
playoffs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smal... | SELECT AVG(division) FROM table_name_36 WHERE reg_season = "1st, western" AND playoffs = "champions" AND year < 2013 |
### Instruction:
CREATE TABLE table_23457 (
"Number" real,
"Registration" text,
"First flew" text,
"Last flew" text,
"Flying hours" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- at what location is the last flew on 11 june 2000... | SELECT "Location" FROM table_23457 WHERE "Last flew" = '11 June 2000' |
### Instruction:
CREATE TABLE table_3693 (
"Episode" real,
"Airdate" text,
"Game 1" text,
"Game 2" text,
"Game 3" text,
"Viewers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was game 3 when there were under 2.61m viewers?
### Response:... | SELECT "Game 3" FROM table_3693 WHERE "Viewers" = 'Under 2.61m' |
### Instruction:
CREATE TABLE table_204_36 (
id number,
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many wins did georgetown achieve in 1941 ?
#... | SELECT COUNT(*) FROM table_204_36 WHERE "result" = 'w' AND "date" = 1941 |
### Instruction:
CREATE TABLE table_9421 (
"Team" text,
"All Games" text,
"All Games %" real,
"Nonconference Games" text,
"Nonconference Games %" real,
"Ranked AP Nonconference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Nonconferen... | SELECT COUNT("Nonconference Games %") FROM table_9421 WHERE "Team" = 'maryland' |
### Instruction:
CREATE TABLE table_5858 (
"District" real,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was Incumbent Ed Towns elected with a district smaller than 10?
### Respo... | SELECT AVG("Elected") FROM table_5858 WHERE "Incumbent" = 'ed towns' AND "District" < '10' |
### Instruction:
CREATE TABLE table_45000 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of games that has Juan Carlos Navarro and more than 266 points?
### R... | SELECT SUM("Games") FROM table_45000 WHERE "Points" > '266' AND "Name" = 'juan carlos navarro' |
### Instruction:
CREATE TABLE table_59730 (
"Name (year commissioned)" text,
"Owner/operator" text,
"Length" text,
"Maximum diameter" text,
"From/to" text,
"Licence number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the owner operator... | SELECT "Owner/operator" FROM table_59730 WHERE "Licence number" = 'pl 59' |
### Instruction:
CREATE TABLE table_65433 (
"Date" text,
"Location" text,
"Lineup" text,
"Assist/pass" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the lineup when the assist/pass was... | SELECT "Lineup" FROM table_65433 WHERE "Assist/pass" = 'unassisted' |
### Instruction:
CREATE TABLE table_19180 (
"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.
-- How many home (2nd leg) had a 1st leg 1-1?
### Response:
| SELECT COUNT("Home (2nd leg)") FROM table_19180 WHERE "1st Leg" = '1-1' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.