instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_18416 (
"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.
-- To which party does Frank T. Bow belong?
### Response:
|
SELECT "Party" FROM table_18416 WHERE "Incumbent" = 'Frank T. Bow'
|
### Instruction:
CREATE TABLE table_42541 (
"Result" text,
"Opponent" text,
"Type" text,
"Round" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When has a Type of tko, and a Round of 1 (6)
### Response:
|
SELECT "Date" FROM table_42541 WHERE "Type" = 'tko' AND "Round" = '1 (6)'
|
### Instruction:
CREATE TABLE table_50101 (
"Order" real,
"Name dates" text,
"Princess Royal from (date) to (date)" text,
"Parent" text,
"Date married" text,
"Husband dates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the parent on the order of 6?
### Response:
|
SELECT "Parent" FROM table_50101 WHERE "Order" = '6'
|
### Instruction:
CREATE TABLE table_76543 (
"Year" real,
"Date" text,
"Race name" text,
"Winner" text,
"Engine" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which race did Bill Holland win in 1946?
### Response:
|
SELECT "Race name" FROM table_76543 WHERE "Year" = '1946' AND "Winner" = 'bill holland'
|
### Instruction:
CREATE TABLE table_name_47 (
opponent VARCHAR,
record VARCHAR,
game VARCHAR,
february VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent in games over 58, after Feb 16, and having a record of 40-20-4?
### Response:
|
SELECT opponent FROM table_name_47 WHERE game > 58 AND february > 16 AND record = "40-20-4"
|
### Instruction:
CREATE TABLE table_191591_5 (
region_2 VARCHAR,
number_of_episodes VARCHAR,
dvd_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where are there 25 episodes in Catfights and Brawls?
### Response:
|
SELECT region_2 FROM table_191591_5 WHERE number_of_episodes = "25" AND dvd_title = "Catfights and Brawls"
|
### Instruction:
CREATE TABLE table_203_109 (
id number,
"treaty" text,
"organization" text,
"introduced" number,
"signed" number,
"ratified" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many treaties had been introduced by 1986 ?
### Response:
|
SELECT COUNT("treaty") FROM table_203_109 WHERE "ratified" >= 1986
|
### Instruction:
CREATE TABLE table_name_79 (
year INTEGER,
result VARCHAR,
group VARCHAR,
award VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Year that has the Group, Logie Award, the Award, Most Outstanding Actor, and the Result, nominated?
### Response:
|
SELECT AVG(year) FROM table_name_79 WHERE group = "logie award" AND award = "most outstanding actor" AND result = "nominated"
|
### Instruction:
CREATE TABLE table_709 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many parties is Tom Foley a member of?
### Response:
|
SELECT COUNT("Party") FROM table_709 WHERE "Incumbent" = 'Tom Foley'
|
### Instruction:
CREATE TABLE table_name_94 (
others_number VARCHAR,
county VARCHAR,
bush_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of the value Others#, when the county is Langlade, and when the value Bush# is greater than 6,235?
### Response:
|
SELECT COUNT(others_number) FROM table_name_94 WHERE county = "langlade" AND bush_number > 6 OFFSET 235
|
### Instruction:
CREATE TABLE table_18618707_1 (
contestant VARCHAR,
height VARCHAR,
geographical_regions VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When el cibao is the geographical region and the height is 1.80 who is the contestant?
### Response:
|
SELECT contestant FROM table_18618707_1 WHERE height = "1.80" AND geographical_regions = "El Cibao"
|
### Instruction:
CREATE TABLE table_64839 (
"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 bronze number for the nation with less than 0 gold?
### Response:
|
SELECT MIN("Bronze") FROM table_64839 WHERE "Gold" < '0'
|
### Instruction:
CREATE TABLE table_203_631 (
id number,
"year" number,
"name of show" text,
"episodes" text,
"other guests" text,
"winner(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long has it been since chermaine sheh first appeared on a variety show ?
### Response:
|
SELECT present_ref - MIN("year") FROM table_203_631
|
### Instruction:
CREATE TABLE table_38848 (
"Institution" text,
"Location" text,
"Team Nickname" text,
"Tenure" text,
"New Conference" text,
"New Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the new classification for La Mirada, California?
### Response:
|
SELECT "New Classification" FROM table_38848 WHERE "Location" = 'la mirada, california'
|
### Instruction:
CREATE TABLE table_8712 (
"Event" text,
"Record" text,
"Nationality" text,
"Date" text,
"Meet" text,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the meet when the event is flying 200 m time trial?
### Response:
|
SELECT "Meet" FROM table_8712 WHERE "Event" = 'flying 200 m time trial'
|
### Instruction:
CREATE TABLE table_17462 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What nationality is pick # 89
### Response:
|
SELECT "Nationality" FROM table_17462 WHERE "Pick #" = '89'
|
### Instruction:
CREATE TABLE table_21629 (
"Series #" real,
"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.
-- Which seasons were directed by Nelson McCormick?
### Response:
|
SELECT "Title" FROM table_21629 WHERE "Directed by" = 'Nelson McCormick'
|
### Instruction:
CREATE TABLE table_70696 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Authority is set for Hauturu School?
### Response:
|
SELECT "Authority" FROM table_70696 WHERE "Name" = 'hauturu school'
|
### Instruction:
CREATE TABLE table_67189 (
"Year" real,
"Film" text,
"Director" text,
"Nationality of director" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ilm of taukukauppiaat has how many total number of years?
### Response:
|
SELECT COUNT("Year") FROM table_67189 WHERE "Film" = 'taukukauppiaat'
|
### Instruction:
CREATE TABLE table_37392 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Throws have a Position of 3b/rhp?
### Response:
|
SELECT "Throws" FROM table_37392 WHERE "Position" = '3b/rhp'
|
### Instruction:
CREATE TABLE table_69102 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which score has an Attendance of 31,178?
### Response:
|
SELECT "Score" FROM table_69102 WHERE "Attendance" = '31,178'
|
### Instruction:
CREATE TABLE table_63105 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Time has a Lane smaller than 4, and a Rank larger than 6?
### Response:
|
SELECT AVG("Time") FROM table_63105 WHERE "Lane" < '4' AND "Rank" > '6'
|
### Instruction:
CREATE TABLE table_38747 (
"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 nationality is Daryn Fersovich?
### Response:
|
SELECT "Nationality" FROM table_38747 WHERE "Player" = 'daryn fersovich'
|
### Instruction:
CREATE TABLE table_76123 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Country with Reteconomy as the Television service?
### Response:
|
SELECT "Country" FROM table_76123 WHERE "Television service" = 'reteconomy'
|
### Instruction:
CREATE TABLE table_203_119 (
id number,
"jamo" text,
"hangul compatibility" text,
"hangul jamo area" text,
"hanyang private use" text,
"halfwidth" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which symbol is listed at the top of the jamo column ?
### Response:
|
SELECT "jamo" FROM table_203_119 ORDER BY id LIMIT 1
|
### Instruction:
CREATE TABLE table_65233 (
"Fish" text,
"Guernsey Record" text,
"Year" text,
"Location" text,
"British Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the Guernsey record of 2-3-12 set?
### Response:
|
SELECT "Year" FROM table_65233 WHERE "Guernsey Record" = '2-3-12'
|
### Instruction:
CREATE TABLE table_67830 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the college when the over is larger than 15 in round 7?
### Response:
|
SELECT "College" FROM table_67830 WHERE "Overall" > '15' AND "Round" = '7'
|
### Instruction:
CREATE TABLE table_14563 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has an Attendance of 30,612?
### Response:
|
SELECT "Date" FROM table_14563 WHERE "Attendance" = '30,612'
|
### Instruction:
CREATE TABLE table_3066 (
"Round" real,
"Date" text,
"Country" text,
"Circuit" text,
"Sprint Winner" text,
"Main Winner" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date for sprint winner mexico
### Response:
|
SELECT "Date" FROM table_3066 WHERE "Sprint Winner" = 'Mexico'
|
### Instruction:
CREATE TABLE table_50793 (
"Event" text,
"Long Course/Short Course" text,
"Year Set" real,
"Time" text,
"Meet" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the latest year that had a 100m freestyle?
### Response:
|
SELECT MAX("Year Set") FROM table_50793 WHERE "Event" = '100m freestyle'
|
### Instruction:
CREATE TABLE table_30811 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production code for 'State of Grace'?
### Response:
|
SELECT MAX("Production code") FROM table_30811 WHERE "Title" = 'State of Grace'
|
### Instruction:
CREATE TABLE table_56489 (
"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 that has a Time/Retired of +2:06.0?
### Response:
|
SELECT "Constructor" FROM table_56489 WHERE "Time/Retired" = '+2:06.0'
|
### Instruction:
CREATE TABLE table_name_22 (
date VARCHAR,
uci_rating VARCHAR,
race_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the omloop van de vlaamse scheldeboorden race with a UCI rating of 1.1?
### Response:
|
SELECT date FROM table_name_22 WHERE uci_rating = "1.1" AND race_name = "omloop van de vlaamse scheldeboorden"
|
### Instruction:
CREATE TABLE table_203_494 (
id number,
"party" text,
"votes" number,
"%" number,
"swing" number,
"seats" number,
"change" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which party held the most seats but had a lesser turnout ?
### Response:
|
SELECT "party" FROM table_203_494 ORDER BY "seats" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_9688 (
"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 result for week 12 against the Green Bay Packers?
### Response:
|
SELECT "Result" FROM table_9688 WHERE "Week" > '12' AND "Opponent" = 'green bay packers'
|
### Instruction:
CREATE TABLE table_15002265_1 (
womens_doubles VARCHAR,
mens_doubles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the womens doubles with mens doubles being leopold bauer alfred kohlhauser
### Response:
|
SELECT womens_doubles FROM table_15002265_1 WHERE mens_doubles = "Leopold Bauer Alfred Kohlhauser"
|
### Instruction:
CREATE TABLE table_66426 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the score 3-6 4-6?
### Response:
|
SELECT "Date" FROM table_66426 WHERE "Score" = '3-6 4-6'
|
### Instruction:
CREATE TABLE table_1000 (
"Total#" real,
"Series#" real,
"Title" text,
"Writer" text,
"Director" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number from the total number of episodes is the episode written by Julian Unthank?
### Response:
|
SELECT "Series#" FROM table_1000 WHERE "Writer" = 'Julian Unthank'
|
### Instruction:
CREATE TABLE table_35920 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Attendance on November 29, 1953?
### Response:
|
SELECT SUM("Attendance") FROM table_35920 WHERE "Date" = 'november 29, 1953'
|
### Instruction:
CREATE TABLE table_43835 (
"Date" text,
"Opponent" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent when they played at the legion field birmingham, al site?
### Response:
|
SELECT "Opponent" FROM table_43835 WHERE "Site" = 'legion field • birmingham, al'
|
### Instruction:
CREATE TABLE table_77081 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich Score has a To par of 3, and a Country of united states?
### Response:
|
SELECT "Score" FROM table_77081 WHERE "To par" = '–3' AND "Country" = 'united states'
|
### Instruction:
CREATE TABLE table_name_26 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average 2006 value with a 2010 value of 417.9 and a 2011 value greater than 426.7?
### Response:
|
SELECT AVG(2006) FROM table_name_26 WHERE 2010 = 417.9 AND 2011 > 426.7
|
### Instruction:
CREATE TABLE table_38922 (
"Year (Ceremony)" real,
"Original title" text,
"English title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the English title of the film Directed by Jayme Monjardim?
### Response:
|
SELECT "English title" FROM table_38922 WHERE "Director" = 'jayme monjardim'
|
### Instruction:
CREATE TABLE table_name_24 (
grid INTEGER,
bike VARCHAR,
rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the lowest Grid which has a Bike of ducati 1098 rs 08 and a Rider of max biaggi?
### Response:
|
SELECT MIN(grid) FROM table_name_24 WHERE bike = "ducati 1098 rs 08" AND rider = "max biaggi"
|
### Instruction:
CREATE TABLE table_23292220_3 (
first_broadcast VARCHAR,
daves_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first broadcast date of the episode in which Dave's team is made up of Dave Johns and Sally Lindsay?
### Response:
|
SELECT first_broadcast FROM table_23292220_3 WHERE daves_team = "Dave Johns and Sally Lindsay"
|
### Instruction:
CREATE TABLE table_15274 (
"Championship" text,
"Current champion(s)" text,
"Reign" text,
"Date won" text,
"Days held" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the days for current champions of dean ambrose
### Response:
|
SELECT "Days held" FROM table_15274 WHERE "Current champion(s)" = 'dean ambrose'
|
### Instruction:
CREATE TABLE table_52595 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a roll value of 422?
### Response:
|
SELECT "Name" FROM table_52595 WHERE "Roll" = '422'
|
### Instruction:
CREATE TABLE table_37011 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Bronze that's also got a Godl of Kim Woo-Jin?
### Response:
|
SELECT "Bronze" FROM table_37011 WHERE "Gold" = 'kim woo-jin'
|
### Instruction:
CREATE TABLE table_21062 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter" text,
"Year named" real,
"Namesake" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many longitudes have a latitude of 9.9n?
### Response:
|
SELECT COUNT("Longitude") FROM table_21062 WHERE "Latitude" = '9.9N'
|
### Instruction:
CREATE TABLE table_28138 (
"Player" text,
"Nationality" text,
"Finals" real,
"Win-Loss" text,
"Year(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the win loss record the lady who appeard in 1969?
### Response:
|
SELECT "Win-Loss" FROM table_28138 WHERE "Year(s)" = '1969'
|
### Instruction:
CREATE TABLE table_73584 (
"Tournament" text,
"Games played" real,
"Points per game" text,
"Rebounds per game" text,
"Assists per game" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games played have 4.7 as points per game?
### Response:
|
SELECT "Games played" FROM table_73584 WHERE "Points per game" = '4.7'
|
### Instruction:
CREATE TABLE table_69926 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what tournament happened on march 27, 2006?
### Response:
|
SELECT "Tournament" FROM table_69926 WHERE "Date" = 'march 27, 2006'
|
### Instruction:
CREATE TABLE table_name_74 (
apogee__km_ VARCHAR,
alt_name VARCHAR,
mass__kg_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Apogee sis Ops-8285 with more than 1500 kg?
### Response:
|
SELECT COUNT(apogee__km_) FROM table_name_74 WHERE alt_name = "ops-8285" AND mass__kg_ > 1500
|
### Instruction:
CREATE TABLE body_builder (
body_builder_id number,
people_id number,
snatch number,
clean_jerk number,
total number
)
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
birth_date text,
birth_place text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show all information about each body builder.
### Response:
|
SELECT * FROM body_builder
|
### Instruction:
CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
)
CREATE TABLE tags (
index number,
id number,
tag text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many unique entries are by the same Artist/group?
### Response:
|
SELECT COUNT(*), artist FROM torrents GROUP BY artist
|
### Instruction:
CREATE TABLE table_2950964_5 (
read_by VARCHAR,
isbn VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- THe audio book with ISBN 978-1-4084-6879-1 is read by whom?
### Response:
|
SELECT read_by FROM table_2950964_5 WHERE isbn = "isbn 978-1-4084-6879-1"
|
### Instruction:
CREATE TABLE table_58183 (
"Nationality" text,
"Position" text,
"Tottenham Hotspur career" text,
"Club Apps" text,
"Goals" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals did the player with 229 club apps have?
### Response:
|
SELECT "Goals" FROM table_58183 WHERE "Club Apps" = '229'
|
### Instruction:
CREATE TABLE table_2263 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the writers of episode 20?
### Response:
|
SELECT "Written by" FROM table_2263 WHERE "No. in season" = '20'
|
### Instruction:
CREATE TABLE table_67247 (
"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.
-- Who was the visitor on January 24?
### Response:
|
SELECT "Visitor" FROM table_67247 WHERE "Date" = 'january 24'
|
### Instruction:
CREATE TABLE table_10068 (
"Team" text,
"Location" text,
"Venue" text,
"Capacity" real,
"Position in 2006" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Team Dnepr's position in 2006?
### Response:
|
SELECT "Position in 2006" FROM table_10068 WHERE "Team" = 'dnepr'
|
### Instruction:
CREATE TABLE table_name_79 (
abbreviation VARCHAR,
inception VARCHAR,
assets_us$billion VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1?
### Response:
|
SELECT abbreviation FROM table_name_79 WHERE inception = "1999" AND assets_us$billion = "7.1"
|
### Instruction:
CREATE TABLE table_53243 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time of the rider with a speed of 102.962mph?
### Response:
|
SELECT "Time" FROM table_53243 WHERE "Speed" = '102.962mph'
|
### Instruction:
CREATE TABLE table_65354 (
"Draw" real,
"Language" text,
"Artist" text,
"Place" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest draw when points is less than 11 and language is norwegian?
### Response:
|
SELECT MAX("Draw") FROM table_65354 WHERE "Points" < '11' AND "Language" = 'norwegian'
|
### Instruction:
CREATE TABLE table_46629 (
"Nominative" text,
"Ergative" text,
"Dative" text,
"Genitive" text,
"Instrumental" text,
"Adverbial" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the genitive for the ergative shen?
### Response:
|
SELECT "Genitive" FROM table_46629 WHERE "Ergative" = 'shen'
|
### Instruction:
CREATE TABLE table_201_10 (
id number,
"#" number,
"name" text,
"office" text,
"political party" text,
"occupation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- after what year were austevoll mayors affiliated with political parties ?
### Response:
|
SELECT "office" FROM table_201_10 WHERE "political party" IS NULL ORDER BY "office" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_203_77 (
id number,
"album title" text,
"format" text,
"year" number,
"original label" text,
"chart positions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of albus from this chart that made the billboard 200 ?
### Response:
|
SELECT COUNT("album title") FROM table_203_77 WHERE NOT "chart positions" IS NULL
|
### Instruction:
CREATE TABLE table_1656555_1 (
Appointed VARCHAR,
ordained_priest VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many appointed archbishops were ordained as priests on December 20, 1959
### Response:
|
SELECT COUNT(Appointed) AS archbishop FROM table_1656555_1 WHERE ordained_priest = "December 20, 1959"
|
### Instruction:
CREATE TABLE table_66227 (
"!Event" real,
"Round" text,
"Surface" text,
"Winner" text,
"Opponent" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Surface has a Result of fernando verdasco?
### Response:
|
SELECT "Surface" FROM table_66227 WHERE "Result" = 'fernando verdasco'
|
### Instruction:
CREATE TABLE table_1163 (
"Rnd" real,
"Pick" real,
"Player name" text,
"Position" text,
"College" text,
"Height" text,
"Weight" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many colleges did the player picked 57 attend?
### Response:
|
SELECT COUNT("College") FROM table_1163 WHERE "Pick" = '57'
|
### Instruction:
CREATE TABLE table_2316 (
"School" text,
"Location(s)" text,
"Control" text,
"Type" text,
"Enrollment" real,
"Founded" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much would you expect the enrollment to be in Springfield?
### Response:
|
SELECT MIN("Enrollment") FROM table_2316 WHERE "Location(s)" = 'Springfield'
|
### Instruction:
CREATE TABLE table_74468 (
"Townland" text,
"Area( acres )" real,
"Barony" text,
"Civil parish" text,
"Poor law union" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the poor law union of the Kilmaloda townland?
### Response:
|
SELECT "Poor law union" FROM table_74468 WHERE "Townland" = 'Kilmaloda'
|
### Instruction:
CREATE TABLE table_name_67 (
player VARCHAR,
country VARCHAR,
to_par VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What United States Player has a To par of +4 and a Score of 71-77=148?
### Response:
|
SELECT player FROM table_name_67 WHERE country = "united states" AND to_par = "+4" AND score = 71 - 77 = 148
|
### Instruction:
CREATE TABLE table_70317 (
"Date" text,
"Opponent" text,
"Home/Away" text,
"Field" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result when you play at home against Pride
### Response:
|
SELECT "Result" FROM table_70317 WHERE "Home/Away" = 'home' AND "Opponent" = 'pride'
|
### Instruction:
CREATE TABLE table_name_28 (
constructor VARCHAR,
driver VARCHAR,
laps VARCHAR,
qual VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which constructor has Chuck Weyant as a driver, 45 laps, and a qual of less than 142.29?
### Response:
|
SELECT constructor FROM table_name_28 WHERE laps = 45 AND qual < 142.29 AND driver = "chuck weyant"
|
### Instruction:
CREATE TABLE table_203_644 (
id number,
"pos." number,
"driver" text,
"co-driver" text,
"car" text,
"time" text,
"difference" text,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who finished with the least time ?
### Response:
|
SELECT "driver" FROM table_203_644 ORDER BY "time" LIMIT 1
|
### Instruction:
CREATE TABLE table_38418 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team did the Montreal Canadiens visit when the record was 0-3?
### Response:
|
SELECT "Home" FROM table_38418 WHERE "Visitor" = 'montreal canadiens' AND "Record" = '0-3'
|
### Instruction:
CREATE TABLE table_19495707_1 (
license VARCHAR,
latest_release_date_and_version VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the license for 2009-05-25 v 7.61
### Response:
|
SELECT license FROM table_19495707_1 WHERE latest_release_date_and_version = "2009-05-25 v 7.61"
|
### Instruction:
CREATE TABLE table_name_42 (
winning_score VARCHAR,
runner_s__up VARCHAR,
margin_of_victory VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the winning score when the runner-up was Beth Daniel and the margin of victory was 7 strokes?
### Response:
|
SELECT winning_score FROM table_name_42 WHERE runner_s__up = "beth daniel" AND margin_of_victory = "7 strokes"
|
### Instruction:
CREATE TABLE table_78258 (
"Athlete" text,
"Event" text,
"Snatch" real,
"Clean & Jerk" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many snatches were there with a total of 267.5?
### Response:
|
SELECT COUNT("Snatch") FROM table_78258 WHERE "Total" < '267.5'
|
### Instruction:
CREATE TABLE table_18674 (
"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 result with first elected being 1922
### Response:
|
SELECT "Result" FROM table_18674 WHERE "First elected" = '1922'
|
### Instruction:
CREATE TABLE table_44797 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Comp" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Venue of idrottsparken?
### Response:
|
SELECT "Score" FROM table_44797 WHERE "Venue" = 'idrottsparken'
|
### 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.
-- which country had the most leaders ?
### Response:
|
SELECT "country" FROM table_204_126 GROUP BY "country" ORDER BY COUNT("player") DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_4 (
id number,
"date" text,
"race" text,
"competition" text,
"rider" text,
"country" text,
"location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many uci europe tour competitions are recorded in the chart ?
### Response:
|
SELECT COUNT(*) FROM table_204_4 WHERE "competition" = 'uci europe tour'
|
### Instruction:
CREATE TABLE table_41402 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- By how many strokes did Lema beat Jack Nicklaus?
### Response:
|
SELECT "Margin of victory" FROM table_41402 WHERE "Runner(s)-up" = 'jack nicklaus'
|
### Instruction:
CREATE TABLE table_204_231 (
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.
-- which nation won the most silver medals ?
### Response:
|
SELECT "nation" FROM table_204_231 ORDER BY "silver" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_10921 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a hometown of los angeles, ca?
### Response:
|
SELECT "Player" FROM table_10921 WHERE "Hometown" = 'los angeles, ca'
|
### Instruction:
CREATE TABLE table_name_85 (
against INTEGER,
favour VARCHAR,
lost VARCHAR,
draw VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Against where they lost less than 20 games, tied more than 2 of them, and they had Favour less than 11?
### Response:
|
SELECT MAX(against) FROM table_name_85 WHERE lost < 20 AND draw > 2 AND favour < 11
|
### Instruction:
CREATE TABLE table_204_136 (
id number,
"year" number,
"final" text,
"semi" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was the next time spain was a finalist after 1979 ?
### Response:
|
SELECT "year" FROM table_204_136 WHERE "final" = 'spain' AND "year" > 1979 ORDER BY "year" LIMIT 1
|
### Instruction:
CREATE TABLE table_204_34 (
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.
-- what rank did the nation with the most total medals receive ?
### Response:
|
SELECT "rank" FROM table_204_34 ORDER BY "total" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_45628 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Cavaliers Record in the game with a Score of 98-99?
### Response:
|
SELECT "Record" FROM table_45628 WHERE "Score" = '98-99'
|
### Instruction:
CREATE TABLE table_48913 (
"Team" text,
"Driver" text,
"Chassis" text,
"Engine" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which engine is in all rounds with Tsugio Matsuda driving?
### Response:
|
SELECT "Engine" FROM table_48913 WHERE "Rounds" = 'all' AND "Driver" = 'tsugio matsuda'
|
### Instruction:
CREATE TABLE table_34695 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the attendance 24,976?
### Response:
|
SELECT "Date" FROM table_34695 WHERE "Attendance" = '24,976'
|
### Instruction:
CREATE TABLE table_72068 (
"Player" text,
"No." text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many schools did player number 3 play at?
### Response:
|
SELECT COUNT("School/Club Team") FROM table_72068 WHERE "No." = '3'
|
### Instruction:
CREATE TABLE table_203_608 (
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.
-- what is the only nation to have one silver medal ?
### Response:
|
SELECT "nation" FROM table_203_608 WHERE "silver" = 1
|
### Instruction:
CREATE TABLE table_22796 (
"Match no." real,
"Match Type" text,
"Team Europe" text,
"Score" text,
"Team USA" text,
"Progressive Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When tim mack is on team usa what is the progressive total?
### Response:
|
SELECT "Progressive Total" FROM table_22796 WHERE "Team USA" = 'Tim Mack'
|
### Instruction:
CREATE TABLE table_2800 (
"Club" text,
"Location" text,
"Manager" text,
"Stadium" text,
"Capacity" real,
"Team captain" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the captain of the team whose stadium is Gradski Stadion?
### Response:
|
SELECT "Team captain" FROM table_2800 WHERE "Stadium" = 'Gradski Stadion'
|
### Instruction:
CREATE TABLE table_2816 (
"Month" text,
"Week" real,
"Overall" text,
"Offensive" text,
"Defensive" text,
"Transition" text,
"Rookie" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the overall for mark steenhuis
### Response:
|
SELECT "Overall" FROM table_2816 WHERE "Offensive" = 'Mark Steenhuis'
|
### Instruction:
CREATE TABLE table_204_26 (
id number,
"name" text,
"position" text,
"birth date/age at start of campaign" text,
"games in campaign" text,
"club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the oldest player ?
### Response:
|
SELECT "name" FROM table_204_26 ORDER BY "birth date/age at start of campaign" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_550 (
id number,
"event" text,
"record" text,
"athlete" text,
"date" text,
"meet" text,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many records has harmon harmon held ?
### Response:
|
SELECT COUNT("record") FROM table_204_550 WHERE "athlete" = 'harmon harmon'
|
### Instruction:
CREATE TABLE table_75844 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What competition has June 19, 2004 as the date?
### Response:
|
SELECT "Competition" FROM table_75844 WHERE "Date" = 'june 19, 2004'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.