instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_86 (
social_democratic VARCHAR,
democratic_and_social_centre VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats?
### Response:
|
SELECT social_democratic FROM table_name_86 WHERE democratic_and_social_centre = "4.4% 4 seats"
|
### Instruction:
CREATE TABLE table_35973 (
"Year" real,
"Event" text,
"Award" text,
"Nominee" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result in the Golden Reel Awards?
### Response:
|
SELECT "Result" FROM table_35973 WHERE "Event" = 'golden reel awards'
|
### Instruction:
CREATE TABLE table_name_71 (
race_1 VARCHAR,
team VARCHAR,
race_3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Race 1, when Team is 'Dick Johnson Racing', and when Race 3 is 'DNF'?
### Response:
|
SELECT race_1 FROM table_name_71 WHERE team = "dick johnson racing" AND race_3 = "dnf"
|
### Instruction:
CREATE TABLE table_79606 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when there were 7 ties?
### Response:
|
SELECT "Score" FROM table_79606 WHERE "Tie no" = '7'
|
### Instruction:
CREATE TABLE table_name_26 (
prev VARCHAR,
chng VARCHAR,
rating VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the total number of Prev that has the Chng of +10, and the Rating larger than 2765?
### Response:
|
SELECT COUNT(prev) FROM table_name_26 WHERE chng = "+10" AND rating > 2765
|
### Instruction:
CREATE TABLE table_17059 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player is from Spring, Tx?
### Response:
|
SELECT "Player" FROM table_17059 WHERE "Hometown" = 'Spring, TX'
|
### Instruction:
CREATE TABLE table_name_98 (
races INTEGER,
final_placing VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the 2005 season, how many races did the 15th place team complete?
### Response:
|
SELECT AVG(races) FROM table_name_98 WHERE final_placing = "15th" AND season = "2005"
|
### Instruction:
CREATE TABLE table_71646 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year of a film from Mexico?
### Response:
|
SELECT MIN("Year") FROM table_71646 WHERE "Country" = 'mexico'
|
### Instruction:
CREATE TABLE table_name_3 (
country VARCHAR,
to_par VARCHAR,
year_s__won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1
### Response:
|
SELECT country FROM table_name_3 WHERE to_par > 3 AND year_s__won = "1979"
|
### Instruction:
CREATE TABLE table_name_14 (
pieces INTEGER,
start VARCHAR,
release VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of pieces for boards that started in 1941 and were released after 2001?
### Response:
|
SELECT AVG(pieces) FROM table_name_14 WHERE start = "1941" AND release > 2001
|
### Instruction:
CREATE TABLE table_17065 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the position of the player from Butler High School?
### Response:
|
SELECT "Position" FROM table_17065 WHERE "School" = 'Butler High School'
|
### Instruction:
CREATE TABLE table_203_367 (
id number,
"year" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which driver appears the most ?
### Response:
|
SELECT "driver" FROM table_203_367 GROUP BY "driver" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_63732 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the player when the team is oakland raiders?
### Response:
|
SELECT "Player" FROM table_63732 WHERE "Team" = 'oakland raiders'
|
### Instruction:
CREATE TABLE table_60415 (
"Knight" text,
"Weapon/item" text,
"External weapon" text,
"Shield animal" text,
"Cart" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What cart has a serpent shield animal?
### Response:
|
SELECT "Cart" FROM table_60415 WHERE "Shield animal" = 'serpent'
|
### Instruction:
CREATE TABLE race (
race_id number,
name text,
class text,
date text,
track_id text
)
CREATE TABLE track (
track_id number,
name text,
location text,
seating number,
year_opened number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Return the different classes of races.
### Response:
|
SELECT DISTINCT class FROM race
|
### Instruction:
CREATE TABLE table_58330 (
"Aircraft" text,
"Origin" text,
"Role" text,
"Registration" text,
"Number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the role of the aircraft that originates from the European Union?
### Response:
|
SELECT "Role" FROM table_58330 WHERE "Origin" = 'european union'
|
### Instruction:
CREATE TABLE table_name_7 (
score VARCHAR,
opponent VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has an Opponent of washington capitals, and a Record of 24-34-17?
### Response:
|
SELECT score FROM table_name_7 WHERE opponent = "washington capitals" AND record = "24-34-17"
|
### Instruction:
CREATE TABLE table_name_78 (
bronze VARCHAR,
total VARCHAR,
rank VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many bronzes for nations ranked above 7, under 3 golds, and under 10 total medals?
### Response:
|
SELECT COUNT(bronze) FROM table_name_78 WHERE rank < 7 AND gold < 3 AND total < 10
|
### Instruction:
CREATE TABLE table_51966 (
"Component" text,
"Integrated" text,
"Allied-Related" text,
"Allied-Unrelated" text,
"Holding" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the holding of the customers?
### Response:
|
SELECT "Holding" FROM table_51966 WHERE "Component" = 'customers'
|
### Instruction:
CREATE TABLE table_39984 (
"Television service" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What language has sky famiglia as the package/option?
### Response:
|
SELECT "Language" FROM table_39984 WHERE "Package/Option" = 'sky famiglia'
|
### Instruction:
CREATE TABLE table_16527640_2 (
rank_held_at_time_of_death VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players named paddy rowan?
### Response:
|
SELECT COUNT(rank_held_at_time_of_death) FROM table_16527640_2 WHERE player = "Paddy Rowan"
|
### Instruction:
CREATE TABLE table_name_35 (
score VARCHAR,
december VARCHAR,
points VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has Points larger than 46, and a Game smaller than 35, and a December of 21?
### Response:
|
SELECT score FROM table_name_35 WHERE points > 46 AND game < 35 AND december = 21
|
### Instruction:
CREATE TABLE table_35693 (
"Category" text,
"Type" text,
"Attribute" text,
"Bubbles" text,
"Cancelable" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the attribute of onpointerout, what is the cancelable?
### Response:
|
SELECT "Cancelable" FROM table_35693 WHERE "Attribute" = 'onpointerout'
|
### Instruction:
CREATE TABLE table_24648983_1 (
title VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the episode that had 9.89 million U.S. viewers?
### Response:
|
SELECT title FROM table_24648983_1 WHERE us_viewers__million_ = "9.89"
|
### Instruction:
CREATE TABLE table_10022 (
"Date" text,
"Home" text,
"Score" text,
"Away" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Attendance is less than 521?
### Response:
|
SELECT "Date" FROM table_10022 WHERE "Attendance" < '521'
|
### Instruction:
CREATE TABLE table_30252 (
"School" text,
"Nickname" text,
"Location" text,
"Colors" text,
"Tenure" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When were the members tenured in the Field school?
### Response:
|
SELECT "Tenure" FROM table_30252 WHERE "School" = 'Field'
|
### Instruction:
CREATE TABLE table_63473 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Pick number of the Player from Syracuse?
### Response:
|
SELECT "Pick" FROM table_63473 WHERE "College" = 'syracuse'
|
### Instruction:
CREATE TABLE table_name_34 (
bronze VARCHAR,
total VARCHAR,
gold VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of Bronze for the Nation of Uganda with less than 2 Gold and Total medals?
### Response:
|
SELECT COUNT(bronze) FROM table_name_34 WHERE gold < 2 AND nation = "uganda" AND total > 2
|
### Instruction:
CREATE TABLE table_name_35 (
film VARCHAR,
date VARCHAR,
recipient VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the film dated 22/3/06 and redhouse lane / perfect world was the recipient?
### Response:
|
SELECT film FROM table_name_35 WHERE date = "22/3/06" AND recipient = "redhouse lane / perfect world"
|
### Instruction:
CREATE TABLE table_name_96 (
industry INTEGER,
year VARCHAR,
agriculture VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Industry, when Year is greater than 2005, and when Agriculture is greater than 11?
### Response:
|
SELECT MIN(industry) FROM table_name_96 WHERE year > 2005 AND agriculture > 11
|
### Instruction:
CREATE TABLE table_22839669_12 (
atp_wins INTEGER,
money_list_rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many atp wins did he have when his money list rank was 4?
### Response:
|
SELECT MAX(atp_wins) FROM table_22839669_12 WHERE money_list_rank = 4
|
### Instruction:
CREATE TABLE table_name_68 (
date VARCHAR,
opponent VARCHAR,
week VARCHAR,
game_site VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the Titans play the Houston Texans at LP Field before Week 13?
### Response:
|
SELECT date FROM table_name_68 WHERE week < 13 AND game_site = "lp field" AND opponent = "houston texans"
|
### Instruction:
CREATE TABLE table_62809 (
"Rank" real,
"Athletes" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What athletes represented the country of germany?
### Response:
|
SELECT "Athletes" FROM table_62809 WHERE "Country" = 'germany'
|
### Instruction:
CREATE TABLE table_53129 (
"Record" text,
"Date" text,
"Driver" text,
"Time" text,
"Speed/Avg. Speed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the nascar nationwide series held?
### Response:
|
SELECT "Record" FROM table_53129 WHERE "Date" = 'nascar nationwide series'
|
### Instruction:
CREATE TABLE table_name_40 (
opponents_in_the_final VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the Opponents in the final with a Date of june 10, 1996?
### Response:
|
SELECT opponents_in_the_final FROM table_name_40 WHERE date = "june 10, 1996"
|
### Instruction:
CREATE TABLE table_27654988_1 (
scorers VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the scorers in the game with final score 0 4 7 1 0 3?
### Response:
|
SELECT scorers FROM table_27654988_1 WHERE result = "0–4 7–1 0–3"
|
### Instruction:
CREATE TABLE table_name_18 (
number_ VARCHAR,
_name VARCHAR,
date VARCHAR,
livery VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name and number in 1962 when livery was Br Bauxite?
### Response:
|
SELECT number_ & _name FROM table_name_18 WHERE date = "1962" AND livery = "br bauxite"
|
### Instruction:
CREATE TABLE table_78454 (
"Rank" text,
"Games" text,
"Player" text,
"Nationality" text,
"Career Span" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Graham Gooch's nationality?
### Response:
|
SELECT "Nationality" FROM table_78454 WHERE "Player" = 'graham gooch'
|
### Instruction:
CREATE TABLE table_9349 (
"Event" text,
"Skip" text,
"Lead" text,
"Alternate" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event had Wang Bingyu for the skip?
### Response:
|
SELECT "Event" FROM table_9349 WHERE "Skip" = 'wang bingyu'
|
### Instruction:
CREATE TABLE table_62477 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Tie no is '3'?
### Response:
|
SELECT "Date" FROM table_62477 WHERE "Tie no" = '3'
|
### Instruction:
CREATE TABLE table_name_42 (
title_playoff INTEGER,
league VARCHAR,
super_cup VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Title Playoff, when League is greater than 3, and when Super Cup is less than 0?
### Response:
|
SELECT MIN(title_playoff) FROM table_name_42 WHERE league > 3 AND super_cup < 0
|
### Instruction:
CREATE TABLE table_48393 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Year, when Result is 9th?
### Response:
|
SELECT SUM("Year") FROM table_48393 WHERE "Result" = '9th'
|
### Instruction:
CREATE TABLE table_40547 (
"Round" text,
"Opposition" text,
"First leg" text,
"Second leg" text,
"Aggregate score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round had the opponent Lyon?
### Response:
|
SELECT "Round" FROM table_40547 WHERE "Opposition" = 'lyon'
|
### Instruction:
CREATE TABLE table_18333678_2 (
departure VARCHAR,
going_to VARCHAR,
arrival VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when does the train arriving at bourne at 11.45 departure
### Response:
|
SELECT departure FROM table_18333678_2 WHERE going_to = "Bourne" AND arrival = "11.45"
|
### Instruction:
CREATE TABLE table_name_35 (
election INTEGER,
municipality VARCHAR,
inhabitants VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Election has a Municipality of laives, and Inhabitants smaller than 17,197?
### Response:
|
SELECT AVG(election) FROM table_name_35 WHERE municipality = "laives" AND inhabitants < 17 OFFSET 197
|
### Instruction:
CREATE TABLE table_203_512 (
id number,
"release date" text,
"album" text,
"catalog number" text,
"chart position" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- pulse was the first album what was the second ?
### Response:
|
SELECT "album" FROM table_203_512 WHERE id = 2
|
### Instruction:
CREATE TABLE table_name_60 (
runner_s__up VARCHAR,
championship VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 1946, what is the Runner(s)-up of the Women's Western Open Championship?
### Response:
|
SELECT runner_s__up FROM table_name_60 WHERE championship = "women's western open" AND year = 1946
|
### Instruction:
CREATE TABLE table_72491 (
"Name" text,
"Japanese" text,
"Length" text,
"Max. speed" text,
"per lift" real,
"per hour" text,
"Built" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how heavy is the maximum
### Response:
|
SELECT MAX("per lift") FROM table_72491
|
### Instruction:
CREATE TABLE table_74744 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Ranks have ray pickrell as a Rider?
### Response:
|
SELECT COUNT("Rank") FROM table_74744 WHERE "Rider" = 'ray pickrell'
|
### Instruction:
CREATE TABLE table_11529 (
"Date" text,
"Ship" text,
"Tons" real,
"Nationality" text,
"Fate and location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many tons was the ship from norway?
### Response:
|
SELECT COUNT("Tons") FROM table_11529 WHERE "Nationality" = 'norway'
|
### Instruction:
CREATE TABLE table_5314 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which result was in the district of ohio 6?
### Response:
|
SELECT "Result" FROM table_5314 WHERE "District" = 'ohio 6'
|
### Instruction:
CREATE TABLE table_name_2 (
country VARCHAR,
first_store VARCHAR,
hard_discounters VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country has a fire store of 1991 and a hard discounter of 397?
### Response:
|
SELECT country FROM table_name_2 WHERE first_store = "1991" AND hard_discounters = "397"
|
### Instruction:
CREATE TABLE table_name_77 (
main_location_s_ VARCHAR,
_percentage_of_national VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed for the Main Location(s) that has a % of National of 2.05%?
### Response:
|
SELECT main_location_s_ FROM table_name_77 WHERE _percentage_of_national = "2.05%"
|
### Instruction:
CREATE TABLE table_204_966 (
id number,
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what region was on the label sirup ?
### Response:
|
SELECT "region" FROM table_204_966 WHERE "label" = 'sirup'
|
### Instruction:
CREATE TABLE table_68044 (
"School" text,
"Team" text,
"Division Record" text,
"Overall Record" text,
"Season Outcome" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Senators' division record?
### Response:
|
SELECT "Division Record" FROM table_68044 WHERE "Team" = 'senators'
|
### Instruction:
CREATE TABLE table_15693 (
"Date" text,
"Score" text,
"Location" text,
"Competition" text,
"Serial No." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The competition located in Northampton had a resulting score of what?
### Response:
|
SELECT "Score" FROM table_15693 WHERE "Location" = 'northampton'
|
### Instruction:
CREATE TABLE party (
party_name VARCHAR,
party_id VARCHAR
)
CREATE TABLE Member (
member_name VARCHAR,
party_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List member names and their party names.
### Response:
|
SELECT T1.member_name, T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id
|
### Instruction:
CREATE TABLE table_80194 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ICAO of Douala city?
### Response:
|
SELECT "ICAO" FROM table_80194 WHERE "City" = 'douala'
|
### Instruction:
CREATE TABLE table_67819 (
"Stage" text,
"Route" text,
"Distance" text,
"Date" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the route with winner of s bastien rosseler
### Response:
|
SELECT "Route" FROM table_67819 WHERE "Winner" = 'sébastien rosseler'
|
### Instruction:
CREATE TABLE table_name_27 (
attendance INTEGER,
week VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Attendance is the highest one that has a Week smaller than 9, and a Result of l 24 23?
### Response:
|
SELECT MAX(attendance) FROM table_name_27 WHERE week < 9 AND result = "l 24–23"
|
### Instruction:
CREATE TABLE table_name_1 (
opponent_in_the_final VARCHAR,
year VARCHAR,
championship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Opponent in the final after 2008 at the Paul Hunter Classic?
### Response:
|
SELECT opponent_in_the_final FROM table_name_1 WHERE year > 2008 AND championship = "paul hunter classic"
|
### Instruction:
CREATE TABLE table_47670 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What record has decision (majority) as the method?
### Response:
|
SELECT "Record" FROM table_47670 WHERE "Method" = 'decision (majority)'
|
### Instruction:
CREATE TABLE table_46442 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result for the date of august 23?
### Response:
|
SELECT "Result" FROM table_46442 WHERE "Date" = 'august 23'
|
### Instruction:
CREATE TABLE table_24143253_4 (
cause_of_death VARCHAR,
length_of_marriage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the cause of death in the marriage that lasted 28 years?
### Response:
|
SELECT cause_of_death FROM table_24143253_4 WHERE length_of_marriage = "28 years"
|
### Instruction:
CREATE TABLE table_name_27 (
student_body VARCHAR,
affiliation VARCHAR,
enrollment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Student Body with an Affiliation of Roman Catholic and has an Enrollment of 502?
### Response:
|
SELECT student_body FROM table_name_27 WHERE affiliation = "roman catholic" AND enrollment = 502
|
### Instruction:
CREATE TABLE table_11220799_2 (
finish VARCHAR,
first_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the results of episodes with the first air date of March 6, 2008?
### Response:
|
SELECT finish FROM table_11220799_2 WHERE first_air_date = "March 6, 2008"
|
### Instruction:
CREATE TABLE table_30267 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What college did Francis Bellefroid go to?
### Response:
|
SELECT "College" FROM table_30267 WHERE "Player" = 'Francis Bellefroid'
|
### Instruction:
CREATE TABLE table_76274 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Team in Game 38?
### Response:
|
SELECT "Team" FROM table_76274 WHERE "Game" = '38'
|
### Instruction:
CREATE TABLE table_name_47 (
term_start VARCHAR,
title VARCHAR,
order VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the starting date for the Minister for agriculture, fisheries and forestry that is in order number 25??
### Response:
|
SELECT term_start FROM table_name_47 WHERE title = "minister for agriculture, fisheries and forestry" AND order = "25"
|
### Instruction:
CREATE TABLE table_name_44 (
shropshire_senior_cup VARCHAR,
points VARCHAR,
fa_cup VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Shropshire Senior Cup when points are greater than 78 and FA Cup is pre?
### Response:
|
SELECT shropshire_senior_cup FROM table_name_44 WHERE points > 78 AND fa_cup = "pre"
|
### Instruction:
CREATE TABLE table_name_7 (
college_junior_club_team VARCHAR,
pick VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which College/Junior/Club Team has a Pick larger than 70, and a Round smaller than 7?
### Response:
|
SELECT college_junior_club_team FROM table_name_7 WHERE pick > 70 AND round < 7
|
### Instruction:
CREATE TABLE table_68514 (
"Round" real,
"Name" text,
"Position" text,
"School" text,
"Signed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Was the University of Southern California Signed?
### Response:
|
SELECT "Signed" FROM table_68514 WHERE "School" = 'university of southern california'
|
### Instruction:
CREATE TABLE table_19149550_9 (
rank VARCHAR,
total_asian_population VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many boroughs with different ranks have a total Asian population of 33338?
### Response:
|
SELECT COUNT(rank) FROM table_19149550_9 WHERE total_asian_population = 33338
|
### Instruction:
CREATE TABLE table_7043 (
"Year" real,
"Band" text,
"Song" text,
"Album" text,
"Contribution" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the album Board Up the House, what is the contribution?
### Response:
|
SELECT "Contribution" FROM table_7043 WHERE "Album" = 'board up the house'
|
### Instruction:
CREATE TABLE table_4370 (
"Year" real,
"Association" text,
"Category" text,
"Nominated work" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the nominated work larger than 2011
### Response:
|
SELECT "Nominated work" FROM table_4370 WHERE "Year" > '2011'
|
### Instruction:
CREATE TABLE table_name_46 (
college VARCHAR,
position VARCHAR,
overall VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the college that has an overall larger than 187 and a round smaller than 7 for the defensive end position.
### Response:
|
SELECT college FROM table_name_46 WHERE overall > 187 AND round < 7 AND position = "defensive end"
|
### Instruction:
CREATE TABLE table_528 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the branding in Dagupan?
### Response:
|
SELECT "Branding" FROM table_528 WHERE "Location" = 'Dagupan'
|
### Instruction:
CREATE TABLE table_9985 (
"Team" text,
"Region" text,
"Coach" text,
"Home ground" text,
"Capacity" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is home ground for coach Andrej Lemanis?
### Response:
|
SELECT "Home ground" FROM table_9985 WHERE "Coach" = 'andrej lemanis'
|
### Instruction:
CREATE TABLE table_203_367 (
id number,
"year" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who had the most wins ?
### Response:
|
SELECT "driver" FROM table_203_367 GROUP BY "driver" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_77813 (
"Date" text,
"Location" text,
"Opponent" text,
"Score" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which competition was held at Addis Ababa?
### Response:
|
SELECT "Competition" FROM table_77813 WHERE "Location" = 'addis ababa'
|
### Instruction:
CREATE TABLE table_name_70 (
january INTEGER,
record VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the January sum with the record of 17-20-2 with a game smaller than 39?
### Response:
|
SELECT SUM(january) FROM table_name_70 WHERE record = "17-20-2" AND game < 39
|
### Instruction:
CREATE TABLE table_name_35 (
to_par_ VARCHAR,
a_ VARCHAR,
course VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the To par of St Andrews before the year 1888?
### Response:
|
SELECT to_par_ AS "a_" FROM table_name_35 WHERE course = "st andrews" AND year < 1888
|
### Instruction:
CREATE TABLE table_name_25 (
attendance VARCHAR,
visitor VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total attendance at games when Detroit was the visiting team and the record was 36 13 5?
### Response:
|
SELECT COUNT(attendance) FROM table_name_25 WHERE visitor = "detroit" AND record = "36–13–5"
|
### Instruction:
CREATE TABLE table_38417 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player's pick number was 25?
### Response:
|
SELECT "Player" FROM table_38417 WHERE "Pick #" = '25'
|
### Instruction:
CREATE TABLE table_80062 (
"Year" text,
"English title" text,
"Original title" text,
"Country" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Country is listed for the Director Thomas Vinterberg?
### Response:
|
SELECT "Country" FROM table_80062 WHERE "Director" = 'thomas vinterberg'
|
### Instruction:
CREATE TABLE table_75371 (
"Country" text,
"Project Name" text,
"Year startup" text,
"Operator" text,
"Peak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Operator with a Peak that is 55?
### Response:
|
SELECT "Operator" FROM table_75371 WHERE "Peak" = '55'
|
### Instruction:
CREATE TABLE table_name_29 (
player VARCHAR,
to_par VARCHAR,
year_s__won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has a To par of 1, and a Year(s) won of 1952?
### Response:
|
SELECT player FROM table_name_29 WHERE to_par = "–1" AND year_s__won = "1952"
|
### Instruction:
CREATE TABLE table_name_95 (
location VARCHAR,
name_in_malay VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of the institution whose name in Malay is kolej kemahiran belia nasional, pontian?
### Response:
|
SELECT location FROM table_name_95 WHERE name_in_malay = "kolej kemahiran belia nasional, pontian"
|
### Instruction:
CREATE TABLE table_19709 (
"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 highest attendance?
### Response:
|
SELECT MAX("Attendance") FROM table_19709
|
### Instruction:
CREATE TABLE table_21010 (
"Position" real,
"Driver / Passenger" text,
"Equipment" text,
"Bike No" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the driver/passenger for 6 position
### Response:
|
SELECT "Driver / Passenger" FROM table_21010 WHERE "Position" = '6'
|
### Instruction:
CREATE TABLE table_62363 (
"Week" text,
"Date" text,
"Home team" text,
"Away team" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what week was the away team Auckland?
### Response:
|
SELECT "Week" FROM table_62363 WHERE "Away team" = 'auckland'
|
### Instruction:
CREATE TABLE table_14176 (
"Year" real,
"Class" text,
"Vehicle" text,
"Position" text,
"Stages won" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year had a vehicle of Mitsubishi?
### Response:
|
SELECT "Year" FROM table_14176 WHERE "Vehicle" = 'mitsubishi'
|
### Instruction:
CREATE TABLE table_name_49 (
starts INTEGER,
year VARCHAR,
avg_start VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the highest number of starts in 2007 when the average start was over 17.6?
### Response:
|
SELECT MAX(starts) FROM table_name_49 WHERE year = 2007 AND avg_start > 17.6
|
### Instruction:
CREATE TABLE table_204_880 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the only type of event listed ?
### Response:
|
SELECT "event" FROM table_204_880
|
### Instruction:
CREATE TABLE table_59957 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score when the tie number is 6?
### Response:
|
SELECT "Score" FROM table_59957 WHERE "Tie no" = '6'
|
### Instruction:
CREATE TABLE table_name_87 (
year VARCHAR,
weight_class VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years were lightweight class on february 28, 2009?
### Response:
|
SELECT COUNT(year) FROM table_name_87 WHERE weight_class = "lightweight" AND date = "february 28, 2009"
|
### Instruction:
CREATE TABLE table_11404452_1 (
director VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the director when there were 13.66 million u.s viewers?
### Response:
|
SELECT director FROM table_11404452_1 WHERE us_viewers__millions_ = "13.66"
|
### Instruction:
CREATE TABLE table_name_38 (
grid INTEGER,
time_retired VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average grid for johnny herbert with a Time/Retired of +1 lap?
### Response:
|
SELECT AVG(grid) FROM table_name_38 WHERE time_retired = "+1 lap" AND driver = "johnny herbert"
|
### Instruction:
CREATE TABLE musical (
Name VARCHAR,
Musical_ID VARCHAR
)
CREATE TABLE actor (
Name VARCHAR,
Musical_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show names of actors and names of musicals they are in.
### Response:
|
SELECT T1.Name, T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID
|
### Instruction:
CREATE TABLE table_13663 (
"Rank" real,
"Heat" real,
"Cyclist" text,
"Nation" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rank has a Heat larger than 7?
### Response:
|
SELECT MAX("Rank") FROM table_13663 WHERE "Heat" > '7'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.