instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_71639 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the position in 2006?
### Response:
| SELECT "Pos." FROM table_71639 WHERE "Year" = '2006' |
### Instruction:
CREATE TABLE table_32715 (
"Team" text,
"Bowl" text,
"Season coach" text,
"Interim head coach" text,
"Result" text,
"2008 head coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team has a bowl of humanitarian?
### Res... | SELECT "Team" FROM table_32715 WHERE "Bowl" = 'humanitarian' |
### Instruction:
CREATE TABLE table_16839 (
"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 school is Kirk Snyder from?
### Response... | SELECT "School/Club Team" FROM table_16839 WHERE "Player" = 'Kirk Snyder' |
### Instruction:
CREATE TABLE table_75523 (
"S.No." real,
"Name of janapada" text,
"Name of King" text,
"No. of villages" real,
"Capital" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest S number with a capital of Shekhsar?
### R... | SELECT MAX("S.No.") FROM table_75523 WHERE "Capital" = 'shekhsar' |
### Instruction:
CREATE TABLE table_24722 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Title in the original language" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the results for the fi... | SELECT COUNT("Result") FROM table_24722 WHERE "Title in the original language" = 'Joki' |
### Instruction:
CREATE TABLE table_204_958 (
id number,
"episode" number,
"original broadcast date" text,
"average" number,
"rank" number,
"remarks" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many episodes had an average over 0.75 ?
#... | SELECT COUNT("episode") FROM table_204_958 WHERE "average" > 0.75 |
### Instruction:
CREATE TABLE table_54999 (
"Fare Categories" text,
"Base Fares" text,
"Day Pass" text,
"7-Day Pass" text,
"30-Day Pass" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Base Fare in the senior/disabled category?
### Resp... | SELECT "Base Fares" FROM table_54999 WHERE "Fare Categories" = 'senior/disabled' |
### Instruction:
CREATE TABLE table_80316 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue had an extra of Team Competition and a result of 1st?
### Response:
| SELECT "Venue" FROM table_80316 WHERE "Extra" = 'team competition' AND "Result" = '1st' |
### Instruction:
CREATE TABLE table_3651 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the player kevin ... | SELECT "Nationality" FROM table_3651 WHERE "Player" = 'Kevin Stevens' |
### Instruction:
CREATE TABLE table_8906 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Week on December 17?
### Response:... | SELECT MIN("Week") FROM table_8906 WHERE "Date" = 'december 17' |
### Instruction:
CREATE TABLE table_name_61 (
years_at_club VARCHAR,
games VARCHAR,
goals VARCHAR,
debut_year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the years for the player with fewer than 62 goals, debut year of 1981 and 28 games?
... | SELECT years_at_club FROM table_name_61 WHERE goals < 62 AND debut_year = 1981 AND games = 28 |
### Instruction:
CREATE TABLE table_203_697 (
id number,
"player" text,
"career" text,
"nickname" text,
"team inducted as" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players were inducted as players of the philadelphia phillies ?
### ... | SELECT COUNT("player") FROM table_203_697 WHERE "team inducted as" = 'philadelphia phillies' |
### Instruction:
CREATE TABLE table_203_583 (
id number,
"title" text,
"release" number,
"6th gen" text,
"handheld" text,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of titles released by psikyo in 2004 ?
### Respo... | SELECT COUNT("title") FROM table_203_583 WHERE "release" = 2004 |
### Instruction:
CREATE TABLE table_4277 (
"Season" real,
"Date" text,
"Location" text,
"Discipline" text,
"Position" real,
"FIS points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date for s. valentino alla muta , italia
### Respo... | SELECT "Date" FROM table_4277 WHERE "Location" = 'S. Valentino Alla Muta , Italia' |
### Instruction:
CREATE TABLE table_38247 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Games have a Drawn smaller than 1, and a Lost smaller than 1?
### Response... | SELECT "Games" FROM table_38247 WHERE "Drawn" < '1' AND "Lost" < '1' |
### Instruction:
CREATE TABLE table_name_6 (
week_12_nov_16 VARCHAR,
week_3_sept_14 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the week 12 opponent for the year that had a week 3 opponent of South Florida (3-0)?
### Response:
| SELECT week_12_nov_16 FROM table_name_6 WHERE week_3_sept_14 = "south florida (3-0)" |
### Instruction:
CREATE TABLE table_22354 (
"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.
-- Which district did Ralph Harvey (r) vacated when he resig... | SELECT "District" FROM table_22354 WHERE "Vacator" = 'Ralph Harvey (R)' |
### Instruction:
CREATE TABLE table_204_903 (
id number,
"title" text,
"character" text,
"broadcaster" text,
"episodes" number,
"date" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the only role she played with broadcaster itv2 ?
##... | SELECT "character" FROM table_204_903 WHERE "broadcaster" = 'itv2' |
### Instruction:
CREATE TABLE table_name_89 (
location VARCHAR,
date VARCHAR,
television VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of the game that was televised on ESPNU at 7:15 pm on Tue., Nov. 27?
### Resp... | SELECT location FROM table_name_89 WHERE television = "espnu" AND time = "7:15 pm" AND date = "tue., nov. 27" |
### Instruction:
CREATE TABLE table_203_390 (
id number,
"year" number,
"venue" text,
"winners" text,
"runner-up" text,
"3rd place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- after 2008 how many points total were scored by winners ?
### Re... | SELECT SUM("winners") FROM table_203_390 WHERE "year" > 2008 |
### Instruction:
CREATE TABLE table_7465 (
"Ep No" text,
"Prod Code" text,
"Original Air Date" text,
"Episode Title" text,
"Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production code fore the episode titled, life's no fun an... | SELECT "Prod Code" FROM table_7465 WHERE "Episode Title" = 'life''s no fun anymore' |
### Instruction:
CREATE TABLE table_name_39 (
points VARCHAR,
club VARCHAR,
goal_difference VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the club of Real Oviedo, what were the points of the competitor with a goal difference less th... | SELECT points FROM table_name_39 WHERE goal_difference < 38 AND wins = 12 AND club = "real oviedo" |
### Instruction:
CREATE TABLE table_70368 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of total with gold more than 1 and bronze more than 0
### Response:
| SELECT SUM("Total") FROM table_70368 WHERE "Gold" > '1' AND "Bronze" > '0' |
### Instruction:
CREATE TABLE table_name_51 (
category VARCHAR,
actor_actress VARCHAR,
film_title_used_in_nomination VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What category was al pacino nominated for in the film, glengarry glen ross?
### Response... | SELECT category FROM table_name_51 WHERE actor_actress = "al pacino" AND film_title_used_in_nomination = "glengarry glen ross" |
### Instruction:
CREATE TABLE table_204_843 (
id number,
"volume" number,
"year" text,
"names" text,
"articles" number,
"pages" number,
"images" number,
"maps" number,
"number of copies" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT SUM("articles") FROM table_204_843 |
### Instruction:
CREATE TABLE table_30102 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power kW" text,
"Coverage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of coverage for 106.7 energy fm
### Response:
| SELECT COUNT("Coverage") FROM table_30102 WHERE "Branding" = '106.7 Energy FM' |
### Instruction:
CREATE TABLE table_18313 (
"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.
-- In the Georgia 6 district, what is the elected party?
... | SELECT "Party" FROM table_18313 WHERE "District" = 'Georgia 6' |
### Instruction:
CREATE TABLE table_204_894 (
id number,
"season" number,
"winner" text,
"score" text,
"runners-up" text,
"venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what number of times was the venue manny ramjohn stadium ?
### Res... | SELECT COUNT(*) FROM table_204_894 WHERE "venue" = 'manny ramjohn stadium' |
### Instruction:
CREATE TABLE table_63694 (
"School" text,
"City" text,
"Team Name" text,
"County" text,
"Year Joined" text,
"Year Left" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did the team based in the city of Winamac join the ... | SELECT "Year Joined" FROM table_63694 WHERE "City" = 'winamac' |
### Instruction:
CREATE TABLE table_34002 (
"Rank" text,
"Runs" text,
"Player" text,
"Opponent" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the venue with more than 245 runs?
### Response:
| SELECT "Venue" FROM table_34002 WHERE "Runs" = '245' |
### Instruction:
CREATE TABLE table_22335 (
"Eliminated" real,
"Wrestler" text,
"Entered" real,
"Eliminated by" text,
"Method of elimination" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the time for the match with Cena?
... | SELECT "Time" FROM table_22335 WHERE "Wrestler" = 'Cena' |
### Instruction:
CREATE TABLE table_30327 (
"Year Location" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the womens doubles for werner schlager
### Resp... | SELECT "Womens Doubles" FROM table_30327 WHERE "Mens Singles" = 'Werner Schlager' |
### Instruction:
CREATE TABLE table_71117 (
"Value" real,
"Khmer" real,
"Word Form" text,
"UNGEGN" text,
"ALA-LC" text,
"Other" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- for the other of mouy, what's the khmer?
### Response:
| SELECT "Khmer" FROM table_71117 WHERE "Other" = 'mouy' |
### Instruction:
CREATE TABLE table_46076 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the total number of medals when silver is less than 0?
... | SELECT COUNT("Total") FROM table_46076 WHERE "Silver" < '0' |
### Instruction:
CREATE TABLE table_60774 (
"Date" text,
"Nationality / Opponent" text,
"Ground" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name The Ground on 18 january 1998?
### Response:
| SELECT "Ground" FROM table_60774 WHERE "Date" = '18 january 1998' |
### Instruction:
CREATE TABLE table_14215 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of the Game with a Record of 46-22?
### R... | SELECT "Date" FROM table_14215 WHERE "Record" = '46-22' |
### Instruction:
CREATE TABLE table_34306 (
"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.
-- Howard Twitty was the runner-up of what tournament?
### Respo... | SELECT "Tournament" FROM table_34306 WHERE "Runner(s)-up" = 'howard twitty' |
### Instruction:
CREATE TABLE table_45657 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the location when the score is w 105-99?
### Response:
| SELECT "Location" FROM table_45657 WHERE "Score" = 'w 105-99' |
### Instruction:
CREATE TABLE table_66087 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the frequency for the country station owned by Jim Pattison Group?
### R... | SELECT "Frequency" FROM table_66087 WHERE "Format" = 'country' AND "Owner" = 'jim pattison group' |
### Instruction:
CREATE TABLE table_40179 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" real,
"Year" text,
"Hometown (Previous school)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Weight of the person who is 6'9'?
... | SELECT AVG("Weight") FROM table_40179 WHERE "Height" = '6''9' |
### Instruction:
CREATE TABLE table_42973 (
"City of License /Market" text,
"Station" text,
"Channel TV ( DT )" text,
"Years owned" text,
"Current affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Channel TV is located in Baltimore?
... | SELECT "Channel TV ( DT )" FROM table_42973 WHERE "City of License /Market" = 'baltimore' |
### Instruction:
CREATE TABLE table_6245 (
"Windows" text,
"Mac OS X" text,
"Linux" text,
"Other Unix" text,
"AmigaOS" text,
"Android" text,
"Windows Mobile" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Mac OS X has an AmigaOS of par... | SELECT "Mac OS X" FROM table_6245 WHERE "AmigaOS" = 'partial' |
### Instruction:
CREATE TABLE STUDENT (
Major VARCHAR,
StuID VARCHAR
)
CREATE TABLE VOTING_RECORD (
Treasurer_Vote VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the distinct majors of students who have treasurer votes.
### Response:
| SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote |
### Instruction:
CREATE TABLE table_6630 (
"Name" text,
"Country" text,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" text,
"Transfer fee" text,
"Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type has song... | SELECT "Type" FROM table_6630 WHERE "Name" = 'song' |
### Instruction:
CREATE TABLE table_3591 (
"Team" text,
"Manager" text,
"Chairman" text,
"Team captain" text,
"Kit maker" text,
"Sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many kit makers are there for Louis Carey's team?
### ... | SELECT COUNT("Kit maker") FROM table_3591 WHERE "Team captain" = 'Louis Carey' |
### Instruction:
CREATE TABLE table_42992 (
"Pos." text,
"Player" text,
"Team" text,
"Height" text,
"Weight" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player who weighs 210 plays for the Reno Bighorns?
### Response:
| SELECT "Player" FROM table_42992 WHERE "Weight" = '210' AND "Team" = 'reno bighorns' |
### Instruction:
CREATE TABLE table_204_355 (
id number,
"#" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the only country represented that is not th... | SELECT "country" FROM table_204_355 WHERE "country" <> 'united states' |
### Instruction:
CREATE TABLE table_63982 (
"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 competition when the result is won and the score is 8-0?
### Response:
| SELECT "Competition" FROM table_63982 WHERE "Result" = 'won' AND "Score" = '8-0' |
### Instruction:
CREATE TABLE table_30837 (
"By-election" real,
"Electorate" text,
"Date" text,
"Incumbent" text,
"Reason" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When edward shaw is the winner what is the date?
### Respo... | SELECT "Date" FROM table_30837 WHERE "Winner" = 'Edward Shaw' |
### Instruction:
CREATE TABLE Movie (
title VARCHAR,
mID VARCHAR
)
CREATE TABLE Rating (
mID VARCHAR,
stars INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the titles of all movies that have rating star is between 3 and 5?
### Response:
| SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars BETWEEN 3 AND 5 |
### Instruction:
CREATE TABLE table_76065 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On November 20, 1994, what was the result of the game?
### Response:
| SELECT "Result" FROM table_76065 WHERE "Date" = 'november 20, 1994' |
### Instruction:
CREATE TABLE table_48316 (
"Date" text,
"Title" text,
"Peak position" real,
"Weeks" text,
"Sales" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Peak Position on July 11, 2001?
### Response:
| SELECT "Peak position" FROM table_48316 WHERE "Date" = 'july 11, 2001' |
### Instruction:
CREATE TABLE table_26598 (
"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.
-- How many locations did the team play at on... | SELECT COUNT("Location") FROM table_26598 WHERE "Week" = '7' |
### Instruction:
CREATE TABLE table_51154 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Opponent of the Game on October 20?
### Response:
| SELECT "Opponent" FROM table_51154 WHERE "Date" = 'october 20' |
### Instruction:
CREATE TABLE table_21979 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total points" real,
"Number of dances" real,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is average for Cody & Julianne?
### Re... | SELECT "Average" FROM table_21979 WHERE "Couple" = 'Cody & Julianne' |
### Instruction:
CREATE TABLE table_12856 (
"Designation" text,
"Launch date/time ( GMT )" text,
"Mass" text,
"Apogee" text,
"Inclination" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Mass, when Designation is Prognoz 2?
### Response:
| SELECT "Mass" FROM table_12856 WHERE "Designation" = 'prognoz 2' |
### Instruction:
CREATE TABLE table_50720 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the resolution of the fight when Nate Mohr's record was 8-6?
... | SELECT "Res." FROM table_50720 WHERE "Record" = '8-6' |
### Instruction:
CREATE TABLE table_52234 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which competition took place at Stade Fernand Fournier, Arles?
### Response:
| SELECT "Competition" FROM table_52234 WHERE "Venue" = 'stade fernand fournier, arles' |
### Instruction:
CREATE TABLE table_3695 (
"District" text,
"Counties Represented" text,
"Delegate" text,
"Party" text,
"First Elected" real,
"Committee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What committees do the district 46 members s... | SELECT "Committee" FROM table_3695 WHERE "District" = '46' |
### Instruction:
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE college (
cname text,
state text,
enr number
)
-- Using valid SQLite, answer the following question... | SELECT AVG(hs) FROM player |
### Instruction:
CREATE TABLE table_45191 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the Set 3 of 12 25?
### Response:
| SELECT "Date" FROM table_45191 WHERE "Set 3" = '12–25' |
### Instruction:
CREATE TABLE table_204_378 (
id number,
"no" number,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the first engine listed... | SELECT "engine" FROM table_204_378 WHERE id = 1 |
### Instruction:
CREATE TABLE table_73932 (
"Represents" text,
"Contestant" text,
"Age" real,
"Height (cm)" text,
"Height (ft)" text,
"Hometown" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the represents for los alcarrizos
### Response... | SELECT "Represents" FROM table_73932 WHERE "Hometown" = 'Los Alcarrizos' |
### Instruction:
CREATE TABLE table_44174 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the country when the score is 71-65-69=205?
### Response:
| SELECT "Country" FROM table_44174 WHERE "Score" = '71-65-69=205' |
### Instruction:
CREATE TABLE table_9776 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which event has a Round larger than... | SELECT "Event" FROM table_9776 WHERE "Round" > '2' |
### Instruction:
CREATE TABLE table_32101 (
"Title" text,
"Japan" text,
"North America" text,
"Europe" text,
"Australia" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the title of japan january 31, 2008
### Response:
| SELECT "Title" FROM table_32101 WHERE "Japan" = 'january 31, 2008' |
### Instruction:
CREATE TABLE entrepreneur (
entrepreneur_id number,
people_id number,
company text,
money_requested number,
investor text
)
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
date_of_birth text
)
-- Using valid SQLite, answer the ... | SELECT name FROM people ORDER BY weight |
### Instruction:
CREATE TABLE table_203_440 (
id number,
"rank" number,
"player" text,
"from" text,
"to" text,
"transfer fee\n(\u20ac million)" number,
"year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players transferred to a... | SELECT COUNT("player") FROM table_203_440 WHERE "to" = 'ajax' |
### Instruction:
CREATE TABLE table_37220 (
"Disaster" text,
"Type" text,
"Location" text,
"Deaths" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type of disaster that the Arrow Air Flight 1285 categorized in?
### Respons... | SELECT "Type" FROM table_37220 WHERE "Disaster" = 'arrow air flight 1285' |
### Instruction:
CREATE TABLE table_70197 (
"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.
-- Which class has a city of Richmond, Virginia?
###... | SELECT "Class" FROM table_70197 WHERE "City of license" = 'richmond, virginia' |
### Instruction:
CREATE TABLE table_68475 (
"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's the score of the 1st leg when Water Corporation was Team 1?
### Response:
| SELECT "1st leg" FROM table_68475 WHERE "Team 1" = 'water corporation' |
### Instruction:
CREATE TABLE table_12676 (
"Tries" real,
"Player" text,
"Opponent" text,
"Score" text,
"Venue" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of tries of player israel folau?
### Respon... | SELECT AVG("Tries") FROM table_12676 WHERE "Player" = 'israel folau' |
### Instruction:
CREATE TABLE table_5770 (
"Date" text,
"Time" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What two teams were competing in the match with 103,158 in attendance?
### Response:
| SELECT "Opponent" FROM table_5770 WHERE "Attendance" = '103,158' |
### Instruction:
CREATE TABLE table_22962745_35 (
bowler VARCHAR,
batsmen VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many bowlers were there when david hussey azhar mahmood gurkeerat singh was the batsmen?
### Response:
| SELECT COUNT(bowler) FROM table_22962745_35 WHERE batsmen = "David Hussey Azhar Mahmood Gurkeerat Singh" |
### Instruction:
CREATE TABLE table_72024 (
"Name" text,
"Reign" real,
"Days held" text,
"Location" text,
"Defenses" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the days held the champion with a reign larger than 3 and 1 defense has?
##... | SELECT "Days held" FROM table_72024 WHERE "Reign" > '3' AND "Defenses" = '1' |
### Instruction:
CREATE TABLE table_name_81 (
year_completed INTEGER,
rank VARCHAR,
height_ft__m_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the building with a top 3 rank and a height of 274 (84) ft (m) completed?
### Response:
| SELECT MAX(year_completed) FROM table_name_81 WHERE rank < 3 AND height_ft__m_ = "274 (84)" |
### Instruction:
CREATE TABLE table_20887 (
"Episode #" text,
"Original airdate (UK)" text,
"Episode title" text,
"Doctor Who episode" text,
"Webcast link" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the episode number for the episode 'a ... | SELECT "Episode #" FROM table_20887 WHERE "Episode title" = 'A New Dimension' |
### Instruction:
CREATE TABLE table_20878 (
"Player" text,
"VFL Games" real,
"VFL Club(s)" text,
"Rank held at time of death" text,
"Date of death" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day did ARchie Roberts die?
... | SELECT "Date of death" FROM table_20878 WHERE "Player" = 'Archie Roberts' |
### Instruction:
CREATE TABLE table_75950 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Driver Ricardo Sperafico has what as his average laps?
### Response:... | SELECT AVG("Laps") FROM table_75950 WHERE "Driver" = 'ricardo sperafico' |
### Instruction:
CREATE TABLE table_52874 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date with a Set 1 with 15 1?
### Response:
| SELECT "Date" FROM table_52874 WHERE "Set 1" = '15–1' |
### Instruction:
CREATE TABLE table_44655 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type when they move from Gimn stic?
### Response:
| SELECT "Type" FROM table_44655 WHERE "Moving from" = 'gimnàstic' |
### Instruction:
CREATE TABLE table_203_378 (
id number,
"against" text,
"played" number,
"won" number,
"drawn" number,
"lost" number,
"win %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country have they played against the most ?
... | SELECT "against" FROM table_203_378 ORDER BY "played" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_4853 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many golds for Canada (12 total)?
### Response:
| SELECT "Gold" FROM table_4853 WHERE "Total" > '12' AND "Nation" = 'canada' |
### Instruction:
CREATE TABLE table_name_21 (
tackles VARCHAR,
yards VARCHAR,
fumr VARCHAR,
totaltk VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0?
### Respo... | SELECT COUNT(tackles) FROM table_name_21 WHERE fumr = 0 AND totaltk = 54 AND yards < 0 |
### Instruction:
CREATE TABLE table_48346 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Total, when Player is 'Tommy Bolt'?
### Resp... | SELECT SUM("Total") FROM table_48346 WHERE "Player" = 'tommy bolt' |
### Instruction:
CREATE TABLE table_name_54 (
semi_final_television_commentator VARCHAR,
spokesperson VARCHAR,
year_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the semi-final television commentator status in 1962 with an unknown spokesperso... | SELECT semi_final_television_commentator FROM table_name_54 WHERE spokesperson = "unknown" AND year_s_ = 1962 |
### Instruction:
CREATE TABLE table_59125 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What kind of Week 4 has a Week 1 of sheila levell?
### Response:
| SELECT "Week 4" FROM table_59125 WHERE "Week 1" = 'sheila levell' |
### Instruction:
CREATE TABLE table_1262 (
"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.
-- Nametheh school team for norman gonzales
### Respo... | SELECT "School/Club Team" FROM table_1262 WHERE "Name" = 'Norman Gonzales' |
### Instruction:
CREATE TABLE table_24306 (
"Episode number" real,
"Total episodes" real,
"Title" text,
"Original UK broadcast by" text,
"Original UK airdate" text,
"DVD reference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many have the... | SELECT COUNT("Total episodes") FROM table_24306 WHERE "Title" = 'The Fire Engine' |
### Instruction:
CREATE TABLE table_69981 (
"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 genre is Le... | SELECT "Genre" FROM table_69981 WHERE "Artist" = 'led zeppelin' |
### Instruction:
CREATE TABLE table_24581 (
"Round #" real,
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions is player Tom Glavine?
... | SELECT COUNT("Position") FROM table_24581 WHERE "Player" = 'Tom Glavine' |
### Instruction:
CREATE TABLE table_26226 (
"No" real,
"Player" text,
"Height (m)" text,
"Height (f)" text,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the position for 2.16
### Res... | SELECT "Position" FROM table_26226 WHERE "Height (m)" = '2.16' |
### Instruction:
CREATE TABLE table_name_83 (
consistency_ VARCHAR,
_participation VARCHAR,
pareto_efficiency VARCHAR,
condorcet VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the consistency & participation when pareto efficiency is yes and ... | SELECT consistency_ & _participation FROM table_name_83 WHERE pareto_efficiency = "yes" AND condorcet = "no" |
### Instruction:
CREATE TABLE table_37323 (
"District" real,
"Incumbent" text,
"2008 Status" text,
"Democratic" text,
"Republican" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Incumbent has a Republican of dan mansell?
### Response:
| SELECT "Incumbent" FROM table_37323 WHERE "Republican" = 'dan mansell' |
### Instruction:
CREATE TABLE table_8337 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Qual 1, when Qual 2 is 1:27.537?
### Response:
| SELECT "Qual 1" FROM table_8337 WHERE "Qual 2" = '1:27.537' |
### Instruction:
CREATE TABLE table_31735 (
"Date" text,
"Track" text,
"Event Name" text,
"Pole Winner" text,
"Race Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Race Winner of the Southern Illinois 100?
### Response:
| SELECT "Race Winner" FROM table_31735 WHERE "Event Name" = 'southern illinois 100' |
### Instruction:
CREATE TABLE table_37091 (
"Weight Division" text,
"Winner" text,
"Loser" text,
"Method" text,
"Round" real,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of rounds for winner Rafael Cavalcante... | SELECT AVG("Round") FROM table_37091 WHERE "Winner" = 'rafael cavalcante' |
### Instruction:
CREATE TABLE table_39207 (
"Isotope" text,
"Half-life" text,
"Decay mode" text,
"Discovery year" text,
"Reaction" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the half-life discovered in 2003?
### Response:
| SELECT "Half-life" FROM table_39207 WHERE "Discovery year" = '2003' |
### Instruction:
CREATE TABLE table_34840 (
"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 when the record was 50-85?
### Respo... | SELECT "Score" FROM table_34840 WHERE "Record" = '50-85' |
### Instruction:
CREATE TABLE table_29803475_2 (
no_in_series INTEGER,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number in series when U.S. viewers is 0.23 million?
### Response:
| SELECT MIN(no_in_series) FROM table_29803475_2 WHERE us_viewers__million_ = "0.23" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.