instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_203_784 (
id number,
"no. in\nseries" number,
"no. in\nseason" number,
"performer" text,
"appearance" text,
"air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which month had the most performers ?
### Response:
|
SELECT "air date" FROM table_203_784 GROUP BY "air date" ORDER BY COUNT("performer") DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_23216 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the type of the school whose students' name is spirits?
### Response:
|
SELECT "Type" FROM table_23216 WHERE "Nickname" = 'Spirits'
|
### Instruction:
CREATE TABLE actor (
actor_id number,
name text,
musical_id number,
character text,
duration text,
age number
)
CREATE TABLE musical (
musical_id number,
name text,
year number,
award text,
category text,
nominee text,
result text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the characters of actors in descending order of age?
### Response:
|
SELECT character FROM actor ORDER BY age DESC
|
### Instruction:
CREATE TABLE table_48004 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue did the runner have a note of 1:23:07?
### Response:
|
SELECT "Venue" FROM table_48004 WHERE "Notes" = '1:23:07'
|
### Instruction:
CREATE TABLE table_name_70 (
bush_number INTEGER,
others_number VARCHAR,
bush_percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average value of Bush# when the value for Others# is greater than 57, and the value for Bush% is 49.2%?
### Response:
|
SELECT AVG(bush_number) FROM table_name_70 WHERE others_number > 57 AND bush_percentage = "49.2%"
|
### Instruction:
CREATE TABLE table_50245 (
"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.
-- The match against Mark Hunt had what result?
### Response:
|
SELECT "Res." FROM table_50245 WHERE "Opponent" = 'mark hunt'
|
### Instruction:
CREATE TABLE Student (
advisor VARCHAR
)
CREATE TABLE Faculty (
fname VARCHAR,
lname VARCHAR,
FacID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the first and last name of the faculty who has the most students?
### Response:
|
SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_312 (
id number,
"stage" text,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many number of stages in the tour de france contain stages with mountains ?
### Response:
|
SELECT COUNT("stage") FROM table_204_312 WHERE "terrain" = 'stage with mountain(s)'
|
### Instruction:
CREATE TABLE table_30480 (
"Parent unit" text,
"Geschwader Base" text,
"Unit (Gruppe/Staffel)" text,
"Aircraft Type" text,
"Commanding Officer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the aircraft type for furstenau/vorden
### Response:
|
SELECT "Aircraft Type" FROM table_30480 WHERE "Geschwader Base" = 'Furstenau/Vorden'
|
### Instruction:
CREATE TABLE table_24565 (
"Country" text,
"% of imports from Russia" text,
"% cut" text,
"Diversification" text,
"Gas storage" text,
"Alternative fuel" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the gas storage status for the nation that had 'yes' for alternative fuel?
### Response:
|
SELECT "Gas storage" FROM table_24565 WHERE "Alternative fuel" = 'Yes'
|
### Instruction:
CREATE TABLE table_1005 (
"Player" text,
"Position" text,
"Games started" text,
"Hometown" text,
"Height" text,
"Weight" real,
"Class" text,
"Prior experience" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Games Started are there for Hugh White ?
### Response:
|
SELECT "Games started" FROM table_1005 WHERE "Player" = 'Hugh White'
|
### Instruction:
CREATE TABLE table_2968 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the opponent is the Stampeders, what is the record?
### Response:
|
SELECT "Record" FROM table_2968 WHERE "Opponent" = 'Stampeders'
|
### Instruction:
CREATE TABLE table_35138 (
"Hand" text,
"1 credit" text,
"2 credits" text,
"3 credits" text,
"4 credits" text,
"5 credits" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed for 5 credits that has 1 credit of 300?
### Response:
|
SELECT "5 credits" FROM table_35138 WHERE "1 credit" = '300'
|
### Instruction:
CREATE TABLE table_19090 (
"Season" real,
"Race Name" text,
"Winning Driver" text,
"Chassis" text,
"Engine" text,
"Tires" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year did Tom Sneva win a race?
### Response:
|
SELECT "Season" FROM table_19090 WHERE "Winning Driver" = 'Tom Sneva'
|
### Instruction:
CREATE TABLE table_61948 (
"English name" text,
"Thai name" text,
"Transcription" text,
"Color" text,
"Sanskrit word" text,
"Planet" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the Color which has a Thai name of ?
### Response:
|
SELECT "Color" FROM table_61948 WHERE "Thai name" = 'วันพฤหัสบดี'
|
### Instruction:
CREATE TABLE table_7669 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rank has a Total of 1 and a Bronze larger than 0?
### Response:
|
SELECT MAX("Rank") FROM table_7669 WHERE "Total" = '1' AND "Bronze" > '0'
|
### Instruction:
CREATE TABLE table_29369 (
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Originalairdate" text,
"Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the episode that was written by Fintan Ryan originally air?
### Response:
|
SELECT "Originalairdate" FROM table_29369 WHERE "Written by" = 'Fintan Ryan'
|
### Instruction:
CREATE TABLE table_62846 (
"Peak" text,
"Country" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Prominence (m) has a Col (m) of 350?
### Response:
|
SELECT AVG("Prominence (m)") FROM table_62846 WHERE "Col (m)" = '350'
|
### Instruction:
CREATE TABLE table_38516 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Margin of victory has a Runner(s)-up of buddy gardner?
### Response:
|
SELECT "Margin of victory" FROM table_38516 WHERE "Runner(s)-up" = 'buddy gardner'
|
### Instruction:
CREATE TABLE table_name_70 (
japanese_title VARCHAR,
average_ratings VARCHAR,
episodes VARCHAR,
tv_station VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Japanese title for the episode bigger than 10 on TBS with average ratings of 14.8%?
### Response:
|
SELECT japanese_title FROM table_name_70 WHERE episodes > 10 AND tv_station = "tbs" AND average_ratings = "14.8%"
|
### Instruction:
CREATE TABLE table_32704 (
"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.
-- What is his record at ufc 67?
### Response:
|
SELECT "Record" FROM table_32704 WHERE "Event" = 'ufc 67'
|
### Instruction:
CREATE TABLE table_75038 (
"Rank" real,
"Player" text,
"Goals" real,
"Games" real,
"Goal Ratio" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goal ratios have rank of 2 with more than 44 games?
### Response:
|
SELECT COUNT("Goal Ratio") FROM table_75038 WHERE "Rank" = '2' AND "Games" > '44'
|
### Instruction:
CREATE TABLE table_64688 (
"Team #1" text,
"Agg." text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first team when the 2nd leg is 100-113?
### Response:
|
SELECT "Team #1" FROM table_64688 WHERE "2nd leg" = '100-113'
|
### Instruction:
CREATE TABLE table_204_12 (
id number,
"area served" text,
"city of license" text,
"vc" number,
"rf" number,
"callsign" text,
"network" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of stations serving terre haute ?
### Response:
|
SELECT COUNT(*) FROM table_204_12 WHERE "city of license" = 'terre haute'
|
### Instruction:
CREATE TABLE table_36491 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2nd leg where Team 2 is fc 105 libreville?
### Response:
|
SELECT "2nd leg" FROM table_36491 WHERE "Team 2" = 'fc 105 libreville'
|
### Instruction:
CREATE TABLE table_75629 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game where 63,243 people attended after week 9?
### Response:
|
SELECT "Result" FROM table_75629 WHERE "Attendance" > '63,243' AND "Week" > '9'
|
### Instruction:
CREATE TABLE table_16198 (
"Institution" text,
"Nickname" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many institutions are located in wilmore, kentucky and private
### Response:
|
SELECT MAX("Founded") FROM table_16198 WHERE "Type" = 'Private' AND "Location" = 'Wilmore, Kentucky'
|
### Instruction:
CREATE TABLE table_48501 (
"Result" 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.
-- What result had a time of 1:02?
### Response:
|
SELECT "Result" FROM table_48501 WHERE "Time" = '1:02'
|
### Instruction:
CREATE TABLE table_61235 (
"Ship" text,
"Hull Number" text,
"Laid down" text,
"Launched" text,
"Commissioned" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Laid Down, when Commissioned is '11 November 1989'?
### Response:
|
SELECT "Laid down" FROM table_61235 WHERE "Commissioned" = '11 november 1989'
|
### Instruction:
CREATE TABLE table_name_98 (
sunlight_hours INTEGER,
city_town VARCHAR,
days_with_frost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of sunlight hours, and number of days with frost, more than 30, for the city of Ourense?
### Response:
|
SELECT MIN(sunlight_hours) FROM table_name_98 WHERE city_town = "ourense" AND days_with_frost > 30
|
### Instruction:
CREATE TABLE table_25604014_6 (
no_in_series VARCHAR,
directed_by VARCHAR,
no_in_season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the number in series of the pieces directed by Win Phelps and which number in season is 11?
### Response:
|
SELECT no_in_series FROM table_25604014_6 WHERE directed_by = "Win Phelps" AND no_in_season = 11
|
### Instruction:
CREATE TABLE table_59825 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Label has a Format of cd, and a Catalog of crgd 86136?
### Response:
|
SELECT "Label" FROM table_59825 WHERE "Format" = 'cd' AND "Catalog" = 'crgd 86136'
|
### Instruction:
CREATE TABLE table_204_595 (
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 average number of gold medals won by the top 5 nations ?
### Response:
|
SELECT AVG("gold") FROM table_204_595 WHERE "rank" <= 5
|
### Instruction:
CREATE TABLE table_name_17 (
country VARCHAR,
player VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country that has a place of T6, a socre of 69-69=138, and where Niclas Fasth played?
### Response:
|
SELECT country FROM table_name_17 WHERE place = "t6" AND score = 69 - 69 = 138 AND player = "niclas fasth"
|
### Instruction:
CREATE TABLE table_50977 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Overall has a Position of wr, and a College of alberta?
### Response:
|
SELECT SUM("Overall") FROM table_50977 WHERE "Position" = 'wr' AND "College" = 'alberta'
|
### Instruction:
CREATE TABLE table_33888 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score on October 16, 1983?
### Response:
|
SELECT "Score" FROM table_33888 WHERE "Date" = 'october 16, 1983'
|
### Instruction:
CREATE TABLE table_203_716 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many gold medals did puerto rico earn ?
### Response:
|
SELECT "gold" FROM table_203_716 WHERE "nation" = 'puerto rico'
|
### Instruction:
CREATE TABLE table_1341663_10 (
incumbent VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times was the candidates dan mica (d) 55.3% bill james (r) 44.7%?
### Response:
|
SELECT COUNT(incumbent) FROM table_1341663_10 WHERE candidates = "Dan Mica (D) 55.3% Bill James (R) 44.7%"
|
### Instruction:
CREATE TABLE table_57128 (
"Year" real,
"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.
-- Which mixed doubles was featured in 2006?
### Response:
|
SELECT "Mixed doubles" FROM table_57128 WHERE "Year" = '2006'
|
### Instruction:
CREATE TABLE table_61580 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player from the United States had a total of 297?
### Response:
|
SELECT "Player" FROM table_61580 WHERE "Country" = 'united states' AND "Total" = '297'
|
### Instruction:
CREATE TABLE table_204_951 (
id number,
"candidate" text,
"votes" number,
"percentage" text,
"counties" number,
"delegates" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many candidates received at least 100,000 votes ?
### Response:
|
SELECT COUNT("candidate") FROM table_204_951 WHERE "votes" >= 100000
|
### Instruction:
CREATE TABLE table_61820 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the bronze medal count when the silver is less than 3 and the gold is 1?
### Response:
|
SELECT SUM("Bronze") FROM table_61820 WHERE "Gold" = '1' AND "Silver" < '3'
|
### Instruction:
CREATE TABLE table_62054 (
"Round" real,
"Race" text,
"Circuit" text,
"Date" text,
"Event" text,
"Winning driver" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What race was a round smaller than 8, on 6 july?
### Response:
|
SELECT "Race" FROM table_62054 WHERE "Round" < '8' AND "Date" = '6 july'
|
### Instruction:
CREATE TABLE table_18473 (
"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.
-- How many results are listed for the election where Noah M. Mason was elected?
### Response:
|
SELECT COUNT("Result") FROM table_18473 WHERE "Incumbent" = 'Noah M. Mason'
|
### Instruction:
CREATE TABLE table_20872 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position(s) do players from bowling green play?
### Response:
|
SELECT "Position" FROM table_20872 WHERE "School/Club Team" = 'Bowling Green'
|
### Instruction:
CREATE TABLE table_42795 (
"Name" text,
"Position" text,
"Number" real,
"Season" text,
"Acquisition via" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Acquisition that has less than 22, in the 2002 season?
### Response:
|
SELECT "Acquisition via" FROM table_42795 WHERE "Number" < '22' AND "Season" = '2002'
|
### Instruction:
CREATE TABLE table_204_190 (
id number,
"rank" number,
"city" text,
"county" text,
"state" text,
"percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of cities in new jersey on the top ten list ?
### Response:
|
SELECT COUNT("city") FROM table_204_190 WHERE "state" = 'new jersey' AND "rank" <= 10
|
### Instruction:
CREATE TABLE table_75088 (
"Rank" text,
"Stadium" text,
"Capacity" real,
"City" text,
"Country" text,
"Tournament hosted" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average capacity that has rod laver arena as the stadium?
### Response:
|
SELECT AVG("Capacity") FROM table_75088 WHERE "Stadium" = 'rod laver arena'
|
### Instruction:
CREATE TABLE table_38800 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the time of the car having a constructor of Renault, which went 40 laps?
### Response:
|
SELECT "Time/Retired" FROM table_38800 WHERE "Constructor" = 'renault' AND "Laps" = '40'
|
### Instruction:
CREATE TABLE table_11008 (
"Episode #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the program that originally aired on June 6, 1999?
### Response:
|
SELECT "Written by" FROM table_11008 WHERE "Original airdate" = 'june 6, 1999'
|
### Instruction:
CREATE TABLE table_28606 (
"Election number" real,
"Election date" text,
"District" text,
"Province" text,
"Took office" text,
"Left office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the election date for elections held in the province of Albacete?
### Response:
|
SELECT "Election date" FROM table_28606 WHERE "Province" = 'Albacete'
|
### Instruction:
CREATE TABLE table_60584 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score points in WC Kerrville, when rank was points of 8?
### Response:
|
SELECT "Score points" FROM table_60584 WHERE "Event" = 'wc kerrville' AND "Rank points" = '8'
|
### Instruction:
CREATE TABLE table_80111 (
"Game" real,
"Date" text,
"Location" text,
"Time" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the game that was played on october 22 in west side grounds, what is the total attendance
### Response:
|
SELECT COUNT("Attendance") FROM table_80111 WHERE "Location" = 'west side grounds' AND "Date" = 'october 22'
|
### Instruction:
CREATE TABLE table_70772 (
"Year" real,
"Points" text,
"Rebounds" text,
"Assists" text,
"Steals" text,
"Blocks" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 1st Year Al Harrington (9) the leader in Rebounds?
### Response:
|
SELECT MIN("Year") FROM table_70772 WHERE "Rebounds" = 'al harrington (9)'
|
### Instruction:
CREATE TABLE table_203_535 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many medals did france and cuba win ?
### Response:
|
SELECT SUM("total") FROM table_203_535 WHERE "nation" IN ('france', 'cuba')
|
### Instruction:
CREATE TABLE table_5169 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the segment A in episode 42?
### Response:
|
SELECT "Segment A" FROM table_5169 WHERE "Episode" = '42'
|
### Instruction:
CREATE TABLE table_name_14 (
new_council VARCHAR,
previous_council VARCHAR,
seats_up_for_election VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which number of New Councils had a previous council number of 19 and the seats up for election were bigger than 6?
### Response:
|
SELECT COUNT(new_council) FROM table_name_14 WHERE previous_council = 19 AND seats_up_for_election < 6
|
### Instruction:
CREATE TABLE table_name_81 (
runner_s__up VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the runner-up when the winning score was 28 (66-67-68-64-67=332)?
### Response:
|
SELECT runner_s__up FROM table_name_81 WHERE winning_score = –28(66 - 67 - 68 - 64 - 67 = 332)
|
### Instruction:
CREATE TABLE table_15621965_18 (
no VARCHAR,
position VARCHAR,
school_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT WAS THE JERSEY NUMBER OF THE ROSTER PLAYER FROM OKLAHOMA STATE WHO PLAYED GUARD?
### Response:
|
SELECT no FROM table_15621965_18 WHERE position = "Guard" AND school_club_team = "Oklahoma State"
|
### Instruction:
CREATE TABLE table_44677 (
"Nat." text,
"Name" text,
"Moving to" text,
"Type" text,
"Transfer window" text,
"Transfer fee" text,
"Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is moving to Metalurh Donetsk?
### Response:
|
SELECT "Name" FROM table_44677 WHERE "Moving to" = 'metalurh donetsk'
|
### Instruction:
CREATE TABLE song (
artist_name VARCHAR,
rating VARCHAR
)
CREATE TABLE artist (
artist_name VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names and countries of origin for the artists who produced the top three highly rated songs.
### Response:
|
SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC LIMIT 3
|
### Instruction:
CREATE TABLE table_51664 (
"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 smallest grid with collision as the Time/Retired for pedro diniz?
### Response:
|
SELECT MIN("Grid") FROM table_51664 WHERE "Time/Retired" = 'collision' AND "Driver" = 'pedro diniz'
|
### Instruction:
CREATE TABLE table_53074 (
"Building" text,
"Height" text,
"Floors" real,
"Year" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the Year 2013 what building(s) had more than 15 Floors?
### Response:
|
SELECT "Building" FROM table_53074 WHERE "Floors" > '15' AND "Year" = '2013'
|
### Instruction:
CREATE TABLE table_2175 (
"Pitcher" text,
"Stats" real,
"Wins" real,
"Losses" real,
"No decisions" real,
"Winning %" text,
"Seasons" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the pitchers for the 1970 season
### Response:
|
SELECT "Pitcher" FROM table_2175 WHERE "Seasons" = '1970'
|
### Instruction:
CREATE TABLE table_4492 (
"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.
-- Where did Collingwood play as the home team?
### Response:
|
SELECT "Venue" FROM table_4492 WHERE "Home team" = 'collingwood'
|
### Instruction:
CREATE TABLE table_25475 (
"Date" text,
"Location" text,
"Opponent" text,
"Irish Points" real,
"Opp. Points" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponent for 2-27-10
### Response:
|
SELECT "Opponent" FROM table_25475 WHERE "Date" = '2-27-10'
|
### Instruction:
CREATE TABLE table_32983 (
"Chapter" text,
"Colonized" text,
"Chartered" text,
"School" text,
"State" text,
"Status" text,
"Charter Range" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was shippensburg university Colonized?
### Response:
|
SELECT "Colonized" FROM table_32983 WHERE "School" = 'shippensburg university'
|
### Instruction:
CREATE TABLE table_204_379 (
id number,
"year" text,
"title" text,
"hangul" text,
"network" text,
"further info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what show was he in before running man
### Response:
|
SELECT "title" FROM table_204_379 WHERE id = (SELECT id FROM table_204_379 WHERE "title" = 'running man') - 1
|
### Instruction:
CREATE TABLE table_204_726 (
id number,
"rank" number,
"athlete" text,
"country" text,
"time" text,
"behind" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of 1500 meter runners that came from italy ?
### Response:
|
SELECT COUNT("athlete") FROM table_204_726 WHERE "country" = 'italy'
|
### Instruction:
CREATE TABLE table_204_595 (
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 total number of gold medals won by jamaica ?
### Response:
|
SELECT "gold" FROM table_204_595 WHERE "nation" = 'jamaica'
|
### Instruction:
CREATE TABLE table_50077 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game with less than 35 points and chicago as the home team?
### Response:
|
SELECT "Date" FROM table_50077 WHERE "Points" < '35' AND "Home" = 'chicago'
|
### Instruction:
CREATE TABLE table_53818 (
"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 smallest population in a region greater than 9?
### Response:
|
SELECT MIN("Population") FROM table_53818 WHERE "Region" > '9'
|
### Instruction:
CREATE TABLE table_22350 (
"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 abba is the artist what is the album?
### Response:
|
SELECT "Album" FROM table_22350 WHERE "Artist" = 'ABBA'
|
### Instruction:
CREATE TABLE table_60563 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The game played 31 May 2010 was played on what surface?
### Response:
|
SELECT "Surface" FROM table_60563 WHERE "Date" = '31 may 2010'
|
### Instruction:
CREATE TABLE table_6281 (
"Runs" real,
"Match" real,
"City/Country" text,
"Venue" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Match has Runs of 100, and a Year larger than 1994?
### Response:
|
SELECT SUM("Match") FROM table_6281 WHERE "Runs" = '100' AND "Year" > '1994'
|
### Instruction:
CREATE TABLE table_57112 (
"College Name" text,
"Location" text,
"District" text,
"Affiliation" text,
"Estd" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the coimbatore affilation that was established in 1982?
### Response:
|
SELECT "Affiliation" FROM table_57112 WHERE "Estd" = '1982' AND "Location" = 'coimbatore'
|
### Instruction:
CREATE TABLE table_47902 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times is the position lb and the overall is less than 46?
### Response:
|
SELECT COUNT("Pick") FROM table_47902 WHERE "Position" = 'lb' AND "Overall" < '46'
|
### Instruction:
CREATE TABLE table_203_365 (
id number,
"released" text,
"video title" text,
"company" text,
"director" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of films shoko goto appeared in 2005 ?
### Response:
|
SELECT COUNT(DISTINCT "video title") FROM table_203_365 WHERE "released" = 2005
|
### Instruction:
CREATE TABLE table_76744 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which NFL team has a pick# less than 200 for Travis Davis?
### Response:
|
SELECT "NFL Team" FROM table_76744 WHERE "Pick #" < '200' AND "Player" = 'travis davis'
|
### Instruction:
CREATE TABLE table_56052 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record in the competition in which the home team was the Mavericks?
### Response:
|
SELECT "Record" FROM table_56052 WHERE "Home" = 'mavericks'
|
### Instruction:
CREATE TABLE table_36764 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Surface has a Score of 6 4, 6 2?
### Response:
|
SELECT "Surface" FROM table_36764 WHERE "Score" = '6–4, 6–2'
|
### Instruction:
CREATE TABLE table_28138035_27 (
womens_singles VARCHAR,
womens_doubles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many womens singles entries are there when womens doubles is li xiaodan wen jia?
### Response:
|
SELECT COUNT(womens_singles) FROM table_28138035_27 WHERE womens_doubles = "Li Xiaodan Wen Jia"
|
### Instruction:
CREATE TABLE table_6557 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result has a Party of republican, and a First elected smaller than 1856?
### Response:
|
SELECT "Result" FROM table_6557 WHERE "Party" = 'republican' AND "First elected" < '1856'
|
### Instruction:
CREATE TABLE table_31935 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Event resulted in a Win for Opponent, Shane Ott?
### Response:
|
SELECT "Event" FROM table_31935 WHERE "Res." = 'win' AND "Opponent" = 'shane ott'
|
### Instruction:
CREATE TABLE table_37269 (
"Year" real,
"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.
-- what game had a doubles round in 1979
### Response:
|
SELECT "Mixed doubles" FROM table_37269 WHERE "Year" = '1979'
|
### Instruction:
CREATE TABLE table_52540 (
"Rider" text,
"Horse" text,
"Faults" text,
"Round 1 + 2A + 2B + 3A Points" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total for christina liebherr?
### Response:
|
SELECT MIN("Total") FROM table_52540 WHERE "Rider" = 'christina liebherr'
|
### Instruction:
CREATE TABLE table_204_723 (
id number,
"year" number,
"film" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which other 1986 film came after love 86 ?
### Response:
|
SELECT "film" FROM table_204_723 WHERE id = (SELECT id FROM table_204_723 WHERE "film" = 'love 86') + 1
|
### Instruction:
CREATE TABLE table_2248991_2 (
total_gdp_world_rank INTEGER,
gdp_per_capita VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total gdp world rank when the gdp per capita was listed at $1,163?
### Response:
|
SELECT MIN(total_gdp_world_rank) FROM table_2248991_2 WHERE gdp_per_capita = "$1,163"
|
### Instruction:
CREATE TABLE table_7062 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Enrollment for the Pilots?
### Response:
|
SELECT MIN("Enrollment") FROM table_7062 WHERE "Team Nickname" = 'pilots'
|
### Instruction:
CREATE TABLE table_24331 (
"Season" real,
"Episode" real,
"Episode Summary" text,
"Premier date" text,
"External Link" text,
"Coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of episode summary for jesse csincsak
### Response:
|
SELECT COUNT("Episode Summary") FROM table_24331 WHERE "Coach" = 'Jesse Csincsak'
|
### Instruction:
CREATE TABLE table_39744 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date for the game with an opponent of the Houston Oilers from before week 3?
### Response:
|
SELECT "Date" FROM table_39744 WHERE "Week" < '3' AND "Opponent" = 'houston oilers'
|
### Instruction:
CREATE TABLE table_204_735 (
id number,
"rank" number,
"team" text,
"names" text,
"time" text,
"qualification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long did it take italy to finish in cycling at the 1996 summer olympics men 's team pursuit ?
### Response:
|
SELECT "time" FROM table_204_735 WHERE "team" = 'italy'
|
### Instruction:
CREATE TABLE table_32154 (
"Year" text,
"Division" real,
"League" text,
"Reg. Season" text,
"Playoffs" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which division has no playoff but has a 12th game in their season?
### Response:
|
SELECT MAX("Division") FROM table_32154 WHERE "Playoffs" = 'no playoff' AND "Reg. Season" = '12th'
|
### Instruction:
CREATE TABLE table_62212 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did they play at the wachovia center?
### Response:
|
SELECT "Date" FROM table_62212 WHERE "Location/Attendance" = 'wachovia center'
|
### Instruction:
CREATE TABLE table_69935 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which record has 4:14 as the time?
### Response:
|
SELECT "Record" FROM table_69935 WHERE "Time" = '4:14'
|
### Instruction:
CREATE TABLE table_53675 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average year they finished 5th in santiago, chile?
### Response:
|
SELECT AVG("Year") FROM table_53675 WHERE "Position" = '5th' AND "Venue" = 'santiago, chile'
|
### Instruction:
CREATE TABLE table_204_644 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game site" text,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the opponent in the last game played ?
### Response:
|
SELECT "opponent" FROM table_204_644 ORDER BY "week" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_7212 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What manner of departure was Dick Advocaat replaced by?
### Response:
|
SELECT "Manner of departure" FROM table_7212 WHERE "Replaced by" = 'dick advocaat'
|
### Instruction:
CREATE TABLE table_71660 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Away captain for the Test match of Australia in England where the Result was AUS by 264 runs?
### Response:
|
SELECT "Away captain" FROM table_71660 WHERE "Result" = 'aus by 264 runs'
|
### Instruction:
CREATE TABLE table_71453 (
"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 class of the station with the call sign w254ah?
### Response:
|
SELECT "Class" FROM table_71453 WHERE "Call sign" = 'w254ah'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.