instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_85 (
played INTEGER,
goals_against VARCHAR,
lost VARCHAR,
drawn VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many played when lost is more than 17, drawn is 15 and goals against is less than 75?
### Response:
|
SELECT AVG(played) FROM table_name_85 WHERE lost > 17 AND drawn = 15 AND goals_against < 75
|
### Instruction:
CREATE TABLE table_9678 (
"Heat" real,
"Lane" real,
"Name" text,
"Country" text,
"Mark" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many lanes was Khadevis Robinson in for heats over 2?
### Response:
|
SELECT COUNT("Lane") FROM table_9678 WHERE "Heat" > '2' AND "Name" = 'khadevis robinson'
|
### Instruction:
CREATE TABLE table_32114 (
"Name" text,
"Martyred" real,
"Place" text,
"Beatified" real,
"Canonised" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the person(s) who were canonised before 1988 beatified?
### Response:
|
SELECT "Beatified" FROM table_32114 WHERE "Canonised" < '1988'
|
### Instruction:
CREATE TABLE table_51692 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps did John Love have on a grid less than 11?
### Response:
|
SELECT "Laps" FROM table_51692 WHERE "Grid" < '11' AND "Driver" = 'john love'
|
### Instruction:
CREATE TABLE table_53860 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the competition that took place on October 1, 1994?
### Response:
|
SELECT "Competition" FROM table_53860 WHERE "Date" = 'october 1, 1994'
|
### Instruction:
CREATE TABLE table_33141 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance of the game played in the Georgia Dome?
### Response:
|
SELECT "Attendance" FROM table_33141 WHERE "Game site" = 'georgia dome'
|
### Instruction:
CREATE TABLE table_204_61 (
id number,
"language" text,
"number" number,
"percentage (%)" number,
"males" number,
"females" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many male and female german speakers are there ?
### Response:
|
SELECT "males" + "females" FROM table_204_61 WHERE "language" = 'german'
|
### Instruction:
CREATE TABLE table_18600760_18 (
ansi_code INTEGER,
land___sqmi__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ANSI code of the township where the area is 35.737 square miles?
### Response:
|
SELECT MIN(ansi_code) FROM table_18600760_18 WHERE land___sqmi__ = "35.737"
|
### Instruction:
CREATE TABLE table_2610582_3 (
location__transmitter_site_ VARCHAR,
power_kw__erp_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location that has a power of 5kw (10kw ERP)?
### Response:
|
SELECT location__transmitter_site_ FROM table_2610582_3 WHERE power_kw__erp_ = "5kW (10kW ERP)"
|
### Instruction:
CREATE TABLE table_57511 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver has 12 laps and a grid of less than 10?
### Response:
|
SELECT "Driver" FROM table_57511 WHERE "Laps" = '12' AND "Grid" < '10'
|
### Instruction:
CREATE TABLE table_34817 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when is Record of 66-95?
### Response:
|
SELECT "Time" FROM table_34817 WHERE "Record" = '66-95'
|
### Instruction:
CREATE TABLE table_26858 (
"Name of Award" text,
"Name of Film" text,
"Language" text,
"Awardee(s)" text,
"Cash Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of awardees for best cinematography
### Response:
|
SELECT COUNT("Awardee(s)") FROM table_26858 WHERE "Name of Award" = 'Best Cinematography'
|
### Instruction:
CREATE TABLE table_71485 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For a Team 1 of Al-Merrikh, what was the aggregate?
### Response:
|
SELECT "Agg." FROM table_71485 WHERE "Team 1" = 'al-merrikh'
|
### Instruction:
CREATE TABLE table_22797 (
"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 14 is the match number how many usa teams are there?
### Response:
|
SELECT COUNT("Team USA") FROM table_22797 WHERE "Match no." = '14'
|
### Instruction:
CREATE TABLE table_6903 (
"Year" text,
"Playoff round" text,
"Venue" text,
"Winner" text,
"Result" text,
"Loser" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Venue when the result was 88 87?
### Response:
|
SELECT "Venue" FROM table_6903 WHERE "Result" = '88–87'
|
### Instruction:
CREATE TABLE table_12109 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the playing surface for the Tournament of Great Britain F16?
### Response:
|
SELECT "Surface" FROM table_12109 WHERE "Tournament" = 'great britain f16'
|
### Instruction:
CREATE TABLE table_60793 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest total of the player with a t41 finish?
### Response:
|
SELECT MIN("Total") FROM table_60793 WHERE "Finish" = 't41'
|
### Instruction:
CREATE TABLE table_47020 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the part 4 entry for class 7b?
### Response:
|
SELECT "Part 4" FROM table_47020 WHERE "Class" = '7b'
|
### Instruction:
CREATE TABLE table_name_97 (
player VARCHAR,
debut VARCHAR,
born VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the player with a debut of age 18 v plymouth , 14 august 2012, and born in Portsmouth?
### Response:
|
SELECT player FROM table_name_97 WHERE debut = "age 18 v plymouth , 14 august 2012" AND born = "portsmouth"
|
### Instruction:
CREATE TABLE table_2476 (
"Source" text,
"Dates Administered" text,
"Terry McAuliffe" text,
"Brian Moran" text,
"Creigh Deeds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What source gave 26% of the votes to Brian Moran?
### Response:
|
SELECT "Source" FROM table_2476 WHERE "Brian Moran" = '26%'
|
### Instruction:
CREATE TABLE table_10054 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country with a 68-73-69=210 score?
### Response:
|
SELECT "Country" FROM table_10054 WHERE "Score" = '68-73-69=210'
|
### 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.
-- how many albums/singles were released after the year 2000 ?
### Response:
|
SELECT COUNT("album") FROM table_203_512 WHERE "release date" > 2000
|
### Instruction:
CREATE TABLE table_12502 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result on September 20?
### Response:
|
SELECT "Result" FROM table_12502 WHERE "Date" = 'september 20'
|
### Instruction:
CREATE TABLE table_72535 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most touchdowns for norcross
### Response:
|
SELECT MAX("Touchdowns") FROM table_72535 WHERE "Player" = 'Norcross'
|
### Instruction:
CREATE TABLE table_19770 (
"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's the result with record being 0 1
### Response:
|
SELECT "Result" FROM table_19770 WHERE "Record" = '0–1'
|
### Instruction:
CREATE TABLE table_79807 (
"Club" text,
"Manager" text,
"Captain" text,
"Manufacturer" text,
"Sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Manchester United captain is sponsored by Nike?
### Response:
|
SELECT "Captain" FROM table_79807 WHERE "Manufacturer" = 'nike' AND "Club" = 'manchester united'
|
### Instruction:
CREATE TABLE table_62777 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the September 14, 1968 game?
### Response:
|
SELECT COUNT("Attendance") FROM table_62777 WHERE "Date" = 'september 14, 1968'
|
### Instruction:
CREATE TABLE table_43157 (
"Week" real,
"Date" text,
"Time ( PT )" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game site" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has 10 for the week?
### Response:
|
SELECT "Date" FROM table_43157 WHERE "Week" = '10'
|
### Instruction:
CREATE TABLE table_name_18 (
total INTEGER,
fa_cup VARCHAR,
club VARCHAR,
league VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average total of halifax town club, which has a league less than 30 and more than 3 FA cups?
### Response:
|
SELECT AVG(total) FROM table_name_18 WHERE club = "halifax town" AND league < 30 AND fa_cup > 3
|
### Instruction:
CREATE TABLE table_7200 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the most recent week for the day of November 5, 1978?
### Response:
|
SELECT MAX("Week") FROM table_7200 WHERE "Date" = 'november 5, 1978'
|
### Instruction:
CREATE TABLE table_18143 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the results in the county with Peter Deutsch as a candidate?
### Response:
|
SELECT "Results" FROM table_18143 WHERE "Incumbent" = 'Peter Deutsch'
|
### Instruction:
CREATE TABLE table_61565 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"2012 club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Weight of d m steinmetz category:articles with hcards?
### Response:
|
SELECT "Weight" FROM table_61565 WHERE "Name" = 'ádám steinmetz category:articles with hcards'
|
### Instruction:
CREATE TABLE table_27005 (
"Artist/Band" text,
"Song" text,
"Disney affiliated" text,
"Released" real,
"US exclusive" text,
"EU exclusive" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most released for the in crowd
### Response:
|
SELECT MAX("Released") FROM table_27005 WHERE "Song" = 'The In Crowd'
|
### Instruction:
CREATE TABLE table_64840 (
"City" text,
"Region" text,
"July" text,
"January" text,
"Annual Precipitation" text,
"Plant Hardiness Zone" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the January climate figure for Eastman?
### Response:
|
SELECT "January" FROM table_64840 WHERE "Region" = 'eastman'
|
### Instruction:
CREATE TABLE table_31840 (
"Week" text,
"Date" text,
"Opponent" text,
"Time" text,
"Game Site" text,
"Result/Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the week for record of 0-1
### Response:
|
SELECT "Week" FROM table_31840 WHERE "Record" = '0-1'
|
### Instruction:
CREATE TABLE table_74232 (
"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 times has Ma Long won the men's singles?
### Response:
|
SELECT COUNT("Mens Doubles") FROM table_74232 WHERE "Mens Singles" = 'Ma Long'
|
### Instruction:
CREATE TABLE table_203_89 (
id number,
"#" number,
"name\n(birth-death)" text,
"took office" text,
"left office" text,
"monarch" text,
"prime minister" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total number of monarchs ?
### Response:
|
SELECT COUNT(DISTINCT "monarch") FROM table_203_89
|
### Instruction:
CREATE TABLE table_203_396 (
id number,
"year" number,
"domestic passengers" number,
"international passengers" number,
"total passengers" number,
"change" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is listed as the passenger percentage difference for the year 2011 ?
### Response:
|
SELECT "change" FROM table_203_396 WHERE "year" = 2011
|
### Instruction:
CREATE TABLE table_35823 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the results of the opponent of spain?
### Response:
|
SELECT "Results\u00b9" FROM table_35823 WHERE "Opponent" = 'spain'
|
### Instruction:
CREATE TABLE table_204_266 (
id number,
"#" number,
"event year" number,
"season" text,
"flag bearer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which female athlete has been the flag bearer for georgia in the olympics twice ?
### Response:
|
SELECT "flag bearer" FROM table_204_266 GROUP BY "flag bearer" HAVING COUNT(*) = 2
|
### Instruction:
CREATE TABLE table_24299 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the contestant for villa hermosa
### Response:
|
SELECT "Contestant" FROM table_24299 WHERE "Hometown" = 'Villa Hermosa'
|
### Instruction:
CREATE TABLE table_203_213 (
id number,
"name" text,
"builder" text,
"type" text,
"date" text,
"works number" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many locomotives were built before the 1900s ?
### Response:
|
SELECT COUNT(*) FROM table_203_213 WHERE "date" < 1900
|
### Instruction:
CREATE TABLE table_61800 (
"Rank" real,
"Cyclist" text,
"Team" text,
"Time" text,
"UCI ProTour Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which cyclist has UCI ProTour points of 40?
### Response:
|
SELECT "Cyclist" FROM table_61800 WHERE "UCI ProTour Points" = '40'
|
### Instruction:
CREATE TABLE table_name_95 (
league_from VARCHAR,
player VARCHAR,
position VARCHAR,
pick__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which League from has a Position of lw, a Pick # larger than 34, and a Player of bradley ross?
### Response:
|
SELECT league_from FROM table_name_95 WHERE position = "lw" AND pick__number > 34 AND player = "bradley ross"
|
### Instruction:
CREATE TABLE table_name_96 (
year VARCHAR,
points VARCHAR,
rank VARCHAR,
team VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did team Yamaha have 0 wins, a rank of 8th, and more than 22 points?
### Response:
|
SELECT COUNT(year) FROM table_name_96 WHERE team = "yamaha" AND wins = 0 AND rank = "8th" AND points > 22
|
### Instruction:
CREATE TABLE table_203_70 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many nations won at least 10 medals ?
### Response:
|
SELECT COUNT("nation") FROM table_203_70 WHERE "total" >= 10
|
### Instruction:
CREATE TABLE table_3425 (
"Team" text,
"Location" text,
"Stadium" text,
"Capacity" real,
"Manager" text,
"Captain" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What stadium(sO does san juan jabloteh play in?
### Response:
|
SELECT "Stadium" FROM table_3425 WHERE "Team" = 'San Juan Jabloteh'
|
### Instruction:
CREATE TABLE table_18999 (
"Position" real,
"Artist" text,
"Song title" text,
"Highest position" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the artbeingt with song title being ' a little bitty tear
### Response:
|
SELECT "Artist" FROM table_18999 WHERE "Song title" = ' A Little Bitty Tear '
|
### Instruction:
CREATE TABLE table_name_93 (
billboard_peak VARCHAR,
label VARCHAR,
date_of_release VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Billboard peak for the album released on September 12, 2000 by sanctuary?
### Response:
|
SELECT billboard_peak FROM table_name_93 WHERE label = "sanctuary" AND date_of_release = "september 12, 2000"
|
### Instruction:
CREATE TABLE table_204_837 (
id number,
"match" text,
"team" text,
"result points" number,
"match status" number,
"opposition strength" number,
"regional strength" number,
"ranking points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total of matches on the chart
### Response:
|
SELECT COUNT("match") FROM table_204_837
|
### Instruction:
CREATE TABLE table_12188 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which week 4 had a week 3 of Cidney Carson?
### Response:
|
SELECT "Week 4" FROM table_12188 WHERE "Week 3" = 'cidney carson'
|
### Instruction:
CREATE TABLE table_204_212 (
id number,
"wager" text,
"winner" text,
"loser" text,
"location" text,
"date" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who won at least two times ?
### Response:
|
SELECT "winner" FROM table_204_212 GROUP BY "winner" HAVING COUNT(*) >= 2
|
### Instruction:
CREATE TABLE table_204_129 (
id number,
"place" number,
"team" text,
"titles" number,
"runners-up" number,
"winning years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who , of the years on this list , was the first team to win ?
### Response:
|
SELECT "team" FROM table_204_129 ORDER BY "winning years" LIMIT 1
|
### Instruction:
CREATE TABLE table_name_12 (
week VARCHAR,
kickoff_time VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week number was the kickoff time cbs 1:00pm, with 60,473 people in attendance?
### Response:
|
SELECT COUNT(week) FROM table_name_12 WHERE kickoff_time = "cbs 1:00pm" AND attendance = "60,473"
|
### Instruction:
CREATE TABLE table_28116 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are all the writers of episodes in season 24?
### Response:
|
SELECT "Writer(s)" FROM table_28116 WHERE "Season #" = '24'
|
### Instruction:
CREATE TABLE table_28367242_1 (
corporate_name VARCHAR,
incorporation_date__city_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the corporation that incorporated on october 15, 1955?
### Response:
|
SELECT corporate_name FROM table_28367242_1 WHERE incorporation_date__city_ = "October 15, 1955"
|
### Instruction:
CREATE TABLE table_204_143 (
id number,
"national park" text,
"region" text,
"land area (km2)" number,
"established" number,
"visitation (2009)" number,
"coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many parks are listed ?
### Response:
|
SELECT COUNT("national park") FROM table_204_143
|
### Instruction:
CREATE TABLE table_74776 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest attendance on September 3, 1972?
### Response:
|
SELECT MIN("Attendance") FROM table_74776 WHERE "Date" = 'september 3, 1972'
|
### Instruction:
CREATE TABLE table_6252 (
"Year" real,
"Class" text,
"Team" text,
"Chassis" text,
"Tyre" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Class has a Chassis of Mazda 787B?
### Response:
|
SELECT "Class" FROM table_6252 WHERE "Chassis" = 'mazda 787b'
|
### Instruction:
CREATE TABLE table_78887 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the week 3 with addison miller in week 2?
### Response:
|
SELECT "Week 3" FROM table_78887 WHERE "Week 2" = 'addison miller'
|
### Instruction:
CREATE TABLE table_45349 (
"Season" text,
"Wins" real,
"Losses" real,
"Ties" real,
"Ivy Lg. record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest value for Ties, when Losses is less than 8?
### Response:
|
SELECT MAX("Ties") FROM table_45349 WHERE "Losses" < '8'
|
### Instruction:
CREATE TABLE table_name_69 (
title VARCHAR,
lyricist_s_ VARCHAR,
composer_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Title, when the Lyricist(s) is Yarosake, and when the Composer(s) is Yarosake?
### Response:
|
SELECT title FROM table_name_69 WHERE lyricist_s_ = "yarosake" AND composer_s_ = "yarosake"
|
### Instruction:
CREATE TABLE table_71090 (
"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.
-- Name th country of origin for journey
### Response:
|
SELECT "Country of origin" FROM table_71090 WHERE "Artist" = 'journey'
|
### Instruction:
CREATE TABLE table_43355 (
"Spoofed Title" text,
"Actual Title" text,
"Writer" text,
"Artist" text,
"Issue" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What issue was the spoofed title Ho-Hum land?
### Response:
|
SELECT SUM("Issue") FROM table_43355 WHERE "Spoofed Title" = 'ho-hum land'
|
### Instruction:
CREATE TABLE table_31900 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the surface for the game that had a partner of vania king?
### Response:
|
SELECT "Surface" FROM table_31900 WHERE "Partner" = 'vania king'
|
### Instruction:
CREATE TABLE table_32768 (
"Lane" real,
"Name" text,
"Nationality" text,
"100m" real,
"150m" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Park Tae-Hwan's final time?
### Response:
|
SELECT "Time" FROM table_32768 WHERE "Name" = 'park tae-hwan'
|
### Instruction:
CREATE TABLE table_53844 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the team 2 when the 2nd leg is 3-4?
### Response:
|
SELECT "Team 2" FROM table_53844 WHERE "2nd leg" = '3-4'
|
### Instruction:
CREATE TABLE table_44112 (
"Year" real,
"Regional GVA" real,
"Agriculture" real,
"Industry" real,
"Services" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Industry, when Agriculture is greater than 11?
### Response:
|
SELECT AVG("Industry") FROM table_44112 WHERE "Agriculture" > '11'
|
### Instruction:
CREATE TABLE table_61342 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Total of the Player with a To par of 13?
### Response:
|
SELECT SUM("Total") FROM table_61342 WHERE "To par" = '–13'
|
### Instruction:
CREATE TABLE table_26370 (
"Week #" text,
"Theme" text,
"Song Choice" text,
"Original Artist" text,
"Order #" real,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the song chose for the British Invasion.
### Response:
|
SELECT "Song Choice" FROM table_26370 WHERE "Theme" = 'British Invasion'
|
### Instruction:
CREATE TABLE table_66683 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent has December 6, 1964 as the date?
### Response:
|
SELECT "Opponent" FROM table_66683 WHERE "Date" = 'december 6, 1964'
|
### Instruction:
CREATE TABLE table_203_370 (
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.
-- which was the only competition to occur in china ?
### Response:
|
SELECT "competition" FROM table_203_370 WHERE "venue" = 'pr china'
|
### Instruction:
CREATE TABLE table_65250 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the highest Against on 21 november 1978?
### Response:
|
SELECT MAX("Against") FROM table_65250 WHERE "Date" = '21 november 1978'
|
### Instruction:
CREATE TABLE table_69408 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has the competition of uefa euro 2012 qualifying?
### Response:
|
SELECT "Date" FROM table_69408 WHERE "Competition" = 'uefa euro 2012 qualifying'
|
### Instruction:
CREATE TABLE table_70909 (
"Director(s)" text,
"Writer(s)" text,
"Recipient" text,
"Date" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the name of the award that Edward Jeffreys was the writer?
### Response:
|
SELECT "Award" FROM table_70909 WHERE "Writer(s)" = 'edward jeffreys'
|
### Instruction:
CREATE TABLE table_203_653 (
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 ranked first in gold medals ?
### Response:
|
SELECT "nation" FROM table_203_653 ORDER BY "gold" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_203_482 (
id number,
"year" number,
"award" text,
"result" text,
"category" text,
"series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which award did scrubs win the most of ?
### Response:
|
SELECT "category" FROM table_203_482 WHERE "result" = 'won' GROUP BY "category" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_15 (
points INTEGER,
driver VARCHAR,
percentage_of_possible_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average Points of the season driver Fernando Alonso had a percentage of possible points of 53.05%?
### Response:
|
SELECT AVG(points) FROM table_name_15 WHERE driver = "fernando alonso" AND percentage_of_possible_points = "53.05%"
|
### Instruction:
CREATE TABLE table_21249915_1 (
small__100ha_ VARCHAR,
medium__500ha_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Small catagories are there for the department that has a medium of 17101?
### Response:
|
SELECT COUNT(small__100ha_) FROM table_21249915_1 WHERE medium__500ha_ = 17101
|
### Instruction:
CREATE TABLE table_27165 (
"Tie no" real,
"Home team" text,
"Score 1" text,
"Away team" text,
"Attendance" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the tie when the home team is Stoke City?
### Response:
|
SELECT "Tie no" FROM table_27165 WHERE "Home team" = 'Stoke City'
|
### Instruction:
CREATE TABLE table_74303 (
"For shank type" text,
"Singer part number" text,
"Uses templates?" text,
"Description" text,
"Storage case" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the storage case of the buttonholer described as ivory and red metal?
### Response:
|
SELECT "Storage case" FROM table_74303 WHERE "Description" = 'ivory and red metal'
|
### Instruction:
CREATE TABLE table_18405 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winner in the Louisiana 7 district?
### Response:
|
SELECT "Incumbent" FROM table_18405 WHERE "District" = 'Louisiana 7'
|
### Instruction:
CREATE TABLE table_2381 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the film title for la boca del lobo
### Response:
|
SELECT "Film title used in nomination" FROM table_2381 WHERE "Original title" = 'La boca del lobo'
|
### Instruction:
CREATE TABLE table_2394927_1 (
max_downstream_throughput___mbit_s__ VARCHAR,
power___dbm__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the highest mbit/s when the dbm is +17.5?
### Response:
|
SELECT max_downstream_throughput___mbit_s__ FROM table_2394927_1 WHERE power___dbm__ = "+17.5"
|
### Instruction:
CREATE TABLE table_272313_1 (
aspect_ratio VARCHAR,
vertical VARCHAR,
pixel_aspect_ratio VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the aspect ratio if the vertical pixel is 480 and pixel aspect ratio is 1:1?
### Response:
|
SELECT aspect_ratio FROM table_272313_1 WHERE vertical = 480 AND pixel_aspect_ratio = "1:1"
|
### Instruction:
CREATE TABLE table_3582 (
"Season #" real,
"Series #" real,
"Episode title" text,
"Original air date" text,
"Nick prod. #" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the series number of the 'harry bladder special'?
### Response:
|
SELECT "Series #" FROM table_3582 WHERE "Episode title" = 'Harry Bladder Special'
|
### Instruction:
CREATE TABLE table_73577 (
"No" real,
"Player" text,
"Height (m)" text,
"Height (f)" text,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the height for steffen hamann
### Response:
|
SELECT "Height (f)" FROM table_73577 WHERE "Player" = 'Steffen Hamann'
|
### Instruction:
CREATE TABLE table_203_577 (
id number,
"tenure" text,
"coach" text,
"years" number,
"record" text,
"pct." number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what number of years did d.v. graves serve ?
### Response:
|
SELECT "years" FROM table_203_577 WHERE "coach" = 'd. v. graves'
|
### Instruction:
CREATE TABLE table_53597 (
"Competition" text,
"Current position / round" text,
"Final position / round" text,
"First match" text,
"Last match" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which first match had a final position/round in the third qualifying round?
### Response:
|
SELECT "First match" FROM table_53597 WHERE "Final position / round" = 'third qualifying round'
|
### Instruction:
CREATE TABLE table_46975 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Loser of the Game with a Result of 35-27?
### Response:
|
SELECT "Loser" FROM table_46975 WHERE "Result" = '35-27'
|
### Instruction:
CREATE TABLE table_204_195 (
id number,
"team" text,
"home city" text,
"stadium" text,
"capacity" number,
"last season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many stadiums seat more than 2,000 people ?
### Response:
|
SELECT COUNT("stadium") FROM table_204_195 WHERE "capacity" > 2000
|
### Instruction:
CREATE TABLE table_63946 (
"Ship" text,
"Built" real,
"In service for NAL" text,
"Type" text,
"Tonnage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The ship MS Vistafjord has what in service for NAL?
### Response:
|
SELECT "In service for NAL" FROM table_63946 WHERE "Ship" = 'ms vistafjord'
|
### Instruction:
CREATE TABLE table_34281 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of total for gold less than 1 and bronze of 3
### Response:
|
SELECT SUM("Total") FROM table_34281 WHERE "Gold" < '1' AND "Bronze" = '3'
|
### Instruction:
CREATE TABLE table_8702 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was teh score of the game where Toronto was the home team on January 28?
### Response:
|
SELECT "Score" FROM table_8702 WHERE "Home" = 'toronto' AND "Date" = 'january 28'
|
### Instruction:
CREATE TABLE table_57690 (
"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 is the name of the race that has the pergusa Circuit?
### Response:
|
SELECT "Race Name" FROM table_57690 WHERE "Circuit" = 'pergusa'
|
### Instruction:
CREATE TABLE table_name_31 (
population_density__per_km²_ VARCHAR,
gdp__ppp__$m_usd VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much is the population density with a GDP at $188,112?
### Response:
|
SELECT population_density__per_km²_ FROM table_name_31 WHERE gdp__ppp__$m_usd = "$188,112"
|
### Instruction:
CREATE TABLE table_42199 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which attendance number was taken on november 21, 2004?
### Response:
|
SELECT "Attendance" FROM table_42199 WHERE "Date" = 'november 21, 2004'
|
### Instruction:
CREATE TABLE table_35336 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round has hereford united as the opponent?
### Response:
|
SELECT "Round" FROM table_35336 WHERE "Opponent" = 'hereford united'
|
### Instruction:
CREATE TABLE table_203_587 (
id number,
"country" text,
"weapon designation" text,
"weapon description" text,
"year(s) delivered" text,
"quantity delivered" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- according to this list , how many countries sold weapons to iraq ?
### Response:
|
SELECT COUNT(DISTINCT "country") FROM table_203_587
|
### Instruction:
CREATE TABLE table_201_42 (
id number,
"year" text,
"title" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in what program was daniels in after planet sheen ?
### Response:
|
SELECT "title" FROM table_201_42 WHERE id > (SELECT id FROM table_201_42 WHERE "title" = 'planet sheen') LIMIT 1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.