instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_train_95 (
"id" int,
"serum_potassium" float,
"mini_mental_state_examination_mmse" int,
"systolic_blood_pressure_sbp" int,
"resting_heart_rate" int,
"diastolic_blood_pressure_dbp" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions... | SELECT * FROM table_train_95 WHERE mini_mental_state_examination_mmse < 27 |
### Instruction:
CREATE TABLE table_204_449 (
id number,
"no" number,
"episode" text,
"title" text,
"original airdate" text,
"viewers" number,
"nightly\nrank" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- is episode 6 nightly rank above o... | SELECT (SELECT "nightly\nrank" FROM table_204_449 WHERE "no" = 6) > (SELECT "nightly\nrank" FROM table_204_449 WHERE "no" = 11) |
### Instruction:
CREATE TABLE table_203_79 (
id number,
"year" number,
"film" text,
"publisher" text,
"director" text,
"distributor" text,
"worldwide gross" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which 2012 superher... | SELECT "film" FROM table_203_79 WHERE "year" = 2012 AND "worldwide gross" < 100000000 |
### Instruction:
CREATE TABLE table_30277 (
"Series no." real,
"Season no." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT "Original air date" FROM table_30277 WHERE "U.S. viewers (millions)" = '1.57' |
### Instruction:
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
-- Using valid SQ... | SELECT Result, COUNT(Result) FROM Acceptance GROUP BY Result ORDER BY COUNT(Result) DESC |
### Instruction:
CREATE TABLE table_25405 (
"Season" real,
"Episodes" real,
"Timeslot (ET)" text,
"Season Premiere" text,
"Season Finale" text,
"TV Season" text,
"Rank" text,
"Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT COUNT("Episodes") FROM table_25405 WHERE "Season Premiere" = 'December 11, 2010' |
### Instruction:
CREATE TABLE table_25649 (
"Country" text,
"KEI" text,
"KI" text,
"Economic Incentive Regime" text,
"Innovation" text,
"Education" text,
"ICT" text,
"2008 Rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many KEI... | SELECT COUNT("KEI") FROM table_25649 WHERE "Economic Incentive Regime" = '2.56' |
### Instruction:
CREATE TABLE table_42321 (
"CERCLIS ID" text,
"Name" text,
"County" text,
"Proposed" text,
"Listed" text,
"Construction completed" text,
"Partially deleted" text,
"Deleted" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Partially deleted" FROM table_42321 WHERE "Construction completed" = '–' AND "Name" = 'st. maries creosote' |
### Instruction:
CREATE TABLE table_54684 (
"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.
-- When the crowd was over 16,000 ... | SELECT "Date" FROM table_54684 WHERE "Crowd" > '16,000' AND "Away team" = 'south melbourne' |
### Instruction:
CREATE TABLE table_78659 (
"Season" real,
"Average Attendance Home" real,
"Highest Attendance Home" text,
"Average Attendance Away" real,
"Highest Attendance Away" text,
"Division / Section" text,
"Level" text,
"Average Attendance League" real
)
-- Using valid SQLite, ... | SELECT SUM("Season") FROM table_78659 WHERE "Average Attendance League" = '2.456' |
### Instruction:
CREATE TABLE table_18737 (
"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.
-- Which district was the race between john i. nolan (r) 8... | SELECT "District" FROM table_18737 WHERE "Candidates" = 'John I. Nolan (R) 87% Thomas F. Feeley (S) 13%' |
### Instruction:
CREATE TABLE train (
train_id number,
name text,
time text,
service text
)
CREATE TABLE train_station (
train_id number,
station_id number
)
CREATE TABLE station (
station_id number,
name text,
annual_entry_exit number,
annual_interchanges number,
total_pas... | SELECT location FROM station GROUP BY location HAVING COUNT(*) = 1 |
### Instruction:
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
-- Using valid SQLite, answer the follo... | SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality ORDER BY COUNT(Nationality) |
### Instruction:
CREATE TABLE table_2693 (
"Rnd" real,
"Date" text,
"Race Name" text,
"Length" text,
"Track" text,
"Location" text,
"Pole Position" text,
"Winning Driver" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the pole positio... | SELECT COUNT("Rnd") FROM table_2693 WHERE "Track" = 'Ontario Motor Speedway' AND "Pole Position" = 'Johnny Rutherford' |
### Instruction:
CREATE TABLE table_79652 (
"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 made" FROM table_79652 WHERE "Wheel arrangement" = '2-6-0' AND "Class" = 'k' |
### Instruction:
CREATE TABLE table_10834 (
"Country" text,
"City" text,
"Festival name" text,
"Year(s)" text,
"Type" text,
"BIE recognised" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the type when the bie recognised is yes, festival... | SELECT "Type" FROM table_10834 WHERE "BIE recognised" = 'yes' AND "Festival name" = 'floriade' AND "Year(s)" = '2002' |
### Instruction:
CREATE TABLE table_name_3 (
won_by_2_or_more_goals_difference VARCHAR,
played VARCHAR,
team VARCHAR,
difference VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many values for a win by 2 or more goals correspon... | SELECT COUNT(won_by_2_or_more_goals_difference) FROM table_name_3 WHERE difference = "2" AND points > 9 AND team = "america-rj" AND played > 7 |
### Instruction:
CREATE TABLE table_name_67 (
date VARCHAR,
sample_size VARCHAR,
democrat VARCHAR,
republican VARCHAR,
poll_source VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date that the polls were going on at quinnipiac when joh... | SELECT date FROM table_name_67 WHERE republican = "john mccain" AND poll_source = "quinnipiac" AND democrat = "barack obama" AND sample_size > 1427 |
### Instruction:
CREATE TABLE table_56219 (
"Candidate" text,
"Money Raised, 3Q" text,
"Loans Received, 3Q" text,
"Money Spent, 3Q" text,
"Total Receipts" text,
"Cash On Hand" text,
"After Debt" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "Money Spent, 3Q" FROM table_56219 WHERE "Candidate" = 'dennis kucinich' |
### Instruction:
CREATE TABLE table_63616 (
"Season" text,
"Competition" text,
"Round" text,
"Opposition" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Opposition in the First Round of the UEFA Cup with a Score of 3 1 (h),... | SELECT "Opposition" FROM table_63616 WHERE "Round" = 'first round' AND "Competition" = 'uefa cup' AND "Score" = '3–1 (h), 2–0 (a)' |
### Instruction:
CREATE TABLE table_22842 (
"Rank" real,
"Race Number" real,
"Name" text,
"NOC" text,
"- 250m" text,
"- 500m" text,
"- 750m" text,
"- 1,000m" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If -750 is 45.505, what is the m... | SELECT MAX("Rank") FROM table_22842 WHERE "- 750m" = '45.505' |
### Instruction:
CREATE TABLE table_37401 (
"Year" text,
"Winner" text,
"Runner-Up" text,
"Semi-Finalists" text,
"Quarter-Finalists" text,
"Last 16" text,
"Last 32" text,
"Last 64" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Last 64" FROM table_37401 WHERE "Total" = '£34,600' |
### Instruction:
CREATE TABLE table_204_836 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which date and opponent is next after june 12,1989
... | SELECT "date", "opponent" FROM table_204_836 WHERE "#" = (SELECT MAX("#") FROM table_204_836 WHERE "date" = 'june 12, 1989') + 1 |
### Instruction:
CREATE TABLE table_18041 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "Title" FROM table_18041 WHERE "U.S. viewers (millions)" = '11.75' |
### Instruction:
CREATE TABLE table_6074 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the tournament that had 3 Top-10's, and less ... | SELECT SUM("Top-5") FROM table_6074 WHERE "Top-10" = '3' AND "Events" < '15' |
### Instruction:
CREATE TABLE table_61168 (
"Season" real,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Viewer rank (#)" text,
"Households/Viewers (in millions)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which season had... | SELECT MIN("Season") FROM table_61168 WHERE "Households/Viewers (in millions)" < '25.4' AND "Viewer rank (#)" = '#6' |
### Instruction:
CREATE TABLE table_train_30 (
"id" int,
"serum_potassium" float,
"hyperkalemia" bool,
"renal_disease" bool,
"cardiopulmonary_resuscitation" bool,
"receiving_vasopressor" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT * FROM table_train_30 WHERE receiving_vasopressor = 1 |
### Instruction:
CREATE TABLE table_203_270 (
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.
-- prior to helsinki marathon what previous race did... | SELECT "competition" FROM table_203_270 WHERE "position" = 1 AND id < (SELECT id FROM table_203_270 WHERE "competition" = 'helsinki marathon') ORDER BY id DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_78689 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Pos., when Height is 'm (ft 10in)', and when Date of Birth is... | SELECT "Pos." FROM table_78689 WHERE "Height" = 'm (ft 10in)' AND "Date of Birth" = '1983-05-29' |
### Instruction:
CREATE TABLE table_15170 (
"Representative" text,
"Title" text,
"Presentation of Credentials" text,
"Termination of Mission" text,
"Appointed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Appointed by that has the T... | SELECT "Appointed by" FROM table_15170 WHERE "Title" = 'ambassador extraordinary and plenipotentiary' AND "Representative" = 'spruille braden' |
### Instruction:
CREATE TABLE table_20419 (
"Episode Number" real,
"Air Date" text,
"Guest Host" text,
"Musical Guest (Song performed)" text,
"Who knows the most about the guest host? panelists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was... | SELECT "Musical Guest (Song performed)" FROM table_20419 WHERE "Who knows the most about the guest host? panelists" = 'Dominic Wood and Nikki Grahame' |
### Instruction:
CREATE TABLE table_train_81 (
"id" int,
"high_glucose" bool,
"mini_mental_state_examination_mmse" int,
"uncontrolled_diabetes" bool,
"modified_hachinski_ischemia_scale" int,
"clinical_dementia_rating_cdr" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following q... | SELECT * FROM table_train_81 WHERE mini_mental_state_examination_mmse > 27 |
### Instruction:
CREATE TABLE table_6143 (
"Call sign" text,
"Frequency" text,
"City of license" text,
"Watts" real,
"Class" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Watts has a Class of a, and a Frequency of 91.5 fm, and a City of li... | SELECT MIN("Watts") FROM table_6143 WHERE "Class" = 'a' AND "Frequency" = '91.5 fm' AND "City of license" = 'elkhart, kansas' |
### Instruction:
CREATE TABLE faculty (
faculty VARCHAR
)
CREATE TABLE campuses (
id VARCHAR
)
CREATE TABLE degrees (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many faculty lines are there in the university that conferred the least number o... | SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.Id = t2.campus JOIN degrees AS T3 ON T1.Id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1 |
### Instruction:
CREATE TABLE table_1584 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions for... | SELECT MAX("Wins") FROM table_1584 WHERE "Position" = '16th' |
### Instruction:
CREATE TABLE table_21610 (
"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 ... | SELECT "High assists" FROM table_21610 WHERE "High points" = 'Chauncey Billups , Carmelo Anthony (18)' |
### Instruction:
CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
)
-- Using val... | SELECT Location, COUNT(Location) FROM wrestler GROUP BY Location ORDER BY COUNT(Location) DESC |
### Instruction:
CREATE TABLE table_204_270 (
id number,
"transmitter" text,
"kw" number,
"bbca" number,
"bbcb" number,
"d3&4" number,
"sdn" number,
"arqa" number,
"arqb" number,
"pol." text,
"a.g." text
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT "transmitter" FROM table_204_270 WHERE "bbcb" > 55 |
### Instruction:
CREATE TABLE table_24452 (
"Chassis code" text,
"Model no." text,
"Production years" text,
"Drivetrain" text,
"Transmission" text,
"Engine type" text,
"Engine code" text,
"Region(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Drivetrain" FROM table_24452 WHERE "Engine code" = '1UR-FSE' AND "Chassis code" = 'USF41' |
### 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 Founder, SUM(Revenue) FROM Manufacturers GROUP BY Founder ORDER BY Founder DESC |
### Instruction:
CREATE TABLE table_33537 (
"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 average number of bronzes when the rank is below 11 for trinida... | SELECT AVG("Bronze") FROM table_33537 WHERE "Rank" < '11' AND "Nation" = 'trinidad and tobago' AND "Total" < '1' |
### Instruction:
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT title, AVG(stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title ORDER BY title DESC |
### Instruction:
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ... | SELECT Founder, SUM(Revenue) FROM Manufacturers GROUP BY Founder ORDER BY SUM(Revenue) DESC |
### Instruction:
CREATE TABLE table_train_86 (
"id" int,
"mini_mental_state_examination_mmse" int,
"heart_disease" bool,
"stroke" bool,
"liver_disease" bool,
"hepatitis" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- mmse scor... | SELECT * FROM table_train_86 WHERE mini_mental_state_examination_mmse < 1 OR mini_mental_state_examination_mmse > 12 |
### 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.
-- how many more years did d. v. graves serve compared to j. f. jenkins ?
... | SELECT (SELECT "years" FROM table_203_577 WHERE "coach" = 'd. v. graves') - (SELECT "years" FROM table_203_577 WHERE "coach" = 'j. f. jenkins') |
### Instruction:
CREATE TABLE table_37360 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of surface was played on when julie halard... | SELECT "Surface" FROM table_37360 WHERE "Partner" = 'julie halard-decugis' AND "Date" = 'october 8, 2000' |
### Instruction:
CREATE TABLE table_12577 (
"Version" text,
"Fairing" text,
"CCBs" real,
"SRBs" text,
"Upper stage" text,
"Payload to LEO" text,
"Payload to GTO" text,
"Launches to date" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wha... | SELECT "Upper stage" FROM table_12577 WHERE "Launches to date" = '0' AND "Version" = '532' |
### Instruction:
CREATE TABLE table_76565 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" text,
"Competition" text,
"Man of the Match" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Man of the Match when... | SELECT "Man of the Match" FROM table_76565 WHERE "Opponent" = 'milton keynes lightning' AND "Venue" = 'away' |
### Instruction:
CREATE TABLE table_3322 (
"Episode #" text,
"Fan Title" text,
"Writer" text,
"Artist(s)" text,
"Start Date" text,
"End Date" text,
"Inc. Dailies?" text,
"Inc. Sundays?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How ... | SELECT COUNT("Artist(s)") FROM table_3322 WHERE "Start Date" = '1966-12-12' |
### Instruction:
CREATE TABLE table_38181 (
"Rank" real,
"Airport" text,
"Code (IATA/ICAO)" text,
"Total Cargo (Metric Tonnes)" real,
"% Change" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest total cargo of an airport ranked larg... | SELECT MAX("Total Cargo (Metric Tonnes)") FROM table_38181 WHERE "Code (IATA/ICAO)" = 'bkk/vtbs' AND "Rank" > '19' |
### Instruction:
CREATE TABLE table_38342 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round is the lowest one that has a Pick # larger than 10, and a... | SELECT MIN("Round") FROM table_38342 WHERE "Pick #" > '10' AND "Position" = 'tight end' AND "Overall" < '132' |
### Instruction:
CREATE TABLE table_14520 (
"State" text,
"Abbr." text,
"Capital" text,
"Largest city" text,
"Statehood" text,
"Population est. (2012)" real,
"House seat(s)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many populations... | SELECT COUNT("Population est. (2012)") FROM table_14520 WHERE "Capital" = 'montpelier' AND "House seat(s)" > '1' |
### Instruction:
CREATE TABLE table_204_352 (
id number,
"pos" text,
"no" number,
"rider" text,
"manufacturer" text,
"laps" number,
"time" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- did marco simon... | SELECT "rider" FROM table_204_352 WHERE "rider" IN ('marco simoncelli', 'alvaro bautista') AND "pos" = 1 |
### Instruction:
CREATE TABLE table_45978 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Team" FROM table_45978 WHERE "Position in table" = '12th' AND "Replaced by" = 'ove pedersen' |
### Instruction:
CREATE TABLE table_69026 (
"Appearances" real,
"Team" text,
"Wins" real,
"Losses" real,
"Winning percentage" real,
"Season(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the Reno Aces, what are the Losses when they had 1... | SELECT SUM("Losses") FROM table_69026 WHERE "Appearances" = '1' AND "Winning percentage" = '1' AND "Team" = 'reno aces' |
### 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 Sex, MIN(Weight) FROM people GROUP BY Sex |
### Instruction:
CREATE TABLE table_24804 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many outcomes were there for matches p... | SELECT COUNT("Outcome") FROM table_24804 WHERE "Surface" = 'Grass' AND "Partner" = 'Chuck McKinley' AND "Year" = '1962' |
### Instruction:
CREATE TABLE table_16210 (
"Player" text,
"Matches" real,
"Inns" real,
"N/O" real,
"Runs" real,
"High Score" real,
"Average" text,
"100" real,
"50" real,
"Catches" real,
"Stump" real
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "Average" FROM table_16210 WHERE "High Score" = '120' |
### Instruction:
CREATE TABLE table_78655 (
"Date and time( UTC )" text,
"Type" real,
"Serial no." text,
"Launch site" text,
"Payload" text,
"Type of payload" text,
"Orbit" text,
"Outcome" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT "Date and time( UTC )" FROM table_78655 WHERE "Type of payload" = 'commercial communications satellite' AND "Payload" = 'amc16' |
### Instruction:
CREATE TABLE postseason (
team_id_winner VARCHAR,
year VARCHAR
)
CREATE TABLE team (
name VARCHAR,
team_id_br VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the name and id of the team with the most victories in 2008 postse... | SELECT T2.name, T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_14446 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Points against" FROM table_14446 WHERE "Try bonus" = '4' AND "Lost" = '10' |
### Instruction:
CREATE TABLE table_76794 (
"Year" real,
"Tournament" text,
"Surface" text,
"Round" text,
"Winner" text,
"Score" text,
"Length (H:MM)" text,
"Sets" text,
"Federer" real,
"Nadal" real
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT MAX("Nadal") FROM table_76794 WHERE "Round" = 'final' AND "Tournament" = 'miami' |
### Instruction:
CREATE TABLE table_51432 (
"Athlete" text,
"Event" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinal" text,
"Semifinal" text,
"Final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the light heavyweight 81 kg e... | SELECT "Athlete" FROM table_51432 WHERE "Semifinal" = 'did not advance' AND "Event" = 'light heavyweight –81 kg' |
### Instruction:
CREATE TABLE table_train_32 (
"id" int,
"pregnancy_or_lactation" bool,
"renal_disease" bool,
"hemachromatosis" bool,
"glucose_6_phosphate_dehydrogenase_deficiency_g6pd" int,
"prisoners" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT * FROM table_train_32 WHERE pregnancy_or_lactation = 1 OR prisoners = 1 |
### Instruction:
CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname text,
adults number,
kids number
)
CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy num... | SELECT COUNT(*) FROM rooms WHERE NOT roomid IN (SELECT DISTINCT room FROM reservations) |
### Instruction:
CREATE TABLE table_70738 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the home Detroit game with a... | SELECT "Date" FROM table_70738 WHERE "Decision" = 'joseph' AND "Home" = 'detroit' AND "Record" = '27–13–5–2' |
### Instruction:
CREATE TABLE table_56443 (
"Rank" real,
"Movie" text,
"Year" real,
"Studio(s)" text,
"Opening Day Net Gross" real,
"Day of Week" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average rank of the Reliance Entertainme... | SELECT AVG("Rank") FROM table_56443 WHERE "Day of Week" = 'wednesday' AND "Year" < '2012' AND "Studio(s)" = 'reliance entertainment' |
### Instruction:
CREATE TABLE table_26704 (
"Major version" text,
"Minor version" text,
"WebKit version" text,
"Operating System" text,
"Release date" text,
"Features" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List major versions released o... | SELECT "Major version" FROM table_26704 WHERE "Release date" = 'May 12, 2009' AND "Minor version" = '3.2.3' |
### Instruction:
CREATE TABLE certificate (
eid number,
aid number
)
CREATE TABLE aircraft (
aid number,
name text,
distance number
)
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,... | SELECT AVG(salary), MAX(salary) FROM employee |
### Instruction:
CREATE TABLE table_75544 (
"Longi- tude" text,
"Usual translation" text,
"Chinese name \u00b9" text,
"Japanese name" text,
"Korean name \u00b2" text,
"Vietnamese name" text,
"Date \u00b3" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Usual translation" FROM table_75544 WHERE "Date \u00b3" = 'jun 21' |
### Instruction:
CREATE TABLE table_36975 (
"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 "Losing bonus" FROM table_36975 WHERE "Points for" = '571' |
### Instruction:
CREATE TABLE table_24376 (
"#" real,
"Japanese title" text,
"R\u014dmaji" text,
"Japanese translation" text,
"Vocalist" text,
"Episodes used" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the romaji by your side ~hikari's ... | SELECT "R\u014dmaji" FROM table_24376 WHERE "Japanese translation" = 'By Your Side ~Hikari''s Theme~ (PopUp.Version)' |
### Instruction:
CREATE TABLE certificate (
eid number,
aid number
)
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,
aid number
)
CREATE TABLE aircraft (
aid number,
name text,
... | SELECT name, distance FROM aircraft WHERE aid = 12 |
### Instruction:
CREATE TABLE table_53490 (
"Year" real,
"Competition" text,
"Date" text,
"Location" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the europe/africa group i, round robin game in... | SELECT "Result" FROM table_53490 WHERE "Location" = 'murcia (esp)' AND "Year" < '1999' AND "Competition" = 'europe/africa group i, round robin' |
### Instruction:
CREATE TABLE table_19373 (
"Tour" text,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the tour when mens singles is ch... | SELECT "Tour" FROM table_19373 WHERE "Mens singles" = 'Chen Jin' AND "Womens doubles" = 'Zhang Yawen Zhao Tingting' |
### Instruction:
CREATE TABLE stock (
shop_id number,
device_id number,
quantity number
)
CREATE TABLE shop (
shop_id number,
shop_name text,
location text,
open_date text,
open_year number
)
CREATE TABLE device (
device_id number,
device text,
carrier text,
package_ver... | SELECT carrier FROM device WHERE NOT device_id IN (SELECT device_id FROM stock) |
### Instruction:
CREATE TABLE table_19145 (
"Season" real,
"Class" text,
"Team" text,
"Motorcycle" text,
"Type" text,
"Races" real,
"Wins" real,
"Podiums" real,
"Poles" real,
"Fastest Laps" real,
"Pts" text,
"Position" text
)
-- Using valid SQLite, answer the following ... | SELECT "Pts" FROM table_19145 WHERE "Position" = 'NC' |
### Instruction:
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
-- Using valid SQLite, answer the following quest... | SELECT Investor, COUNT(Investor) FROM entrepreneur GROUP BY Investor ORDER BY COUNT(Investor) |
### Instruction:
CREATE TABLE table_203_292 (
id number,
"payload type (pt)" text,
"name" text,
"type" text,
"no. of channels" text,
"clock rate (hz)" text,
"frame size (ms)" text,
"default packet size (ms)" text,
"description" text,
"references" text
)
-- Using valid SQLite, a... | SELECT "no. of channels" FROM table_203_292 GROUP BY "no. of channels" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_33817 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many in attendance when Penguins were home with... | SELECT COUNT("Attendance") FROM table_33817 WHERE "Home" = 'penguins' AND "Record" = '14–19–6' AND "Points" < '34' |
### Instruction:
CREATE TABLE table_1518 (
"Edition" text,
"Round" text,
"Date" text,
"Partnering" text,
"Against" text,
"Surface" text,
"Opponents" text,
"W/L" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is th... | SELECT "Round" FROM table_1518 WHERE "Opponents" = 'Jesse Huta Galung Peter Wessels' |
### Instruction:
CREATE TABLE table_58452 (
"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 object type when the right ... | SELECT "Object type" FROM table_58452 WHERE "Right ascension ( J2000 )" = '11h10m42.8s' |
### Instruction:
CREATE TABLE table_74399 (
"Date" text,
"Time" text,
"ACC Team" text,
"Big Ten Team" text,
"Location" text,
"Television" text,
"Attendance" real,
"Winner" text,
"Challenge Leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT COUNT("Challenge Leader") FROM table_74399 WHERE "Winner" = 'Virginia (87-79)' |
### Instruction:
CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
)
CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
-- Using val... | SELECT Location, COUNT(Location) FROM wrestler GROUP BY Location ORDER BY COUNT(Location) |
### Instruction:
CREATE TABLE table_30158 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production" text,
"U.S. viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT COUNT("Original air date") FROM table_30158 WHERE "Written by" = 'David J. North & Janet Tamaro' |
### Instruction:
CREATE TABLE table_204_414 (
id number,
"name" text,
"armenian" text,
"location" text,
"# of prisoners designed for" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- after nubarashen , which facility was designed f... | SELECT "name" FROM table_204_414 WHERE "# of prisoners designed for" < (SELECT "# of prisoners designed for" FROM table_204_414 WHERE "name" = 'nubarashen') ORDER BY "# of prisoners designed for" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_2385 (
"\u2116" real,
"#" 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 tables provided abov... | SELECT "U.S. viewers (millions)" FROM table_2385 WHERE "Written by" = 'Kevin Curran' |
### Instruction:
CREATE TABLE table_204_879 (
id number,
"year" number,
"host / location" text,
"division i overall" text,
"division i undergraduate" text,
"division ii overall" text,
"division ii community college" text
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "division ii community college" FROM table_204_879 WHERE "division ii community college" <> 'valencia cc' GROUP BY "division ii community college" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_24792 (
"Pilot" text,
"Organization" text,
"Total Flights" real,
"USAF space flights" real,
"FAI space flights" real,
"Max Mach" text,
"Max speed (mph)" real,
"Max altitude (miles)" text
)
-- Using valid SQLite, answer the following questions for the... | SELECT MAX("FAI space flights") FROM table_24792 WHERE "Max Mach" = '5.65' |
### Instruction:
CREATE TABLE table_204_784 (
id number,
"player" text,
"league" number,
"cup" number,
"europa league" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference between vladimir gadzhev and yordan mi... | SELECT ABS((SELECT "total" FROM table_204_784 WHERE "player" = 'vladimir gadzhev') - (SELECT "total" FROM table_204_784 WHERE "player" = 'yordan miliev')) |
### Instruction:
CREATE TABLE employee (
eid number,
name text,
salary number
)
CREATE TABLE certificate (
eid number,
aid number
)
CREATE TABLE aircraft (
aid number,
name text,
distance number
)
CREATE TABLE flight (
flno number,
origin text,
destination text,
distan... | SELECT aid, name FROM aircraft ORDER BY distance DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_203_322 (
id number,
"club" text,
"played" number,
"won" number,
"drawn" number,
"lost" number,
"points for" number,
"points against" number,
"bonus points" number,
"points" number
)
-- Using valid SQLite, answer the following questions for t... | SELECT "club" FROM table_203_322 WHERE "club" <> 'montpellier rc' AND "bonus points" = 10 |
### Instruction:
CREATE TABLE table_59492 (
"Name" text,
"Position" text,
"League Apps" text,
"League Goals" real,
"FA Cup Apps" text,
"FA Cup Goals" real,
"League Cup Apps" text,
"League Cup Goals" real,
"Total Apps" text,
"Total Goals" real
)
-- Using valid SQLite, answer the... | SELECT MIN("Total Goals") FROM table_59492 WHERE "Name" = 'mark ward' |
### Instruction:
CREATE TABLE table_7526 (
"Event" text,
"2006\u201307" text,
"2007\u201308" text,
"2008\u201309" text,
"2010\u201311" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich in 2010 11 has an Event of autumn gold?
### Response:
| SELECT "2010\u201311" FROM table_7526 WHERE "Event" = 'autumn gold' |
### Instruction:
CREATE TABLE table_34745 (
"Year" text,
"Regular Season Champion(s)" text,
"Record" text,
"Tournament Champion" text,
"Tournament venue" text,
"Tournament city" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Regular Season... | SELECT "Regular Season Champion(s)" FROM table_34745 WHERE "Tournament Champion" = 'west virginia' AND "Year" = '1955–56' |
### Instruction:
CREATE TABLE table_name_44 (
numer_of_jamaicans_granted_british_citizenship INTEGER,
year VARCHAR,
registration_of_a_minor_child VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the sum of number of jamaicans given british citizens... | SELECT SUM(numer_of_jamaicans_granted_british_citizenship) FROM table_name_44 WHERE year = 2004 AND registration_of_a_minor_child > 640 |
### Instruction:
CREATE TABLE host (
host_id number,
name text,
nationality text,
age text
)
CREATE TABLE party_host (
party_id number,
host_id number,
is_main_in_charge others
)
CREATE TABLE party (
party_id number,
party_theme text,
location text,
first_year text,
las... | SELECT party_theme FROM party ORDER BY number_of_hosts |
### Instruction:
CREATE TABLE table_204_920 (
id number,
"goal" number,
"date" text,
"location" text,
"opponent" text,
"lineup" text,
"min" number,
"assist/pass" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions fo... | SELECT COUNT("assist/pass") FROM table_204_920 WHERE "assist/pass" = 'tarpley' |
### Instruction:
CREATE TABLE table_63446 (
"Locks & Dam" text,
"Location [L ]" text,
"River Mile" real,
"Lock Side" text,
"Lock Lift/Drop (in feet)" text,
"Pool Length (miles)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the River Mi... | SELECT "River Mile" FROM table_63446 WHERE "Lock Side" = 'rdb' AND "Pool Length (miles)" = '55.4' |
### Instruction:
CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
)
-- Using val... | SELECT Team, COUNT(Team) FROM Elimination GROUP BY Team ORDER BY Team |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.