instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_2555 (
"Number in map" text,
"Prefecture" text,
"Area (km\u00b2)" text,
"Population (2001)" real,
"Pop. density (/km\u00b2)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many prefectures have an area of 361.... | SELECT COUNT("Prefecture") FROM table_2555 WHERE "Area (km\u00b2)" = '361.719' |
### Instruction:
CREATE TABLE table_40247 (
"Season" real,
"Series" text,
"Team" text,
"Races" text,
"Wins" text,
"Poles" text,
"F/Laps" text,
"Podiums" text,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Points" FROM table_40247 WHERE "Wins" = '3' AND "Team" = 'carlin' |
### Instruction:
CREATE TABLE table_53819 (
"Code" real,
"Type" text,
"Name" text,
"Area (km 2 )" real,
"Population" real,
"Regional County Municipality" text,
"Region" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average area ... | SELECT AVG("Area (km 2 )") FROM table_53819 WHERE "Code" = '98030' AND "Population" > '312' |
### Instruction:
CREATE TABLE table_3641 (
"Round" real,
"Date" text,
"Grand Prix" text,
"Circuit" text,
"MotoGP winner" text,
"Moto2 winner" text,
"125cc winner" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are all ... | SELECT "Moto2 winner" FROM table_3641 WHERE "Grand Prix" = 'Shell Advance Malaysian Grand Prix' |
### Instruction:
CREATE TABLE table_38364 (
"Rank" real,
"Name" text,
"Location" text,
"Height feet / metres" text,
"Floors" text,
"Year Proposed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What building is in ljubljana, proposed in 2010, an... | SELECT "Name" FROM table_38364 WHERE "Location" = 'ljubljana' AND "Year Proposed" = '2010' AND "Floors" = '15' |
### Instruction:
CREATE TABLE table_name_15 (
city_population__2009_ INTEGER,
serial_no VARCHAR,
city_area_km_2__ VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest city population for the district of rajanpur distri... | SELECT MIN(city_population__2009_) FROM table_name_15 WHERE city_area_km_2__ = 6 AND district = "rajanpur district" AND serial_no < 29 |
### Instruction:
CREATE TABLE table_17126 (
"Calculator" text,
"CPU" text,
"RAM" text,
"Display Size" text,
"Programming Languages" text,
"Link Abilities" text,
"Year Released" text,
"Predecessors" text,
"Successors" text
)
-- Using valid SQLite, answer the following questions for ... | SELECT "Link Abilities" FROM table_17126 WHERE "Predecessors" = 'TI-85' |
### Instruction:
CREATE TABLE table_68992 (
"Material" text,
"Resistivity (10 \u22126 ohm-inches)" real,
"Relative permeability" real,
"Skin depth, inches" real,
"Surface resistance, Relative to copper" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT MIN("Relative permeability") FROM table_68992 WHERE "Skin depth, inches" > '0.112' |
### Instruction:
CREATE TABLE table_72081 (
"Country ( exonym )" text,
"Capital ( exonym )" text,
"Country ( endonym )" text,
"Capital ( endonym )" text,
"Official or native language(s) (alphabet/script)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Official or native language(s) (alphabet/script)" FROM table_72081 WHERE "Capital ( exonym )" = 'Canberra' |
### Instruction:
CREATE TABLE table_62408 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Player has a To par of +5 with a Score of 70-70-71-74=285?
... | SELECT "Player" FROM table_62408 WHERE "To par" = '+5' AND "Score" = '70-70-71-74=285' |
### Instruction:
CREATE TABLE table_71237 (
"School" text,
"Location" text,
"Mascot" text,
"County" text,
"Enrollment IHSAA Class" text,
"Joined" real,
"Previous Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which location is in... | SELECT "Location" FROM table_71237 WHERE "County" = '71 st. joseph' AND "School" = 'south bend washington' |
### Instruction:
CREATE TABLE table_204_654 (
id number,
"year" number,
"song" text,
"u.s." number,
"u.s.\nr&b" number,
"u.s.\nac" number,
"uk" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which album had more , bonafid... | SELECT "album" FROM table_204_654 WHERE "album" IN ('bonafide', 'intentions') GROUP BY "album" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_72191 (
"Year" real,
"Championship" text,
"54 holes" text,
"Winning score" text,
"Margin" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the championship where 54 holes is 1 shot le... | SELECT "Championship" FROM table_72191 WHERE "54 holes" = '1 shot lead' AND "Runner(s)-up" = 'Chris DiMarco' |
### Instruction:
CREATE TABLE table_8057 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "High rebounds" FROM table_8057 WHERE "Score" = 'l 101–109 (ot)' |
### Instruction:
CREATE TABLE table_61991 (
"Player" text,
"Position" text,
"League Cup" real,
"Scottish Cup" real,
"UEFA Champions League" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the scottish cup of the f... | SELECT SUM("Scottish Cup") FROM table_61991 WHERE "League Cup" < '2' AND "Total" > '6' AND "Position" = 'forward' |
### Instruction:
CREATE TABLE table_13757 (
"Debut year" real,
"Player" text,
"Games" real,
"Goals" real,
"Years at club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the most goals listed when Jack Trehey was the player, with the listed ... | SELECT MAX("Goals") FROM table_13757 WHERE "Debut year" = '1902' AND "Player" = 'jack trehey' AND "Games" < '1' |
### Instruction:
CREATE TABLE table_69331 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponents for outcome of runner-... | SELECT "Opponents in the final" FROM table_69331 WHERE "Outcome" = 'runner-up' AND "Date" = 'august 7, 2011' |
### Instruction:
CREATE TABLE table_12642 (
"South West DFL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Byes, when South West DFL is 'Colerain... | SELECT COUNT("Byes") FROM table_12642 WHERE "South West DFL" = 'coleraine' AND "Wins" < '12' |
### Instruction:
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
)
-- Using valid SQLite, answer the following question... | SELECT cname FROM tryout WHERE ppos = 'mid' EXCEPT SELECT cname FROM tryout WHERE ppos = 'goalie' |
### Instruction:
CREATE TABLE table_46164 (
"Name" text,
"GP-GS" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE NUMBER OF LOSSES WITH A LONG SMALLER THAN 24, AND GAIN BIGGER THAN 1... | SELECT COUNT("Loss") FROM table_46164 WHERE "Long" < '24' AND "Gain" > '116' |
### Instruction:
CREATE TABLE table_203_496 (
id number,
"pos" number,
"country" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many more silvers did italy win compared to ... | SELECT (SELECT "silver" FROM table_203_496 WHERE "country" = 'italy') - (SELECT "silver" FROM table_203_496 WHERE "country" = 'united states') |
### Instruction:
CREATE TABLE table_20287 (
"Kansas State vs." text,
"Games played" real,
"Overall Record" text,
"Last 5 Meetings" text,
"Last 10 Meetings" text,
"Current Streak" text,
"Last Meeting" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "Current Streak" FROM table_20287 WHERE "Last Meeting" = '12/5/1987' |
### Instruction:
CREATE TABLE table_204_34 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in gold between algeria an... | SELECT (SELECT "gold" FROM table_204_34 WHERE "nation" = 'algeria') - (SELECT "gold" FROM table_204_34 WHERE "nation" = 'cameroon') |
### Instruction:
CREATE TABLE table_70483 (
"Season" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Rounds" text,
"Teams" text,
"Drivers" text,
"Champion (points)" text,
"Second (points)" text,
"Third (points)" text
)
-- Using valid SQLite, answer the following questions f... | SELECT "Teams" FROM table_70483 WHERE "Third (points)" = 'season cancelled' |
### Instruction:
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height re... | SELECT People_ID, Weight FROM people GROUP BY Sex |
### Instruction:
CREATE TABLE table_20447 (
"Information" text,
"Akimel A-al The name is Tohono Oodham for children of the river" text,
"Altade\u00f1a" text,
"Aprende" text,
"Centennial" text,
"Kyrene MS" text,
"del Pueblo" text
)
-- Using valid SQLite, answer the following questions for t... | SELECT "del Pueblo" FROM table_20447 WHERE "Centennial" = 'Red/black' |
### Instruction:
CREATE TABLE table_name_93 (
races INTEGER,
pole VARCHAR,
season VARCHAR,
flaps VARCHAR,
podiums VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT ARE THE RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AN... | SELECT SUM(races) FROM table_name_93 WHERE flaps = 0 AND podiums > 0 AND season = "2008" AND pole < 1 |
### Instruction:
CREATE TABLE table_62330 (
"Month" text,
"15th- 20th century" text,
"U.S. (1912)" text,
"U.S. (2013)" text,
"Britain (2013)" text,
"Hindu" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which month in 2013 did the U.S. use the r... | SELECT "Month" FROM table_62330 WHERE "U.S. (2013)" = 'ruby' |
### Instruction:
CREATE TABLE table_204_809 (
id number,
"draw" number,
"country" text,
"language" text,
"artist" text,
"song" text,
"english translation" text,
"national final" text,
"place" number,
"points" number
)
-- Using valid SQLite, answer the following questions for th... | SELECT COUNT("song") FROM table_204_809 WHERE "language" = 'english' |
### Instruction:
CREATE TABLE table_69398 (
"Riding" text,
"Candidate's Name" text,
"Gender" text,
"Residence" text,
"Occupation" text,
"Votes" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the candidate fro... | SELECT "Candidate's Name" FROM table_69398 WHERE "Gender" = 'm' AND "Residence" = 'happy valley-goose bay' |
### Instruction:
CREATE TABLE table_72116 (
"Rnd" text,
"Race Name" text,
"Circuit" text,
"City/Location" text,
"Date" text,
"Pole position" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT COUNT("Report") FROM table_72116 WHERE "Circuit" = 'Cleveland Burke Lakefront Airport' |
### Instruction:
CREATE TABLE table_name_29 (
average INTEGER,
interview VARCHAR,
state VARCHAR,
swimsuit VARCHAR,
evening_gown VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the lowest average for a swimsuit over 6.89, evening gown over 7... | SELECT MIN(average) FROM table_name_29 WHERE swimsuit > 6.89 AND evening_gown > 7.76 AND state = "illinois" AND interview > 8.57 |
### Instruction:
CREATE TABLE table_74704 (
"Name" text,
"Case type" text,
"Bullet diameter" text,
"Neck diameter" text,
"Base diameter" text,
"Rim diameter" text,
"Case length" text,
"Cartridge length" text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT "Bullet diameter" FROM table_74704 WHERE "Neck diameter" = '12.17 (.479)' |
### Instruction:
CREATE TABLE table_29310 (
"Team" text,
"Home Gms" real,
"Home Total" real,
"Home Avg" real,
"Top Home Crowd" text,
"Road Gms" real,
"Road Total" real,
"Road Avg" real,
"Overall Gms" real,
"Overall Total" real,
"Overall Avg" real
)
-- Using valid SQLite, an... | SELECT MAX("Home Total") FROM table_29310 |
### Instruction:
CREATE TABLE table_203_823 (
id number,
"model name" text,
"date" text,
"type" text,
"thrust (kg) / power (eshp)" text,
"fitted to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what model was dated before model s-18 / vdr-3 ?
... | SELECT "model name" FROM table_203_823 WHERE "date" < (SELECT "date" FROM table_203_823 WHERE "model name" = 's-18/vdr-3') |
### Instruction:
CREATE TABLE table_53390 (
"NGC number" real,
"Object type" text,
"Constellation" text,
"Right ascension ( J2000 )" text,
"Declination ( J2000 )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest ngc number when the... | SELECT MAX("NGC number") FROM table_53390 WHERE "Declination ( J2000 )" = '°25′26″' |
### Instruction:
CREATE TABLE table_5594 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the oilers record for the game on November 27 when the Edmonton oilers were playing a... | SELECT "Record" FROM table_5594 WHERE "Home" = 'edmonton oilers' AND "Visitor" = 'chicago blackhawks' AND "Date" = 'november 27' |
### Instruction:
CREATE TABLE table_11153 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of interview scores that have an evening gown score o... | SELECT SUM("Interview") FROM table_11153 WHERE "Evening Gown" = '9.543' AND "Average" > '9.521' |
### Instruction:
CREATE TABLE table_49627 (
"Year" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Host city / cities" text,
"Host country / countries" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the host country when the silver wa... | SELECT "Host country / countries" FROM table_49627 WHERE "Silver" = '[[|]] (2)' AND "Bronze" = 'czechoslovakia (3)' |
### Instruction:
CREATE TABLE table_25759 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT MAX("No. in season") FROM table_25759 WHERE "No. in series" = '75' |
### Instruction:
CREATE TABLE table_204_979 (
id number,
"place" number,
"nation" text,
"5 hoops" text,
"3 balls,\n2 ribbons" text,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- other than spain , name a country that beat russia overa... | SELECT "nation" FROM table_204_979 WHERE "nation" <> 'spain' AND "total" > (SELECT "total" FROM table_204_979 WHERE "nation" = 'russia') |
### Instruction:
CREATE TABLE table_78100 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of bronze a team with more than 0 silver, a total ... | SELECT COUNT("Bronze") FROM table_78100 WHERE "Silver" > '0' AND "Total" = '7' AND "Gold" < '1' |
### Instruction:
CREATE TABLE table_204_975 (
id number,
"year" number,
"competition" text,
"location" text,
"event" text,
"final-rank" text,
"final-score" number,
"qualifying rank" number,
"qualifying score" number
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT "competition" FROM table_204_975 GROUP BY "competition" HAVING COUNT("event") = 1 |
### Instruction:
CREATE TABLE table_23312 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "High rebounds" FROM table_23312 WHERE "High assists" = 'Five Players (3)' |
### Instruction:
CREATE TABLE claim_headers (
amount_claimed INTEGER,
claim_header_id VARCHAR
)
CREATE TABLE claims_documents (
claim_id VARCHAR,
created_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the total amount claimed in the most r... | SELECT SUM(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1) |
### Instruction:
CREATE TABLE table_7236 (
"State or territory" text,
"Hillary Clinton" real,
"Barack Obama" real,
"Uncommitted" real,
"Unassigned" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of uncommi... | SELECT MIN("Uncommitted") FROM table_7236 WHERE "Total" > '16' AND "Hillary Clinton" = '2' |
### Instruction:
CREATE TABLE table_25667 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" text,
"Viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "No. in series" FROM table_25667 WHERE "Directed by" = 'Matthew Penn' |
### Instruction:
CREATE TABLE table_72805 (
"Poll Source" text,
"Dates administered" text,
"Democrat: John Kerry" text,
"Republican: Jeff Beatty" text,
"Lead Margin" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the percentage for john kerr... | SELECT "Democrat: John Kerry" FROM table_72805 WHERE "Dates administered" = 'April 22, 2008' |
### Instruction:
CREATE TABLE table_79828 (
"Place" real,
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the goal conced... | SELECT MAX("Goals Conceded") FROM table_79828 WHERE "Lost" > '8' AND "Points" > '17' |
### Instruction:
CREATE TABLE table_202_28 (
id number,
"year" number,
"output growth rate %" number,
"unemployment rate %" number,
"inflation rate %" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in what years , between 1990 and 2004 , did japan... | SELECT COUNT("year") FROM table_202_28 WHERE "year" >= 1990 AND "year" <= 2004 AND "unemployment rate %" >= 5 |
### Instruction:
CREATE TABLE table_36974 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, answer the foll... | SELECT "Club" FROM table_36974 WHERE "Losing bonus" = '1' |
### Instruction:
CREATE TABLE driverstandings (
driverid VARCHAR,
points VARCHAR,
position VARCHAR,
wins VARCHAR
)
CREATE TABLE drivers (
forename VARCHAR,
driverid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find all the forenames of dis... | SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20 |
### Instruction:
CREATE TABLE table_23361 (
"Rd." text,
"Race" text,
"Pole position" text,
"Fastest lap" text,
"Most laps led" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How ... | SELECT COUNT("Winning driver") FROM table_23361 WHERE "Winning team" = 'Bryan Herta Autosport' |
### Instruction:
CREATE TABLE table_75913 (
"Rank" real,
"Name" text,
"Built" real,
"Height" text,
"Floors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Built, when Floors is less than 22, when Rank is less than 8, and ... | SELECT COUNT("Built") FROM table_75913 WHERE "Floors" < '22' AND "Rank" < '8' AND "Name" = 'white, mediacityuk' |
### Instruction:
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ... | SELECT Name, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter |
### Instruction:
CREATE TABLE table_49957 (
"Season" real,
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Competition round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the venue of season 1983, whic... | SELECT "Venue" FROM table_49957 WHERE "Home team" = 'alianza lima' AND "Season" = '1983' |
### Instruction:
CREATE TABLE table_74997 (
"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 is the location when the new york jets lost earlier than 1997 and a ... | SELECT "Location" FROM table_74997 WHERE "Loser" = 'new york jets' AND "Year" < '1997' AND "Result" = '31–28' |
### Instruction:
CREATE TABLE table_26854 (
"Year" real,
"Mutya ng Pilipinas Asia Pacific" text,
"1st runner-up" text,
"2nd runner-up" text,
"3rd runner-up" text,
"4th runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the number of ... | SELECT COUNT("Year") FROM table_26854 WHERE "Mutya ng Pilipinas Asia Pacific" = 'Ritchie Ocampo' |
### Instruction:
CREATE TABLE table_78911 (
"Season" real,
"Date" text,
"Winning Driver" text,
"Car #" real,
"Sponsor" text,
"Make" text,
"Team" text,
"Avg Speed" text,
"Margin of Victory" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Team" FROM table_78911 WHERE "Car #" = '24' AND "Date" = 'august 30' |
### Instruction:
CREATE TABLE table_74172 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What ... | SELECT "Original air date" FROM table_74172 WHERE "U.S. viewers (million)" = '5.39' |
### Instruction:
CREATE TABLE table_60217 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much money does the player with a 69-70-72-64=275 score h... | SELECT "Money ( \u00a3 )" FROM table_60217 WHERE "Score" = '69-70-72-64=275' |
### Instruction:
CREATE TABLE table_820 (
"Year" real,
"Winner" text,
"Language" text,
"Artist" text,
"Song" text,
"Points" real,
"Margin" real,
"Second place" text,
"Date" text,
"Venue" text,
"Location" text,
"Participants" real
)
-- Using valid SQLite, answer the foll... | SELECT COUNT("Location") FROM table_820 WHERE "Winner" = 'Spain' |
### Instruction:
CREATE TABLE table_75387 (
"Polling Firm" text,
"Date" text,
"PSD - PC" text,
"UDMR" text,
"Elena B\u0103sescu" text,
"Others" text,
"Undecided" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the elena basescu when t... | SELECT "Elena B\u0103sescu" FROM table_75387 WHERE "Polling Firm" = 'gallup' |
### Instruction:
CREATE TABLE table_60090 (
"Country" text,
"Region" text,
"FHFreepressreport" text,
"RWB Pressfreedomindex" text,
"Internetlists" text,
"ONIpoliticalfiltering" text,
"ONIsocialfiltering" text,
"ONIsecurityfiltering" text,
"ONItoolsfiltering" text
)
-- Using valid S... | SELECT "Region" FROM table_60090 WHERE "Country" = 'laos' |
### Instruction:
CREATE TABLE table_75975 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Tries For" text,
"Tries Against" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Lost" FROM table_75975 WHERE "Tries For" = '47' |
### Instruction:
CREATE TABLE table_21810 (
"N" real,
"P" text,
"Name" text,
"EU" text,
"Country" text,
"Age" real,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text,
"Source" text
)
-- Using valid SQLite, answer the following que... | SELECT "Country" FROM table_21810 WHERE "P" = 'GK' |
### Instruction:
CREATE TABLE table_1054 (
"Quarterback" text,
"Jersey No." text,
"Games Started" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Winning Pct." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many lost games for jersey num... | SELECT "Losses" FROM table_1054 WHERE "Jersey No." = '2' AND "Games Started" < '7.0' |
### Instruction:
CREATE TABLE table_33261 (
"Game Name" text,
"Price" text,
"Top Prize" text,
"Launch Date" text,
"Odds of Winning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the game with odds of winning 1 in 4.23 with a top... | SELECT "Game Name" FROM table_33261 WHERE "Odds of Winning" = '1 in 4.23' AND "Top Prize" = '$15,000' |
### Instruction:
CREATE TABLE APPELLATIONS (
Appelation VARCHAR,
Area VARCHAR
)
CREATE TABLE WINE (
Price INTEGER,
Appelation VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the maximum price of wins from the appelations in Cen... | SELECT MAX(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = "Central Coast" AND T2.year < 2005 |
### Instruction:
CREATE TABLE table_62276 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Category, when Result is 'Nominated', when Award is 'Drama Desk Award', and when ... | SELECT "Category" FROM table_62276 WHERE "Result" = 'nominated' AND "Award" = 'drama desk award' AND "Nominee" = 'nathan lane' |
### Instruction:
CREATE TABLE table_79064 (
"Elimination" text,
"Wrestler" text,
"Team" text,
"Eliminated by" text,
"Elimination Move" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Wrestler plays for Team Batista which was El... | SELECT "Wrestler" FROM table_79064 WHERE "Team" = 'team batista' AND "Eliminated by" = 'orton' AND "Elimination" = '8' |
### Instruction:
CREATE TABLE table_48786 (
"System" text,
"Year Introduced" real,
"S-100 slots" real,
"Internal Floppy Disk" text,
"Internal Hard Disk" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value for internal floppy disk with s... | SELECT "Internal Floppy Disk" FROM table_48786 WHERE "S-100 slots" > '8' AND "Year Introduced" < '1978' |
### Instruction:
CREATE TABLE savings (
custid VARCHAR,
balance INTEGER
)
CREATE TABLE checking (
custid VARCHAR,
balance INTEGER
)
CREATE TABLE accounts (
name VARCHAR,
custid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of... | SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance |
### Instruction:
CREATE TABLE table_60857 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest number of gold medals a country with 1 bronze, and a t... | SELECT MIN("Gold") FROM table_60857 WHERE "Bronze" = '1' AND "Total" = '3' AND "Rank" > '7' |
### Instruction:
CREATE TABLE table_41394 (
"Year" real,
"Senior PGA Championship" text,
"The Tradition" text,
"Senior Players Championship" text,
"U.S. Senior Open" text,
"Senior British Open" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who ... | SELECT "Senior British Open" FROM table_41394 WHERE "Senior PGA Championship" = 'hale irwin (3/7)' |
### Instruction:
CREATE TABLE table_19976 (
"No." real,
"English name" text,
"Bulgarian name" text,
"Bulgarian name ( Transliteration )" text,
"Old Bulgarian Names" text,
"Old Bulgarian name (Transliteration)" text,
"Old Bulgarian name - Meaning" text
)
-- Using valid SQLite, answer the fo... | SELECT "Old Bulgarian Names" FROM table_19976 WHERE "Bulgarian name ( Transliteration )" = 'Yuni' |
### Instruction:
CREATE TABLE table_46904 (
"Game" real,
"Date" real,
"Opponent" text,
"Score" text,
"Decision" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Opponent, when Location/Attenda... | SELECT "Opponent" FROM table_46904 WHERE "Location/Attendance" = 'mellon arena - 17,132' |
### Instruction:
CREATE TABLE table_52373 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest Crowd of th... | SELECT MIN("Crowd") FROM table_52373 WHERE "Away team score" = '13.17 (95)' |
### Instruction:
CREATE TABLE table_75356 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the call sign of the translator with an ERP... | SELECT "Call sign" FROM table_75356 WHERE "ERP W" > '38' AND "City of license" = 'great falls, montana' |
### Instruction:
CREATE TABLE news_report (
journalist_id number,
event_id number,
work_type text
)
CREATE TABLE journalist (
journalist_id number,
name text,
nationality text,
age text,
years_working number
)
CREATE TABLE event (
event_id number,
date text,
venue text,
... | SELECT nationality FROM journalist ORDER BY years_working DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_46570 (
"Number" real,
"Builder" text,
"Type" text,
"Date" real,
"Works number" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date have highest 0-4-4 forney locomotive with number larger than 20 and works nu... | SELECT MAX("Date") FROM table_46570 WHERE "Type" = '0-4-4 forney locomotive' AND "Number" > '20' AND "Works number" > '23754' |
### Instruction:
CREATE TABLE table_25677 (
"Stage" real,
"Winner" text,
"General classification" text,
"Mountains classification" text,
"Points classification" text,
"Youth classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT "Youth classification" FROM table_25677 WHERE "Mountains classification" = 'Kenneth Hanson' AND "Winner" = 'Lucas Sebastian Haedo' |
### Instruction:
CREATE TABLE table_37203 (
"School" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Nickname" text,
"Primary conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total enrollm... | SELECT COUNT("Enrollment") FROM table_37203 WHERE "Affiliation" = 'private/catholic' AND "Founded" > '1842' |
### Instruction:
CREATE TABLE table_11579 (
"Series" text,
"Monday" text,
"Tuesday" text,
"Wednesday" text,
"Thursday" text,
"Friday" text,
"Saturday" text,
"Sunday" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the presenter on... | SELECT "Friday" FROM table_11579 WHERE "Sunday" = 'alice levine jamie east' |
### Instruction:
CREATE TABLE table_30225 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "Directed by" FROM table_30225 WHERE "Production code" = '6AKY11' |
### Instruction:
CREATE TABLE table_49013 (
"Season" text,
"Passenger" text,
"Equipment" text,
"Position" text,
"Points" real,
"Races" real,
"Wins" text,
"Second" text,
"Third" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is th... | SELECT "Passenger" FROM table_49013 WHERE "Season" = '2009' AND "Races" = '17' |
### Instruction:
CREATE TABLE table_201_7 (
id number,
"year" number,
"gross domestic product" number,
"us dollar exchange" text,
"inflation index\n(2000=100)" number,
"per capita income\n(as % of usa)" number
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT COUNT(*) FROM table_201_7 WHERE "us dollar exchange" = '0.29 kuwaiti dinars' |
### Instruction:
CREATE TABLE table_train_35 (
"id" int,
"pregnancy_or_lactation" bool,
"glucocorticoid_history" bool,
"impaired_consciousness" bool,
"hematologic_disease" bool,
"glasgow_come_score_gcs" int,
"liver_disease" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the follow... | SELECT * FROM table_train_35 WHERE liver_disease = 1 |
### Instruction:
CREATE TABLE table_204_335 (
id number,
"outcome" text,
"no." number,
"date" number,
"tournament" text,
"surface" text,
"partner" text,
"opponents in the final" text,
"score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables p... | SELECT "partner" FROM table_204_335 GROUP BY "partner" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_46178 (
"Rank" real,
"Team" text,
"Played" real,
"Loss" real,
"Last 5" text,
"Streak" text,
"PF per game" real,
"PA per game" real,
"PD per game" real,
"Winning %" text
)
-- Using valid SQLite, answer the following questions for the tables pr... | SELECT MIN("PF per game") FROM table_46178 WHERE "Rank" = '5' |
### Instruction:
CREATE TABLE table_9118 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, answer the follo... | SELECT "Tries for" FROM table_9118 WHERE "Club" = 'club' |
### Instruction:
CREATE TABLE table_30912 (
"Round" real,
"Date" text,
"Opponent" text,
"Home/Away" text,
"Score (Collingwoods score is in bold)" text,
"Result (includes margin)" text,
"Venue" text,
"Position on Ladder" text
)
-- Using valid SQLite, answer the following questions for t... | SELECT "Home/Away" FROM table_30912 WHERE "Position on Ladder" = '6th' |
### Instruction:
CREATE TABLE table_29604 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"First Star" text,
"Decision" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Decision" FROM table_29604 WHERE "First Star" = 'V. Lecavalier' |
### Instruction:
CREATE TABLE table_1709 (
"Episode #" real,
"US air date" text,
"Rating" text,
"Share" text,
"Rating/Share (18\u201349)" text,
"Viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes were originally... | SELECT COUNT("Episode #") FROM table_1709 WHERE "US air date" = 'Saturday, May 30, 2009' |
### Instruction:
CREATE TABLE table_203_412 (
id number,
"school" text,
"conference" text,
"record (conference)" text,
"head coach" text,
"cws appearances" text,
"cws best finish" text,
"cws record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "school" FROM table_203_412 WHERE "school" IN ('clemson', 'western michigan') ORDER BY "cws appearances" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_53397 (
"English Name" text,
"Simplified" text,
"Traditional" text,
"Pinyin" text,
"Hakka" text,
"Area" real,
"Population" real,
"Density" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the tota... | SELECT COUNT("Density") FROM table_53397 WHERE "Population" > '393,390' |
### Instruction:
CREATE TABLE table_204_501 (
id number,
"institution" text,
"location" text,
"nickname" text,
"founded" number,
"type" text,
"enrollment" number,
"joined" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- out of v hawks a... | SELECT "nickname" FROM table_204_501 WHERE "nickname" IN ('v-hawks', 'mustangs') ORDER BY "enrollment" LIMIT 1 |
### Instruction:
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT stars, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY stars |
### Instruction:
CREATE TABLE table_61874 (
"Colliery" text,
"Location" text,
"Date" text,
"Year" real,
"Death toll" real,
"cause" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When has a cause of gas explosion, a Death toll smaller than 63, an... | SELECT "Date" FROM table_61874 WHERE "cause" = 'gas explosion' AND "Death toll" < '63' AND "Location" = 'penygraig' |
### Instruction:
CREATE TABLE table_66253 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Manufacturer" text,
"Serial numbers" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT "Quantity preserved" FROM table_66253 WHERE "Serial numbers" = 'mallet and simple articulated locomotives' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.