instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_14325 (
"Name" text,
"Type" text,
"Inaug." real,
"No Blocks" real,
"No Units" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average No Units, when the Name is Fung Shing Court, and when the No Blocks ... | SELECT AVG("No Units") FROM table_14325 WHERE "Name" = 'fung shing court' AND "No Blocks" < '3' |
### Instruction:
CREATE TABLE table_48365 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" real,
"Year named" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years correspond to longitude of 36.8e and diameter greater than 6... | SELECT COUNT("Year named") FROM table_48365 WHERE "Longitude" = '36.8e' AND "Diameter (km)" > '697' |
### Instruction:
CREATE TABLE table_5471 (
"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.
-- What is the number of rounds that t... | SELECT COUNT("Round") FROM table_5471 WHERE "Time" = '6:21' |
### Instruction:
CREATE TABLE table_38929 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Tournament h... | SELECT "Tournament" FROM table_38929 WHERE "Partner" = 'martín rodríguez' |
### Instruction:
CREATE TABLE table_47536 (
"Frequency" text,
"Call sign" text,
"Location" text,
"Name / Format" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Frequency has an Owner of rogers communications rogers radio, and a C... | SELECT "Frequency" FROM table_47536 WHERE "Owner" = 'rogers communications rogers radio' AND "Call sign" = 'cikz-fm' |
### Instruction:
CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
CREATE TABLE personfriend (
name text,
friend text,
year number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the different names of f... | SELECT DISTINCT T2.name FROM person AS T1 JOIN personfriend AS T2 ON T1.name = T2.friend WHERE T1.age < (SELECT AVG(age) FROM person) |
### Instruction:
CREATE TABLE table_20929 (
"Antibody" text,
"Brand name" text,
"Approval date" real,
"Type" text,
"Target" text,
"Approved treatment(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the approved treatments when the an... | SELECT "Approved treatment(s)" FROM table_20929 WHERE "Antibody" = 'Bevacizumab' |
### Instruction:
CREATE TABLE table_20919 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what sea... | SELECT "Season #" FROM table_20919 WHERE "Directed by" = 'Kate Woods' |
### Instruction:
CREATE TABLE table_78903 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the player from club Circolo Nautico Posillipo an... | SELECT "Name" FROM table_78903 WHERE "Pos." = 'd' AND "Club" = 'circolo nautico posillipo' |
### Instruction:
CREATE TABLE table_74309 (
"Track no." real,
"Track" text,
"Original Artist" text,
"Soloist(s)" text,
"Vocal Percussionist(s)" text,
"Arranger(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who arranged song(s) with tom lyle... | SELECT "Arranger(s)" FROM table_74309 WHERE "Vocal Percussionist(s)" = 'Tom Lyle' |
### Instruction:
CREATE TABLE table_59134 (
"Station Name" text,
"Opening Year" text,
"Municipality" text,
"Park and Ride Lot" text,
"Free Fare Zone" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which station was opened in 2013, with no park & rid... | SELECT "Station Name" FROM table_59134 WHERE "Opening Year" = '2013' AND "Park and Ride Lot" = 'no' |
### Instruction:
CREATE TABLE table_48197 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" real,
"Position" text,
"Years" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Years, when Nationality is United States, and wh... | SELECT "Years" FROM table_48197 WHERE "Nationality" = 'united states' AND "Position" = 'pg / sg' |
### Instruction:
CREATE TABLE table_2414 (
"Broadcast scope" text,
"Broadcast network" text,
"Broadcast term" text,
"Broadcast day and timings (in JST )" text,
"Broadcast format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the broadcast day ... | SELECT "Broadcast day and timings (in JST )" FROM table_2414 WHERE "Broadcast network" = 'TV Saitama' |
### Instruction:
CREATE TABLE table_33916 (
"Year" real,
"Championship" text,
"Winning score" text,
"Margin" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Margin in 1953 when Patty Berg was Runner(s)-up?
### Respo... | SELECT "Margin" FROM table_33916 WHERE "Runner(s)-up" = 'patty berg' AND "Year" = '1953' |
### Instruction:
CREATE TABLE table_44748 (
"Date" text,
"Series" text,
"Circuit" text,
"City / State" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Team is Holden Racing Team, and when Circuit is ... | SELECT "Date" FROM table_44748 WHERE "Team" = 'holden racing team' AND "Circuit" = 'eastern creek raceway' |
### Instruction:
CREATE TABLE table_72981 (
"Outcome" text,
"Edition" real,
"Round" text,
"Opponent Team" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the opponent was ... | SELECT "Score" FROM table_72981 WHERE "Opponent" = 'Dominika Cibulková' |
### Instruction:
CREATE TABLE table_17281 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High assists" FROM table_17281 WHERE "Date" = 'November 4' |
### Instruction:
CREATE TABLE table_9311 (
"Player" text,
"Team" text,
"Matches" real,
"Innings" real,
"Runs" real,
"Average" real,
"Highest Score" text,
"100s" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many matches have a 100s ... | SELECT COUNT("Matches") FROM table_9311 WHERE "100s" < '0' |
### Instruction:
CREATE TABLE table_74490 (
"Conference" text,
"# of Bids" real,
"Record" text,
"Win %" real,
"Regional Finals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Regional Finals score when the record is 3-2 and there... | SELECT AVG("Regional Finals") FROM table_74490 WHERE "Record" = '3-2' AND "# of Bids" > '3' |
### Instruction:
CREATE TABLE table_25857 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High assists" FROM table_25857 WHERE "Series" = '1-2' |
### Instruction:
CREATE TABLE table_72714 (
"City/town" text,
"Municipality" text,
"County" text,
"City/town status" real,
"Population" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which municipalities located in the county of Finnmark have popula... | SELECT "Municipality" FROM table_72714 WHERE "County" = 'Finnmark' AND "Population" > '6187.0' |
### Instruction:
CREATE TABLE table_46847 (
"Year" real,
"Album" text,
"Vocals" text,
"Bass" text,
"Drums" text,
"Label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played the bass for the Against the Grain album after 1982?
### Respons... | SELECT "Bass" FROM table_46847 WHERE "Year" > '1982' AND "Album" = 'against the grain' |
### Instruction:
CREATE TABLE table_8610 (
"Model Number" text,
"Frequency" text,
"L2-Cache" text,
"Front Side Bus" text,
"Multiplier" text,
"Voltage" text,
"Socket" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the multiplier for t... | SELECT "Multiplier" FROM table_8610 WHERE "Frequency" = '733mhz' |
### Instruction:
CREATE TABLE table_16355 (
"Rank" real,
"English title" text,
"Chinese title" text,
"Average" real,
"Peak" real,
"Premiere" real,
"Finale" real,
"HK viewers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the fi... | SELECT "Finale" FROM table_16355 WHERE "Chinese title" = '潮爆大狀' |
### Instruction:
CREATE TABLE table_203_531 (
id number,
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st prize ($)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many tournaments did sergio garcia wi... | SELECT COUNT("tournament") FROM table_203_531 WHERE "winner" = 'sergio garcia' |
### Instruction:
CREATE TABLE table_67070 (
"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 loss of the game against the Indians when the record was... | SELECT "Loss" FROM table_67070 WHERE "Opponent" = 'indians' AND "Record" = '15-15' |
### Instruction:
CREATE TABLE table_25459 (
"#" real,
"Date" text,
"Visitor" text,
"Score" text,
"Arena Attendance" text,
"High Points" text,
"High Rebounds" text,
"High Assists" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Record" FROM table_25459 WHERE "Date" = 'March 16' |
### Instruction:
CREATE TABLE table_22715 (
"Rank" real,
"Peak" text,
"Country" text,
"Island" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest elevation(m) for th... | SELECT MIN("Elevation (m)") FROM table_22715 WHERE "Peak" = 'Mount Taylor' |
### Instruction:
CREATE TABLE table_79087 (
"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 incumbent who was first elected before 2002 from the maryland 3 di... | SELECT "Incumbent" FROM table_79087 WHERE "First elected" < '2002' AND "District" = 'maryland 3' |
### Instruction:
CREATE TABLE table_204_385 (
id number,
"round" number,
"pick" number,
"player" text,
"nationality" text,
"college/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was drafted first , tom anderson or tom sund... | SELECT "player" FROM table_204_385 WHERE "player" IN ('tom anderson', 'tom sundberg') ORDER BY "pick" LIMIT 1 |
### Instruction:
CREATE TABLE table_19231 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the... | SELECT "Away team" FROM table_19231 WHERE "Home team" = 'Carlton' |
### Instruction:
CREATE TABLE table_21203 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Date" FROM table_21203 WHERE "Team" = 'Milwaukee' |
### Instruction:
CREATE TABLE table_4482 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did the away team score 7.... | SELECT "Venue" FROM table_4482 WHERE "Away team score" = '7.15 (57)' |
### Instruction:
CREATE TABLE table_29036 (
"Series #" real,
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was th... | SELECT "Written by" FROM table_29036 WHERE "Title" = 'Dic Pics' |
### Instruction:
CREATE TABLE table_22133 (
"Standard order" real,
"English translation" text,
"Transcription (based on Pinyin)" text,
"Traditional Chinese" text,
"Simplified Chinese" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Pinyin... | SELECT "Transcription (based on Pinyin)" FROM table_22133 WHERE "English translation" = 'Alas for the Days Gone By' |
### Instruction:
CREATE TABLE table_50484 (
"Election" real,
"Candidate" text,
"Running mate" text,
"Total votes" real,
"Share of votes" text,
"Outcome" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many votes did Lee Teng-Hui receive when ... | SELECT MAX("Total votes") FROM table_50484 WHERE "Outcome" = 'elected' AND "Candidate" = 'lee teng-hui' |
### Instruction:
CREATE TABLE table_15675 (
"Artist" text,
"Country of origin" text,
"Period active" text,
"Release-year of first charted record" real,
"Genre" text,
"Claimed sales" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the gen... | SELECT "Genre" FROM table_15675 WHERE "Country of origin" = 'united kingdom' AND "Artist" = 'queen' |
### Instruction:
CREATE TABLE table_16898 (
"number" real,
"date of debut" text,
"name" text,
"date of birth" text,
"number of caps" real,
"number of goals" real,
"date of death\u2020" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What amou... | SELECT MAX("number") FROM table_16898 WHERE "name" = 'Bok de Korver' |
### Instruction:
CREATE TABLE table_51767 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance at Moor... | SELECT AVG("Crowd") FROM table_51767 WHERE "Venue" = 'moorabbin oval' |
### Instruction:
CREATE TABLE table_203_630 (
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.
-- did italy or norway have 51 total medals ?
###... | SELECT "nation" FROM table_203_630 WHERE "nation" IN ('italy', 'norway') AND "total" = 51 |
### Instruction:
CREATE TABLE table_41406 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Rebounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Games for the Player from Lietuvos Rytas Vilnius with less the 43 Rebounds?
### Res... | SELECT SUM("Games") FROM table_41406 WHERE "Team" = 'lietuvos rytas vilnius' AND "Rebounds" < '43' |
### Instruction:
CREATE TABLE table_7593 (
"Format name" text,
"Container" text,
"Video coding" text,
"Bit depth" real,
"Color sampling" text,
"Frame size" text,
"Video bit rate, Mbit/s" text,
"Audio coding" text
)
-- Using valid SQLite, answer the following questions for the tables pr... | SELECT "Video coding" FROM table_7593 WHERE "Format name" = 'dvcam' |
### Instruction:
CREATE TABLE table_57720 (
"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 day does the home team sco... | SELECT "Date" FROM table_57720 WHERE "Home team score" = '8.13 (61)' |
### Instruction:
CREATE TABLE table_204_313 (
id number,
"date" text,
"operation" text,
"location" text,
"type" text,
"information" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which operation occurred right after operation maritime guard ?
... | SELECT "operation" FROM table_204_313 WHERE "date" > (SELECT "date" FROM table_204_313 WHERE "operation" = 'operation maritime guard') ORDER BY "date" LIMIT 1 |
### Instruction:
CREATE TABLE table_29172 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the outgo... | SELECT "Outgoing manager" FROM table_29172 WHERE "Incoming manager" = 'Laurenţiu Reghecampf' |
### Instruction:
CREATE TABLE table_1418 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"2008 Candidates" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the status of the district wh... | SELECT "Status" FROM table_1418 WHERE "Results" = '63% 37%' |
### Instruction:
CREATE TABLE table_26781 (
"Railroad" text,
"Game Cost" text,
"Real-Life Years of Operation" text,
"Real-Life Eventual Outcome" text,
"Currently\u00b9 Part Of..." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the real life yea... | SELECT "Real-Life Years of Operation" FROM table_26781 WHERE "Currently\u00b9 Part Of..." = 'Amtrak' |
### Instruction:
CREATE TABLE table_204_778 (
id number,
"code" number,
"county" text,
"former province" text,
"area (km2)" number,
"population\ncensus 2009" number,
"capital" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many people li... | SELECT "population\ncensus 2009" FROM table_204_778 WHERE "county" = 'kilifi' |
### Instruction:
CREATE TABLE table_48026 (
"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 Place, when Score is '73-71=144', and when Player is 'Scott Simpson'?
### Respon... | SELECT "Place" FROM table_48026 WHERE "Score" = '73-71=144' AND "Player" = 'scott simpson' |
### Instruction:
CREATE TABLE table_37781 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Record on Week 13 at the Hoosier ... | SELECT "Record" FROM table_37781 WHERE "Game Site" = 'hoosier dome' AND "Week" = '13' |
### Instruction:
CREATE TABLE table_59929 (
"White" text,
"Black" text,
"Year" real,
"Result" text,
"Moves" real,
"Tournament" text,
"Opening" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the black with 24 moves in the dortmund tour... | SELECT "Black" FROM table_59929 WHERE "Moves" = '24' AND "Tournament" = 'dortmund' |
### Instruction:
CREATE TABLE table_30197 (
"Sponsored name" text,
"Non-sponsored name" text,
"Sponsor" text,
"Stadium" text,
"City" text,
"Country" text,
"Sport" text,
"Sponsorship Ended" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT "City" FROM table_30197 WHERE "Country" = 'Sweden' |
### Instruction:
CREATE TABLE table_74685 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team was the away team wh... | SELECT "Away team" FROM table_74685 WHERE "Venue" = 'punt road oval' |
### Instruction:
CREATE TABLE table_13779832_1 (
judges VARCHAR,
local_title VARCHAR,
presenters VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the judges with local title being x factor and presenters being heikki paasonen jukka rossi (xtra f... | SELECT judges FROM table_13779832_1 WHERE local_title = "X Factor" AND presenters = "Heikki Paasonen Jukka Rossi (Xtra Factor)" |
### Instruction:
CREATE TABLE table_49112 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" real,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date when the ve... | SELECT "Date" FROM table_49112 WHERE "Venue" = 'gold coast convention centre' |
### Instruction:
CREATE TABLE table_66363 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many losse... | SELECT COUNT("Losses") FROM table_66363 WHERE "Points" = '11' |
### Instruction:
CREATE TABLE table_36556 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text,
"Class AAAAA" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school year has a AAAA class of college stati... | SELECT "School Year" FROM table_36556 WHERE "Class AAAA" = 'college station a&m consolidated' |
### Instruction:
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Return a b... | SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY MIN(age) |
### Instruction:
CREATE TABLE table_203_40 (
id number,
"p.s. #" number,
"school name" text,
"neighborhood" text,
"low grade" text,
"high grade" number,
"year closed" text,
"building status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT COUNT("school name") FROM table_203_40 WHERE "building status" = 'demolished' |
### Instruction:
CREATE TABLE table_39772 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"20 Questions" text,
"Pictorials" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Cover model has a Pictorials of brande roderick-pmoy, naked ... | SELECT "Cover model" FROM table_39772 WHERE "Pictorials" = 'brande roderick-pmoy, naked news' |
### Instruction:
CREATE TABLE table_38029 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is under segment C when s cu... | SELECT "Segment C" FROM table_38029 WHERE "Segment B" = 's cuckoo clock' |
### Instruction:
CREATE TABLE table_46288 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which manufacturer of aprilia wth time of +1:36.557 has the highest lap?
### Response:
| SELECT MAX("Laps") FROM table_46288 WHERE "Manufacturer" = 'aprilia' AND "Time" = '+1:36.557' |
### Instruction:
CREATE TABLE table_30168 (
"Round" text,
"Main date" text,
"Number of fixtures" real,
"Clubs" text,
"New entries this round" text,
"Prize money" text,
"Player of the Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How ... | SELECT COUNT("Number of fixtures") FROM table_30168 WHERE "New entries this round" = 'none' |
### Instruction:
CREATE TABLE table_13716 (
"Sr No" real,
"Name" text,
"Locale" text,
"Height" text,
"Floors" real,
"Building Type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times is the building type residential and the locale yas... | SELECT COUNT("Sr No") FROM table_13716 WHERE "Building Type" = 'residential' AND "Locale" = 'yashodham' |
### Instruction:
CREATE TABLE table_56113 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which home team scored 12.11 (8... | SELECT "Home team" FROM table_56113 WHERE "Home team score" = '12.11 (83)' |
### Instruction:
CREATE TABLE table_29000 (
"Electoral District" text,
"Registered voters" real,
"Seats in Congress" real,
"Candidates per party" real,
"Participating parties" real,
"Total candidates" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT COUNT("Seats in Congress") FROM table_29000 WHERE "Candidates per party" = '6' |
### Instruction:
CREATE TABLE table_48502 (
"Result" 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.
-- What time was the event k-1 the ... | SELECT "Time" FROM table_48502 WHERE "Event" = 'k-1 the challenge 1999' |
### Instruction:
CREATE TABLE table_74112 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Position in table" FROM table_74112 WHERE "Outgoing manager" = 'Alfredo Merino' |
### Instruction:
CREATE TABLE table_63882 (
"Monday" text,
"Tuesday" text,
"Wednesday" text,
"Thursday" text,
"Friday" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is shown on Tuesday when Wednesday is Fox Sports Tonight (ends 1 am next day)?... | SELECT "Tuesday" FROM table_63882 WHERE "Wednesday" = 'fox sports tonight (ends 1 am next day)' |
### Instruction:
CREATE TABLE table_888 (
"District" real,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the incumbent with opponent being anthony weiner (d) u... | SELECT "Incumbent" FROM table_888 WHERE "Opponent" = 'Anthony Weiner (D) unopposed' |
### Instruction:
CREATE TABLE table_35872 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What surface was the match on November 6, 19... | SELECT "Surface" FROM table_35872 WHERE "Date" = 'november 6, 1982' |
### Instruction:
CREATE TABLE table_204_541 (
id number,
"name" text,
"area" text,
"height" text,
"floors" number,
"year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which building has more floors than the landmark hotel ?
### Response:
| SELECT "name" FROM table_204_541 WHERE "floors" > (SELECT "floors" FROM table_204_541 WHERE "name" = 'the landmark hotel') |
### Instruction:
CREATE TABLE table_68922 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of points for chassis of brm p160e and year more than 1974
### Response:
| SELECT SUM("Points") FROM table_68922 WHERE "Chassis" = 'brm p160e' AND "Year" > '1974' |
### Instruction:
CREATE TABLE table_23854 (
"No. in series" real,
"Title" text,
"Directedby" text,
"Writtenby" text,
"Originalairdate" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number episode was written by kurt... | SELECT MAX("No. in series") FROM table_23854 WHERE "Writtenby" = 'Kurt Sutter & Jack LoGiudice' |
### Instruction:
CREATE TABLE table_name_56 (
money___ INTEGER,
to_par VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which money is the highest one that has a To par of 1, and a Score of 73-70-73-71=287?
### Response:
| SELECT MAX(money___) AS $__ FROM table_name_56 WHERE to_par = "–1" AND score = 73 - 70 - 73 - 71 = 287 |
### Instruction:
CREATE TABLE table_16722 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Race" FROM table_16722 WHERE "Location" = 'Kyalami' |
### Instruction:
CREATE TABLE table_74992 (
"Release date" text,
"Release title" text,
"Country" text,
"Publisher" text,
"Format" text,
"Language" text,
"Subtitles" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which publi... | SELECT "Publisher" FROM table_74992 WHERE "Release title" = 'martial law: substitutes' |
### Instruction:
CREATE TABLE table_2807 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "High rebounds" FROM table_2807 WHERE "Team" = 'Orlando' |
### Instruction:
CREATE TABLE table_77805 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What circuit did Innes Ireland win at for the I lombank... | SELECT "Circuit" FROM table_77805 WHERE "Winning driver" = 'innes ireland' AND "Race Name" = 'i lombank trophy' |
### Instruction:
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
-- Using valid SQLite, answer the following questions for t... | SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY Flag |
### Instruction:
CREATE TABLE table_80366 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party's 1st member is William Denison in the election of 1832?
##... | SELECT "1st Party" FROM table_80366 WHERE "1st Member" = 'william denison' AND "Election" = '1832' |
### Instruction:
CREATE TABLE table_name_96 (
manager VARCHAR,
wpct VARCHAR,
years VARCHAR,
losses VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which manager had less than 287 losses, less than 80 wins, a win percentage of 0.296, ... | SELECT manager FROM table_name_96 WHERE losses < 287 AND wins < 80 AND years = "1904" AND wpct = 0.296 |
### Instruction:
CREATE TABLE candidate (
candidate_id number,
people_id number,
poll_source text,
date text,
support_rate number,
consider_rate number,
oppose_rate number,
unsure_rate number
)
CREATE TABLE people (
people_id number,
sex text,
name text,
date_of_birth te... | SELECT * FROM people |
### Instruction:
CREATE TABLE table_70819 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Try BP" text,
"Losing BP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Losing BP with drawn of 1 and a Try BP of 6.
### Response:
| SELECT "Losing BP" FROM table_70819 WHERE "Drawn" = '1' AND "Try BP" = '6' |
### Instruction:
CREATE TABLE table_203_799 (
id number,
"year" number,
"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.
-- prior to 1993 how many releases were... | SELECT COUNT(*) FROM table_203_799 WHERE "year" < 1993 AND "format(s)" = 'album' |
### Instruction:
CREATE TABLE table_13275 (
"School" text,
"Location" text,
"Mascot" text,
"IHSAA Class" text,
"County" text,
"Year Joined" text,
"Year Left" text,
"Conference Joined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What i... | SELECT "Location" FROM table_13275 WHERE "School" = 'lakewood park christian' |
### Instruction:
CREATE TABLE table_26538 (
"Edition" text,
"Round" text,
"Date" text,
"Against" text,
"Surface" text,
"Opponent" text,
"Win/Lose" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every entry in the w... | SELECT "Win/Lose" FROM table_26538 WHERE "Against" = 'Sweden' |
### Instruction:
CREATE TABLE table_52247 (
"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 the car with laps more than 70 and a time/retired of +12.535?
##... | SELECT "Constructor" FROM table_52247 WHERE "Laps" > '70' AND "Time/Retired" = '+12.535' |
### Instruction:
CREATE TABLE table_47638 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Venue on October 27, 2005 had a Score of 5-0?
### Response:
| SELECT "Venue" FROM table_47638 WHERE "Score" = '5-0' AND "Date" = 'october 27, 2005' |
### Instruction:
CREATE TABLE table_17619 (
"Number in series" real,
"Broadcast Order" text,
"Title" text,
"Villain/s" text,
"U.S. Air Date" text,
"Production Code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the title of the episode w... | SELECT "Title" FROM table_17619 WHERE "Broadcast Order" = 'S04 E01' |
### Instruction:
CREATE TABLE table_70291 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game when the Calgary Flames were the visiting team and there was a ... | SELECT "Date" FROM table_70291 WHERE "Visitor" = 'calgary flames' AND "Record" = '1–2–0' |
### Instruction:
CREATE TABLE table_30310 (
"Year Location" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many year locations are there for the womens doubl... | SELECT COUNT("Year Location") FROM table_30310 WHERE "Womens Doubles" = 'Jing Junhong Li Jiawei' |
### Instruction:
CREATE TABLE table_40756 (
"Season" text,
"Games" real,
"Lost" real,
"Tied" real,
"Points" real,
"Pct %" real,
"Goals for" real,
"Goals against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of games ... | SELECT "Games" FROM table_40756 WHERE "Tied" = '10' |
### Instruction:
CREATE TABLE table_67068 (
"Season" real,
"Series" text,
"Wins" text,
"Podiums" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value for Podiums, when the Season is after 2008, and when the Series is GP2... | SELECT "Podiums" FROM table_67068 WHERE "Season" > '2008' AND "Series" = 'gp2 asia series' |
### Instruction:
CREATE TABLE table_30987 (
"Round" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Rider" text,
"Winning Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the pole position wh... | SELECT "Pole Position" FROM table_30987 WHERE "Fastest Lap" = 'Matt Davies' |
### Instruction:
CREATE TABLE table_54241 (
"Class" text,
"Type" text,
"Quantity" real,
"Barry Nos." text,
"GWR Nos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which class is smaller than 5 and the GWR is 1322 1323?
### Response:
| SELECT "Class" FROM table_54241 WHERE "Quantity" < '5' AND "GWR Nos." = '1322–1323' |
### Instruction:
CREATE TABLE table_30106 (
"Player" text,
"Matches" real,
"Innings" real,
"Runs" real,
"Average" text,
"Highest score" text,
"100s" real,
"50s" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average for the p... | SELECT "Average" FROM table_30106 WHERE "Runs" = '313' |
### Instruction:
CREATE TABLE table_27831 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote... | SELECT "Written by" FROM table_27831 WHERE "Title" = 'Victor/Victorious' |
### Instruction:
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many students are tau... | SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "TARRING" AND T2.lastname = "LEIA" |
### Instruction:
CREATE TABLE table_1688 (
"Province" text,
"Provincial capital" text,
"Largest city" text,
"Area (km 2 )" real,
"Population (2013)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the largest city where the population is 6620... | SELECT "Largest city" FROM table_1688 WHERE "Population (2013)" = '6620100' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.