instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_8241 (
"Team" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Overall" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many silver when bronze is 25 and overall is less than 67?
### Response:
|
SELECT SUM("Silver") FROM table_8241 WHERE "Bronze" = '25' AND "Overall" < '67'
|
### Instruction:
CREATE TABLE table_6036 (
"City" text,
"State" text,
"School" text,
"Colony Name" text,
"Date Founded" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which City has a State of massachusetts, and a School of northeastern university?
### Response:
|
SELECT "City" FROM table_6036 WHERE "State" = 'massachusetts' AND "School" = 'northeastern university'
|
### Instruction:
CREATE TABLE table_58903 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in Final" text,
"Score in Final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Opponent in Final is 'Guy Forget'?
### Response:
|
SELECT "Date" FROM table_58903 WHERE "Opponent in Final" = 'guy forget'
|
### Instruction:
CREATE TABLE table_12095 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the place of the player with a 70-66-67=203 score?
### Response:
|
SELECT "Place" FROM table_12095 WHERE "Score" = '70-66-67=203'
|
### Instruction:
CREATE TABLE table_23918 (
"Year" text,
"Head Coach" text,
"Regular Season Record (W-L)" text,
"NEC Record" text,
"Standing" text,
"NEC Tournament Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the year for t-10th
### Response:
|
SELECT "Year" FROM table_23918 WHERE "Standing" = 'T-10th'
|
### Instruction:
CREATE TABLE table_42796 (
"Name" text,
"Position" text,
"Number" real,
"Season" text,
"Acquisition via" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of the acquisition of import in the 2002 season?
### Response:
|
SELECT "Number" FROM table_42796 WHERE "Acquisition via" = 'import' AND "Season" = '2002'
|
### Instruction:
CREATE TABLE table_48846 (
"Result" text,
"Opponent" text,
"Method" text,
"Date" text,
"Round" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has a Method of ko, and a Date of 1958?
### Response:
|
SELECT MIN("Round") FROM table_48846 WHERE "Method" = 'ko' AND "Date" = '1958'
|
### Instruction:
CREATE TABLE table_203_269 (
id number,
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last competition they competed in ?
### Response:
|
SELECT "competition" FROM table_203_269 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_2 (
date INTEGER,
label VARCHAR,
catalog VARCHAR,
format VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the earliest date for the album that had a catalog number of 3645, was formatted as a cd and was under the luaka bop label?
### Response:
|
SELECT MIN(date) FROM table_name_2 WHERE catalog = "3645" AND format = "cd" AND label = "luaka bop"
|
### Instruction:
CREATE TABLE table_name_98 (
f_laps VARCHAR,
final_placing VARCHAR,
podiums VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which F/Laps has Podiums of 1, and a Season of 2000, and a Final Placing of nc?
### Response:
|
SELECT f_laps FROM table_name_98 WHERE podiums = "1" AND season = 2000 AND final_placing = "nc"
|
### Instruction:
CREATE TABLE table_17253 (
"Station Number" text,
"District" text,
"Location" text,
"Type" text,
"Appliances" text,
"Registrations" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are all the type where location is st ives, cambridgeshire
### Response:
|
SELECT "Type" FROM table_17253 WHERE "Location" = 'St Ives, Cambridgeshire'
|
### Instruction:
CREATE TABLE table_name_37 (
wins INTEGER,
poles VARCHAR,
season VARCHAR,
podiums VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Wins, when Season is 2011, when Podiums is 1, and when Poles is less than 0?
### Response:
|
SELECT MIN(wins) FROM table_name_37 WHERE season = "2011" AND podiums = 1 AND poles < 0
|
### Instruction:
CREATE TABLE table_48967 (
"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 had a 2nd leg score of 88-83?
### Response:
|
SELECT "Team #1" FROM table_48967 WHERE "2nd leg" = '88-83'
|
### Instruction:
CREATE TABLE table_79511 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Opponent on November 27, 2005?
### Response:
|
SELECT "Opponent" FROM table_79511 WHERE "Date" = 'november 27, 2005'
|
### Instruction:
CREATE TABLE table_204_418 (
id number,
"date" text,
"opponent" text,
"score" text,
"overall record" text,
"scba record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- on how many dates was the sum of the scores at most 10 ?
### Response:
|
SELECT COUNT("date") FROM table_204_418 WHERE "score" + "score" <= 10
|
### Instruction:
CREATE TABLE table_name_34 (
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of participants in 2013 when there were more than 5 participants in 2010, less than 4 participants in 2012 and country was germany?
### Response:
|
SELECT MIN(2013) FROM table_name_34 WHERE 2010 > 5 AND country = "germany" AND 2012 < 4
|
### Instruction:
CREATE TABLE table_17247 (
"Full Name" text,
"Nickname" text,
"Gender" text,
"Weight at birth" text,
"Meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of meaning where full name is chidinma anulika?
### Response:
|
SELECT COUNT("Meaning") FROM table_17247 WHERE "Full Name" = 'Chidinma Anulika'
|
### Instruction:
CREATE TABLE table_name_63 (
draw INTEGER,
place VARCHAR,
points VARCHAR,
artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Draw number of the song by Artist of 'Loudest Whisper' with 68 or less Points with a place of 9 or larger?
### Response:
|
SELECT AVG(draw) FROM table_name_63 WHERE points < 68 AND artist = "loudest whisper" AND place > 9
|
### Instruction:
CREATE TABLE table_8723 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Country of the Player with a Score of 75-70-74=219?
### Response:
|
SELECT "Country" FROM table_8723 WHERE "Score" = '75-70-74=219'
|
### Instruction:
CREATE TABLE table_68885 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team did Johnson (11-7) play for?
### Response:
|
SELECT "Opponent" FROM table_68885 WHERE "Loss" = 'johnson (11-7)'
|
### Instruction:
CREATE TABLE table_21369 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the area is 34.73, what is the census ranking?
### Response:
|
SELECT "Census Ranking" FROM table_21369 WHERE "Area km 2" = '34.73'
|
### Instruction:
CREATE TABLE table_3251 (
"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.
-- If the writer is Mark Fink, who is the director?
### Response:
|
SELECT "Directed by" FROM table_3251 WHERE "Written by" = 'Mark Fink'
|
### Instruction:
CREATE TABLE table_47498 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is T8 Place Player Scott Hoch's Score?
### Response:
|
SELECT "Score" FROM table_47498 WHERE "Place" = 't8' AND "Player" = 'scott hoch'
|
### Instruction:
CREATE TABLE table_200_0 (
id number,
"year" number,
"title" text,
"chart-positions\nuk" number,
"chart-positions\nus" number,
"chart-positions\nnl" number,
"comments" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the earliest album ?
### Response:
|
SELECT "title" FROM table_200_0 ORDER BY "year" LIMIT 1
|
### Instruction:
CREATE TABLE table_18555 (
"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 party does the incumbent from the Ohio 7 district belong to?
### Response:
|
SELECT "Party" FROM table_18555 WHERE "District" = 'Ohio 7'
|
### Instruction:
CREATE TABLE table_69089 (
"Year" real,
"Date" text,
"Title" text,
"Format(s)" text,
"Award Description(s)" text,
"Result(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which is the average year with the date of February 24?
### Response:
|
SELECT AVG("Year") FROM table_69089 WHERE "Date" = 'february 24'
|
### Instruction:
CREATE TABLE table_31822 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the venue for record of 2-7
### Response:
|
SELECT "Venue" FROM table_31822 WHERE "Record" = '2-7'
|
### Instruction:
CREATE TABLE table_17402 (
"Vendor and type" text,
"Models" text,
"NetFlow Version" text,
"Implementation" text,
"Comments" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many netflow version are there when the vendor and type is enterasys switches?
### Response:
|
SELECT COUNT("NetFlow Version") FROM table_17402 WHERE "Vendor and type" = 'Enterasys Switches'
|
### Instruction:
CREATE TABLE table_70153 (
"Surface" text,
"Event" text,
"Time ( h : m : s )" text,
"Date" text,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date that has 1:01:42?
### Response:
|
SELECT "Date" FROM table_70153 WHERE "Time ( h : m : s )" = '1:01:42'
|
### Instruction:
CREATE TABLE table_11874 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what venue was the 1978 FIFA world cup qualification played in?
### Response:
|
SELECT "Venue" FROM table_11874 WHERE "Competition" = '1978 fifa world cup qualification'
|
### Instruction:
CREATE TABLE journal (
journal_id number,
date text,
theme text,
sales number
)
CREATE TABLE journal_committee (
editor_id number,
journal_id number,
work_type text
)
CREATE TABLE editor (
editor_id number,
name text,
age number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the names of editors in ascending order of age.
### Response:
|
SELECT name FROM editor ORDER BY age
|
### Instruction:
CREATE TABLE table_39396 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What frequency has call sign w228bg?
### Response:
|
SELECT "Frequency MHz" FROM table_39396 WHERE "Call sign" = 'w228bg'
|
### Instruction:
CREATE TABLE table_4209 (
"Player" text,
"Starts" real,
"Cuts made" real,
"Best finish" text,
"Money list rank" text,
"Earnings ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the best finish for 206 on the money list?
### Response:
|
SELECT "Best finish" FROM table_4209 WHERE "Money list rank" = '206'
|
### Instruction:
CREATE TABLE climber (
climber_id number,
name text,
country text,
time text,
points number,
mountain_id number
)
CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the highest mountain?
### Response:
|
SELECT name FROM mountain ORDER BY height DESC LIMIT 1
|
### Instruction:
CREATE TABLE Plays_games (
gameid VARCHAR
)
CREATE TABLE Video_games (
gameid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show all game names played by at least 1000 hours.
### Response:
|
SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING SUM(hours_played) >= 1000
|
### Instruction:
CREATE TABLE table_7980 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which location was the method decision (split)?
### Response:
|
SELECT "Location" FROM table_7980 WHERE "Method" = 'decision (split)'
|
### Instruction:
CREATE TABLE DEPARTMENT (
DName VARCHAR,
DNO VARCHAR
)
CREATE TABLE MINOR_IN (
DNO VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of the department that has the biggest number of students minored in?
### Response:
|
SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_18655 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who ran for office at the Georgia 4 district in this election?
### Response:
|
SELECT "Candidates" FROM table_18655 WHERE "District" = 'Georgia 4'
|
### Instruction:
CREATE TABLE table_8896 (
"Heat" real,
"Lane" real,
"Name" text,
"Country" text,
"Mark" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average lane racheal nachula has when the heat is less than 2?
### Response:
|
SELECT AVG("Lane") FROM table_8896 WHERE "Heat" < '2' AND "Name" = 'racheal nachula'
|
### Instruction:
CREATE TABLE table_38422 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points have a Drawn larger than 0, and a Lost larger than 1?
### Response:
|
SELECT AVG("Points") FROM table_38422 WHERE "Drawn" > '0' AND "Lost" > '1'
|
### Instruction:
CREATE TABLE table_9568 (
"Res." 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.
-- How many rounds was the fight at UFC 34?
### Response:
|
SELECT SUM("Round") FROM table_9568 WHERE "Event" = 'ufc 34'
|
### Instruction:
CREATE TABLE table_6027 (
"Year" real,
"Round" text,
"Series" text,
"Games covered" text,
"Play-by-play" text,
"Colour commentator (s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Games covered had a round of divisional finals?
### Response:
|
SELECT "Games covered" FROM table_6027 WHERE "Round" = 'divisional finals'
|
### Instruction:
CREATE TABLE table_24364 (
"Type of Record" text,
"Attendance" real,
"Date/Year" text,
"Stadium" text,
"Result/Games" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For what year is the type of record 'total attendance-regular season?
### Response:
|
SELECT "Date/Year" FROM table_24364 WHERE "Type of Record" = 'Total Attendance-Regular season'
|
### Instruction:
CREATE TABLE table_13336122_3 (
title VARCHAR,
directed_by VARCHAR,
no_in_series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the title of the episode directed by David von Ancken, with a episode number bigger than 16.0?
### Response:
|
SELECT title FROM table_13336122_3 WHERE directed_by = "David Von Ancken" AND no_in_series > 16.0
|
### Instruction:
CREATE TABLE table_35286 (
"Date" text,
"Opponents" text,
"Venue" text,
"Result" text,
"Score F\u2013A" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Opponents of sheffield wednesday had what date?
### Response:
|
SELECT "Date" FROM table_35286 WHERE "Opponents" = 'sheffield wednesday'
|
### Instruction:
CREATE TABLE table_57524 (
"Class" text,
"Type" text,
"Introduced" text,
"Fleet Size" real,
"Numbers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fleet size of the Vanguard 0-6-0dh class?
### Response:
|
SELECT "Fleet Size" FROM table_57524 WHERE "Class" = 'vanguard 0-6-0dh'
|
### Instruction:
CREATE TABLE table_56996 (
"Round" real,
"Overall" real,
"Player" text,
"Nationality" text,
"Club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the overall pick for Doug Sproule of the United States?
### Response:
|
SELECT "Overall" FROM table_56996 WHERE "Nationality" = 'united states' AND "Player" = 'doug sproule'
|
### Instruction:
CREATE TABLE table_name_19 (
district VARCHAR,
reserved_for___sc___st__none_ VARCHAR,
constituency_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the District that has a Reserved for ( SC / ST /None) of none and a Constituency number of 242?
### Response:
|
SELECT district FROM table_name_19 WHERE reserved_for___sc___st__none_ = "none" AND constituency_number = "242"
|
### Instruction:
CREATE TABLE table_204_749 (
id number,
"courthouse" text,
"city" text,
"street address" text,
"jurisdiction" text,
"dates of use" text,
"named for" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where was the first court house built ?
### Response:
|
SELECT "city" FROM table_204_749 ORDER BY "dates of use" LIMIT 1
|
### Instruction:
CREATE TABLE table_59940 (
"Spaceport" text,
"Launch complex" text,
"Launcher" text,
"Spacecraft" text,
"Flights" text,
"Years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the launcher vehicle for Apollo-Soyuz?
### Response:
|
SELECT "Launcher" FROM table_59940 WHERE "Spacecraft" = 'apollo-soyuz'
|
### Instruction:
CREATE TABLE table_10234 (
"Date" text,
"Venue" text,
"Opponent" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of game played on 10-05-2012?
### Response:
|
SELECT "Result" FROM table_10234 WHERE "Date" = '10-05-2012'
|
### Instruction:
CREATE TABLE table_name_37 (
call_sign VARCHAR,
tail_code VARCHAR,
weapon_systems_officer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Call Sign that has a Tail Code of oy belong to Weapon Systems Officer Capt Charles B. Debellevue?
### Response:
|
SELECT call_sign FROM table_name_37 WHERE tail_code = "oy" AND weapon_systems_officer = "capt charles b. debellevue"
|
### Instruction:
CREATE TABLE table_39972 (
"Year" real,
"Venue" text,
"Winner" text,
"Country" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Country of england, and a Year larger than 1971?
### Response:
|
SELECT "Score" FROM table_39972 WHERE "Country" = 'england' AND "Year" > '1971'
|
### Instruction:
CREATE TABLE table_49709 (
"Exit Date" text,
"Pos." text,
"Player" text,
"To club" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Teerasil Dangda who had a to club of released plays what position?
### Response:
|
SELECT "Pos." FROM table_49709 WHERE "To club" = 'released' AND "Player" = 'teerasil dangda'
|
### Instruction:
CREATE TABLE table_203_501 (
id number,
"title" text,
"genre" text,
"sub\u00addivisions" text,
"libretto" text,
"premiere date" text,
"place, theatre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the year of the last title ?
### Response:
|
SELECT MAX("premiere date") FROM table_203_501
|
### Instruction:
CREATE TABLE table_204_500 (
id number,
"year" number,
"title" text,
"peak chart positions\nus country" number,
"peak chart positions\nus" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which album produced the most singles ?
### Response:
|
SELECT "album" FROM table_204_500 GROUP BY "album" ORDER BY COUNT("title") DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_6504 (
"Round" 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 is the position Bill Campbell played before round 6?
### Response:
|
SELECT "Position" FROM table_6504 WHERE "Round" < '6' AND "Player" = 'bill campbell'
|
### Instruction:
CREATE TABLE table_204_576 (
id number,
"year" number,
"best" text,
"location" text,
"date" text,
"world rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who had the best time ostrava or berlin ?
### Response:
|
SELECT "location" FROM table_204_576 WHERE "location" IN ('ostrava', 'berlin') ORDER BY "best" LIMIT 1
|
### Instruction:
CREATE TABLE table_name_47 (
scottish_cup INTEGER,
position VARCHAR,
league_cup VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the scottish cup of the forward player with less than 2 league cups and a total greater than 6?
### Response:
|
SELECT SUM(scottish_cup) FROM table_name_47 WHERE league_cup < 2 AND total > 6 AND position = "forward"
|
### Instruction:
CREATE TABLE table_203_551 (
id number,
"goal" 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.
-- what is the total number of international goals d m szalai has made ?
### Response:
|
SELECT COUNT("goal") FROM table_203_551
|
### Instruction:
CREATE TABLE table_3543 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Kent State University's are there?
### Response:
|
SELECT COUNT("Location") FROM table_3543 WHERE "Institution" = 'Kent State University'
|
### Instruction:
CREATE TABLE table_738 (
"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's the party with incumbent being herbert covington bonner
### Response:
|
SELECT "Party" FROM table_738 WHERE "Incumbent" = 'Herbert Covington Bonner'
|
### Instruction:
CREATE TABLE table_name_63 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 1997, when 1996 is '1R', when 1990 is '2R', and when 1991 is 'F'?
### Response:
|
SELECT 1997 FROM table_name_63 WHERE 1996 = "1r" AND 1990 = "2r" AND 1991 = "f"
|
### Instruction:
CREATE TABLE table_69850 (
"Name" text,
"Party" text,
"Province" text,
"Term expires" real,
"Term of office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times did Ken Wright expired in North Western?
### Response:
|
SELECT COUNT("Term expires") FROM table_69850 WHERE "Province" = 'north western' AND "Name" = 'ken wright'
|
### Instruction:
CREATE TABLE table_77722 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the decision of the Kings game when Chicago was the visiting team?
### Response:
|
SELECT "Decision" FROM table_77722 WHERE "Visitor" = 'chicago'
|
### Instruction:
CREATE TABLE table_203_607 (
id number,
"catalogue number" text,
"artist" text,
"release title" text,
"format" text,
"release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of titles coil released on 7 ' vinyl ?
### Response:
|
SELECT COUNT("release title") FROM table_203_607 WHERE "format" = '7" vinyl'
|
### Instruction:
CREATE TABLE table_203_378 (
id number,
"against" text,
"played" number,
"won" number,
"drawn" number,
"lost" number,
"win %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of losses they have against france ?
### Response:
|
SELECT "lost" FROM table_203_378 WHERE "against" = 'france'
|
### Instruction:
CREATE TABLE table_67802 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of points for entrants with a Jordan 192 chassis?
### Response:
|
SELECT SUM("Pts.") FROM table_67802 WHERE "Chassis" = 'jordan 192'
|
### Instruction:
CREATE TABLE table_7209 (
"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 is Aberdeen team's date of vacancy?
### Response:
|
SELECT "Date of vacancy" FROM table_7209 WHERE "Team" = 'aberdeen'
|
### Instruction:
CREATE TABLE table_13886 (
"Name" text,
"Position" text,
"Date of Appointment" text,
"Date of Birth" text,
"Date of Retirement" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Hon. Vicente Q. Roxas appointment date?
### Response:
|
SELECT "Date of Appointment" FROM table_13886 WHERE "Name" = 'hon. vicente q. roxas'
|
### Instruction:
CREATE TABLE table_28485 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the order # for the original artist sarah mclachlan?
### Response:
|
SELECT "Order #" FROM table_28485 WHERE "Original artist" = 'Sarah McLachlan'
|
### Instruction:
CREATE TABLE table_46242 (
"School" text,
"Location" text,
"Founded" real,
"Enrollment" real,
"Nickname" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most recent year founded with an enrollment of 42,708?
### Response:
|
SELECT MAX("Founded") FROM table_46242 WHERE "Enrollment" = '42,708'
|
### Instruction:
CREATE TABLE table_204_360 (
id number,
"year" number,
"host" text,
"gold" text,
"silver" text,
"bronze" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which years did chile place silver or bronze ?
### Response:
|
SELECT "year" FROM table_204_360 WHERE "silver" = 'chile' OR "bronze" = 'chile'
|
### Instruction:
CREATE TABLE table_48978 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the attendance when the date is october 22, 2000?
### Response:
|
SELECT "Attendance" FROM table_48978 WHERE "Date" = 'october 22, 2000'
|
### Instruction:
CREATE TABLE table_29163303_4 (
championship VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many championships were there where the score was 4 6, 7 6 (7 5) , [5 10]?
### Response:
|
SELECT COUNT(championship) FROM table_29163303_4 WHERE score = "4β6, 7β6 (7β5) , [5β10]"
|
### Instruction:
CREATE TABLE table_15115 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the result for opponent of chicago bears
### Response:
|
SELECT "Result" FROM table_15115 WHERE "Opponent" = 'chicago bears'
|
### Instruction:
CREATE TABLE table_203_710 (
id number,
"genre" text,
"year" number,
"title" text,
"episode" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last piece of filmography that he has worked on to date ?
### Response:
|
SELECT "title" FROM table_203_710 ORDER BY "year" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_126 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the number of times the united states is listed as the country ?
### Response:
|
SELECT COUNT(*) FROM table_204_126 WHERE "country" = 'united states'
|
### Instruction:
CREATE TABLE table_18638 (
"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 were first elected in 1930?
### Response:
|
SELECT COUNT("Party") FROM table_18638 WHERE "First elected" = '1930'
|
### Instruction:
CREATE TABLE table_name_15 (
scores_by_each_individual_judge VARCHAR,
status VARCHAR,
date_performed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Scores by each individual judge has a Status of eliminated, and a Date performed of august 13?
### Response:
|
SELECT scores_by_each_individual_judge FROM table_name_15 WHERE status = "eliminated" AND date_performed = "august 13"
|
### Instruction:
CREATE TABLE table_name_61 (
country VARCHAR,
catalogue_no VARCHAR,
format VARCHAR,
label VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country that has the format of cd, the label of sony music and the catalogue no sicp-2055?
### Response:
|
SELECT country FROM table_name_61 WHERE format = "cd" AND label = "sony music" AND catalogue_no = "sicp-2055"
|
### Instruction:
CREATE TABLE table_74392 (
"#" text,
"Title" text,
"Author" text,
"Doctor" text,
"Featuring companion" text,
"Published" text,
"ISBN" text,
"Audiobook narrator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of book number 7?
### Response:
|
SELECT "Title" FROM table_74392 WHERE "#" = '7'
|
### Instruction:
CREATE TABLE table_name_10 (
seats_up_for_election INTEGER,
election_result VARCHAR,
new_council VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many seats were up for election during the vote where the election result was 9 and the new council 27?
### Response:
|
SELECT SUM(seats_up_for_election) FROM table_name_10 WHERE election_result = 9 AND new_council > 27
|
### Instruction:
CREATE TABLE table_22164 (
"Title" text,
"Developer" text,
"Category" text,
"Function" text,
"Release date" text,
"Version" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What functions were released on 2011-06-23?
### Response:
|
SELECT "Function" FROM table_22164 WHERE "Release date" = '2011-06-23'
|
### Instruction:
CREATE TABLE table_name_74 (
runner_s__up VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the Runner(s)-up with the winning score of 16 (66-68-70-68=272)?
### Response:
|
SELECT runner_s__up FROM table_name_74 WHERE winning_score = β16(66 - 68 - 70 - 68 = 272)
|
### Instruction:
CREATE TABLE table_name_6 (
chef VARCHAR,
restaurant_name VARCHAR,
location VARCHAR,
original_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What chef that has a location in Toronto, ON, that has n/a as the original name, and a Restaurant Name of Bagel World?
### Response:
|
SELECT chef FROM table_name_6 WHERE location = "toronto, on" AND original_name = "n/a" AND restaurant_name = "bagel world"
|
### Instruction:
CREATE TABLE table_3785 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the team's rcord on february 1?
### Response:
|
SELECT "Record" FROM table_3785 WHERE "February" = '1'
|
### Instruction:
CREATE TABLE table_name_48 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2005 value with a q2 in 2011, a q1 in 2012, and 1r in 2003?
### Response:
|
SELECT 2005 FROM table_name_48 WHERE 2011 = "q2" AND 2012 = "q1" AND 2003 = "1r"
|
### Instruction:
CREATE TABLE table_25479607_3 (
fixed_charge___rs__kwh_ VARCHAR,
tariff___rs__kwh_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fixed charge for the user who had a tariff of 11.30?
### Response:
|
SELECT fixed_charge___rs__kwh_ FROM table_25479607_3 WHERE tariff___rs__kwh_ = "11.30"
|
### Instruction:
CREATE TABLE table_69512 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponent with attendance of 31,777
### Response:
|
SELECT "Opponent" FROM table_69512 WHERE "Attendance" = '31,777'
|
### Instruction:
CREATE TABLE table_53718 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest attendance on November 18?
### Response:
|
SELECT MIN("Attendance") FROM table_53718 WHERE "Date" = 'november 18'
|
### Instruction:
CREATE TABLE table_204_992 (
id number,
"team" text,
"manager" text,
"city" text,
"stadium" text,
"capacity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is the only stadium with a capacity of larger than 20,000 ?
### Response:
|
SELECT "stadium" FROM table_204_992 WHERE "capacity" > 20000
|
### Instruction:
CREATE TABLE table_24367 (
"Type of Record" text,
"Attendance" real,
"Date/Year" text,
"Stadium" text,
"Result/Games" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of attendance with the pre-season game as the type of record?
### Response:
|
SELECT COUNT("Attendance") FROM table_24367 WHERE "Type of Record" = 'Pre-season game'
|
### Instruction:
CREATE TABLE table_24043 (
"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 millions viewers watched the episode that ran 23:25?
### Response:
|
SELECT "Viewers (in millions)" FROM table_24043 WHERE "Run time" = '23:25'
|
### Instruction:
CREATE TABLE table_22050 (
"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 opponent played on October 4?
### Response:
|
SELECT "Opponent" FROM table_22050 WHERE "Date" = 'October 4'
|
### Instruction:
CREATE TABLE table_name_43 (
city_of_license VARCHAR,
frequency_mhz VARCHAR,
call_sign VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What City of license has a Frequency MHz smaller than 95.9 with w223au as the call sign?
### Response:
|
SELECT city_of_license FROM table_name_43 WHERE frequency_mhz < 95.9 AND call_sign = "w223au"
|
### Instruction:
CREATE TABLE table_name_18 (
year INTEGER,
theme VARCHAR,
mintage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year when the 25th Anniversary Loonie was the theme, and the mintage was less than 35,000?
### Response:
|
SELECT MIN(year) FROM table_name_18 WHERE theme = "25th anniversary loonie" AND mintage < 35 OFFSET 000
|
### Instruction:
CREATE TABLE table_65778 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Bronze has a Rank of 4, and a Gold smaller than 0?
### Response:
|
SELECT MAX("Bronze") FROM table_65778 WHERE "Rank" = '4' AND "Gold" < '0'
|
### Instruction:
CREATE TABLE table_61178 (
"Club" text,
"Nickname" text,
"Location" text,
"Home Ground" text,
"GFL Premierships" text,
"Years in GFL" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the home ground of the Lions?
### Response:
|
SELECT "Home Ground" FROM table_61178 WHERE "Nickname" = 'lions'
|
### Instruction:
CREATE TABLE table_65882 (
"Source" text,
"Chrome" text,
"Internet Explorer" text,
"Firefox" text,
"Safari" text,
"Opera" text,
"Other" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- According to W3Counter, what percentage of browsers used Firefox?
### Response:
|
SELECT "Firefox" FROM table_65882 WHERE "Source" = 'w3counter'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.