instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_18608 (
"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 is the district for james p. richards?
### Response:
|
SELECT "District" FROM table_18608 WHERE "Incumbent" = 'James P. Richards'
|
### Instruction:
CREATE TABLE table_2704 (
"Constituency" text,
"Winner" text,
"Party" text,
"Margin" real,
"Runner-up a" text,
"Party a" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who ended runner-up to sankar adhi?
### Response:
|
SELECT "Runner-up a" FROM table_2704 WHERE "Winner" = 'Sankar Adhi'
|
### Instruction:
CREATE TABLE table_29152820_1 (
directed_by VARCHAR,
written_by VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode that is written by Eli Attie and production code is 2t5018?
### Response:
|
SELECT directed_by FROM table_29152820_1 WHERE written_by = "Eli Attie" AND production_code = "2T5018"
|
### Instruction:
CREATE TABLE table_11570261_1 (
championship VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the championship where winning score is 12 (74-66-65-71=276)
### Response:
|
SELECT championship FROM table_11570261_1 WHERE winning_score = −12(74 - 66 - 65 - 71 = 276)
|
### Instruction:
CREATE TABLE table_203_830 (
id number,
"year" number,
"song" text,
"chart positions\nus country" number,
"chart positions\ncan country" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which track is at the top of the us chart ?
### Response:
|
SELECT "song" FROM table_203_830 ORDER BY "chart positions\nus country" LIMIT 1
|
### Instruction:
CREATE TABLE table_200_3 (
id number,
"year" number,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"breeder" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the breeder of the 1941 triple crown winner ?
### Response:
|
SELECT "breeder" FROM table_200_3 WHERE "year" = 1941
|
### Instruction:
CREATE TABLE table_23035 (
"Application" text,
"Latest release date and version" text,
"Developed by" text,
"Platforms" text,
"Mainly Used For" text,
"License" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of developed by for solid edge
### Response:
|
SELECT COUNT("Developed by") FROM table_23035 WHERE "Application" = 'Solid Edge'
|
### Instruction:
CREATE TABLE table_33343 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what week was the game on August 10, 1956 played?
### Response:
|
SELECT AVG("Week") FROM table_33343 WHERE "Date" = 'august 10, 1956'
|
### Instruction:
CREATE TABLE customers (
customer_name VARCHAR,
customer_id VARCHAR
)
CREATE TABLE mailshot_customers (
customer_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the names of customers who have the most mailshots.
### Response:
|
SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_22698 (
"Album#" text,
"English Title" text,
"Chinese (Traditional)" text,
"Chinese (Simplified)" text,
"Release date" text,
"Label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the label for grown up overnight
### Response:
|
SELECT "Label" FROM table_22698 WHERE "English Title" = 'Grown Up Overnight'
|
### Instruction:
CREATE TABLE table_37330 (
"Unit" text,
"Russian" text,
"Translation" text,
"Ratio" real,
"Metric value" text,
"Avoirdupois value" text,
"Ordinary value" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which translation had a unit of Uncia?
### Response:
|
SELECT "Translation" FROM table_37330 WHERE "Unit" = 'uncia'
|
### Instruction:
CREATE TABLE table_204_811 (
id number,
"year" number,
"ring name\n(birth name)" text,
"inducted by" text,
"inducted for" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what number of members were inducted before 2009 ?
### Response:
|
SELECT COUNT(*) FROM table_204_811 WHERE "year" < 2009
|
### Instruction:
CREATE TABLE projects (
name VARCHAR,
code VARCHAR,
hours INTEGER
)
CREATE TABLE assignedto (
project VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the number of scientists involved for the projects that require more than 300 hours.
### Response:
|
SELECT COUNT(*), T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name
|
### Instruction:
CREATE TABLE table_27968 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 12 is the season number how many series numbers are there?
### Response:
|
SELECT COUNT("Series #") FROM table_27968 WHERE "Season #" = '12'
|
### Instruction:
CREATE TABLE table_name_14 (
week INTEGER,
date VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the larges week for the date august 9, 1968 and less than 64,020 in attendance?
### Response:
|
SELECT MAX(week) FROM table_name_14 WHERE date = "august 9, 1968" AND attendance < 64 OFFSET 020
|
### Instruction:
CREATE TABLE table_22915134_2 (
engine VARCHAR,
example VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 1985-2007 yamaha v-max honda vfr800 is the example what is the engine is it?
### Response:
|
SELECT engine FROM table_22915134_2 WHERE example = "1985-2007 Yamaha V-Max Honda VFR800"
|
### Instruction:
CREATE TABLE table_27300 (
"Company" text,
"Parent company" text,
"Parent headquarters" text,
"Plant" text,
"Models produced" text,
"Production (latest figures)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many models produced where the plant is castle bromwich?
### Response:
|
SELECT COUNT("Models produced") FROM table_27300 WHERE "Plant" = 'Castle Bromwich'
|
### Instruction:
CREATE TABLE table_name_57 (
team VARCHAR,
high_assists VARCHAR,
high_rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team has tony parker (10) as the high assists, kurt thomas (12) as the high rebounds?
### Response:
|
SELECT team FROM table_name_57 WHERE high_assists = "tony parker (10)" AND high_rebounds = "kurt thomas (12)"
|
### Instruction:
CREATE TABLE table_name_21 (
money___$__ VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the money when the place was t8 and the score was 74-72-75-71=292?
### Response:
|
SELECT money___$__ FROM table_name_21 WHERE place = "t8" AND score = 74 - 72 - 75 - 71 = 292
|
### Instruction:
CREATE TABLE table_204_800 (
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.
-- name all the nations that won at least five silver medals .
### Response:
|
SELECT "nation" FROM table_204_800 WHERE "silver" >= 5
|
### Instruction:
CREATE TABLE table_name_47 (
result VARCHAR,
date VARCHAR,
competition VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Result of the Friendly Competition on October 27, 2005 with a Score of 5-0?
### Response:
|
SELECT result FROM table_name_47 WHERE competition = "friendly" AND score = "5-0" AND date = "october 27, 2005"
|
### Instruction:
CREATE TABLE table_53788 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"Nationality" text,
"Club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total for Canada during round 2?
### Response:
|
SELECT "Overall" FROM table_53788 WHERE "Nationality" = 'canada' AND "Round" = '2'
|
### Instruction:
CREATE TABLE table_name_74 (
years VARCHAR,
torque VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What years did the sdrive16d model have a Torque of n m (lb ft)@1750-3000?
### Response:
|
SELECT years FROM table_name_74 WHERE torque = "n·m (lb·ft)@1750-3000" AND model = "sdrive16d"
|
### Instruction:
CREATE TABLE table_204_763 (
id number,
"county" text,
"km" number,
"intersecting road" text,
"notes" text,
"coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many intersecting roads are there in rocky view county ?
### Response:
|
SELECT COUNT("intersecting road") FROM table_204_763 WHERE "county" = 'rocky view county'
|
### Instruction:
CREATE TABLE table_18419 (
"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.
-- Name the candidates where incumbent Carl Vinson is?
### Response:
|
SELECT "Candidates" FROM table_18419 WHERE "Incumbent" = 'Carl Vinson'
|
### Instruction:
CREATE TABLE table_31823 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the result for green bay packers
### Response:
|
SELECT "Result" FROM table_31823 WHERE "Opponent" = 'green bay packers'
|
### Instruction:
CREATE TABLE table_63407 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What district has 98 constituencies?
### Response:
|
SELECT "District" FROM table_63407 WHERE "Constituency number" = '98'
|
### Instruction:
CREATE TABLE table_203_173 (
id number,
"year(s)" text,
"serial name" text,
"role" text,
"co-star" text,
"note(s)" text,
"channel" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- on how many shows did he play himself ?
### Response:
|
SELECT COUNT("serial name") FROM table_203_173 WHERE "role" = 'himself'
|
### Instruction:
CREATE TABLE table_59080 (
"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 medals in 1964?
### Response:
|
SELECT MIN("Total") FROM table_59080 WHERE "Year(s) won" = '1964'
|
### Instruction:
CREATE TABLE table_78166 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which home team had a visitor of Ottawa Senators with a score of 1 5?
### Response:
|
SELECT "Home" FROM table_78166 WHERE "Visitor" = 'ottawa senators' AND "Score" = '1–5'
|
### Instruction:
CREATE TABLE table_12226390_7 (
written_by VARCHAR,
directed_by VARCHAR,
no_in_season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the writters for the episode directed by Richard L. Bare, no. 8 in season?
### Response:
|
SELECT written_by FROM table_12226390_7 WHERE directed_by = "Richard L. Bare" AND no_in_season = 8
|
### Instruction:
CREATE TABLE table_203_835 (
id number,
"season" text,
"club" text,
"country" text,
"competition" text,
"apps." number,
"goals" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in how many seasons were there at least 20 goals scored ?
### Response:
|
SELECT COUNT("season") FROM table_203_835 WHERE "goals" >= 20
|
### Instruction:
CREATE TABLE table_1008653_1 (
official_or_native_language_s___alphabet_script_ VARCHAR,
capital___exonym__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What official or native languages are spoken in the country whose capital city is Canberra?
### Response:
|
SELECT official_or_native_language_s___alphabet_script_ FROM table_1008653_1 WHERE capital___exonym__ = "Canberra"
|
### Instruction:
CREATE TABLE table_68049 (
"Pick #" text,
"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.
-- Which NHL team has left wing listed as the position?
### Response:
|
SELECT "NHL team" FROM table_68049 WHERE "Position" = 'left wing'
|
### Instruction:
CREATE TABLE table_204_185 (
id number,
"location" text,
"town" text,
"output (mw ac)" number,
"modules" number,
"number of arrays" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the number of arrays of the riverhead county center project location ?
### Response:
|
SELECT "number of arrays" FROM table_204_185 WHERE "location" = 'riverhead county center'
|
### Instruction:
CREATE TABLE table_68887 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest year that shadow racing team scored more than 0 points?
### Response:
|
SELECT MAX("Year") FROM table_68887 WHERE "Entrant" = 'shadow racing team' AND "Pts." > '0'
|
### Instruction:
CREATE TABLE table_45957 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Grid has Laps smaller than 24, and a Time of retirement?
### Response:
|
SELECT MIN("Grid") FROM table_45957 WHERE "Laps" < '24' AND "Time" = 'retirement'
|
### Instruction:
CREATE TABLE table_24302700_2 (
event_2_truck_pull VARCHAR,
event_1_medley VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many men had an event 1 medley score of 6 (16.6m)?
### Response:
|
SELECT COUNT(event_2_truck_pull) FROM table_24302700_2 WHERE event_1_medley = "6 (16.6m)"
|
### Instruction:
CREATE TABLE pilot (
name VARCHAR,
age VARCHAR,
pilot_id VARCHAR
)
CREATE TABLE MATCH (
winning_pilot VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name and age of the youngest winning pilot?
### Response:
|
SELECT t1.name, t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot ORDER BY t1.age LIMIT 1
|
### Instruction:
CREATE TABLE table_40150 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Coverage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the coverage for the 99.5mhz frequency?
### Response:
|
SELECT "Coverage" FROM table_40150 WHERE "Frequency" = '99.5mhz'
|
### Instruction:
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names, headquarters and founders of the company with the highest revenue?
### Response:
|
SELECT name, headquarter, founder FROM manufacturers ORDER BY revenue DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_69707 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- for country of spain and iata of ibz, what's the city?
### Response:
|
SELECT "City" FROM table_69707 WHERE "Country" = 'spain' AND "IATA" = 'ibz'
|
### Instruction:
CREATE TABLE table_50689 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had points smaller than 22 and a drawn of 2?
### Response:
|
SELECT "Name" FROM table_50689 WHERE "Points" < '22' AND "Drawn" = '2'
|
### Instruction:
CREATE TABLE table_54001 (
"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 won by driver Carlos Reutemann?
### Response:
|
SELECT "Race Name" FROM table_54001 WHERE "Winning driver" = 'carlos reutemann'
|
### Instruction:
CREATE TABLE table_17367 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many successors were seated in the New York 20th district?
### Response:
|
SELECT COUNT("Successor") FROM table_17367 WHERE "District" = 'New York 20th'
|
### Instruction:
CREATE TABLE table_44979 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Opponent of the Game with a Result of l 23-41?
### Response:
|
SELECT "Opponent" FROM table_44979 WHERE "Result" = 'l 23-41'
|
### Instruction:
CREATE TABLE table_14236 (
"School" text,
"Mascot" text,
"Location" text,
"Size" real,
"IHSAA Class" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest size of the school with titans as the mascot?
### Response:
|
SELECT MIN("Size") FROM table_14236 WHERE "Mascot" = 'titans'
|
### Instruction:
CREATE TABLE table_204_88 (
id number,
"year" number,
"english title" text,
"japanese" text,
"romanization" text,
"type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- was shinjuku triad society a film or tv release ?
### Response:
|
SELECT "type" FROM table_204_88 WHERE "english title" = 'shinjuku triad society'
|
### Instruction:
CREATE TABLE table_name_49 (
earpads VARCHAR,
driver_matched_db VARCHAR,
us_msrp VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What earpads do the headphones with driver-matched dB over 0.05 and MSRP of $79 have?
### Response:
|
SELECT earpads FROM table_name_49 WHERE driver_matched_db > 0.05 AND us_msrp = "$79"
|
### Instruction:
CREATE TABLE table_19688 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Language (s)" text,
"Director(s)" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- is nominated for anything?
### Response:
|
SELECT "Result" FROM table_19688 WHERE "Original title" = 'Γолемата Вода'
|
### Instruction:
CREATE TABLE table_19995 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text,
"Class AAAAA" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year is dayton in class AAAA?
### Response:
|
SELECT "School Year" FROM table_19995 WHERE "Class AAAA" = 'Dayton'
|
### Instruction:
CREATE TABLE table_2562572_7 (
population__1991_ VARCHAR,
population__2002_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the population (1991) where population (2002) was 14250?
### Response:
|
SELECT COUNT(population__1991_) FROM table_2562572_7 WHERE population__2002_ = 14250
|
### Instruction:
CREATE TABLE table_18297 (
"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 winning party in the Pennsylvania 6 district?
### Response:
|
SELECT "Party" FROM table_18297 WHERE "District" = 'Pennsylvania 6'
|
### Instruction:
CREATE TABLE table_27803 (
"Circuit" text,
"Location" text,
"Date" text,
"Series" text,
"Winning driver" text,
"Winning team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When fr2.0 9 is the series who is the winning team?
### Response:
|
SELECT "Winning team" FROM table_27803 WHERE "Series" = 'FR2.0 9'
|
### Instruction:
CREATE TABLE table_75935 (
"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 Attendance for a Week earlier than 16, and a Date of bye?
### Response:
|
SELECT "Attendance" FROM table_75935 WHERE "Week" < '16' AND "Date" = 'bye'
|
### Instruction:
CREATE TABLE table_56154 (
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Diff" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of losses with 25 points?
### Response:
|
SELECT MAX("Lost") FROM table_56154 WHERE "Points" = '25'
|
### Instruction:
CREATE TABLE table_21489 (
"Cartridge" text,
"Bullet weight" text,
"Muzzle velocity" text,
"Muzzle energy" text,
"Max pressure" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many pressure figures are given for the .380 acp cartridge?
### Response:
|
SELECT COUNT("Max pressure") FROM table_21489 WHERE "Cartridge" = '.380 ACP'
|
### Instruction:
CREATE TABLE table_25182437_1 (
end_date_of__final__term VARCHAR,
prime_minister VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the prime minister is Palmer, Geoffrey Geoffrey Palmer, what is the end date of (final) term?
### Response:
|
SELECT end_date_of__final__term FROM table_25182437_1 WHERE prime_minister = "Palmer, Geoffrey Geoffrey Palmer"
|
### Instruction:
CREATE TABLE table_72352 (
"Rank" real,
"Dismissals" real,
"Player" text,
"Innings" real,
"Catches" real,
"Stumpings" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many dismissals did the player Peter McGlashan have?
### Response:
|
SELECT "Dismissals" FROM table_72352 WHERE "Player" = 'Peter McGlashan'
|
### Instruction:
CREATE TABLE table_50835 (
"Year" text,
"Team" text,
"Attempts" text,
"Completions" text,
"Completion %" text,
"Yards" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number of attempts were recorded when the completions were 223?
### Response:
|
SELECT "Attempts" FROM table_50835 WHERE "Completions" = '223'
|
### Instruction:
CREATE TABLE table_77235 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the status of the match held on 12/7/1997?
### Response:
|
SELECT "Status" FROM table_77235 WHERE "Date" = '12/7/1997'
|
### Instruction:
CREATE TABLE table_69703 (
"Date" text,
"Opponents" text,
"Result F\u2013A" text,
"Attendance" real,
"Group position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Result F A of 5 0 had what date?
### Response:
|
SELECT "Date" FROM table_69703 WHERE "Result F\u2013A" = '5–0'
|
### Instruction:
CREATE TABLE table_38806 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score for toronto visitor and record of 29-17-8
### Response:
|
SELECT "Score" FROM table_38806 WHERE "Visitor" = 'toronto' AND "Record" = '29-17-8'
|
### Instruction:
CREATE TABLE table_name_87 (
round INTEGER,
school_club_team VARCHAR,
overall VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average round for Wisconsin when the overall is larger than 238 and there is a defensive end?
### Response:
|
SELECT AVG(round) FROM table_name_87 WHERE overall > 238 AND position = "defensive end" AND school_club_team = "wisconsin"
|
### Instruction:
CREATE TABLE table_15202 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year has an ERA engine and an ERA A-type chassis?
### Response:
|
SELECT "Year" FROM table_15202 WHERE "Engine" = 'era' AND "Chassis" = 'era a-type'
|
### Instruction:
CREATE TABLE table_name_47 (
height__m_ft_ VARCHAR,
rank VARCHAR,
city VARCHAR,
built VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Height (m/ft) for bucharest Built in 2009, and a Rank of 13?
### Response:
|
SELECT height__m_ft_ FROM table_name_47 WHERE city = "bucharest" AND built = 2009 AND rank = 13
|
### Instruction:
CREATE TABLE table_name_40 (
name VARCHAR,
year_appointed VARCHAR,
years_until_mandatory_retirement VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what name has an appointed year of 2009 and years until mandatory retirement of 13 years?
### Response:
|
SELECT name FROM table_name_40 WHERE year_appointed = 2009 AND years_until_mandatory_retirement = "13 years"
|
### Instruction:
CREATE TABLE table_203_2 (
id number,
"name" text,
"mineral" text,
"opened" text,
"closed" text,
"years connected" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years was the cesail mine connected ?
### Response:
|
SELECT "years connected" - "years connected" FROM table_203_2 WHERE "name" = 'cesail'
|
### Instruction:
CREATE TABLE table_27155990_1 (
_percentage_funded INTEGER,
closing_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the minimum % funded of the project that was closed on 2012-05-18?
### Response:
|
SELECT MIN(_percentage_funded) FROM table_27155990_1 WHERE closing_date = "2012-05-18"
|
### Instruction:
CREATE TABLE table_54312 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the sum of round for record of 6-3
### Response:
|
SELECT SUM("Round") FROM table_54312 WHERE "Record" = '6-3'
|
### Instruction:
CREATE TABLE table_77833 (
"Name" text,
"Date of Birth" text,
"Date of Death" text,
"Age at Time of Disaster" text,
"Age at Time of Death" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the person born in 1909?
### Response:
|
SELECT "Name" FROM table_77833 WHERE "Date of Birth" = '1909'
|
### Instruction:
CREATE TABLE table_37067 (
"Season" real,
"Team" text,
"Games" real,
"Wins" real,
"Losses" real,
"Ties" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Losses is the lowest one that has Wins smaller than 0?
### Response:
|
SELECT MIN("Losses") FROM table_37067 WHERE "Wins" < '0'
|
### Instruction:
CREATE TABLE table_28545 (
"Round" text,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Round 1 is in what circuit?
### Response:
|
SELECT "Circuit" FROM table_28545 WHERE "Round" = '1'
|
### Instruction:
CREATE TABLE table_42678 (
"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.
-- What was the 2nd leg score for the match with Lesotho as team 1?
### Response:
|
SELECT "2nd leg" FROM table_42678 WHERE "Team 1" = 'lesotho'
|
### Instruction:
CREATE TABLE table_38723 (
"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.
-- When was the WC 1974 Qualifying game?
### Response:
|
SELECT "Date" FROM table_38723 WHERE "Type of game" = 'wc 1974 qualifying'
|
### Instruction:
CREATE TABLE table_203_788 (
id number,
"year" number,
"author" text,
"illustrator" text,
"title" text,
"publisher" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many number of titles are listed for the year 1991 ?
### Response:
|
SELECT COUNT(DISTINCT "title") FROM table_203_788 WHERE "year" = 1991
|
### Instruction:
CREATE TABLE table_46643 (
"Date" text,
"Opponent#" text,
"Rank #" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the game when 40,000 attended?
### Response:
|
SELECT "Date" FROM table_46643 WHERE "Attendance" = '40,000'
|
### Instruction:
CREATE TABLE table_28927 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party did the incumbent Joseph Pearson belong to?
### Response:
|
SELECT "Party" FROM table_28927 WHERE "Incumbent" = 'Joseph Pearson'
|
### Instruction:
CREATE TABLE table_42332 (
"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.
-- What was the Margin of victory in the southwest golf classic Tournament?
### Response:
|
SELECT "Margin of victory" FROM table_42332 WHERE "Tournament" = 'southwest golf classic'
|
### Instruction:
CREATE TABLE table_66290 (
"Proto-Germanic" text,
"West Germanic" text,
"Old English" text,
"German" text,
"Dutch" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the West Germanic when the German is /s/ or /ts/?
### Response:
|
SELECT "West Germanic" FROM table_66290 WHERE "German" = '/s/ or /ts/'
|
### Instruction:
CREATE TABLE table_46644 (
"Date" text,
"Opponent#" text,
"Rank #" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the game when 45,943 attended?
### Response:
|
SELECT "Date" FROM table_46644 WHERE "Attendance" = '45,943'
|
### Instruction:
CREATE TABLE table_47588 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the draft pick from round 3 out of Mercer College what is the nationality?
### Response:
|
SELECT "Nationality" FROM table_47588 WHERE "Round" = '3' AND "College" = 'mercer'
|
### Instruction:
CREATE TABLE table_203_715 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of competitions representing barcelona , spain ?
### Response:
|
SELECT COUNT("competition") FROM table_203_715 WHERE "venue" = 'barcelona, spain'
|
### Instruction:
CREATE TABLE table_201_9 (
id number,
"year" number,
"film title" text,
"duration" text,
"film type" text,
"shoot location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- list the films that had a collaboration with b. dziworski .
### Response:
|
SELECT "film title" FROM table_201_9 WHERE "shoot location" = 'in collaboration with b. dziworski'
|
### Instruction:
CREATE TABLE table_62828 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player had a pick higher than 53, and a position of defensive tackle?
### Response:
|
SELECT "Player" FROM table_62828 WHERE "Pick" > '53' AND "Position" = 'defensive tackle'
|
### Instruction:
CREATE TABLE table_204_121 (
id number,
"year" text,
"game" text,
"developer" text,
"setting" text,
"platform" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many business simulation video games were developed prior to 1995 ?
### Response:
|
SELECT COUNT("game") FROM table_204_121 WHERE "year" < 1995
|
### Instruction:
CREATE TABLE table_2668374_13 (
district VARCHAR,
first_elected VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many districts first elected someone in 1808 and had george smith as the incumbent?
### Response:
|
SELECT COUNT(district) FROM table_2668374_13 WHERE first_elected = "1808" AND incumbent = "George Smith"
|
### Instruction:
CREATE TABLE table_112 (
"Track #" real,
"Song" text,
"Singers" text,
"Picturization" text,
"Length" text,
"Lyricist" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For which singers was Alangudi Somu the lyricist?
### Response:
|
SELECT "Singers" FROM table_112 WHERE "Lyricist" = 'Alangudi Somu'
|
### Instruction:
CREATE TABLE table_203_256 (
id number,
"rd" number,
"home team" text,
"score" text,
"away team" text,
"result (w/d/l)" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which home team scored the most points ?
### Response:
|
SELECT "home team" FROM table_203_256 ORDER BY "score" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_5369 (
"Date" text,
"Result" text,
"Score" text,
"Brazil scorers" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Competition had a game on October 31, 1979?
### Response:
|
SELECT "Competition" FROM table_5369 WHERE "Date" = 'october 31, 1979'
|
### Instruction:
CREATE TABLE table_203_273 (
id number,
"name" text,
"japanese" text,
"distance\n(km)" number,
"connections" text,
"location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many station are located in kita ku , okayama ?
### Response:
|
SELECT COUNT(*) FROM table_203_273 WHERE "location" = 'kita-ku, okayama'
|
### Instruction:
CREATE TABLE table_7549 (
"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.
-- What is the Team 1 with a Team 2 with brest hc meshkov?
### Response:
|
SELECT "Team 1" FROM table_7549 WHERE "Team 2" = 'brest hc meshkov'
|
### Instruction:
CREATE TABLE campuses (
id VARCHAR
)
CREATE TABLE csu_fees (
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the campus fee of 'San Francisco State University' in year 1996?
### Response:
|
SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = "San Francisco State University" AND T2.year = 1996
|
### Instruction:
CREATE TABLE table_40095 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which School/Club Team has a Player of jud buechler?
### Response:
|
SELECT "School/Club Team" FROM table_40095 WHERE "Player" = 'jud buechler'
|
### Instruction:
CREATE TABLE table_name_67 (
whenbuilt VARCHAR,
name VARCHAR,
builder VARCHAR,
withdrawn VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the whenbuilt of the Brighton built Blandford Forum with a withdrawn of september 1964?
### Response:
|
SELECT whenbuilt FROM table_name_67 WHERE builder = "brighton" AND withdrawn = "september 1964" AND name = "blandford forum"
|
### Instruction:
CREATE TABLE table_204_342 (
id number,
"#" number,
"player" text,
"span" text,
"caps" number,
"total caps" number,
"win %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long did michel crauste serve as captain ?
### Response:
|
SELECT "span" FROM table_204_342 WHERE "player" = 'michel crauste'
|
### Instruction:
CREATE TABLE table_25042332_31 (
incarceration_rate_total VARCHAR,
incarceration_rate_female VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many regions had an incarceration rate for females of 63?
### Response:
|
SELECT COUNT(incarceration_rate_total) FROM table_25042332_31 WHERE incarceration_rate_female = 63
|
### Instruction:
CREATE TABLE products (
product_name VARCHAR,
color_code VARCHAR
)
CREATE TABLE ref_colors (
color_code VARCHAR,
color_description VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the product with the color description 'yellow'?
### Response:
|
SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code = T2.color_code WHERE T2.color_description = 'yellow'
|
### Instruction:
CREATE TABLE table_name_16 (
points_against___tests__ VARCHAR,
year_s_ VARCHAR,
games_won___tests__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the points against for 2001, and games won of 5 (3)?
### Response:
|
SELECT points_against___tests__ FROM table_name_16 WHERE year_s_ = 2001 AND games_won___tests__ = "5 (3)"
|
### Instruction:
CREATE TABLE table_73602 (
"Code name" text,
"Brand name" text,
"Model (list)" text,
"Frequency" text,
"Cores/Threads" text,
"Max Memory Speed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What frequency does model L34xx use?
### Response:
|
SELECT "Frequency" FROM table_73602 WHERE "Model (list)" = 'L34xx'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.