instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_13536 (
"Event" text,
"Record" text,
"Nationality" text,
"Date" text,
"Games" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record of the 2012 Hamilton Games from Bahamas?
### Response:
|
SELECT "Record" FROM table_13536 WHERE "Nationality" = 'bahamas' AND "Games" = '2012 hamilton'
|
### Instruction:
CREATE TABLE table_52108 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team score when they played at Victoria Park?
### Response:
|
SELECT "Home team score" FROM table_52108 WHERE "Venue" = 'victoria park'
|
### Instruction:
CREATE TABLE table_29082 (
"Round #" text,
"Home Team" text,
"Win/Loss" text,
"Score" text,
"Opposition" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team when the opposition is wairarapa bush?
### Response:
|
SELECT "Home Team" FROM table_29082 WHERE "Opposition" = 'Wairarapa Bush'
|
### Instruction:
CREATE TABLE table_72746 (
"Former kingdom" text,
"Province" text,
"Hangul" text,
"Hanja" text,
"Capital" text,
"Modern equivalent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hanja for the province of 'sangju'?
### Response:
|
SELECT "Hanja" FROM table_72746 WHERE "Province" = 'Sangju'
|
### Instruction:
CREATE TABLE table_204_374 (
id number,
"event" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number,
"ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- number of silver medals earned the year switzerland earned no gold medals
### Response:
|
SELECT "silver" FROM table_204_374 WHERE "gold" = 0
|
### Instruction:
CREATE TABLE table_71682 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the surface of the tournament where Anna Benzon was the opponent in the final?
### Response:
|
SELECT "Surface" FROM table_71682 WHERE "Opponent in the final" = 'anna benzon'
|
### Instruction:
CREATE TABLE table_15494 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many matches have Rhymney RFC played?
### Response:
|
SELECT "Played" FROM table_15494 WHERE "Club" = 'rhymney rfc'
|
### Instruction:
CREATE TABLE table_39886 (
"Name" text,
"Novelty" text,
"Status" text,
"Authors" text,
"Unit" text,
"Location" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which writer is named mongolbittacus?
### Response:
|
SELECT "Authors" FROM table_39886 WHERE "Name" = 'mongolbittacus'
|
### Instruction:
CREATE TABLE table_26531 (
"Name" text,
"Number" real,
"Pos." text,
"Height" text,
"Weight" real,
"Year" text,
"Hometown" text,
"High School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the high school of the player number 5?
### Response:
|
SELECT "High School" FROM table_26531 WHERE "Number" = '5'
|
### Instruction:
CREATE TABLE table_38227 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Visitor has a Record of 9 12 5?
### Response:
|
SELECT "Visitor" FROM table_38227 WHERE "Record" = '9–12–5'
|
### Instruction:
CREATE TABLE table_62752 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many ranks have chen yin as the name, with a lane greater than 8?
### Response:
|
SELECT SUM("Rank") FROM table_62752 WHERE "Name" = 'chen yin' AND "Lane" > '8'
|
### Instruction:
CREATE TABLE table_18689 (
"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.
-- In which district is James O'Connor the incumbent?
### Response:
|
SELECT "District" FROM table_18689 WHERE "Incumbent" = 'James O''Connor'
|
### Instruction:
CREATE TABLE table_14684 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the competition of 2000 afc asian cup group stages?
### Response:
|
SELECT "Result" FROM table_14684 WHERE "Competition" = '2000 afc asian cup group stages'
|
### Instruction:
CREATE TABLE table_22134 (
"English name" text,
"Thai name" text,
"Abbr." text,
"Transcription" text,
"Sanskrit word" text,
"Zodiac sign" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the English name for the month with . . abbreviation?
### Response:
|
SELECT "English name" FROM table_22134 WHERE "Abbr." = 'พ.ย.'
|
### Instruction:
CREATE TABLE table_43801 (
"Event" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest bronze when silver is less than 1 and gold is more than 0?
### Response:
|
SELECT MAX("Bronze") FROM table_43801 WHERE "Silver" < '1' AND "Gold" > '0'
|
### Instruction:
CREATE TABLE table_name_88 (
pick INTEGER,
position VARCHAR,
round VARCHAR,
school_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Pick has a Round larger than 1, a School/Club Team of alcorn state, and a Position of defensive back?
### Response:
|
SELECT SUM(pick) FROM table_name_88 WHERE round > 1 AND school_club_team = "alcorn state" AND position = "defensive back"
|
### Instruction:
CREATE TABLE table_36368 (
"Season" text,
"Tier" real,
"League" text,
"Pos." real,
"Postseason" text,
"Dutch Cup" text,
"European competitions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which European competitions have a Pos of 6?
### Response:
|
SELECT "European competitions" FROM table_36368 WHERE "Pos." = '6'
|
### Instruction:
CREATE TABLE table_107 (
"Track #" real,
"Song" text,
"Singers" text,
"Picturization" text,
"Length" text,
"Lyricist" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the lyricist for the song with a length of 3:05?
### Response:
|
SELECT "Lyricist" FROM table_107 WHERE "Length" = '3:05'
|
### Instruction:
CREATE TABLE table_55969 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Bronze has a Silver smaller than 1, and a Total larger than 3?
### Response:
|
SELECT AVG("Bronze") FROM table_55969 WHERE "Silver" < '1' AND "Total" > '3'
|
### Instruction:
CREATE TABLE table_37853 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which home team had a visitor of Chicago Black Hawks with a score of 2 3?
### Response:
|
SELECT "Home" FROM table_37853 WHERE "Visitor" = 'chicago black hawks' AND "Score" = '2–3'
|
### Instruction:
CREATE TABLE table_62106 (
"Mission" text,
"Resident Country" text,
"Local Location" text,
"Local Mission" text,
"Non-Resident Head of Mission" text,
"Local Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Local Position, when Mission is 'Paraguay'?
### Response:
|
SELECT "Local Position" FROM table_62106 WHERE "Mission" = 'paraguay'
|
### Instruction:
CREATE TABLE table_42079 (
"Team" text,
"Tries for" real,
"Tries against" real,
"Try diff" text,
"Points for" real,
"Points against" real,
"Points diff" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich Team that has Points against of 43?
### Response:
|
SELECT "Team" FROM table_42079 WHERE "Points against" = '43'
|
### Instruction:
CREATE TABLE table_40103 (
"Championship" text,
"Current champion(s)" text,
"Previous champion(s)" text,
"Date won" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which location had previous champions of Mike Webb and Nick Fahrenheit?
### Response:
|
SELECT "Location" FROM table_40103 WHERE "Previous champion(s)" = 'mike webb and nick fahrenheit'
|
### Instruction:
CREATE TABLE table_54235 (
"Year" real,
"Award" text,
"Category" text,
"Work" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which award did Scream receive a nomination and/or win for in 1997?
### Response:
|
SELECT "Award" FROM table_54235 WHERE "Work" = 'scream' AND "Year" = '1997'
|
### Instruction:
CREATE TABLE table_71666 (
"Year" text,
"Title" text,
"Production Company" text,
"Role" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the production company that has a year of 2008-2009?
### Response:
|
SELECT "Production Company" FROM table_71666 WHERE "Year" = '2008-2009'
|
### Instruction:
CREATE TABLE table_50967 (
"Title" text,
"Parent magazine" text,
"Magazine type" text,
"Frequency" text,
"Magazine run" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the frequency for the magazine that runs September 2, 2010?
### Response:
|
SELECT "Frequency" FROM table_50967 WHERE "Magazine run" = 'september 2, 2010'
|
### Instruction:
CREATE TABLE table_57182 (
"Round" real,
"Pick" real,
"Player" text,
"Pos." text,
"Nationality" text,
"Team" text,
"School/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds have a Pick of 13?
### Response:
|
SELECT SUM("Round") FROM table_57182 WHERE "Pick" = '13'
|
### Instruction:
CREATE TABLE table_19762 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record when the game was played at Cleveland Municipal Stadium?
### Response:
|
SELECT "Record" FROM table_19762 WHERE "Game Site" = 'Cleveland Municipal Stadium'
|
### Instruction:
CREATE TABLE table_38462 (
"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.
-- Who has a round less than 9 and a position of G?
### Response:
|
SELECT "Player" FROM table_38462 WHERE "Position" = 'g' AND "Round" < '9'
|
### Instruction:
CREATE TABLE table_63044 (
"Rank" real,
"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 Average for Silver medals that have more than 17 Golds?
### Response:
|
SELECT AVG("Silver") FROM table_63044 WHERE "Gold" > '17'
|
### Instruction:
CREATE TABLE table_name_95 (
one_mora VARCHAR,
gloss VARCHAR,
accented_mora VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the one mora for a low tone mora with a gloss of / okiru/ [ k ]?
### Response:
|
SELECT one_mora FROM table_name_95 WHERE NOT accented_mora = "low tone" AND gloss = "/˩okiru/ [òkìɽɯ́]"
|
### Instruction:
CREATE TABLE table_68528 (
"Compound name" text,
"Colour" text,
"Tread" text,
"Driving conditions" text,
"Dry Type*" text,
"Grip" text,
"Durability" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What grip has a dry option?
### Response:
|
SELECT "Grip" FROM table_68528 WHERE "Dry Type*" = 'option'
|
### Instruction:
CREATE TABLE table_12919003_3 (
_number VARCHAR,
director VARCHAR,
viewers_millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total number of episodes both directed by Tom Hooper and viewed by 8.08 million viewers?
### Response:
|
SELECT COUNT(_number) FROM table_12919003_3 WHERE director = "Tom Hooper" AND viewers_millions_ = "8.08"
|
### Instruction:
CREATE TABLE table_79530 (
"Region" text,
"Date" text,
"Label" text,
"Format(s)" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which formats have a region of Europe and Catalog value of WEBB185?
### Response:
|
SELECT "Format(s)" FROM table_79530 WHERE "Region" = 'europe' AND "Catalog" = 'webb185'
|
### Instruction:
CREATE TABLE table_11256021_1 (
extroverted VARCHAR,
_relationship_oriented VARCHAR,
moderate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the extroverted, relationship-oriented where moderate is introverted sanguine
### Response:
|
SELECT extroverted, _relationship_oriented FROM table_11256021_1 WHERE moderate = "Introverted Sanguine"
|
### Instruction:
CREATE TABLE table_2565 (
"Season" real,
"Episodes" real,
"Timeslot ( EST )" text,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Rank" text,
"Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least season
### Response:
|
SELECT MIN("Season") FROM table_2565
|
### Instruction:
CREATE TABLE table_4396 (
"Heat Rank" real,
"Lane" real,
"Swimmer" text,
"Country" text,
"Time" real,
"Overall Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the highest time for spain and lane larger than 8
### Response:
|
SELECT MAX("Time") FROM table_4396 WHERE "Country" = 'spain' AND "Lane" > '8'
|
### Instruction:
CREATE TABLE table_37683 (
"Name" text,
"Status" text,
"Population" real,
"District" text,
"Former local authority" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What district is the parish who had the South Cambridgeshire rural district as the former local authority?
### Response:
|
SELECT "District" FROM table_37683 WHERE "Former local authority" = 'south cambridgeshire rural district'
|
### Instruction:
CREATE TABLE table_77161 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score of the Fifa World Cup 1986 Qualifying Competition?
### Response:
|
SELECT "Score" FROM table_77161 WHERE "Competition" = 'fifa world cup 1986 qualifying'
|
### Instruction:
CREATE TABLE table_23847 (
"Parish" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was McCain's vote when Obama had 48.35%
### Response:
|
SELECT MIN("McCain#") FROM table_23847 WHERE "Obama%" = '48.35%'
|
### Instruction:
CREATE TABLE table_42455 (
"Year" real,
"Team" text,
"Chassis" text,
"Engine" text,
"Rank" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team is ranked 3rd in 2008?
### Response:
|
SELECT "Team" FROM table_42455 WHERE "Rank" = '3rd' AND "Year" = '2008'
|
### Instruction:
CREATE TABLE table_name_83 (
draw INTEGER,
english_translation VARCHAR,
points VARCHAR,
place VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest draw number when there are more than 31 points, a rank greater than 6, and the English translation is listen to me?
### Response:
|
SELECT MAX(draw) FROM table_name_83 WHERE points > 31 AND place > 6 AND english_translation = "listen to me"
|
### Instruction:
CREATE TABLE table_203_449 (
id number,
"name" text,
"lifetime" text,
"nationality" text,
"notable as" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long did elisabeth irwin live ?
### Response:
|
SELECT "lifetime" - "lifetime" FROM table_203_449 WHERE "name" = 'elisabeth irwin'
|
### Instruction:
CREATE TABLE table_15071 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year when Spirit Tom's Racing had more than 3 points?
### Response:
|
SELECT SUM("Year") FROM table_15071 WHERE "Entrant" = 'spirit tom''s racing' AND "Points" > '3'
|
### Instruction:
CREATE TABLE table_204_51 (
id number,
"week #" text,
"theme" text,
"song choice" text,
"original artist" text,
"order #" number,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many songs sung were by cl udio zoli ?
### Response:
|
SELECT COUNT("song choice") FROM table_204_51 WHERE "original artist" = 'claudio zoli'
|
### Instruction:
CREATE TABLE table_39908 (
"Number" real,
"Builder" text,
"Type" text,
"Date" text,
"Works number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Type of 4-6-0, and a Number larger than 11?
### Response:
|
SELECT "Date" FROM table_39908 WHERE "Type" = '4-6-0' AND "Number" > '11'
|
### Instruction:
CREATE TABLE table_48679 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps did the driver with the yamaha manufacturer go on grid 3?
### Response:
|
SELECT "Laps" FROM table_48679 WHERE "Manufacturer" = 'yamaha' AND "Grid" = '3'
|
### Instruction:
CREATE TABLE table_79686 (
"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 is the call sign with a 222 erp w?
### Response:
|
SELECT "Call sign" FROM table_79686 WHERE "ERP W" = '222'
|
### Instruction:
CREATE TABLE table_2008069_2 (
pinyin VARCHAR,
uyghur___yenɡi_yezik̢__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the pinyin for k kyar k ir iz yezisi
### Response:
|
SELECT pinyin FROM table_2008069_2 WHERE uyghur___yenɡi_yezik̢__ = "Kɵkyar K̡irƣiz yezisi"
|
### Instruction:
CREATE TABLE table_204_479 (
id number,
"defendant" text,
"arrested" text,
"charge" text,
"result" text,
"sentence" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was arrested on jan 7,1956 ?
### Response:
|
SELECT "defendant" FROM table_204_479 WHERE "arrested" = 'january 7, 1956'
|
### Instruction:
CREATE TABLE table_8201 (
"Team" text,
"Head coach" text,
"Team captain" text,
"Kitmaker" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the team captain for the team with sparkasse (d sseldorf) as the shirt sponsor?
### Response:
|
SELECT "Team captain" FROM table_8201 WHERE "Shirt sponsor" = 'sparkasse (düsseldorf)'
|
### Instruction:
CREATE TABLE table_33936 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest bronze number when silver shows 2, and the total is 8?
### Response:
|
SELECT MIN("Bronze") FROM table_33936 WHERE "Silver" = '2' AND "Total" = '8'
|
### Instruction:
CREATE TABLE table_203_484 (
id number,
"member" text,
"party" text,
"electorate" text,
"state" text,
"first elected" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- alan bird and billy davies were both elected to the house of representatives as members of which party ?
### Response:
|
SELECT "party" FROM table_203_484 WHERE "member" = 'alan bird'
|
### Instruction:
CREATE TABLE table_11714 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a Date of september 28, 1951?
### Response:
|
SELECT "Opponent" FROM table_11714 WHERE "Date" = 'september 28, 1951'
|
### Instruction:
CREATE TABLE table_5518 (
"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 was the lowest attendance at the game with a record of 50-36?
### Response:
|
SELECT MIN("Attendance") FROM table_5518 WHERE "Record" = '50-36'
|
### Instruction:
CREATE TABLE table_13651 (
"Round" real,
"Dates" text,
"Rally Name" text,
"Rally HQ" text,
"Support Category" text,
"Surface" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which dates have a Rally HQ of kingscliff?
### Response:
|
SELECT "Dates" FROM table_13651 WHERE "Rally HQ" = 'kingscliff'
|
### Instruction:
CREATE TABLE table_60490 (
"Round" text,
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest attendance was the opponent was chelsea?
### Response:
|
SELECT MIN("Attendance") FROM table_60490 WHERE "Opponent" = 'chelsea'
|
### Instruction:
CREATE TABLE table_23405 (
"No. overall" text,
"No. in series" real,
"Family/families" text,
"Location(s)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where was the abbas family and the pickering family located
### Response:
|
SELECT "Location(s)" FROM table_23405 WHERE "Family/families" = 'The Abbas Family and The Pickering Family'
|
### Instruction:
CREATE TABLE table_203_675 (
id number,
"match" number,
"date" text,
"round" text,
"home/away" text,
"opponent team" text,
"score" text,
"scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- was the top game home or away ?
### Response:
|
SELECT "home/away" FROM table_203_675 WHERE id = 1
|
### Instruction:
CREATE TABLE table_name_80 (
altitude__ft_ INTEGER,
mach VARCHAR,
duration VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest altitude of the flight with a mach bigger than 0.905 and a duration of 00:06:17?
### Response:
|
SELECT MIN(altitude__ft_) FROM table_name_80 WHERE mach > 0.905 AND duration = "00:06:17"
|
### Instruction:
CREATE TABLE table_204_301 (
id number,
"nationality" text,
"name" text,
"term as a deputy judge" text,
"reason for termination" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many deputy judges of the permanent court of international justice had their post abolished ?
### Response:
|
SELECT COUNT("name") FROM table_204_301 WHERE "reason for termination" = 'post abolished'
|
### Instruction:
CREATE TABLE table_204_400 (
id number,
"district" number,
"senator" text,
"party" text,
"caucus" text,
"first elected" number,
"counties represented" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of democrats on this list ?
### Response:
|
SELECT COUNT(*) FROM table_204_400 WHERE "party" = 'democratic'
|
### Instruction:
CREATE TABLE table_42072 (
"Region" text,
"Province" text,
"Capital" text,
"No. of Communes" real,
"Area" real,
"2002 Population" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average area with valpara so as the capital?
### Response:
|
SELECT AVG("Area") FROM table_42072 WHERE "Capital" = 'valparaíso'
|
### Instruction:
CREATE TABLE table_38428 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the Loss is Johnson (4-12), what is the date?
### Response:
|
SELECT "Date" FROM table_38428 WHERE "Loss" = 'johnson (4-12)'
|
### Instruction:
CREATE TABLE table_204_88 (
id number,
"year" number,
"english title" text,
"japanese" text,
"romanization" text,
"type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- were more air on tv or video ?
### Response:
|
SELECT "type" FROM table_204_88 WHERE "type" IN ('tv', 'video') GROUP BY "type" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_11608735_3 (
other_local_sources VARCHAR,
state_ VARCHAR,
_federal VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of local sources for state and federal 12,929,489
### Response:
|
SELECT other_local_sources FROM table_11608735_3 WHERE state_ & _federal = "12,929,489"
|
### Instruction:
CREATE TABLE table_5633 (
"Frequency (MHz)" real,
"Call letters" text,
"Licensed location" text,
"Type" text,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Frequency (MHz) that has a Call letters of krmd-fm has what sum?
### Response:
|
SELECT SUM("Frequency (MHz)") FROM table_5633 WHERE "Call letters" = 'krmd-fm'
|
### Instruction:
CREATE TABLE table_203_612 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many countries have earned over a hundred medals in total ?
### Response:
|
SELECT COUNT("nation") FROM table_203_612 WHERE "total" > 100
|
### Instruction:
CREATE TABLE table_36353 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Surface has a Partner of sorana c rstea?
### Response:
|
SELECT "Surface" FROM table_36353 WHERE "Partner" = 'sorana cîrstea'
|
### Instruction:
CREATE TABLE table_55754 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the constructor who has more than 50 laps and a grid of 7?
### Response:
|
SELECT "Constructor" FROM table_55754 WHERE "Laps" > '50' AND "Grid" = '7'
|
### Instruction:
CREATE TABLE table_16443 (
"Series #" real,
"Episode #" 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 directed the episode called 'Tell-tale Heart'?
### Response:
|
SELECT "Directed by" FROM table_16443 WHERE "Title" = 'Tell-Tale Heart'
|
### Instruction:
CREATE TABLE table_204_269 (
id number,
"week" number,
"room" text,
"winning couple" text,
"2nd couple" text,
"3rd couple" text,
"chumps" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who became winning couple for the first time in week 6 ?
### Response:
|
SELECT "winning couple" FROM table_204_269 WHERE "week" = 6
|
### Instruction:
CREATE TABLE table_38599 (
"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.
-- Frequency MHz of 93.7 has what class?
### Response:
|
SELECT "Class" FROM table_38599 WHERE "Frequency MHz" = '93.7'
|
### Instruction:
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
)
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the first names of the teachers who teach grade 1?
### Response:
|
SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1
|
### Instruction:
CREATE TABLE orders (
customer_id VARCHAR,
order_status VARCHAR
)
CREATE TABLE customers (
customer_name VARCHAR,
customer_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the name of all the distinct customers who have orders with status 'Packing'.
### Response:
|
SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Packing"
|
### Instruction:
CREATE TABLE table_37771 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent during the game that had more than 31,891 people in attendance?
### Response:
|
SELECT "Opponent" FROM table_37771 WHERE "Attendance" > '31,891'
|
### Instruction:
CREATE TABLE table_11621 (
"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 number for swimsuit when the interview number is less than 8.808?
### Response:
|
SELECT "Swimsuit" FROM table_11621 WHERE "Interview" < '8.808'
|
### Instruction:
CREATE TABLE table_53349 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the low grid for gerhard berger for laps over 56?
### Response:
|
SELECT MIN("Grid") FROM table_53349 WHERE "Driver" = 'gerhard berger' AND "Laps" > '56'
|
### Instruction:
CREATE TABLE table_name_77 (
player VARCHAR,
country VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player from the United States in T4 place with a score of 68-73-68=209?
### Response:
|
SELECT player FROM table_name_77 WHERE country = "united states" AND place = "t4" AND score = 68 - 73 - 68 = 209
|
### Instruction:
CREATE TABLE table_47147 (
"Company" text,
"Type" text,
"Principal activities" text,
"Incorporated in" text,
"Group's Equity Shareholding" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Group's Equity Shareholding has a Company of epcor?
### Response:
|
SELECT "Group's Equity Shareholding" FROM table_47147 WHERE "Company" = 'epcor'
|
### Instruction:
CREATE TABLE table_27455867_1 (
callback_audition_date VARCHAR,
episode_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the callback audition date for the audition city from the episode aired on February 2, 2011?
### Response:
|
SELECT callback_audition_date FROM table_27455867_1 WHERE episode_air_date = "February 2, 2011"
|
### Instruction:
CREATE TABLE table_39415 (
"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 is the ERP W for K236AM?
### Response:
|
SELECT "ERP W" FROM table_39415 WHERE "Call sign" = 'k236am'
|
### Instruction:
CREATE TABLE table_61821 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the gold medal count ranked 2 with a total of more than 21?
### Response:
|
SELECT COUNT("Gold") FROM table_61821 WHERE "Rank" = '2' AND "Total" > '21'
|
### Instruction:
CREATE TABLE table_14056 (
"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.
-- Which gene is ongoing and has an intramuscular route of administration?
### Response:
|
SELECT "Gene" FROM table_14056 WHERE "Route of administration" = 'intramuscular' AND "Status" = 'ongoing'
|
### Instruction:
CREATE TABLE table_77244 (
"Position" real,
"Team" text,
"Rd 6" real,
"Rd 7" real,
"Rd 8" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of total values for Rd 7 less than 8?
### Response:
|
SELECT SUM("Total") FROM table_77244 WHERE "Rd 7" < '8'
|
### Instruction:
CREATE TABLE table_56714 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the home team that played against the visiting team Minnesota?
### Response:
|
SELECT "Home" FROM table_56714 WHERE "Visitor" = 'minnesota'
|
### Instruction:
CREATE TABLE table_2174 (
"Pitcher" text,
"Stats" real,
"Wins" real,
"Losses" real,
"No decisions" real,
"Winning %" text,
"Seasons" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are Doug Davis' maximum pitching stats?
### Response:
|
SELECT MAX("Stats") FROM table_2174 WHERE "Pitcher" = 'Doug Davis'
|
### Instruction:
CREATE TABLE table_69743 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date that chicago black hawks has a Record of 2 2?
### Response:
|
SELECT "Date" FROM table_69743 WHERE "Visitor" = 'chicago black hawks' AND "Record" = '2–2'
|
### Instruction:
CREATE TABLE table_name_78 (
episode VARCHAR,
performer_1 VARCHAR,
performer_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of episodes where jim sweeney was the 1st performer and steve steen was the 2nd performer?
### Response:
|
SELECT COUNT(episode) FROM table_name_78 WHERE performer_1 = "jim sweeney" AND performer_2 = "steve steen"
|
### Instruction:
CREATE TABLE table_name_98 (
goals INTEGER,
rank VARCHAR,
years VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest number of goals for the player from 2008-present named tony beltran, ranked lower than 7?
### Response:
|
SELECT MIN(goals) FROM table_name_98 WHERE years = "2008-present" AND player = "tony beltran" AND rank > 7
|
### Instruction:
CREATE TABLE table_39953 (
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest score with 0 wins and more than 2 Byes?
### Response:
|
SELECT MAX("Against") FROM table_39953 WHERE "Wins" = '0' AND "Byes" > '2'
|
### Instruction:
CREATE TABLE table_204_948 (
id number,
"year" number,
"award" text,
"category" text,
"film" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which film won the most awards ?
### Response:
|
SELECT "film" FROM table_204_948 WHERE "result" = 'won' GROUP BY "film" ORDER BY COUNT(DISTINCT "award") DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_409 (
id number,
"date" text,
"race name" text,
"location" text,
"uci rating" number,
"winner" text,
"team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long did the tour of libya last ?
### Response:
|
SELECT "date" FROM table_204_409 WHERE "race name" = 'tour of libya'
|
### Instruction:
CREATE TABLE table_58542 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who constructed olivier panis' car that retired after +1 lap?
### Response:
|
SELECT "Constructor" FROM table_58542 WHERE "Time/Retired" = '+1 lap' AND "Driver" = 'olivier panis'
|
### 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.
-- which name has the largest displacement ?
### Response:
|
SELECT "name" FROM table_203_764 ORDER BY "displacement" DESC LIMIT 1
|
### Instruction:
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE reviewer (
rid number,
name text
)
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the ids of all reviewers who did not give 4 stars?
### Response:
|
SELECT rid FROM rating EXCEPT SELECT rid FROM rating WHERE stars = 4
|
### Instruction:
CREATE TABLE table_204_688 (
id number,
"name" text,
"red vs. blue" text,
"couples team" text,
"status" text,
"weight" text,
"total votes" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many contestants were eliminated in week one ?
### Response:
|
SELECT COUNT(*) FROM table_204_688 WHERE "status" = 'eliminated week 1'
|
### Instruction:
CREATE TABLE table_204_506 (
id number,
"seasons" number,
"team" text,
"ch.wins" number,
"promotions" number,
"relegations" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many relegations did andrea costa imola undergo ?
### Response:
|
SELECT "relegations" FROM table_204_506 WHERE "team" = 'andrea costa imola'
|
### Instruction:
CREATE TABLE table_name_2 (
games INTEGER,
lost VARCHAR,
standing VARCHAR,
goals_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most games for standing of 5th, lebel and goals against larger than 220 with lost more than 52
### Response:
|
SELECT MAX(games) FROM table_name_2 WHERE standing = "5th, lebel" AND goals_against > 220 AND lost > 52
|
### Instruction:
CREATE TABLE table_203_770 (
id number,
"ages attained (years)" text,
"catholic" text,
"protestant and other christian" text,
"other religion" text,
"none or not stated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many age ranges are represented in the table ?
### Response:
|
SELECT COUNT(DISTINCT "ages attained (years)") FROM table_203_770
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.