instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_80418 (
"Year" text,
"Carries" real,
"Rushing Yards" real,
"Average" real,
"Touchdowns" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of carries that have more than 72 touchdowns?
### Response:
|
SELECT AVG("Carries") FROM table_80418 WHERE "Touchdowns" > '72'
|
### Instruction:
CREATE TABLE table_74847 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue held that game with a result of l 24 14?
### Response:
|
SELECT "Venue" FROM table_74847 WHERE "Result" = 'l 24–14'
|
### Instruction:
CREATE TABLE table_5723 (
"Year" real,
"Class" text,
"Team" text,
"Machine" text,
"Points" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Year did the RG500 Machine have more than 17 Points?
### Response:
|
SELECT COUNT("Year") FROM table_5723 WHERE "Machine" = 'rg500' AND "Points" > '17'
|
### Instruction:
CREATE TABLE table_27429 (
"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.
-- In which championship was the partner Jie Zheng?
### Response:
|
SELECT "Championship" FROM table_27429 WHERE "Partner" = 'Jie Zheng'
|
### Instruction:
CREATE TABLE table_203_152 (
id number,
"province" text,
"capital" text,
"area (km2)" number,
"population" number,
"density" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many provinces have populations higher than 300,000 ?
### Response:
|
SELECT COUNT("province") FROM table_203_152 WHERE "population" > 300000
|
### Instruction:
CREATE TABLE table_name_51 (
wins INTEGER,
byes VARCHAR,
against VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Wins, when Against is less than 1786, when Losses is less than 4, and when Byes is less than 2?
### Response:
|
SELECT AVG(wins) FROM table_name_51 WHERE against < 1786 AND losses < 4 AND byes < 2
|
### Instruction:
CREATE TABLE table_64719 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Episodes" real,
"Average Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Episodes have a Romaji Title of dragon zakura?
### Response:
|
SELECT COUNT("Episodes") FROM table_64719 WHERE "Romaji Title" = 'dragon zakura'
|
### Instruction:
CREATE TABLE table_name_65 (
fcc_info VARCHAR,
city_of_license VARCHAR,
frequency_mhz VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which FCC info has a City of license of burley, idaho, and a Frequency MHz of 89.5?
### Response:
|
SELECT fcc_info FROM table_name_65 WHERE city_of_license = "burley, idaho" AND frequency_mhz = 89.5
|
### Instruction:
CREATE TABLE table_58256 (
"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 team was the home team against Melbourne?
### Response:
|
SELECT "Home team" FROM table_58256 WHERE "Away team" = 'melbourne'
|
### Instruction:
CREATE TABLE table_58036 (
"Round" real,
"Player" text,
"Nationality" text,
"NHL Team" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest round when the player is troy creurer (d)?
### Response:
|
SELECT MAX("Round") FROM table_58036 WHERE "Player" = 'troy creurer (d)'
|
### Instruction:
CREATE TABLE table_3811 (
"Sd" real,
"Rk" real,
"Player" text,
"Points" real,
"Points defending" real,
"Points won" real,
"New points" real,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the total points for sd 15?
### Response:
|
SELECT MAX("Points") FROM table_3811 WHERE "Sd" = '15'
|
### Instruction:
CREATE TABLE useracct (
name VARCHAR,
u_id VARCHAR
)
CREATE TABLE review (
rating INTEGER,
u_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For each user, return the name and the average rating of reviews given by them.
### Response:
|
SELECT T1.name, AVG(T2.rating) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id
|
### Instruction:
CREATE TABLE table_6612 (
"Title" text,
"Year" real,
"Platform(s)" text,
"Director" text,
"Producer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What platform was used for the game directed by Bryan Walker after 2006?
### Response:
|
SELECT "Platform(s)" FROM table_6612 WHERE "Year" > '2006' AND "Director" = 'bryan walker'
|
### Instruction:
CREATE TABLE table_25954 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record in the November 7 game?
### Response:
|
SELECT "Record" FROM table_25954 WHERE "Date" = 'November 7'
|
### Instruction:
CREATE TABLE table_59837 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Money ( ) has a Country of ireland?
### Response:
|
SELECT "Money ( \u00a3 )" FROM table_59837 WHERE "Country" = 'ireland'
|
### Instruction:
CREATE TABLE table_32117 (
"Year" real,
"Conference" text,
"City" text,
"Country" text,
"Local Host(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the local hosts for the United States in years earlier than 2007?
### Response:
|
SELECT "Local Host(s)" FROM table_32117 WHERE "Country" = 'united states' AND "Year" < '2007'
|
### Instruction:
CREATE TABLE table_3009 (
"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.
-- Name the reason for change when George W. Greene (D) was the vacator.
### Response:
|
SELECT "Reason for change" FROM table_3009 WHERE "Vacator" = 'George W. Greene (D)'
|
### Instruction:
CREATE TABLE table_48298 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which To par has a Country of united states, and a Player of duffy waldorf?
### Response:
|
SELECT "To par" FROM table_48298 WHERE "Country" = 'united states' AND "Player" = 'duffy waldorf'
|
### Instruction:
CREATE TABLE table_23294 (
"Draw" real,
"Artist" text,
"Song" text,
"Jury votes" text,
"Televotes" real,
"Total votes" real,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many votes does Carlos Ferrer Eai have?
### Response:
|
SELECT "Total votes" FROM table_23294 WHERE "Artist" = 'Carlos Ferrer EAI'
|
### Instruction:
CREATE TABLE table_203_499 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the only one in 4th place in the 1986 masters tournament ?
### Response:
|
SELECT "player" FROM table_203_499 WHERE "place" = 4
|
### Instruction:
CREATE TABLE table_50015 (
"Tournament" text,
"Wins" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total Top-25 when the events were less than 0?
### Response:
|
SELECT SUM("Top-25") FROM table_50015 WHERE "Events" < '0'
|
### Instruction:
CREATE TABLE table_203_396 (
id number,
"year" number,
"domestic passengers" number,
"international passengers" number,
"total passengers" number,
"change" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years did international passengers number at least 100,000 ?
### Response:
|
SELECT COUNT("year") FROM table_203_396 WHERE "international passengers" >= 100000
|
### 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.
-- which event ended with the longest time ?
### Response:
|
SELECT "event" FROM table_204_53 ORDER BY "time" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_11768 (
"Name" text,
"Wheel arrangement" text,
"SR No." text,
"Manufacturer" text,
"Year made" real,
"Year withdrawn" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who manufactured the vehicle withdrawn after 1932?
### Response:
|
SELECT "Manufacturer" FROM table_11768 WHERE "Year withdrawn" > '1932'
|
### Instruction:
CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
CREATE TABLE personfriend (
name text,
friend text,
year number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of all people who are friends with Alice for the shortest amount of time?
### Response:
|
SELECT name FROM personfriend WHERE friend = 'Alice' AND year = (SELECT MIN(year) FROM personfriend WHERE friend = 'Alice')
|
### Instruction:
CREATE TABLE table_59097 (
"Clubs" text,
"Position 2010-11" text,
"Region" text,
"Stadium" text,
"Capacity" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest capacity of the tsentral stadium (batumi)?
### Response:
|
SELECT MAX("Capacity") FROM table_59097 WHERE "Stadium" = 'tsentral stadium (batumi)'
|
### Instruction:
CREATE TABLE table_39227 (
"Year" real,
"Dates" text,
"Champion" text,
"Country" text,
"Score" text,
"To par" text,
"Margin of victory" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Country has a Margin of victory of 2 strokes?
### Response:
|
SELECT "Country" FROM table_39227 WHERE "Margin of victory" = '2 strokes'
|
### Instruction:
CREATE TABLE table_48741 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Language(s)" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the director that had a film titled 'Floating Life'?
### Response:
|
SELECT "Director" FROM table_48741 WHERE "Film title used in nomination" = 'floating life'
|
### Instruction:
CREATE TABLE table_204_282 (
id number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text,
"#" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many games were played before 2008 ?
### Response:
|
SELECT COUNT(*) FROM table_204_282 WHERE "date" < 2008
|
### Instruction:
CREATE TABLE table_39068 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the result w 20-17?
### Response:
|
SELECT "Date" FROM table_39068 WHERE "Result" = 'w 20-17'
|
### Instruction:
CREATE TABLE table_69892 (
"Date" text,
"Bowl" text,
"Result" text,
"Points For" real,
"Points Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the Mountaineers score 27 points and their opponent scored more that 7?
### Response:
|
SELECT "Date" FROM table_69892 WHERE "Points Against" > '7' AND "Points For" = '27'
|
### Instruction:
CREATE TABLE table_204_928 (
id number,
"year" number,
"album" text,
"territory" text,
"label" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- five was released in 1994 . what was the previous album released ?
### Response:
|
SELECT "album" FROM table_204_928 WHERE "year" < 1994 ORDER BY "year" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_227 (
id number,
"week" number,
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total points did the bombers score against the bc lions ?
### Response:
|
SELECT SUM("score") FROM table_204_227 WHERE "opponent" = 'bc lions'
|
### Instruction:
CREATE TABLE table_name_34 (
number_of_episodes INTEGER,
genre VARCHAR,
highest_average_point_ratings VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the number of episodes when the genre is modern drama and the highest average ratings points are 28?
### Response:
|
SELECT AVG(number_of_episodes) FROM table_name_34 WHERE genre = "modern drama" AND highest_average_point_ratings = 28
|
### Instruction:
CREATE TABLE table_16046689_29 (
conference_matchups VARCHAR,
date VARCHAR,
bowl_game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What teams played in the Capital One bowl game on January 1, 2009?
### Response:
|
SELECT conference_matchups FROM table_16046689_29 WHERE date = "January 1, 2009" AND bowl_game = "Capital One"
|
### Instruction:
CREATE TABLE table_79031 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a total of 11, and 10 rank points, what are the score points?
### Response:
|
SELECT "Score points" FROM table_79031 WHERE "Rank points" = '10' AND "Total" = '11'
|
### Instruction:
CREATE TABLE table_62120 (
"Season" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Home" text,
"Away" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season has roma as the opponent?
### Response:
|
SELECT "Season" FROM table_62120 WHERE "Opponent" = 'roma'
|
### Instruction:
CREATE TABLE table_65428 (
"Season" text,
"1st round" text,
"2nd round" text,
"3rd round" text,
"Finals" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- NAME THE Finals which has a 1st round of w, 3 1, mis?
### Response:
|
SELECT "Finals" FROM table_65428 WHERE "1st round" = 'w, 3–1, mis'
|
### Instruction:
CREATE TABLE table_21177 (
"Cycle no." text,
"Air dates" text,
"Reward" text,
"Immunity" text,
"Eliminated" text,
"Vote" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the vote for gigit
### Response:
|
SELECT "Vote" FROM table_21177 WHERE "Eliminated" = 'Gigit'
|
### Instruction:
CREATE TABLE table_77028 (
"Nation" text,
"Model" text,
"Length" text,
"Barrel length" text,
"Weight" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Length, when Barrel Length is 750mm / 29.5 in?
### Response:
|
SELECT "Length" FROM table_77028 WHERE "Barrel length" = '750mm / 29.5 in'
|
### Instruction:
CREATE TABLE table_28024 (
"Episode #" text,
"Original Air Date (UK)" text,
"Episode Title" text,
"Director" text,
"Writer" text,
"Cast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original air date of episode 3-02?
### Response:
|
SELECT "Original Air Date (UK)" FROM table_28024 WHERE "Episode #" = '3-02'
|
### Instruction:
CREATE TABLE table_name_3 (
rank INTEGER,
react VARCHAR,
lane VARCHAR,
athlete VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many ranks have more than 7 lanes, and an Athlete of michael mathieu, and a Reaction time larger than 0.203?
### Response:
|
SELECT SUM(rank) FROM table_name_3 WHERE lane > 7 AND athlete = "michael mathieu" AND react > 0.203
|
### Instruction:
CREATE TABLE table_1590967_6 (
episode_number VARCHAR,
coat_of_cash_wearing_celebrity VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of episodes for coat of cash wearing celebrity is matt di angelo
### Response:
|
SELECT COUNT(episode_number) FROM table_1590967_6 WHERE coat_of_cash_wearing_celebrity = "Matt Di Angelo"
|
### Instruction:
CREATE TABLE table_14432 (
"Estimate" text,
"Name" text,
"Nat." text,
"Ship Type" text,
"Principal victims" text,
"Where sunk" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of ship was the HMSST George?
### Response:
|
SELECT "Ship Type" FROM table_14432 WHERE "Name" = 'hmsst george'
|
### Instruction:
CREATE TABLE table_77112 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Country, when Year(s) Won is '1962'?
### Response:
|
SELECT "Country" FROM table_77112 WHERE "Year(s) won" = '1962'
|
### Instruction:
CREATE TABLE table_1099080_1 (
partial_thromboplastin_time VARCHAR,
condition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the partial thromboplastin time for factor x deficiency as seen in amyloid purpura
### Response:
|
SELECT partial_thromboplastin_time FROM table_1099080_1 WHERE condition = "Factor X deficiency as seen in amyloid purpura"
|
### Instruction:
CREATE TABLE table_23995 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"Height" text,
"Weight" text,
"College" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the position of pick # 79
### Response:
|
SELECT "Position" FROM table_23995 WHERE "Pick #" = '79'
|
### Instruction:
CREATE TABLE table_76256 (
"Date From" text,
"Date To" text,
"Position" text,
"Name" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Date From for Theo Robinson, who was with the team until the end of season?
### Response:
|
SELECT "Date From" FROM table_76256 WHERE "Date To" = 'end of season' AND "Name" = 'theo robinson'
|
### Instruction:
CREATE TABLE table_25295 (
"Station" text,
"Extension" text,
"City/Neighborhood" text,
"Projected opening" real,
"Transit Connections" text,
"Park and ride?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the transit connections for capitol hill u
### Response:
|
SELECT "Transit Connections" FROM table_25295 WHERE "Station" = 'Capitol Hill U'
|
### Instruction:
CREATE TABLE table_46993 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the time when his opponent was Cleber Luciano?
### Response:
|
SELECT "Time" FROM table_46993 WHERE "Opponent" = 'cleber luciano'
|
### Instruction:
CREATE TABLE table_25286976_2 (
june_10_11 VARCHAR,
march_27_29 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 129 is on March 27th to 29th what is June 10th to 11th?
### Response:
|
SELECT june_10_11 FROM table_25286976_2 WHERE march_27_29 = "129"
|
### Instruction:
CREATE TABLE table_67207 (
"Year" real,
"Denomination" text,
"Reverse" text,
"Weight" text,
"Diameter" text,
"Fineness" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the fineness prior to 2007?
### Response:
|
SELECT "Fineness" FROM table_67207 WHERE "Year" < '2007'
|
### Instruction:
CREATE TABLE table_59284 (
"Year" real,
"Award" text,
"Category" text,
"Film" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Award, when Category is 'Best Actor', and when Year is less than 1988?
### Response:
|
SELECT "Award" FROM table_59284 WHERE "Category" = 'best actor' AND "Year" < '1988'
|
### Instruction:
CREATE TABLE table_50847 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE TO PAR FOR GEOFF OGILVY WITH A PLACE OF T3?
### Response:
|
SELECT "To par" FROM table_50847 WHERE "Place" = 't3' AND "Player" = 'geoff ogilvy'
|
### Instruction:
CREATE TABLE table_204_928 (
id number,
"year" number,
"album" text,
"territory" text,
"label" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of blokshok records third studio album ?
### Response:
|
SELECT "album" FROM table_204_928 WHERE "label" = 'blokshok records' AND "notes" = 'third studio album'
|
### Instruction:
CREATE TABLE table_19190 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text,
"Avg. Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the playoffs for 2nd round open cup
### Response:
|
SELECT "Playoffs" FROM table_19190 WHERE "Open Cup" = '2nd Round'
|
### Instruction:
CREATE TABLE table_name_22 (
draws INTEGER,
against VARCHAR,
losses VARCHAR,
geelong_fl VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest number of draws of St Josephs with losses greater than 6 and less than 1250 against?
### Response:
|
SELECT MAX(draws) FROM table_name_22 WHERE losses > 6 AND geelong_fl = "st josephs" AND against < 1250
|
### Instruction:
CREATE TABLE table_68930 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game that had an attendance of 32,036?
### Response:
|
SELECT "Score" FROM table_68930 WHERE "Attendance" = '32,036'
|
### Instruction:
CREATE TABLE table_204_336 (
id number,
"operators" text,
"named trains" text,
"destination" text,
"year begun" text,
"year discontinued" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many trains were discontinued in 1958 ?
### Response:
|
SELECT COUNT("named trains") FROM table_204_336 WHERE "year discontinued" = 1958
|
### Instruction:
CREATE TABLE table_64317 (
"Round" text,
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the attendance 1,804?
### Response:
|
SELECT "Date" FROM table_64317 WHERE "Attendance" = '1,804'
|
### Instruction:
CREATE TABLE table_11350 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the game on 1990-11-18?
### Response:
|
SELECT "Game site" FROM table_11350 WHERE "Date" = '1990-11-18'
|
### Instruction:
CREATE TABLE table_49896 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What pick in a round earlier than 4 did UCLA choose their pick?
### Response:
|
SELECT "Pick" FROM table_49896 WHERE "Round" < '4' AND "School/Club Team" = 'ucla'
|
### Instruction:
CREATE TABLE table_6341 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHo is Winning driver that is in st. petersburg - moscow?
### Response:
|
SELECT "Winning driver" FROM table_6341 WHERE "Name" = 'st. petersburg - moscow'
|
### Instruction:
CREATE TABLE table_44087 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Nickname" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of students in East Lansing, MI?
### Response:
|
SELECT AVG("Founded") FROM table_44087 WHERE "Location" = 'east lansing, mi'
|
### Instruction:
CREATE TABLE table_204_564 (
id number,
"devanagari" text,
"iso 15919" text,
"unrsgn" text,
"iast" text,
"comment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which devanagaria means the same as this iast letter : o ?
### Response:
|
SELECT "devanagari" FROM table_204_564 WHERE "iast" = 'o'
|
### Instruction:
CREATE TABLE table_name_77 (
attendance INTEGER,
opponent VARCHAR,
result VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Attendance has a Result of 1-0, and a Venue of A, and an Opponent of newcastle united?
### Response:
|
SELECT MIN(attendance) FROM table_name_77 WHERE result = "1-0" AND venue = "a" AND opponent = "newcastle united"
|
### Instruction:
CREATE TABLE table_72792 (
"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.
-- when did no. 32 play for grizzles
### Response:
|
SELECT "Years for Grizzlies" FROM table_72792 WHERE "No." = '32'
|
### Instruction:
CREATE TABLE table_203_452 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what driver placed last ?
### Response:
|
SELECT "driver" FROM table_203_452 ORDER BY "pos" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_988 (
id number,
"responsible minister(s)" text,
"crown entities" text,
"monitoring department(s)" text,
"category / type" text,
"empowering legislation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many companies fall under the ace category
### Response:
|
SELECT COUNT("crown entities") FROM table_204_988 WHERE "category / type" = 'ace'
|
### Instruction:
CREATE TABLE table_50167 (
"Cartridge" text,
"Bullet weight" text,
"Muzzle velocity" text,
"Muzzle energy" text,
"Max pressure" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the bullet weight with a 12,000 cup max pressure?
### Response:
|
SELECT "Bullet weight" FROM table_50167 WHERE "Max pressure" = '12,000 cup'
|
### Instruction:
CREATE TABLE table_25053 (
"Rank Subcontinent" real,
"Rank Asia" real,
"Rank World" real,
"Country" text,
"2011 GDP (PPP) billions of USD" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of rank world for bhutan
### Response:
|
SELECT COUNT("Rank World") FROM table_25053 WHERE "Country" = 'Bhutan'
|
### Instruction:
CREATE TABLE table_739 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the district with incumbent being lawrence h. fountain
### Response:
|
SELECT "District" FROM table_739 WHERE "Incumbent" = 'Lawrence H. Fountain'
|
### Instruction:
CREATE TABLE table_203_98 (
id number,
"title" text,
"year" number,
"director" text,
"budget" text,
"gross (worldwide)" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many films did morgan creek make in 2006 ?
### Response:
|
SELECT COUNT("title") FROM table_203_98 WHERE "year" = 2006
|
### Instruction:
CREATE TABLE table_203_836 (
id number,
"title" text,
"year" number,
"platforms" text,
"developer" text,
"publisher" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the last game created by spicy horse
### Response:
|
SELECT "title" FROM table_203_836 WHERE "developer" = 'spicy horse' ORDER BY "year" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_14471 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the Blue Jays had an attendance larger than 9,430?
### Response:
|
SELECT "Score" FROM table_14471 WHERE "Attendance" > '9,430'
|
### Instruction:
CREATE TABLE table_67945 (
"Date" text,
"Round" text,
"Opponents" text,
"Result F\u2013A" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most attendance for 25 january 2004
### Response:
|
SELECT MAX("Attendance") FROM table_67945 WHERE "Date" = '25 january 2004'
|
### Instruction:
CREATE TABLE table_45284 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of Golds with more bronzes than 1 and totaled larger than 4?
### Response:
|
SELECT COUNT("Gold") FROM table_45284 WHERE "Bronze" > '1' AND "Total" > '4'
|
### Instruction:
CREATE TABLE table_name_70 (
position INTEGER,
goal_difference VARCHAR,
goals_against VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest position of the club with 53 goals against, 26 points, and a -11 goal difference?
### Response:
|
SELECT MIN(position) FROM table_name_70 WHERE goals_against = 53 AND points = 26 AND goal_difference > -11
|
### Instruction:
CREATE TABLE table_18603 (
"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 polling areas are there with John Taber as the sitting Representative?
### Response:
|
SELECT COUNT("District") FROM table_18603 WHERE "Incumbent" = 'John Taber'
|
### Instruction:
CREATE TABLE table_name_41 (
attribute VARCHAR,
type VARCHAR,
category VARCHAR,
bubbles VARCHAR,
cancelable VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Event has Bubbles of yes, Cancelable of yes, Category of mouse, and a Type of contextmenu what is the Attribute?
### Response:
|
SELECT attribute FROM table_name_41 WHERE bubbles = "yes" AND cancelable = "yes" AND category = "mouse" AND type = "contextmenu"
|
### Instruction:
CREATE TABLE table_77636 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps did Ricardo Zonta drive with a grid less than 14?
### Response:
|
SELECT SUM("Laps") FROM table_77636 WHERE "Grid" < '14' AND "Driver" = 'ricardo zonta'
|
### Instruction:
CREATE TABLE table_54398 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Record at the game that had an attendance of 21,191?
### Response:
|
SELECT "Record" FROM table_54398 WHERE "Attendance" = '21,191'
|
### Instruction:
CREATE TABLE table_204_353 (
id number,
"no." number,
"date/time" text,
"aircraft" text,
"foe" text,
"result" text,
"location" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- at least how many aircrafts were forced to land
### Response:
|
SELECT COUNT(*) FROM table_204_353 WHERE "result" = 'forced to land'
|
### Instruction:
CREATE TABLE table_19697 (
"Year" text,
"General Election" text,
"Seats Won" real,
"Change in Seat" real,
"% of votes" text,
"votes swing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which general election had a vote swing of 1.84?
### Response:
|
SELECT "General Election" FROM table_19697 WHERE "votes swing" = '1.84'
|
### Instruction:
CREATE TABLE table_52476 (
"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 date did Footscray play at home?
### Response:
|
SELECT "Date" FROM table_52476 WHERE "Home team" = 'footscray'
|
### Instruction:
CREATE TABLE table_4594 (
"Name" text,
"Bullet" text,
"Length" text,
"Base" text,
"Shoulder" text,
"Neck" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which bullet has a Length of 33.78 (1.33)?
### Response:
|
SELECT "Bullet" FROM table_4594 WHERE "Length" = '33.78 (1.33)'
|
### Instruction:
CREATE TABLE table_60909 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the shooter with 13 score points and 10 rank points?
### Response:
|
SELECT "Shooter" FROM table_60909 WHERE "Score points" = '13' AND "Rank points" = '10'
|
### Instruction:
CREATE TABLE table_73046 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When thomas l fkvist is the general classification who is the winner?
### Response:
|
SELECT "Winner" FROM table_73046 WHERE "General classification" = 'Thomas Löfkvist'
|
### Instruction:
CREATE TABLE table_34086 (
"Date" text,
"Opponent" text,
"Result" text,
"Score" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record of the game with a Score of 107 108?
### Response:
|
SELECT "Record" FROM table_34086 WHERE "Score" = '107–108'
|
### Instruction:
CREATE TABLE table_203_33 (
id number,
"conference" text,
"date" text,
"place" text,
"attendance" number,
"archive of presentations" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many people attended the first wikimania conference in 2005 ?
### Response:
|
SELECT "attendance" FROM table_203_33 WHERE "conference" = 'wikimania 2005'
|
### Instruction:
CREATE TABLE table_21983 (
"Season" text,
"Division North" text,
"Division South" text,
"Division East" text,
"Division West" text,
"Division Southwest" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many division southwest was there when division east was babi
### Response:
|
SELECT COUNT("Division Southwest") FROM table_21983 WHERE "Division East" = 'Babi'
|
### Instruction:
CREATE TABLE table_name_26 (
game INTEGER,
date VARCHAR,
opponent VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest game with Oakland Seals opponent and a record of 27-30-6 on a date more than 7?
### Response:
|
SELECT MAX(game) FROM table_name_26 WHERE opponent = "oakland seals" AND record = "27-30-6" AND date > 7
|
### Instruction:
CREATE TABLE table_68489 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the event with a competition type of friendly and a result of 4-5?
### Response:
|
SELECT "Score" FROM table_68489 WHERE "Competition" = 'friendly' AND "Result" = '4-5'
|
### Instruction:
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of companies whose revenue is greater than the average revenue of all companies.
### Response:
|
SELECT name FROM manufacturers WHERE revenue > (SELECT AVG(revenue) FROM manufacturers)
|
### Instruction:
CREATE TABLE table_18077713_1 (
net_profit__us_$m_ VARCHAR,
revenue__us_$million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much is the net profit when the revenue is 150.6 million dollars?
### Response:
|
SELECT net_profit__us_$m_ FROM table_18077713_1 WHERE revenue__us_$million_ = "150.6"
|
### Instruction:
CREATE TABLE table_16610 (
"Wicket" text,
"Runs" text,
"Batting partners" text,
"Batting team" text,
"Fielding team" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the batting team at Durham
### Response:
|
SELECT "Batting team" FROM table_16610 WHERE "Fielding team" = 'Durham'
|
### Instruction:
CREATE TABLE table_77904 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent does she fight when she is 10-1?
### Response:
|
SELECT "Opponent" FROM table_77904 WHERE "Record" = '10-1'
|
### Instruction:
CREATE TABLE table_36801 (
"Player" text,
"Attempts" real,
"Yards" real,
"Average" real,
"Long" real,
"Touchdowns" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lease amount of touchdowns with 1318 yards?
### Response:
|
SELECT MIN("Touchdowns") FROM table_36801 WHERE "Yards" = '1318'
|
### Instruction:
CREATE TABLE table_62155 (
"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 is T4 Place Player Nick Price's Money?
### Response:
|
SELECT "Money ( $ )" FROM table_62155 WHERE "Place" = 't4' AND "Player" = 'nick price'
|
### Instruction:
CREATE TABLE table_name_58 (
class_aAA VARCHAR,
class_aAAAA VARCHAR,
duncanville VARCHAR,
school_year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the class AAA of the 1993-94 school year with a class AAAAA of Duncanville?
### Response:
|
SELECT class_aAA FROM table_name_58 WHERE class_aAAAA = duncanville AND school_year = "1993-94"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.