instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_25355392_2 (
june_10_11 VARCHAR,
march_27_29 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is june 10-11 when march 27-29 is 149?
### Response:
|
SELECT june_10_11 FROM table_25355392_2 WHERE march_27_29 = "149"
|
### Instruction:
CREATE TABLE table_name_14 (
golden_point_s__scorer VARCHAR,
away VARCHAR,
home VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Golden point(s) scorer has the Away Brisbane Broncos and Home South Sydney Rabbitohs?
### Response:
|
SELECT golden_point_s__scorer FROM table_name_14 WHERE away = "brisbane broncos" AND home = "south sydney rabbitohs"
|
### Instruction:
CREATE TABLE table_203_186 (
id number,
"painter" text,
"composition" number,
"drawing" number,
"color" number,
"expression" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of painters who scored 12 in composition ?
### Response:
|
SELECT COUNT("painter") FROM table_203_186 WHERE "composition" = 12
|
### Instruction:
CREATE TABLE table_name_64 (
entrant VARCHAR,
points VARCHAR,
year VARCHAR,
engine VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- After 1961, who as the Entrant when the engine was a Ferrari v8, and when the points were lower than 23?
### Response:
|
SELECT entrant FROM table_name_64 WHERE year > 1961 AND engine = "ferrari v8" AND points < 23
|
### Instruction:
CREATE TABLE table_77939 (
"Player" text,
"Date of Birth" text,
"Batting Style" text,
"Bowling Style" text,
"First Class Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What first class team does sanath jayasuriya play for?
### Response:
|
SELECT "First Class Team" FROM table_77939 WHERE "Player" = 'sanath jayasuriya'
|
### Instruction:
CREATE TABLE table_19041 (
"Episode" text,
"Original Air Date" text,
"Viewers (millions)" text,
"Presenter" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was held the ceremony for the 12th Pride of Britain Awards?
### Response:
|
SELECT "Location" FROM table_19041 WHERE "Episode" = '12th Pride of Britain Awards'
|
### Instruction:
CREATE TABLE table_48114 (
"Province" text,
"Largest city" text,
"2nd Largest" text,
"3rd Largest" text,
"4th largest" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What province has the largest city of Birjand?
### Response:
|
SELECT "Province" FROM table_48114 WHERE "Largest city" = 'birjand'
|
### Instruction:
CREATE TABLE table_203_392 (
id number,
"rank" text,
"belt alternate 1" text,
"belt alternate 2" text,
"belt alternate 3" text,
"belt alternate 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many different ranks exist for karate belts ?
### Response:
|
SELECT COUNT(DISTINCT "rank") FROM table_203_392
|
### Instruction:
CREATE TABLE table_name_97 (
school_club_team VARCHAR,
player VARCHAR,
round VARCHAR,
pick VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which School/Club Team has a Round smaller than 5, a Pick larger than 1, and a Player of reggie mckenzie?
### Response:
|
SELECT school_club_team FROM table_name_97 WHERE round < 5 AND pick > 1 AND player = "reggie mckenzie"
|
### Instruction:
CREATE TABLE table_54492 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the Score was 4-10, what was the Attendance?
### Response:
|
SELECT "Attendance" FROM table_54492 WHERE "Score" = '4-10'
|
### Instruction:
CREATE TABLE table_50174 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the To par for the player whose final score was 67-71=138?
### Response:
|
SELECT "To par" FROM table_50174 WHERE "Score" = '67-71=138'
|
### Instruction:
CREATE TABLE table_52371 (
"Party" text,
"Leader" text,
"Votes" real,
"Percentage" text,
"Seats" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which highest number of Seats has votes of 244,867?
### Response:
|
SELECT MAX("Seats") FROM table_52371 WHERE "Votes" = '244,867'
|
### Instruction:
CREATE TABLE table_39490 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" real,
"Song" text,
"Artist" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the song by Andy Gibb issued?
### Response:
|
SELECT "Issue Date(s)" FROM table_39490 WHERE "Artist" = 'andy gibb'
|
### Instruction:
CREATE TABLE table_31143 (
"Season" real,
"Winner" text,
"Runner-up" text,
"Third place" text,
"Fourth place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the runner up the season that Sagawa Express came in fourth?
### Response:
|
SELECT "Runner-up" FROM table_31143 WHERE "Fourth place" = 'Sagawa Express'
|
### Instruction:
CREATE TABLE table_name_18 (
founded INTEGER,
stadium VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the team Club of atl tico de san juan fc who plays at hiram bithorn stadium founded.
### Response:
|
SELECT SUM(founded) FROM table_name_18 WHERE stadium = "hiram bithorn stadium" AND club = "atlético de san juan fc"
|
### Instruction:
CREATE TABLE table_70836 (
"Name" text,
"Frequency" text,
"Language" text,
"City" text,
"Website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which city has spanish news on the website ultimahora.com ?
### Response:
|
SELECT "City" FROM table_70836 WHERE "Language" = 'spanish' AND "Website" = 'ultimahora.com'
|
### Instruction:
CREATE TABLE table_10504 (
"Grid" real,
"Constructor" text,
"Qual" real,
"Rank" real,
"Laps" real,
"Time/retired" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average rank of one who is at 76 laps?
### Response:
|
SELECT AVG("Rank") FROM table_10504 WHERE "Laps" = '76'
|
### Instruction:
CREATE TABLE table_14565 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Record that has a Loss of mays (0-3)?
### Response:
|
SELECT "Record" FROM table_14565 WHERE "Loss" = 'mays (0-3)'
|
### Instruction:
CREATE TABLE table_203_330 (
id number,
"year of election" number,
"candidates elected" number,
"# of seats available" number,
"# of votes" number,
"% of popular vote" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year had the most candidates elected ?
### Response:
|
SELECT "year of election" FROM table_203_330 ORDER BY "candidates elected" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_51557 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text,
"Arena" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at the Staples Center?
### Response:
|
SELECT "Opponent" FROM table_51557 WHERE "Arena" = 'staples center'
|
### Instruction:
CREATE TABLE table_7052 (
"Country" text,
"Host" text,
"Channel" text,
"Premiere" text,
"Jackpot" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the host of the premiere on November 10, 2007?
### Response:
|
SELECT "Host" FROM table_7052 WHERE "Premiere" = 'november 10, 2007'
|
### Instruction:
CREATE TABLE table_9768 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player had a position of OT during round 27?
### Response:
|
SELECT "Name" FROM table_9768 WHERE "Position" = 'ot' AND "Round" = '27'
|
### Instruction:
CREATE TABLE table_37059 (
"Player" text,
"Team" text,
"Score" text,
"Versus" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what team played against zimbabwe in 1999?
### Response:
|
SELECT "Team" FROM table_37059 WHERE "Year" = '1999' AND "Versus" = 'zimbabwe'
|
### Instruction:
CREATE TABLE table_18268826_1 (
no_in_season INTEGER,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the season number of the episode viewed by 3.19 million people in the US?
### Response:
|
SELECT MAX(no_in_season) FROM table_18268826_1 WHERE us_viewers__million_ = "3.19"
|
### Instruction:
CREATE TABLE table_70335 (
"Race" real,
"Circuit" text,
"Location / State" text,
"Date" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many races were in the Mallala Motor Sport Park circuit?
### Response:
|
SELECT COUNT("Race") FROM table_70335 WHERE "Circuit" = 'mallala motor sport park'
|
### Instruction:
CREATE TABLE table_203_538 (
id number,
"flight" text,
"date" text,
"payload nickname" text,
"payload" text,
"orbit" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many partial failures of h ii flights were there ?
### Response:
|
SELECT COUNT(*) FROM table_203_538 WHERE "result" = 'partial failure'
|
### Instruction:
CREATE TABLE table_742 (
"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 candidates ran in the election that included john shelley?
### Response:
|
SELECT "Candidates" FROM table_742 WHERE "Incumbent" = 'John Shelley'
|
### Instruction:
CREATE TABLE table_14078 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"# / County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the school located that has mustangs as a mascot?
### Response:
|
SELECT "Location" FROM table_14078 WHERE "Mascot" = 'mustangs'
|
### Instruction:
CREATE TABLE table_name_61 (
games INTEGER,
goals_against VARCHAR,
lost VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games were lost by more than 27 but not more 78 with goals less than 300?
### Response:
|
SELECT AVG(games) FROM table_name_61 WHERE lost > 27 AND points < 78 AND goals_against < 300
|
### Instruction:
CREATE TABLE table_35140 (
"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 the Hand that has a 1 credit of 1?
### Response:
|
SELECT "Hand" FROM table_35140 WHERE "1 credit" = '1'
|
### Instruction:
CREATE TABLE table_50675 (
"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 was the finish for the golfer with a total of 285?
### Response:
|
SELECT "Finish" FROM table_50675 WHERE "Total" = '285'
|
### Instruction:
CREATE TABLE table_67097 (
"Player" text,
"Years" text,
"Games played" real,
"Goals allowed" real,
"Goals against average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average goals against average for those playing more than 78 games?
### Response:
|
SELECT AVG("Goals against average") FROM table_67097 WHERE "Games played" > '78'
|
### Instruction:
CREATE TABLE table_38119 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What home has 136-134 as the score?
### Response:
|
SELECT "Home" FROM table_38119 WHERE "Score" = '136-134'
|
### Instruction:
CREATE TABLE table_70364 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average total for gold less than 1 and rank less than 5
### Response:
|
SELECT AVG("Total") FROM table_70364 WHERE "Gold" < '1' AND "Rank" < '5'
|
### Instruction:
CREATE TABLE table_45790 (
"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.
-- On what date is Jerilyn Britz the runner-up?
### Response:
|
SELECT "Date" FROM table_45790 WHERE "Runner(s)-up" = 'jerilyn britz'
|
### Instruction:
CREATE TABLE table_204_500 (
id number,
"year" number,
"title" text,
"peak chart positions\nus country" number,
"peak chart positions\nus" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the last single kitty wells released ?
### Response:
|
SELECT "title" FROM table_204_500 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_69354 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Time" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score on August 19?
### Response:
|
SELECT "Score" FROM table_69354 WHERE "Date" = 'august 19'
|
### Instruction:
CREATE TABLE table_76254 (
"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 from for the Date From of 2007-08-08?
### Response:
|
SELECT "From" FROM table_76254 WHERE "Date From" = '2007-08-08'
|
### Instruction:
CREATE TABLE table_7911 (
"Team 1" text,
"Score" text,
"Team 2" text,
"1st round" text,
"2nd round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is team 2 when team 1 is fc rouen (d1)?
### Response:
|
SELECT "Team 2" FROM table_7911 WHERE "Team 1" = 'fc rouen (d1)'
|
### Instruction:
CREATE TABLE table_34964 (
"Season" text,
"Champions" text,
"Runners-up" text,
"Promotion Playoff" text,
"Standings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Standings of Eintracht Braunschweig?
### Response:
|
SELECT "Standings" FROM table_34964 WHERE "Champions" = 'eintracht braunschweig'
|
### Instruction:
CREATE TABLE table_15875 (
"Player" text,
"No." text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During which years was Marcus Banks in Toronto?
### Response:
|
SELECT "Years in Toronto" FROM table_15875 WHERE "Player" = 'Marcus Banks'
|
### Instruction:
CREATE TABLE table_24334163_1 (
Winners INTEGER,
total_money_won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest amount of group legs won when the prize money was 21,850?
### Response:
|
SELECT MAX(Winners) AS group_legs_won FROM table_24334163_1 WHERE total_money_won = "£21,850"
|
### Instruction:
CREATE TABLE table_55962 (
"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.
-- Name the least attendance with carolina visitor
### Response:
|
SELECT MIN("Attendance") FROM table_55962 WHERE "Visitor" = 'carolina'
|
### Instruction:
CREATE TABLE table_name_65 (
engine_configuration_ VARCHAR,
_notes_0_100km_h VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the engine configuration & notes 0-100km/h with a model with 2.3 t5?
### Response:
|
SELECT engine_configuration_ & _notes_0_100km_h FROM table_name_65 WHERE model = "2.3 t5"
|
### Instruction:
CREATE TABLE table_65811 (
"Airing date" text,
"English title (Chinese title)" text,
"Number of episodes" real,
"Genre" text,
"Official website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the airing date for the show with 62 episodes?
### Response:
|
SELECT "Airing date" FROM table_65811 WHERE "Number of episodes" = '62'
|
### Instruction:
CREATE TABLE table_52044 (
"Series" text,
"Years" text,
"Magazine" text,
"Albums" text,
"Editor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which series with a total of 27 albums did Dargaud edit?
### Response:
|
SELECT "Series" FROM table_52044 WHERE "Editor" = 'dargaud' AND "Albums" = '27'
|
### Instruction:
CREATE TABLE table_29283 (
"Position" real,
"Building" text,
"City" text,
"Height" text,
"Number of floors" real,
"Completion" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions does building Costanera Center Torre 1 have?
### Response:
|
SELECT COUNT("Position") FROM table_29283 WHERE "Building" = 'Costanera Center Torre 1'
|
### Instruction:
CREATE TABLE table_59775 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the broadcast date with 7.0 million viewers?
### Response:
|
SELECT "Broadcast date" FROM table_59775 WHERE "Viewers (in millions)" = '7.0'
|
### Instruction:
CREATE TABLE table_42499 (
"Year" real,
"Winner" text,
"School" text,
"Position" text,
"Points" text,
"% of Points Possible" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the % of points possible of the winner from Penn State?
### Response:
|
SELECT "% of Points Possible" FROM table_42499 WHERE "School" = 'penn state'
|
### Instruction:
CREATE TABLE acceptance (
submission_id number,
workshop_id number,
result text
)
CREATE TABLE workshop (
workshop_id number,
date text,
venue text,
name text
)
CREATE TABLE submission (
submission_id number,
scores number,
author text,
college text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many submissions are there?
### Response:
|
SELECT COUNT(*) FROM submission
|
### Instruction:
CREATE TABLE table_2597 (
"Market Rank & City of license /Market" text,
"Station" text,
"Channel TV / DT" text,
"Owned since" real,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the station WLS-TV owned since?
### Response:
|
SELECT "Owned since" FROM table_2597 WHERE "Station" = 'WLS-TV'
|
### Instruction:
CREATE TABLE table_6607 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which visitor has detroit as the home, and february 24 as the date?
### Response:
|
SELECT "Visitor" FROM table_6607 WHERE "Home" = 'detroit' AND "Date" = 'february 24'
|
### Instruction:
CREATE TABLE table_76045 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of bronze medals for total of all nations?
### Response:
|
SELECT AVG("Bronze") FROM table_76045 WHERE "Nation" = 'total'
|
### Instruction:
CREATE TABLE table_50360 (
"Team" text,
"Head Coach" text,
"Team Captain" text,
"Kitmaker" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the team whose shirt sponsor is Evonik, who is the kitmaker?
### Response:
|
SELECT "Kitmaker" FROM table_50360 WHERE "Shirt sponsor" = 'evonik'
|
### Instruction:
CREATE TABLE table_203_374 (
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.
-- who has the most bronze medals ?
### Response:
|
SELECT "nation" FROM table_203_374 ORDER BY "bronze" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_4316 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Player is from Argentina and whose position is a guard-forward?
### Response:
|
SELECT "Player" FROM table_4316 WHERE "Position" = 'guard-forward' AND "Nationality" = 'argentina'
|
### Instruction:
CREATE TABLE table_46640 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winners" text,
"Finalists" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Tournament, when Week is November 23?
### Response:
|
SELECT "Tournament" FROM table_46640 WHERE "Week" = 'november 23'
|
### Instruction:
CREATE TABLE table_15678 (
"Artist" text,
"Country of origin" text,
"Period active" text,
"Release-year of first charted record" real,
"Genre" text,
"Claimed sales" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the active period for the pop genre?
### Response:
|
SELECT "Period active" FROM table_15678 WHERE "Genre" = 'pop'
|
### Instruction:
CREATE TABLE table_203_689 (
id number,
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the number of baskets houston scored on may 25th ?
### Response:
|
SELECT "score" FROM table_203_689 WHERE "date" = 'may 25'
|
### Instruction:
CREATE TABLE table_43395 (
"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.
-- What was the winning score with a margin victory of 2 strokes?
### Response:
|
SELECT "Winning score" FROM table_43395 WHERE "Margin of victory" = '2 strokes'
|
### Instruction:
CREATE TABLE table_68750 (
"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 is the total attendance at games with a score of 4-2?
### Response:
|
SELECT COUNT("Attendance") FROM table_68750 WHERE "Score" = '4-2'
|
### Instruction:
CREATE TABLE table_name_74 (
connection_with_australia VARCHAR,
connection_with_america VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the connection with Australia when the connection with America shows born in the u.s.; mother is u.s. citizen?
### Response:
|
SELECT connection_with_australia FROM table_name_74 WHERE connection_with_america = "born in the u.s.; mother is u.s. citizen"
|
### Instruction:
CREATE TABLE table_name_54 (
theme VARCHAR,
year VARCHAR,
artist VARCHAR,
issue_price VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Theme of Christie Paquet after 2004 with an Issue Price of $34.95?
### Response:
|
SELECT theme FROM table_name_54 WHERE artist = "christie paquet" AND issue_price = "$34.95" AND year > 2004
|
### Instruction:
CREATE TABLE table_204_308 (
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.
-- country with the most bronze medals .
### Response:
|
SELECT "nation" FROM table_204_308 ORDER BY "bronze" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_77 (
goal_difference INTEGER,
losses VARCHAR,
points VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Goal Difference has 28 Points, and a Club of cd cartagena, more than 15 losses?
### Response:
|
SELECT MAX(goal_difference) FROM table_name_77 WHERE points = 28 AND club = "cd cartagena" AND losses > 15
|
### Instruction:
CREATE TABLE table_68602 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a record of 17-11?
### Response:
|
SELECT "Opponent" FROM table_68602 WHERE "Record" = '17-11'
|
### Instruction:
CREATE TABLE table_name_78 (
points INTEGER,
goals VARCHAR,
assists VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the goals scored were below 6, 11 games were played, and there were 7 assists, what's the sum of points with games meeting these criteria?
### Response:
|
SELECT SUM(points) FROM table_name_78 WHERE assists = 7 AND games = 11 AND goals < 6
|
### Instruction:
CREATE TABLE table_27553 (
"Player" text,
"Games Played" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players 89 points?
### Response:
|
SELECT COUNT("Blocks") FROM table_27553 WHERE "Points" = '89'
|
### Instruction:
CREATE TABLE table_41391 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff Time" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the kickoff time for week 11's game?
### Response:
|
SELECT "Kickoff Time" FROM table_41391 WHERE "Week" = '11'
|
### Instruction:
CREATE TABLE table_74787 (
"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 result of the game on December 22, 1991?
### Response:
|
SELECT "Result" FROM table_74787 WHERE "Date" = 'december 22, 1991'
|
### Instruction:
CREATE TABLE table_203_808 (
id number,
"rank" number,
"peak name" text,
"elevation" text,
"location" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many peaks are below 3200 feet ?
### Response:
|
SELECT COUNT("peak name") FROM table_203_808 WHERE "elevation" < 3200
|
### Instruction:
CREATE TABLE table_37944 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Attendance has a Record of 34 51?
### Response:
|
SELECT MIN("Attendance") FROM table_37944 WHERE "Record" = '34–51'
|
### Instruction:
CREATE TABLE table_204_320 (
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.
-- which country has the most gold medals ?
### Response:
|
SELECT "nation" FROM table_204_320 ORDER BY "gold" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_41692 (
"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.
-- Which 2nd leg has pamesa valencia for team #2?
### Response:
|
SELECT "2nd leg" FROM table_41692 WHERE "Team #2" = 'pamesa valencia'
|
### Instruction:
CREATE TABLE table_33623 (
"Year" text,
"1st Position" text,
"2nd Position" text,
"9th Position" text,
"10th Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is in the ninth position where the tenth position is rabat ajax?
### Response:
|
SELECT "9th Position" FROM table_33623 WHERE "10th Position" = 'rabat ajax'
|
### Instruction:
CREATE TABLE table_61692 (
"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 is the date for Watford and player Lionel Ainsworth?
### Response:
|
SELECT "Date To" FROM table_61692 WHERE "From" = 'watford' AND "Name" = 'lionel ainsworth'
|
### Instruction:
CREATE TABLE table_name_10 (
crew_chief VARCHAR,
team VARCHAR,
driver_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the crew chief of team Chip Ganassi Racing with Felix Sabates, which has Casey Mears as the driver?
### Response:
|
SELECT crew_chief FROM table_name_10 WHERE team = "chip ganassi racing with felix sabates" AND driver_s_ = "casey mears"
|
### Instruction:
CREATE TABLE table_204_301 (
id number,
"nationality" text,
"name" text,
"term as a deputy judge" text,
"reason for termination" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country had the most deputy judges ?
### Response:
|
SELECT "nationality" FROM table_204_301 GROUP BY "nationality" ORDER BY COUNT("name") DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_1964010_2 (
opponents VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the opponents of Mike Byron and partner in matches where the score was 6 4, 4 6, 7 6 (7 4)?
### Response:
|
SELECT opponents FROM table_1964010_2 WHERE score = "6–4, 4–6, 7–6 (7–4)"
|
### Instruction:
CREATE TABLE table_16835 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country is the player that went to Oregon?
### Response:
|
SELECT "Nationality" FROM table_16835 WHERE "School/Club Team" = 'Oregon'
|
### Instruction:
CREATE TABLE table_43402 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Skip for Germany?
### Response:
|
SELECT "Skip" FROM table_43402 WHERE "Nation" = 'germany'
|
### Instruction:
CREATE TABLE table_73674 (
"Club" text,
"Home city" text,
"Stadium" text,
"First season in the Serie A" real,
"First season in current spell" real,
"Last title" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the last title for cuenca
### Response:
|
SELECT "Last title" FROM table_73674 WHERE "Home city" = 'Cuenca'
|
### Instruction:
CREATE TABLE table_11820 (
"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.
-- Name the record when the visitor is mavericks
### Response:
|
SELECT "Record" FROM table_11820 WHERE "Visitor" = 'mavericks'
|
### Instruction:
CREATE TABLE table_34513 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Record of 6 8 had what attendance?
### Response:
|
SELECT "Attendance" FROM table_34513 WHERE "Record" = '6–8'
|
### Instruction:
CREATE TABLE table_69657 (
"Player" text,
"Score" text,
"Balls" real,
"Opponent" text,
"Ground" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played on waca ground and scored 79 points?
### Response:
|
SELECT "Opponent" FROM table_69657 WHERE "Ground" = 'waca ground' AND "Score" = '79'
|
### Instruction:
CREATE TABLE table_name_83 (
position VARCHAR,
jersey__number VARCHAR,
birthdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position of the player with a jersey # greater than 30 and a December 23, 1986 birthdate?
### Response:
|
SELECT position FROM table_name_83 WHERE jersey__number > 30 AND birthdate = "december 23, 1986"
|
### Instruction:
CREATE TABLE table_25355501_2 (
november_3 VARCHAR,
august_21_22 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is shown for november 3 when august 21-22 is august 22, 1998?
### Response:
|
SELECT november_3 FROM table_25355501_2 WHERE august_21_22 = "August 22, 1998"
|
### Instruction:
CREATE TABLE table_30209 (
"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.
-- How many event dates occurred when event details were women's sabre?
### Response:
|
SELECT COUNT("Event Date") FROM table_30209 WHERE "Event Details" = 'Women''s Sabre'
|
### Instruction:
CREATE TABLE table_6034 (
"Year" real,
"Group" text,
"Award" text,
"Film/Series" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which group nominated Kim in years before 2010 for Thirst?
### Response:
|
SELECT "Group" FROM table_6034 WHERE "Year" < '2010' AND "Film/Series" = 'thirst'
|
### Instruction:
CREATE TABLE table_66230 (
"!Event" real,
"Round" text,
"Surface" text,
"Winner" text,
"Opponent" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is iv n navarro's opponent?
### Response:
|
SELECT "Opponent" FROM table_66230 WHERE "Result" = 'iván navarro'
|
### Instruction:
CREATE TABLE table_1261 (
"Name" text,
"Position" text,
"Number" real,
"School/Club Team" text,
"Season" text,
"Acquisition via" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Namethe school team for season 2008
### Response:
|
SELECT "School/Club Team" FROM table_1261 WHERE "Season" = '2008'
|
### Instruction:
CREATE TABLE table_18123 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many party were listed for district oklahoma 5?
### Response:
|
SELECT COUNT("Party") FROM table_18123 WHERE "District" = 'Oklahoma 5'
|
### Instruction:
CREATE TABLE table_16423070_4 (
track_ VARCHAR,
_field VARCHAR,
swimming VARCHAR,
volleyball VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country won swimming track & field when lexington won swimming and madison won volleyball
### Response:
|
SELECT track_ & _field FROM table_16423070_4 WHERE swimming = "Lexington" AND volleyball = "Madison"
|
### Instruction:
CREATE TABLE table_52144 (
"Result" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the fight that had a tko (low kicks)?
### Response:
|
SELECT "Result" FROM table_52144 WHERE "Method" = 'tko (low kicks)'
|
### Instruction:
CREATE TABLE table_19229 (
"Country/Territory" text,
"Former pageant" text,
"Last competed" real,
"New pageant" text,
"Franchise since" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many new pageants does Aruba have?
### Response:
|
SELECT COUNT("New pageant") FROM table_19229 WHERE "Country/Territory" = 'Aruba'
|
### Instruction:
CREATE TABLE table_75713 (
"Week #" text,
"Theme" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the order number that has top 20 (10 women) as the week number?
### Response:
|
SELECT "Order #" FROM table_75713 WHERE "Week #" = 'top 20 (10 women)'
|
### Instruction:
CREATE TABLE table_11495 (
"Date" text,
"Opponent" text,
"Home/Away" text,
"Field" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game away against Pride?
### Response:
|
SELECT "Date" FROM table_11495 WHERE "Opponent" = 'pride' AND "Home/Away" = 'away'
|
### Instruction:
CREATE TABLE table_1341423_40 (
first_elected INTEGER,
results VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the earliest first elected with the results re-elected in the district south carolina 3?
### Response:
|
SELECT MAX(first_elected) FROM table_1341423_40 WHERE results = "Re-elected" AND district = "South Carolina 3"
|
### Instruction:
CREATE TABLE table_203_125 (
id number,
"club" text,
"winners" number,
"runner-ups" number,
"winning years" text,
"runner-up years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years was sk sturm graz winner ?
### Response:
|
SELECT "winners" FROM table_203_125 WHERE "club" = 'sk sturm graz'
|
### Instruction:
CREATE TABLE table_75206 (
"Game #" real,
"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 record of the game on November 22?
### Response:
|
SELECT "Record" FROM table_75206 WHERE "Date" = 'november 22'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.