instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
-- Using valid SQLite, answer the following ques... | SELECT class FROM captain GROUP BY class HAVING COUNT(*) > 2 |
### Instruction:
CREATE TABLE table_203_523 (
id number,
"state" text,
"swimsuit" number,
"interview" number,
"evening gown" number,
"average" number,
"finalists" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who scored the highest in the... | SELECT "state" FROM table_203_523 ORDER BY "swimsuit" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_23803 (
"BSE Code" text,
"Company" text,
"City" text,
"GICS Sector" text,
"Free float" text,
"Index weighting (%" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which companies have a free float of 0.2726?
#... | SELECT "Company" FROM table_23803 WHERE "Free float" = '0.2726' |
### Instruction:
CREATE TABLE table_48032 (
"Publication" text,
"Country" text,
"Nominated work" text,
"Accolade" text,
"Year" real,
"Rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the accolade for Scottish albums of the deca... | SELECT "Year" FROM table_48032 WHERE "Accolade" = 'scottish albums of the decade' |
### Instruction:
CREATE TABLE table_36777 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of attendance for games ... | SELECT COUNT("Attendance") FROM table_36777 WHERE "Home" = 'buffalo' |
### Instruction:
CREATE TABLE table_204_362 (
id number,
"episode" number,
"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 the air date of the first episode ?
#... | SELECT "airdate" FROM table_204_362 WHERE "episode" = 1 |
### Instruction:
CREATE TABLE table_name_12 (
declination___j2000__ VARCHAR,
apparent_magnitude VARCHAR,
ngc_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the declination with apparent magnitude more than 10.4 and NGC number of 5112
###... | SELECT declination___j2000__ FROM table_name_12 WHERE apparent_magnitude > 10.4 AND ngc_number = 5112 |
### Instruction:
CREATE TABLE table_58187 (
"Name" text,
"Years" text,
"Area" text,
"Authority" text,
"Decile" text,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school has a state authority and a roll of 318?
### Response:
| SELECT "Name" FROM table_58187 WHERE "Authority" = 'state' AND "Roll" = '318' |
### Instruction:
CREATE TABLE people (
name VARCHAR,
sex VARCHAR,
people_id VARCHAR
)
CREATE TABLE candidate (
people_id VARCHAR,
support_rate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name and gender of the candidate who got the h... | SELECT t1.name, t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_72855 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many viewers were there on 1august1964?
### Response:
| SELECT "Viewers (in millions)" FROM table_72855 WHERE "Broadcast date" = '1August1964' |
### Instruction:
CREATE TABLE table_203_570 (
id number,
"#" number,
"title" text,
"tpb isbn" text,
"tpb release date" text,
"tpb page number" number,
"collected material" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long was the big r... | SELECT "tpb page number" FROM table_203_570 WHERE "title" = 'the big ride' |
### Instruction:
CREATE TABLE table_24621 (
"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.
-- What's the record achieved in the gamed pl... | SELECT "Record" FROM table_24621 WHERE "Location" = 'BC Place Stadium' |
### Instruction:
CREATE TABLE table_204_140 (
id number,
"round" number,
"#" number,
"player" text,
"position" text,
"nationality" text,
"college/junior/club team (league)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many goalies did ... | SELECT COUNT(*) FROM table_204_140 WHERE "position" = 'goalie' |
### Instruction:
CREATE TABLE table_name_5 (
matches VARCHAR,
win__percentage VARCHAR,
drawn VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Drawn smaller than 24, and a Lost smaller than 17, and a Win % smaller than 31.25 had how many t... | SELECT COUNT(matches) FROM table_name_5 WHERE drawn < 24 AND lost < 17 AND win__percentage < 31.25 |
### Instruction:
CREATE TABLE table_17503 (
"Year" real,
"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.
-- How many years did Peter Mikkelsen wi... | SELECT COUNT("Year") FROM table_17503 WHERE "Mens singles" = 'Peter Mikkelsen' |
### Instruction:
CREATE TABLE table_31144 (
"Season" real,
"Winner" text,
"Runner-up" text,
"Third place" text,
"Fourth place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many seasons did Otsuka Pharmaceuticals come in third?
### Response:
| SELECT COUNT("Season") FROM table_31144 WHERE "Third place" = 'Otsuka Pharmaceuticals' |
### Instruction:
CREATE TABLE table_name_89 (
wickets INTEGER,
average VARCHAR,
matches VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest wickets when the matches is less than 5, player is jim laker and average is mor... | SELECT MAX(wickets) FROM table_name_89 WHERE matches < 5 AND player = "jim laker" AND average > 52.44 |
### Instruction:
CREATE TABLE table_19226 (
"Country/Territory" text,
"Former pageant" text,
"Last competed" real,
"New pageant" text,
"Franchise since" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country has miss universe Hungary as former... | SELECT "Country/Territory" FROM table_19226 WHERE "Former pageant" = 'Miss Universe Hungary' |
### Instruction:
CREATE TABLE table_8660 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total attendance for Candlestick Pa... | SELECT COUNT("Attendance") FROM table_8660 WHERE "Game site" = 'candlestick park' |
### Instruction:
CREATE TABLE table_1341423_36 (
party VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the party when the candidates were ernest istook (r) 69% garland mcwatters (d) 28%?
### Response:
| SELECT party FROM table_1341423_36 WHERE candidates = "Ernest Istook (R) 69% Garland McWatters (D) 28%" |
### Instruction:
CREATE TABLE table_23201 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the school that was founded in 195... | SELECT "Institution" FROM table_23201 WHERE "Founded" = '1950' |
### Instruction:
CREATE TABLE table_41356 (
"Goal" real,
"Date" text,
"Venue" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game with more than 12 goals at Pasadena?
### Response:
| SELECT "Result" FROM table_41356 WHERE "Goal" > '12' AND "Venue" = 'pasadena' |
### Instruction:
CREATE TABLE table_25060 (
"Name" text,
"#" real,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text,
"High School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was rickie winslow's numbe... | SELECT MAX("#") FROM table_25060 WHERE "Name" = 'Rickie Winslow' |
### Instruction:
CREATE TABLE table_19245 (
"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.
-- How many incumbents for the district of South Carolina ... | SELECT COUNT("Incumbent") FROM table_19245 WHERE "District" = 'South Carolina 5' |
### Instruction:
CREATE TABLE table_62789 (
"Title" text,
"Series" text,
"Director" text,
"Characters" text,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What series has dan povenmire as the director, with museum scream as the title... | SELECT "Series" FROM table_62789 WHERE "Director" = 'dan povenmire' AND "Title" = 'museum scream' |
### Instruction:
CREATE TABLE table_39310 (
"Team #1" text,
"Agg." text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich Team#1 has 70 - 59 as a 1st leg?
### Response:
| SELECT "Team #1" FROM table_39310 WHERE "1st leg" = '70 - 59' |
### Instruction:
CREATE TABLE table_19042 (
"Episode" text,
"Original Air Date" text,
"Viewers (millions)" text,
"Presenter" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What episode of the Pride of Britain Awards had an audience ... | SELECT "Episode" FROM table_19042 WHERE "Viewers (millions)" = '6.06' |
### Instruction:
CREATE TABLE table_53757 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 2nd leg where the team 2 was budoni (sardinia)?
### Response:
| SELECT "2nd leg" FROM table_53757 WHERE "Team 2" = 'budoni (sardinia)' |
### Instruction:
CREATE TABLE table_60492 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country had a t4 place and scored 66-73=139?
### Response:
| SELECT "Country" FROM table_60492 WHERE "Place" = 't4' AND "Score" = '66-73=139' |
### Instruction:
CREATE TABLE table_77704 (
"Class" text,
"W.A." text,
"Quantity" real,
"Date" text,
"LNER Class" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What WA has a LNER Class of n13 and 10?
### Response:
| SELECT "W.A." FROM table_77704 WHERE "Quantity" = '10' AND "LNER Class" = 'n13' |
### Instruction:
CREATE TABLE table_59526 (
"Result" text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest round to have a record of 4-... | SELECT MIN("Round") FROM table_59526 WHERE "Record" = '4-0' |
### Instruction:
CREATE TABLE table_81 (
"Particulars and Characteristics" text,
"Shivalik Zone" text,
"Mid-Hill Zone" text,
"High hill zone" text,
"Trance- n Himalaya Zone" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For mid-hill zone what is th... | SELECT "Mid-Hill Zone" FROM table_81 WHERE "Particulars and Characteristics" = 'Altitude' |
### Instruction:
CREATE TABLE table_11397 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mean evening gown number when the average is 8.686?
### Response... | SELECT AVG("Evening Gown") FROM table_11397 WHERE "Average" = '8.686' |
### Instruction:
CREATE TABLE table_55137 (
"Year" real,
"Award" text,
"Category" text,
"Nominated work" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which category was the berlin file up to win in 2013?
### Response:
| SELECT "Category" FROM table_55137 WHERE "Year" = '2013' AND "Nominated work" = 'the berlin file' |
### Instruction:
CREATE TABLE table_48193 (
"Test flight" text,
"Date" text,
"Speed" text,
"Altitude" text,
"Crew" text,
"Duration" text,
"Comment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Duration, when Test Flight is Taxi Tes... | SELECT "Duration" FROM table_48193 WHERE "Test flight" = 'taxi test #2' |
### Instruction:
CREATE TABLE table_204_427 (
id number,
"creature (other planes)" text,
"page" text,
"other appearances" text,
"variants" text,
"description" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many creatures are included at leas... | SELECT COUNT("creature (other planes)") FROM table_204_427 WHERE "page" >= 42 |
### Instruction:
CREATE TABLE table_65238 (
"Title" text,
"Series" text,
"Characters" text,
"Production Num." real,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest production number for the LT series with the Dumb ... | SELECT MIN("Production Num.") FROM table_65238 WHERE "Series" = 'lt' AND "Title" = 'dumb patrol' |
### Instruction:
CREATE TABLE table_62423 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the republican Incumbent for Pennsylvania 9?
### Response:
| SELECT "Incumbent" FROM table_62423 WHERE "Party" = 'republican' AND "District" = 'pennsylvania 9' |
### Instruction:
CREATE TABLE table_23299 (
"#" real,
"Player" text,
"Age" real,
"Australian Open" real,
"French Open" real,
"Wimbledon" real,
"US Open" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At what age did Roy Emerson complete the ... | SELECT MAX("Age") FROM table_23299 WHERE "Player" = 'Roy Emerson' |
### Instruction:
CREATE TABLE table_name_69 (
clock_multiplier VARCHAR,
clock_speed VARCHAR,
model_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Clock Multiplier has a Clock Speed of 1.6 ghz, and a Model Number of c7-m 764?
### Response:
| SELECT clock_multiplier FROM table_name_69 WHERE clock_speed = "1.6 ghz" AND model_number = "c7-m 764" |
### Instruction:
CREATE TABLE table_26552 (
"No. in series" 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.
-- When 'body damage' is the title how... | SELECT COUNT("Original air date") FROM table_26552 WHERE "Title" = 'Body Damage' |
### Instruction:
CREATE TABLE table_27501 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote episode number 149 in the s... | SELECT "Written by" FROM table_27501 WHERE "No. in series" = '149' |
### Instruction:
CREATE TABLE table_70431 (
"Representative" text,
"Years" text,
"State" text,
"Party" text,
"Lifespan" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Lifespan when the Representative is Theodore F. Kluttz?
### Response... | SELECT "Lifespan" FROM table_70431 WHERE "Representative" = 'theodore f. kluttz' |
### Instruction:
CREATE TABLE table_203_180 (
id number,
"#" number,
"weekend end date" text,
"film" text,
"weekend gross (millions)" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many films grossed over five million in their ... | SELECT COUNT(DISTINCT "film") FROM table_203_180 WHERE "weekend gross (millions)" > 5 |
### Instruction:
CREATE TABLE table_8963 (
"Tournament" text,
"Country" text,
"Location" text,
"Began" real,
"Court surface" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the earliest began when the court surface is clay in hamburg?
### R... | SELECT MIN("Began") FROM table_8963 WHERE "Court surface" = 'clay' AND "Location" = 'hamburg' |
### Instruction:
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
-- Using valid SQLite, answer the following question... | SELECT COUNT(*) FROM tryout WHERE decision = 'yes' |
### Instruction:
CREATE TABLE table_65107 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What nation had a moving from of espany... | SELECT "Nat." FROM table_65107 WHERE "Moving from" = 'espanyol' |
### Instruction:
CREATE TABLE table_50638 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the location of the fight when Gassaway fought kevin knabjia... | SELECT "Location" FROM table_50638 WHERE "Opponent" = 'kevin knabjian' |
### Instruction:
CREATE TABLE table_4779 (
"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 which date was Essendon the h... | SELECT "Date" FROM table_4779 WHERE "Home team" = 'essendon' |
### Instruction:
CREATE TABLE table_1139087_2 (
grand_prix VARCHAR,
constructor VARCHAR,
fastest_lap VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many events did nigel mansell drive the fastest and a mclaren - honda win?
### Response:
| SELECT COUNT(grand_prix) FROM table_1139087_2 WHERE constructor = "McLaren - Honda" AND fastest_lap = "Nigel Mansell" |
### Instruction:
CREATE TABLE table_52502 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the show with the production ... | SELECT "Directed by" FROM table_52502 WHERE "Production code" = 'k2708' |
### Instruction:
CREATE TABLE table_9850 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" text,
"Song" text,
"Artist" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the artist that issued the single on 23 February?
#... | SELECT "Artist" FROM table_9850 WHERE "Issue Date(s)" = '23 february' |
### Instruction:
CREATE TABLE table_8797 (
"Department" text,
"Creation" text,
"Order of succession" text,
"2007 Budget in billions of dollars" real,
"Employees (2007)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the order of succession ... | SELECT "Order of succession" FROM table_8797 WHERE "Department" = 'education' |
### Instruction:
CREATE TABLE table_43305 (
"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 points less than 6 in a year after 1969?
### Response:
| SELECT "Team" FROM table_43305 WHERE "Points" < '6' AND "Year" > '1969' |
### Instruction:
CREATE TABLE table_62007 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What kind of the Winning driver has a Circuit of sai... | SELECT "Winning driver" FROM table_62007 WHERE "Circuit" = 'saint-raphaël' |
### Instruction:
CREATE TABLE table_name_56 (
original_title VARCHAR,
year VARCHAR,
winner_and_nominees VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the orignal title for the winner and nominee, Breaking the Waves, in 1996 (11th)?
### Respon... | SELECT original_title FROM table_name_56 WHERE year = "1996 (11th)" AND winner_and_nominees = "breaking the waves" |
### Instruction:
CREATE TABLE table_17945 (
"County" text,
"Kerry%" text,
"Kerry#" real,
"Bush%" text,
"Bush#" real,
"Others%" text,
"Others#" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In cook county Kerry# is?
### Response:
| SELECT "Kerry#" FROM table_17945 WHERE "County" = 'Cook' |
### Instruction:
CREATE TABLE table_40427 (
"Season" text,
"Conference" text,
"Division" text,
"Finish" text,
"Wins" text,
"Losses" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Conference for the 1967 68 season?
### Response:
| SELECT "Conference" FROM table_40427 WHERE "Season" = '1967–68' |
### Instruction:
CREATE TABLE table_18156 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the candidates in the district that first el... | SELECT "Candidates" FROM table_18156 WHERE "First elected" = '1980' |
### Instruction:
CREATE TABLE table_52324 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the nba draft for al-farouq aminu?
### Response:
| SELECT "NBA Draft" FROM table_52324 WHERE "Player" = 'al-farouq aminu' |
### Instruction:
CREATE TABLE table_1302 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of pictorials for 5-8... | SELECT COUNT("Pictorials") FROM table_1302 WHERE "Date" = '5-85' |
### Instruction:
CREATE TABLE table_52159 (
"Track" real,
"Recorded" text,
"Original Issue" text,
"Song Title" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the recorder has a Track more than 11 with a time 3:06
### Response:... | SELECT "Recorded" FROM table_52159 WHERE "Track" > '11' AND "Time" = '3:06' |
### Instruction:
CREATE TABLE table_name_44 (
gp_gs VARCHAR,
avg_g VARCHAR,
receptions VARCHAR,
long VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the gp-gs when the receptions is more than 4, long is 55 and avg/g is 151?
### Response:
| SELECT gp_gs FROM table_name_44 WHERE receptions > 4 AND long = 55 AND avg_g = 151 |
### Instruction:
CREATE TABLE table_58783 (
"Name" text,
"Bodyweight" real,
"Snatch" text,
"Clean & Jerk" text,
"Total (kg)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total bodyweight of everyone that has a Snatch of 153.0?
### Re... | SELECT SUM("Bodyweight") FROM table_58783 WHERE "Snatch" = '153.0' |
### Instruction:
CREATE TABLE table_18312 (
"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.
-- How many sitting politicians were originally elected in... | SELECT COUNT("Incumbent") FROM table_18312 WHERE "First elected" = '1972' |
### Instruction:
CREATE TABLE table_name_40 (
total_region VARCHAR,
eidsvold VARCHAR,
biggenden VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Total Region number of hte one that has Eidsvold at 970 and Biggenden larger than 1,570?
### Resp... | SELECT COUNT(total_region) FROM table_name_40 WHERE eidsvold = 970 AND biggenden > 1 OFFSET 570 |
### Instruction:
CREATE TABLE Documents_to_be_destroyed (
Destroyed_by_Employee_ID VARCHAR,
Destruction_Authorised_by_Employee_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the ids of all employees who have either destroyed a document or made an aut... | SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed |
### Instruction:
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT Class, COUNT(*) FROM race GROUP BY Class |
### Instruction:
CREATE TABLE table_name_87 (
college_junior_club_team__league_ VARCHAR,
round VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which College/Junior/Club Team (League) did the player julien cayer who was selected before roun... | SELECT college_junior_club_team__league_ FROM table_name_87 WHERE round > 3 AND player = "julien cayer" |
### Instruction:
CREATE TABLE table_name_22 (
date_of_vacancy VARCHAR,
manner_of_departure VARCHAR,
outgoing_manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I wan the date of vacancy for departure of resigned and outgoing manager of gordon wylde
... | SELECT date_of_vacancy FROM table_name_22 WHERE manner_of_departure = "resigned" AND outgoing_manager = "gordon wylde" |
### Instruction:
CREATE TABLE table_44999 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total number of points that the rank is less than 5 and has Tiago Splitter?
### Res... | SELECT COUNT("Points") FROM table_44999 WHERE "Name" = 'tiago splitter' AND "Rank" < '5' |
### Instruction:
CREATE TABLE table_67052 (
"Quarter" text,
"Score" text,
"Club" text,
"Opponent" text,
"Year" text,
"Round" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a Round of 12?
### Response:
| SELECT "Opponent" FROM table_67052 WHERE "Round" = '12' |
### Instruction:
CREATE TABLE table_15773 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was there no competitio... | SELECT "Year" FROM table_15773 WHERE "Mixed doubles" = 'no competition' |
### Instruction:
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
-- Using valid SQLite, answer the fol... | SELECT Country, COUNT(*) FROM climber GROUP BY Country |
### Instruction:
CREATE TABLE table_10376 (
"Rank" text,
"Name" text,
"Height ft / m" text,
"Floors" real,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the name for rank of 27= and years before 1964
### Response:
| SELECT "Name" FROM table_10376 WHERE "Rank" = '27=' AND "Year" < '1964' |
### Instruction:
CREATE TABLE table_64013 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- After pick number 158, what is the next round a USC player was picked?
### Response:
| SELECT MIN("Round") FROM table_64013 WHERE "School" = 'usc' AND "Pick" > '158' |
### Instruction:
CREATE TABLE table_73944 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many public is there for the couple that ... | SELECT MAX("Public") FROM table_73944 WHERE "Result" = 'Eliminated' |
### Instruction:
CREATE TABLE table_15944_5 (
specific_impulse__s_ INTEGER,
effective_exhaust_velocity__m_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum specific impulse with a 4423 m/s effective exhaust velocity?
### Response:
| SELECT MAX(specific_impulse__s_) FROM table_15944_5 WHERE effective_exhaust_velocity__m_s_ = 4423 |
### Instruction:
CREATE TABLE table_48936 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Against has a Date of 30/05/1981?
### Response:
| SELECT COUNT("Against") FROM table_48936 WHERE "Date" = '30/05/1981' |
### Instruction:
CREATE TABLE table_31531 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of school/club team of barton cc (ks)?... | SELECT "Nationality" FROM table_31531 WHERE "School/Club Team" = 'barton cc (ks)' |
### Instruction:
CREATE TABLE table_39643 (
"Date" text,
"2nd Bundesliga 16th" text,
"3rd Liga 3rd" text,
"Game 1" text,
"Game 2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has Liga 3rd of Dynamo Dresden?
### Response:
| SELECT "Date" FROM table_39643 WHERE "3rd Liga 3rd" = 'dynamo dresden' |
### Instruction:
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT * FROM products WHERE price BETWEEN 60 AND 120 |
### Instruction:
CREATE TABLE table_10110 (
"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 team played Essendon?
##... | SELECT "Home team" FROM table_10110 WHERE "Away team" = 'essendon' |
### Instruction:
CREATE TABLE table_204_312 (
id number,
"stage" text,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- paul wellens won stage 13 . who won the next stage ?
#... | SELECT "winner" FROM table_204_312 WHERE "stage" = 13 + 1 |
### Instruction:
CREATE TABLE table_26930 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Wildcats points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all results from the 3-3 scoring gam... | SELECT "Result" FROM table_26930 WHERE "Record" = '3-3' |
### Instruction:
CREATE TABLE table_45491 (
"Company name" text,
"Network brand name" text,
"Country" text,
"Accreditation type" text,
"Accreditation level" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the accreditation le... | SELECT "Accreditation level" FROM table_45491 WHERE "Network brand name" = 'movistar' |
### Instruction:
CREATE TABLE table_75551 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week that shows a game record of 0 1?
#... | SELECT AVG("Week") FROM table_75551 WHERE "Record" = '0–1' |
### Instruction:
CREATE TABLE table_14292 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country of origin for the player who plays on Tondena 65 Rhum?
... | SELECT "Country of origin*" FROM table_14292 WHERE "PBA team" = 'tondena 65 rhum' |
### Instruction:
CREATE TABLE table_203_134 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of players who tied for fourth , seventh , and... | SELECT COUNT("player") FROM table_203_134 WHERE "place" IN (4, 7, 10) |
### Instruction:
CREATE TABLE table_51757 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the event for the year less than 1913 with the position of 2nd?
### Response... | SELECT "Event" FROM table_51757 WHERE "Year" < '1913' AND "Position" = '2nd' |
### Instruction:
CREATE TABLE table_19030 (
"Year" real,
"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.
-- who is the the mens doubles with year... | SELECT "Mens doubles" FROM table_19030 WHERE "Year" = '1978' |
### Instruction:
CREATE TABLE table_74135 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the opponent where the game i... | SELECT "Opponent" FROM table_74135 WHERE "Game" = '14' |
### Instruction:
CREATE TABLE table_39282 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points have an Opponent of vancouver canucks?
### Response:
| SELECT AVG("Points") FROM table_39282 WHERE "Opponent" = 'vancouver canucks' |
### Instruction:
CREATE TABLE table_67792 (
"Date" text,
"Venue" text,
"Score" text,
"Competition" text,
"Match report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the score 1-2 at Athens Olympic Stadium?
### Response:
| SELECT "Date" FROM table_67792 WHERE "Score" = '1-2' AND "Venue" = 'athens olympic stadium' |
### Instruction:
CREATE TABLE table_2840500_3 (
player VARCHAR,
nhl_team VARCHAR,
position VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the person that plays left wing and is from canada that plays on the st. louis blues... | SELECT player FROM table_2840500_3 WHERE position = "Left Wing" AND nationality = "Canada" AND nhl_team = "St. Louis Blues" |
### Instruction:
CREATE TABLE table_203_330 (
id number,
"year of election" number,
"candidates elected" number,
"# of seats available" number,
"# of votes" number,
"% of popular vote" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many cand... | SELECT "candidates elected" FROM table_203_330 WHERE "year of election" = 1990 |
### Instruction:
CREATE TABLE table_68326 (
"Year" text,
"Human Resources & Operations" text,
"Local Affairs" text,
"Academic & University Affairs" text,
"External Affairs" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was in local affairs in 2... | SELECT "Local Affairs" FROM table_68326 WHERE "Year" = '2012-2013' |
### Instruction:
CREATE TABLE table_10461 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text,
"Boxscore" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a Score of 2 5?
### Respons... | SELECT "Opponent" FROM table_10461 WHERE "Score" = '2–5' |
### Instruction:
CREATE TABLE table_3301 (
"Season" real,
"Champion" text,
"Second" text,
"Third" text,
"Team Champion" text,
"National Trophy/Rookie" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If second is Sergey Sirotkin, what is the third... | SELECT "Third" FROM table_3301 WHERE "Second" = 'Sergey Sirotkin' |
### Instruction:
CREATE TABLE table_204_449 (
id number,
"no" number,
"episode" text,
"title" text,
"original airdate" text,
"viewers" number,
"nightly\nrank" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many viewers watched the seas... | SELECT "viewers" FROM table_204_449 ORDER BY "episode" DESC LIMIT 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.