instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_35462 (
"Series" text,
"Date" text,
"Entrants" real,
"Winner" text,
"First Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the first prize for the FTOPS XIII series with more than 5,291 entrants?
... | SELECT "First Prize" FROM table_35462 WHERE "Entrants" > '5,291' AND "Series" = 'ftops xiii' |
### Instruction:
CREATE TABLE table_3878 (
"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 "Team" FROM table_3878 WHERE "Date" = 'October 5' |
### Instruction:
CREATE TABLE table_25022 (
"Year" real,
"1st Venue" text,
"2nd Venue" text,
"3rd Venue" text,
"4th Venue" text,
"5th Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 2010, how many 1st venue cities were there?
### Resp... | SELECT COUNT("1st Venue") FROM table_25022 WHERE "Year" = '2010' |
### Instruction:
CREATE TABLE table_73325 (
"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.
-- Who are all successors when reason for change is died May... | SELECT "Successor" FROM table_73325 WHERE "Reason for change" = 'Died May 12, 1964' |
### Instruction:
CREATE TABLE table_17467147_1 (
series__number VARCHAR,
directed_by VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When debra j. fisher & erica messer are the writers and the director is patrick norris what is the ser... | SELECT series__number FROM table_17467147_1 WHERE directed_by = "Patrick Norris" AND written_by = "Debra J. Fisher & Erica Messer" |
### Instruction:
CREATE TABLE table_6601 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at the game later than game 22 when the record was 17-10-4?
### Re... | SELECT "Opponent" FROM table_6601 WHERE "Game" > '22' AND "Record" = '17-10-4' |
### Instruction:
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Return a h... | SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY AVG(age) |
### Instruction:
CREATE TABLE table_name_71 (
digital_analog_signal VARCHAR,
available_interface VARCHAR,
retail_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Digital/analog signal with an Available interface with pci express, with Reta... | SELECT digital_analog_signal FROM table_name_71 WHERE available_interface = "pci express" AND retail_name = "all-in-wonder x600 pro" |
### Instruction:
CREATE TABLE table_41801 (
"Number" text,
"Proto-Austronesian" text,
"Proto-Malayo-Polynesian" text,
"Proto-Oceanic" text,
"Proto-Polynesian" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Number has a Proto-Polynesian of *tah... | SELECT "Number" FROM table_41801 WHERE "Proto-Polynesian" = '*taha' |
### Instruction:
CREATE TABLE table_29832 (
"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 COUNT("Record") FROM table_29832 WHERE "Game" = '61' |
### Instruction:
CREATE TABLE table_name_66 (
top_division_titles INTEGER,
number_of_seasons_in_liga_mx VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many top division titles does Club Guadalajara have, with more than 42 seasons in Lig... | SELECT SUM(top_division_titles) FROM table_name_66 WHERE number_of_seasons_in_liga_mx > 42 AND club = "guadalajara" |
### Instruction:
CREATE TABLE table_22352 (
"No." real,
"Album" text,
"Artist" text,
"Record label" text,
"Released" text,
"Chart peak" real,
"Number of times certified platinum" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When bat out of... | SELECT MIN("No.") FROM table_22352 WHERE "Album" = 'Bat Out of Hell' |
### Instruction:
CREATE TABLE table_12914 (
"Club" text,
"City" text,
"Founded" real,
"Stadium" text,
"Capacity" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many foundeds have sousse as the city, with a capacity greater than 25,000?
### Res... | SELECT COUNT("Founded") FROM table_12914 WHERE "City" = 'sousse' AND "Capacity" > '25,000' |
### Instruction:
CREATE TABLE table_540 (
"Team" text,
"Car(s)" text,
"#" real,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Owner(s)" text,
"Crew Chief" text,
"Rounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who drove for Phil P... | SELECT "Driver(s)" FROM table_540 WHERE "Team" = 'Phil Parsons Racing' |
### Instruction:
CREATE TABLE table_26555 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who direc... | SELECT "Directed by" FROM table_26555 WHERE "No. in series" = '179' |
### Instruction:
CREATE TABLE table_26250155_1 (
order__number VARCHAR,
theme VARCHAR,
original_artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the order number of the Billboard Hot 100 Hits theme and the original artist was Sixpence None t... | SELECT order__number FROM table_26250155_1 WHERE theme = "Billboard Hot 100 Hits" AND original_artist = "Sixpence None the Richer" |
### Instruction:
CREATE TABLE table_20574 (
"Date (CE)" text,
"Text" text,
"Simplified characters" text,
"Traditional characters" text,
"Pinyin" text,
"Wade-Giles" text,
"Literal meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name t... | SELECT "Pinyin" FROM table_20574 WHERE "Date (CE)" = '657' |
### Instruction:
CREATE TABLE table_35064 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has the Event of Se... | SELECT "Opponent" FROM table_35064 WHERE "Event" = 'sengoku 1' |
### Instruction:
CREATE TABLE table_60307 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score points has an Event of og beijing, and Rank points of olympic gold ... | SELECT "Score points" FROM table_60307 WHERE "Event" = 'og beijing' AND "Rank points" = 'olympic gold medalist' |
### Instruction:
CREATE TABLE table_2718 (
"Conference" text,
"Regular Season Winner" text,
"Conference Player of the Year" text,
"Conference Tournament" text,
"Tournament Venue (City)" text,
"Tournament Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT COUNT("Conference Tournament") FROM table_2718 WHERE "Tournament Winner" = 'James Madison' |
### Instruction:
CREATE TABLE table_50775 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest game number of the game after March 2 with the minnesota north stars as ... | SELECT MIN("Game") FROM table_50775 WHERE "March" > '2' AND "Opponent" = 'minnesota north stars' |
### Instruction:
CREATE TABLE table_63619 (
"School" text,
"Location" text,
"Mascot" text,
"# / County" text,
"Year Joined" real,
"Previous Conference" text,
"Year Left" real,
"Conference Joined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT SUM("Year Left") FROM table_63619 WHERE "Location" = 'howe' |
### Instruction:
CREATE TABLE table_name_74 (
wins INTEGER,
reds_season VARCHAR,
finish VARCHAR,
win_percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest wins in a season less than 1915 with a 7th finish and 0.429 win %?
##... | SELECT MIN(wins) FROM table_name_74 WHERE finish = "7th" AND win_percentage > 0.429 AND reds_season < 1915 |
### Instruction:
CREATE TABLE table_16593 (
"Finishing position" text,
"Points awarded (Platinum)" real,
"Points awarded (Gold)" real,
"Points awarded (Silver)" real,
"Points awarded (Satellite)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How ma... | SELECT "Points awarded (Platinum)" FROM table_16593 WHERE "Points awarded (Silver)" = '70' |
### Instruction:
CREATE TABLE table_30211 (
"Event Date" text,
"Event Day" text,
"Approx. Duration" text,
"Starting Time" text,
"Event Details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every event date on Sunday with a starting time of... | SELECT "Event Date" FROM table_30211 WHERE "Event Day" = 'Sunday' AND "Starting Time" = '9:30 am' |
### Instruction:
CREATE TABLE table_25969 (
"Rank" real,
"Runs" real,
"Player" text,
"Matches" real,
"Innings" real,
"Not Out" real,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the average is 45.65, what is the total number o... | SELECT COUNT("Innings") FROM table_25969 WHERE "Average" = '45.65' |
### Instruction:
CREATE TABLE table_46032 (
"Rank" real,
"Name" text,
"Height ft / m" text,
"Floors" real,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank of a building erected in 1976 with fewer than 21 floors?
### ... | SELECT MAX("Rank") FROM table_46032 WHERE "Year" = '1976' AND "Floors" < '21' |
### Instruction:
CREATE TABLE table_32908 (
"Date" text,
"Venue" text,
"Opposition" text,
"Att." real,
"Result" text,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date had less than 3 goals and a result of (w) 2-0?
### Response... | SELECT "Date" FROM table_32908 WHERE "Goals" < '3' AND "Result" = '(w) 2-0' |
### Instruction:
CREATE TABLE table_3858 (
"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 COUNT("High points") FROM table_3858 WHERE "Team" = 'Oklahoma City' |
### Instruction:
CREATE TABLE table_75022 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Loss of postponed (rain) rescheduled for may 10 had what record?
##... | SELECT "Record" FROM table_75022 WHERE "Loss" = 'postponed (rain) rescheduled for may 10' |
### Instruction:
CREATE TABLE table_34586 (
"Date" text,
"Tournament" text,
"Location" text,
"Winner" text,
"Score" text,
"Winner's share ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the winners share ($) that has atlanta classi... | SELECT "Winner's share ( $ )" FROM table_34586 WHERE "Tournament" = 'atlanta classic' |
### Instruction:
CREATE TABLE table_67859 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What class did eddie cheever raul boesel race in?
... | SELECT "Class" FROM table_67859 WHERE "Co-Drivers" = 'eddie cheever raul boesel' |
### Instruction:
CREATE TABLE table_52193 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the high grid that has a Time/Retired of +6 laps, and under 69 laps?
###... | SELECT MAX("Grid") FROM table_52193 WHERE "Time/Retired" = '+6 laps' AND "Laps" < '69' |
### Instruction:
CREATE TABLE table_9817 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of laps of the grid larger than 22 with a +1:29.001 time?
### Response:
| SELECT "Laps" FROM table_9817 WHERE "Grid" > '22' AND "Time" = '+1:29.001' |
### Instruction:
CREATE TABLE table_73962 (
"Member countries" text,
"Population" text,
"Area (km\u00b2)" text,
"GDP (billion US$)" text,
"GDP per capita (US$)" text,
"Languages" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the member cou... | SELECT "Member countries" FROM table_73962 WHERE "Languages" = 'Finnish Swedish' |
### Instruction:
CREATE TABLE table_45260 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance for a week larger than 3, and an opponent of philadelphia eagle... | SELECT "Attendance" FROM table_45260 WHERE "Week" > '3' AND "Opponent" = 'philadelphia eagles' |
### Instruction:
CREATE TABLE table_59267 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the match that lasted 3:53 min... | SELECT "Record" FROM table_59267 WHERE "Time" = '3:53' |
### Instruction:
CREATE TABLE table_42846 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" real,
"Finish" real,
"Entrant" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What chassis has patrick racing as an entrant, with a start greater tha... | SELECT "Chassis" FROM table_42846 WHERE "Entrant" = 'patrick racing' AND "Start" > '6' |
### Instruction:
CREATE TABLE table_23263 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Primary Conference" text,
"LEC Sport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What'... | SELECT "Primary Conference" FROM table_23263 WHERE "Institution" = 'Salem State University' |
### Instruction:
CREATE TABLE table_204_774 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the date september 10th is next to... | SELECT "venue" FROM table_204_774 WHERE "date" = '10 september 2013' |
### Instruction:
CREATE TABLE table_32435 (
"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 crowd population f... | SELECT MAX("Crowd") FROM table_32435 WHERE "Away team" = 'footscray' |
### Instruction:
CREATE TABLE table_79240 (
"Position" real,
"Gymnast" text,
"A Score" real,
"B Score" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What the B Score when the total is 16.125 and the position is less than 7?
### Resp... | SELECT SUM("B Score") FROM table_79240 WHERE "Position" < '7' AND "Total" = '16.125' |
### Instruction:
CREATE TABLE table_38355 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Total smaller than 10, and a Gold larger than 1 then what is the lowest sil... | SELECT MIN("Silver") FROM table_38355 WHERE "Total" < '10' AND "Gold" > '1' |
### Instruction:
CREATE TABLE table_name_88 (
points INTEGER,
games VARCHAR,
goalsagainst VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Goalsagainst of 285, and a Season of 2006 07, and a Games smaller than 70 has what average points... | SELECT AVG(points) FROM table_name_88 WHERE goalsagainst = 285 AND season = "2006–07" AND games < 70 |
### Instruction:
CREATE TABLE table_204_392 (
id number,
"#" number,
"stadium" text,
"capacity" number,
"city" text,
"country" text,
"domed or retractable roof" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many stadiums have a capacity... | SELECT COUNT("stadium") FROM table_204_392 WHERE "capacity" > 70000 |
### Instruction:
CREATE TABLE table_203_531 (
id number,
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st prize ($)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the mercedes championships and sony open ... | SELECT "location" FROM table_203_531 WHERE "tournament" = 'mercedes championships' |
### Instruction:
CREATE TABLE table_22865 (
"Pair I.D." real,
"Survive?" real,
"Industry" text,
"Current ratio" real,
"Quick ratio" real,
"Net worth to fixed assets" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the net worth of fixed assets... | SELECT "Current ratio" FROM table_22865 WHERE "Net worth to fixed assets" = '621' |
### Instruction:
CREATE TABLE table_5236 (
"Season" text,
"Tier" real,
"Division" text,
"Pos." real,
"Postseason" text,
"Cup Competitions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions have a Postseason of relegation playoffs... | SELECT COUNT("Pos.") FROM table_5236 WHERE "Postseason" = 'relegation playoffs' AND "Tier" = '3' |
### Instruction:
CREATE TABLE table_32451 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff" text,
"Game site" text,
"Record" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the site of the ga... | SELECT "Game site" FROM table_32451 WHERE "Record" = '6-2' |
### Instruction:
CREATE TABLE table_37036 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Total larger than 285, and a Finish of t30 belongs to what player... | SELECT "Player" FROM table_37036 WHERE "Total" > '285' AND "Finish" = 't30' |
### Instruction:
CREATE TABLE table_886 (
"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 ab... | SELECT "High points" FROM table_886 WHERE "Date" = 'March 13' |
### Instruction:
CREATE TABLE table_22531 (
"Series #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production code number for episod... | SELECT MIN("Prod. code") FROM table_22531 WHERE "Title" = 'Chilly Scenes of Winter Golf' |
### Instruction:
CREATE TABLE table_66975 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Oriol Servia's average Grid on races with more than 43 laps?
... | SELECT AVG("Grid") FROM table_66975 WHERE "Laps" > '43' AND "Driver" = 'oriol servia' |
### Instruction:
CREATE TABLE table_39975 (
"Week" real,
"Date" text,
"Time" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game on September 14, 2008... | SELECT "Result" FROM table_39975 WHERE "Date" = 'september 14, 2008' |
### Instruction:
CREATE TABLE table_2850 (
"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 points" FROM table_2850 WHERE "Game" = '69' |
### Instruction:
CREATE TABLE table_80369 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue was on 27 May 2000?
### Response:
| SELECT "Venue" FROM table_80369 WHERE "Date" = '27 may 2000' |
### Instruction:
CREATE TABLE table_25638 (
"No." real,
"Place & date" text,
"Target" text,
"Area damaged" text,
"Cause of damage" text,
"Intercepted by Patriot" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Was the missile intercepted by patri... | SELECT "Intercepted by Patriot" FROM table_25638 WHERE "Area damaged" = 'Parking lot' |
### Instruction:
CREATE TABLE table_76392 (
"Year" text,
"Result" text,
"Matches" text,
"Wins" text,
"Draws" text,
"Losses" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the matches where the teams finished in the first group stage, i... | SELECT "Matches" FROM table_76392 WHERE "Result" = 'first group stage' AND "Year" = '1998' |
### Instruction:
CREATE TABLE table_58898 (
"Class" text,
"Number(s)" text,
"Quantity" real,
"Year(s) of Manufacture" text,
"Type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type with a quantity of fewer than 6 and number(s) 5201?
... | SELECT "Type" FROM table_58898 WHERE "Quantity" < '6' AND "Number(s)" = '5201' |
### Instruction:
CREATE TABLE table_40594 (
"Sanderstead" text,
"Selsdon" text,
"Coombe Road" text,
"Bingham Road" text,
"Woodside" text,
"Elmers End" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Elmers End with a 09:54 Bingham Roa... | SELECT "Elmers End" FROM table_40594 WHERE "Bingham Road" = '09:54' |
### Instruction:
CREATE TABLE table_57516 (
"Date of Issue" text,
"Theme" text,
"Design" text,
"Illustration" text,
"Paper Type" text,
"First Day Cover Cancellation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Paper Type with an I... | SELECT "Paper Type" FROM table_57516 WHERE "Illustration" = 'martin dee, ubc public affairs' |
### Instruction:
CREATE TABLE table_42986 (
"Year" text,
"GP/GS" text,
"Goals" text,
"Assists" text,
"Total Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the gp/gs in 2003 when the total points was 'did not play'?
### Response:
| SELECT "GP/GS" FROM table_42986 WHERE "Total Points" = 'did not play' AND "Year" = '2003' |
### Instruction:
CREATE TABLE table_204_53 (
id number,
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"round" number,
"time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times d... | SELECT COUNT(*) FROM table_204_53 WHERE "location" = 'belgium' |
### Instruction:
CREATE TABLE table_27345 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How ma... | SELECT COUNT("Directed by") FROM table_27345 WHERE "Title" = 'Incoming' |
### Instruction:
CREATE TABLE acceptance (
Submission_ID VARCHAR,
workshop_id VARCHAR
)
CREATE TABLE submission (
Author VARCHAR,
Submission_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the authors who have submissions to more than one wor... | SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id) > 1 |
### Instruction:
CREATE TABLE table_8304 (
"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 gold medals of the nation with 1 bronze and less... | SELECT COUNT("Gold") FROM table_8304 WHERE "Bronze" = '1' AND "Total" < '1' |
### Instruction:
CREATE TABLE table_20277 (
"Name" text,
"Overs Bowled" text,
"Maidens" real,
"Runs Conceded" real,
"Wickets" real,
"Extras" real,
"E.R." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least runs conceded for brett l... | SELECT MIN("Runs Conceded") FROM table_20277 WHERE "Name" = 'Brett Lee' |
### Instruction:
CREATE TABLE table_name_84 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest 2003 value with a 1990 greater than 74, a 125 value in 1985, and a 1995 value greater than 130?
### Response:
| SELECT MAX(2003) FROM table_name_84 WHERE 1990 > 74 AND 1985 = 125 AND 1995 > 130 |
### Instruction:
CREATE TABLE table_59621 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has -9 to par with a Score of 70-69-68=207?
### Response:
| SELECT "Country" FROM table_59621 WHERE "To par" = '-9' AND "Score" = '70-69-68=207' |
### Instruction:
CREATE TABLE table_3990 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is th... | SELECT "Title" FROM table_3990 WHERE "Production code" = '418' |
### Instruction:
CREATE TABLE table_204_480 (
id number,
"title" text,
"alternate title(s)" text,
"year" number,
"manufacturer" text,
"genre(s)" text,
"max. players" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which manufacturer has the... | SELECT "manufacturer" FROM table_204_480 GROUP BY "manufacturer" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_38451 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of March that has 25-10-9 record and a Game more than 44?
### Response... | SELECT COUNT("March") FROM table_38451 WHERE "Record" = '25-10-9' AND "Game" > '44' |
### Instruction:
CREATE TABLE table_69976 (
"Name" text,
"Date of Execution" text,
"Crime" text,
"Method" text,
"Race" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How was the native american, Wau-Bau-Ne-Me-Mee, executed?
### Response:
| SELECT "Method" FROM table_69976 WHERE "Race" = 'native american' AND "Name" = 'wau-bau-ne-me-mee' |
### Instruction:
CREATE TABLE table_name_31 (
location VARCHAR,
design_flow__lpm_ VARCHAR,
partner VARCHAR,
population_served VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Location has a Partner of app, a Population Served larger than 2000, and... | SELECT location FROM table_name_31 WHERE partner = "app" AND population_served > 2000 AND design_flow__lpm_ = 375 |
### Instruction:
CREATE TABLE table_58077 (
"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 mcg is the Venue what's th... | SELECT "Away team" FROM table_58077 WHERE "Venue" = 'mcg' |
### Instruction:
CREATE TABLE table_33689 (
"Name" text,
"Bullet" text,
"Length" text,
"Base" text,
"Shoulder" text,
"Neck" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the shoulder measurement of the gun with a length of 57.85 (2.278)... | SELECT "Shoulder" FROM table_33689 WHERE "Length" = '57.85 (2.278)' |
### Instruction:
CREATE TABLE table_69018 (
"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 is the date when Joseph is the decision and ... | SELECT "Date" FROM table_69018 WHERE "Decision" = 'joseph' AND "Home" = 'san jose' |
### Instruction:
CREATE TABLE table_46825 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the format in the region of Europe with an XLCD369 and a label of XL?
### Respons... | SELECT "Format" FROM table_46825 WHERE "Label" = 'xl' AND "Catalog" = 'xlcd369' AND "Region" = 'europe' |
### Instruction:
CREATE TABLE table_11053 (
"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.
-- Which venue has a Away team of ... | SELECT "Venue" FROM table_11053 WHERE "Away team" = 'hawthorn' |
### Instruction:
CREATE TABLE table_61534 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the population of the parish with a census ranking of 579 o... | SELECT SUM("Population") FROM table_61534 WHERE "Census Ranking" = '579 of 5,008' |
### Instruction:
CREATE TABLE table_204_339 (
id number,
"season" number,
"age" number,
"overall" number,
"slalom" number,
"giant\nslalom" number,
"super g" text,
"downhill" number,
"combined" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT MAX("season") FROM table_204_339 |
### Instruction:
CREATE TABLE table_204_593 (
id number,
"year" text,
"chairperson" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who held the position longer , t.v sivaraopantulu or l. suryalingam ?
### Response:
| SELECT "chairperson" FROM table_204_593 WHERE "chairperson" IN ('t.v. sivaraopantulu', 'l. suryalingam') ORDER BY "year" - "year" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_32191 (
"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 is the away side score whe... | SELECT "Away team score" FROM table_32191 WHERE "Home team" = 'footscray' |
### Instruction:
CREATE TABLE table_name_42 (
overall_record VARCHAR,
away_team VARCHAR,
week VARCHAR,
divisional_record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Overall Record that has the Week smaller than 16, and the Divi... | SELECT overall_record FROM table_name_42 WHERE week < 16 AND divisional_record = "(1-0)" AND away_team = "miami" |
### Instruction:
CREATE TABLE table_71549 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did finish 1st in LMP1 class?
### Respon... | SELECT AVG("Year") FROM table_71549 WHERE "Class" = 'lmp1' AND "Class Pos." = '1st' |
### Instruction:
CREATE TABLE table_name_33 (
losses INTEGER,
draws VARCHAR,
position VARCHAR,
wins VARCHAR,
goal_difference VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest losses for more than 11 wins, a goal difference greate... | SELECT MAX(losses) FROM table_name_33 WHERE wins > 11 AND goal_difference > 5 AND position = 3 AND draws > 3 |
### Instruction:
CREATE TABLE table_203_440 (
id number,
"rank" number,
"player" text,
"from" text,
"to" text,
"transfer fee\n(\u20ac million)" number,
"year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which player paid the most in tra... | SELECT "player" FROM table_203_440 ORDER BY "transfer fee\n(\u20ac million)" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_59301 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who position did matthew tassone who was drafted after r... | SELECT "Position" FROM table_59301 WHERE "Round" > '5' AND "Player" = 'matthew tassone' |
### Instruction:
CREATE TABLE table_52967 (
"Year" real,
"Stage" real,
"Category" text,
"Start" text,
"Finish" text,
"Leader at the summit" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the stages for category 1 races after t... | SELECT SUM("Stage") FROM table_52967 WHERE "Category" = '1' AND "Year" > '2003' |
### Instruction:
CREATE TABLE table_71803 (
"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 is from the Country United States and Money ($) of 356... | SELECT "Player" FROM table_71803 WHERE "Country" = 'united states' AND "Money ( $ )" = '356' |
### Instruction:
CREATE TABLE table_64528 (
"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 "Replaced by" FROM table_64528 WHERE "Position in table" = '5th' |
### Instruction:
CREATE TABLE table_203_610 (
id number,
"institution" text,
"location" text,
"nickname" text,
"founded" number,
"historical affiliation" text,
"enrollment" number,
"primary conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT "institution" FROM table_203_610 WHERE "nickname" = 'saints' |
### Instruction:
CREATE TABLE table_44690 (
"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 Rank of the Nation with more than 1 Gold and a more than 4 Tota... | SELECT SUM("Rank") FROM table_44690 WHERE "Gold" > '1' AND "Total" > '4' |
### Instruction:
CREATE TABLE table_42023 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the Highest Games, when Team is Ciudad De La Laguna, and when Points are greater than 3... | SELECT MAX("Games") FROM table_42023 WHERE "Team" = 'ciudad de la laguna' AND "Points" > '357' |
### Instruction:
CREATE TABLE table_69055 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the mixed doubles in the ... | SELECT "Mixed doubles" FROM table_69055 WHERE "Men's doubles" = 'no competition' |
### Instruction:
CREATE TABLE table_51107 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Count the Grid which has a Manufacturer of aprilia, and a Rider of bradley smith?
### Re... | SELECT AVG("Grid") FROM table_51107 WHERE "Manufacturer" = 'aprilia' AND "Rider" = 'bradley smith' |
### Instruction:
CREATE TABLE table_19729 (
"Name" text,
"Years" text,
"League" text,
"FA Cup" text,
"League Cup" text,
"Europe" text,
"Other a" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which leage had a league cup of... | SELECT "League" FROM table_19729 WHERE "League Cup" = '46 (1)' |
### Instruction:
CREATE TABLE table_46933 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country that the player is from with +3 to par and score of 74-73=147?
### R... | SELECT "Country" FROM table_46933 WHERE "To par" = '+3' AND "Score" = '74-73=147' |
### Instruction:
CREATE TABLE table_76944 (
"Year" real,
"Championship" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has Opponents in the final of john bromwich frank sedgman... | SELECT "Score" FROM table_76944 WHERE "Opponents in the final" = 'john bromwich frank sedgman' |
### Instruction:
CREATE TABLE table_66492 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Nation that has the Bronze of 1, and the Gold of 0?
#... | SELECT "Nation" FROM table_66492 WHERE "Bronze" = '1' AND "Gold" = '0' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.