instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_44040 (
"Name" text,
"Height" text,
"Weight" text,
"Spike" text,
"2008 club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the person with a 2008 club of Nc Bejaia?
### Response:
|
SELECT "Name" FROM table_44040 WHERE "2008 club" = 'nc bejaia'
|
### Instruction:
CREATE TABLE table_56591 (
"Season" text,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many were in attendance when the score was 4 4 ?
### Response:
|
SELECT "Attendance" FROM table_56591 WHERE "Score" = '† 4–4 †'
|
### Instruction:
CREATE TABLE table_19691 (
"Date" text,
"Episode" real,
"Performer 1" text,
"Performer 2" text,
"Performer 3" text,
"Performer 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the second performer in episode 5?
### Response:
|
SELECT "Performer 2" FROM table_19691 WHERE "Episode" = '5'
|
### Instruction:
CREATE TABLE table_75259 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real,
"Participants" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total Rank that has a Gold that's smaller than 0?
### Response:
|
SELECT SUM("Rank") FROM table_75259 WHERE "Gold" < '0'
|
### Instruction:
CREATE TABLE table_39705 (
"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 loss of the game when the record was 32 34?
### Response:
|
SELECT "Loss" FROM table_39705 WHERE "Record" = '32–34'
|
### Instruction:
CREATE TABLE table_20227 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what deate was the centerfold featured Luci Victoria?
### Response:
|
SELECT "Date" FROM table_20227 WHERE "Centerfold model" = 'Luci Victoria'
|
### Instruction:
CREATE TABLE table_37628 (
"Date" text,
"Title" text,
"Origin" text,
"Label & Cat. no." text,
"Chart no." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest chart number for the song Yardbirds aka Roger the Engineer?
### Response:
|
SELECT MAX("Chart no.") FROM table_37628 WHERE "Title" = 'yardbirds aka roger the engineer'
|
### Instruction:
CREATE TABLE table_16741821_8 (
result VARCHAR,
surface VARCHAR,
against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT WERE ALL OF THE RESULTS WHEN THEY PLAYED AGAINST LITHUANIA AND THE SURFACE WAS MADE OF CLAY?
### Response:
|
SELECT result FROM table_16741821_8 WHERE surface = "Clay" AND against = "Lithuania"
|
### Instruction:
CREATE TABLE table_6374 (
"Year" text,
"Team" text,
"Attempts" text,
"Completions" text,
"Completion %" text,
"Yards" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Completions has Yards of 10,098?
### Response:
|
SELECT "Completions" FROM table_6374 WHERE "Yards" = '10,098'
|
### Instruction:
CREATE TABLE table_40183 (
"Rank" real,
"Prev" real,
"Player" text,
"Rating" real,
"Chng" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What chng has a rank greater than 6, with 12 as a prev?
### Response:
|
SELECT "Chng" FROM table_40183 WHERE "Rank" > '6' AND "Prev" = '12'
|
### Instruction:
CREATE TABLE table_59293 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"St. Mirren Scorer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Result at Strathclyde Homes Stadium?
### Response:
|
SELECT "Result" FROM table_59293 WHERE "Venue" = 'strathclyde homes stadium'
|
### Instruction:
CREATE TABLE table_34615 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"TV Time" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date on week 6
### Response:
|
SELECT "Date" FROM table_34615 WHERE "Week" = '6'
|
### Instruction:
CREATE TABLE table_55088 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On August 10, what was the record against the Expos?
### Response:
|
SELECT "Record" FROM table_55088 WHERE "Opponent" = 'expos' AND "Date" = 'august 10'
|
### Instruction:
CREATE TABLE table_32103 (
"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 north america for january 23, 2013
### Response:
|
SELECT "North America" FROM table_32103 WHERE "Japan" = 'january 23, 2013'
|
### Instruction:
CREATE TABLE table_204_965 (
id number,
"year" text,
"city" text,
"state, province, dept., etc." text,
"country" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- aspero and caral are both cities that can be found in which country ?
### Response:
|
SELECT "country" FROM table_204_965 WHERE "city" = 'aspero'
|
### Instruction:
CREATE TABLE table_59706 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What status has gauteng falcons as the opposing team?
### Response:
|
SELECT "Status" FROM table_59706 WHERE "Opposing Team" = 'gauteng falcons'
|
### Instruction:
CREATE TABLE table_62518 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Amritpur has what constituency number?
### Response:
|
SELECT "Constituency number" FROM table_62518 WHERE "Name" = 'amritpur'
|
### Instruction:
CREATE TABLE table_50021 (
"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 of player lee trevino, who has a to par of +2?
### Response:
|
SELECT "Country" FROM table_50021 WHERE "To par" = '+2' AND "Player" = 'lee trevino'
|
### Instruction:
CREATE TABLE table_72909 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the part 3 of the word in class 7a?
### Response:
|
SELECT "Part 3" FROM table_72909 WHERE "Class" = '7a'
|
### Instruction:
CREATE TABLE table_67767 (
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Recipient" text,
"Date" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the film Antonio's Breakfast?
### Response:
|
SELECT "Director(s)" FROM table_67767 WHERE "Film" = 'antonio''s breakfast'
|
### Instruction:
CREATE TABLE table_58754 (
"\"Long\" vowels" text,
"17th c." text,
"American" text,
"British" text,
"Australian" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 17th c. pronunciation when the british is ?
### Response:
|
SELECT "17th c." FROM table_58754 WHERE "British" = 'əʊ'
|
### Instruction:
CREATE TABLE table_68223 (
"Name" text,
"Entered office" text,
"Left office" text,
"Party" text,
"First Minister" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the party of the minister who left office on 26 November 2002?
### Response:
|
SELECT "Party" FROM table_68223 WHERE "Left office" = '26 november 2002'
|
### Instruction:
CREATE TABLE table_203_791 (
id number,
"represented" text,
"contestant" text,
"age" number,
"height" text,
"hometown" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the youngest delegate for miss dominican republic in 2002 ?
### Response:
|
SELECT "contestant" FROM table_203_791 ORDER BY "age" LIMIT 1
|
### Instruction:
CREATE TABLE table_77176 (
"Season" real,
"League" text,
"Finish" text,
"Wins" real,
"Losses" real,
"Ties" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of losses when the ties are lesser than 0?
### Response:
|
SELECT COUNT("Losses") FROM table_77176 WHERE "Ties" < '0'
|
### Instruction:
CREATE TABLE table_18658 (
"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 happened during the election for Richard M. Kleberg?
### Response:
|
SELECT "Result" FROM table_18658 WHERE "Incumbent" = 'Richard M. Kleberg'
|
### Instruction:
CREATE TABLE table_name_45 (
draws VARCHAR,
goal_difference VARCHAR,
goals_for VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of Draws when goals for is 58 and losses is 12 when goal differences is less than 21
### Response:
|
SELECT COUNT(draws) FROM table_name_45 WHERE goals_for = 58 AND losses = 12 AND goal_difference < 21
|
### Instruction:
CREATE TABLE table_14360 (
"Country" text,
"Film title used in nomination" text,
"Language" text,
"Original name" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the film title used in nomination for Panny Z Wilka?
### Response:
|
SELECT "Film title used in nomination" FROM table_14360 WHERE "Original name" = 'panny z wilka'
|
### Instruction:
CREATE TABLE table_name_58 (
dob VARCHAR,
first VARCHAR,
position VARCHAR,
bats VARCHAR,
throws VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which DOB has Bats of r, and Throws of r, and a Position of rhp, and a First of john?
### Response:
|
SELECT dob FROM table_name_58 WHERE bats = "r" AND throws = "r" AND position = "rhp" AND first = "john"
|
### Instruction:
CREATE TABLE table_201_10 (
id number,
"#" number,
"name" text,
"office" text,
"political party" text,
"occupation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which political party party has had the most mayors of austevoll ?
### Response:
|
SELECT "political party" FROM table_201_10 GROUP BY "political party" ORDER BY COUNT("name") DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_93 (
chassis VARCHAR,
year VARCHAR,
engine VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955?
### Response:
|
SELECT chassis FROM table_name_93 WHERE engine = "maserati straight-6" AND points > 0 AND year = 1955
|
### Instruction:
CREATE TABLE table_203_755 (
id number,
"singing position" number,
"song title" text,
"informal translation" text,
"act" text,
"percentage of votes" text,
"final position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what song took last place ?
### Response:
|
SELECT "song title" FROM table_203_755 ORDER BY "final position" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_203_52 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many laps total were completed by all drivers ?
### Response:
|
SELECT SUM("laps") FROM table_203_52
|
### Instruction:
CREATE TABLE table_29993 (
"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.
-- How many teams does Maxim Bets play for?
### Response:
|
SELECT COUNT("NHL team") FROM table_29993 WHERE "Player" = 'Maxim Bets'
|
### Instruction:
CREATE TABLE table_18393 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the incumbent of Indiana 4 district?
### Response:
|
SELECT "Incumbent" FROM table_18393 WHERE "District" = 'Indiana 4'
|
### Instruction:
CREATE TABLE table_name_78 (
pick VARCHAR,
position VARCHAR,
nationality VARCHAR,
college_high_school_club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the pick number for the person from the United States who as drafted to the SF position from North Carolina?
### Response:
|
SELECT pick FROM table_name_78 WHERE nationality = "united states" AND college_high_school_club = "north carolina" AND position = "sf"
|
### Instruction:
CREATE TABLE table_60102 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the game played against Astley Bridge 'a'?
### Response:
|
SELECT "Date" FROM table_60102 WHERE "Opponents" = 'astley bridge ''a'
|
### Instruction:
CREATE TABLE table_name_93 (
round INTEGER,
pick VARCHAR,
overall VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the rounds where the overall pick was more than 295 and the pick was smaller than 10 and the player was rich dobbert?
### Response:
|
SELECT SUM(round) FROM table_name_93 WHERE overall > 295 AND name = "rich dobbert" AND pick < 10
|
### Instruction:
CREATE TABLE table_46237 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of game 2?
### Response:
|
SELECT "Score" FROM table_46237 WHERE "Game" = '2'
|
### Instruction:
CREATE TABLE table_79237 (
"Name" text,
"Height" text,
"Weight" text,
"Spike" text,
"2008 club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name for the 2008 club of Azs olsztyn?
### Response:
|
SELECT "Name" FROM table_79237 WHERE "2008 club" = 'azs olsztyn'
|
### Instruction:
CREATE TABLE table_72420 (
"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 what district was John E. Miller the incumbent?
### Response:
|
SELECT "District" FROM table_72420 WHERE "Incumbent" = 'John E. Miller'
|
### Instruction:
CREATE TABLE table_name_67 (
year INTEGER,
final_position___tour VARCHAR,
final_position___vuelta VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average year that has a final Tour position of 54 and a final Vuelta position over 55?
### Response:
|
SELECT AVG(year) FROM table_name_67 WHERE final_position___tour = 54 AND final_position___vuelta > 55
|
### Instruction:
CREATE TABLE table_39193 (
"Round" text,
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Attendance has an Opponent of crawley town?
### Response:
|
SELECT "Attendance" FROM table_39193 WHERE "Opponent" = 'crawley town'
|
### Instruction:
CREATE TABLE table_204_421 (
id number,
"name" text,
"nationality" text,
"position" text,
"spartak career" text,
"appearances" number,
"goals" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which player has the highest number of goals ?
### Response:
|
SELECT "name" FROM table_204_421 ORDER BY "goals" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_72532 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least touchdowns for 11 points
### Response:
|
SELECT MIN("Touchdowns") FROM table_72532 WHERE "Points" = '11'
|
### Instruction:
CREATE TABLE table_name_55 (
trofeo_fast_team VARCHAR,
young_rider_classification VARCHAR,
stage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name trofeo fast team with young rider classification of francesco casagrande and stage of 10
### Response:
|
SELECT trofeo_fast_team FROM table_name_55 WHERE young_rider_classification = "francesco casagrande" AND stage = "10"
|
### Instruction:
CREATE TABLE table_17480471_3 (
eagle_riders VARCHAR,
ova__harmony_gold_dub_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What eagle riders where ova (harmony gold dub) is lord zortek?
### Response:
|
SELECT eagle_riders FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = "Lord Zortek"
|
### Instruction:
CREATE TABLE table_67567 (
"Date" text,
"Location" text,
"Opponenent" text,
"Result" text,
"Match type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the opponent Poland and the match type EC -qualifier?
### Response:
|
SELECT "Date" FROM table_67567 WHERE "Opponenent" = 'poland' AND "Match type" = 'ec -qualifier'
|
### Instruction:
CREATE TABLE table_40633 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What regular season did the team reach the conference semifinals in the playoffs?
### Response:
|
SELECT "Regular Season" FROM table_40633 WHERE "Playoffs" = 'conference semifinals'
|
### Instruction:
CREATE TABLE table_203_28 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years consecutive featured the 20 km event ?
### Response:
|
SELECT COUNT(DISTINCT "year") FROM table_203_28 WHERE "event" = '20 km'
|
### Instruction:
CREATE TABLE table_60268 (
"Album#" text,
"English Title" text,
"Chinese (Traditional)" text,
"Chinese (Simplified)" text,
"Release date" text,
"Label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Release date of the Album Your Friend?
### Response:
|
SELECT "Release date" FROM table_60268 WHERE "English Title" = 'your friend'
|
### Instruction:
CREATE TABLE table_29077342_19 (
mountains_classification VARCHAR,
team_classification VARCHAR,
general_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the mountains classification for rabobank and damiano cunego
### Response:
|
SELECT mountains_classification FROM table_29077342_19 WHERE team_classification = "Rabobank" AND general_classification = "Damiano Cunego"
|
### Instruction:
CREATE TABLE table_77592 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who built the car that ran out of fuel before 28 laps?
### Response:
|
SELECT "Constructor" FROM table_77592 WHERE "Laps" < '28' AND "Time/Retired" = 'out of fuel'
|
### Instruction:
CREATE TABLE table_name_13 (
total VARCHAR,
player VARCHAR,
to_par VARCHAR,
finish VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Total, when To Par is less than 14, when Finish is T12, and when Player is 'Julius Boros'?
### Response:
|
SELECT total FROM table_name_13 WHERE to_par < 14 AND finish = "t12" AND player = "julius boros"
|
### Instruction:
CREATE TABLE table_66086 (
"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 call sign for country station fm 93.1?
### Response:
|
SELECT "Call sign" FROM table_66086 WHERE "Format" = 'country' AND "Frequency" = 'fm 93.1'
|
### Instruction:
CREATE TABLE table_6192 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Venue of A has Attendance of 4,365?
### Response:
|
SELECT "Date" FROM table_6192 WHERE "Venue" = 'a' AND "Attendance" = '4,365'
|
### Instruction:
CREATE TABLE table_name_22 (
fall_05 INTEGER,
fall_09 VARCHAR,
fall_08 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the smallest fall 05 number when fall 09 is less than 14 and fall 08 is more than 5?
### Response:
|
SELECT MIN(fall_05) FROM table_name_22 WHERE fall_09 < 14 AND fall_08 > 5
|
### Instruction:
CREATE TABLE table_66804 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date when the attendance is more than 45,817
### Response:
|
SELECT "Date" FROM table_66804 WHERE "Attendance" > '45,817'
|
### Instruction:
CREATE TABLE table_51645 (
"Club" text,
"City" text,
"Stadium" text,
"Capacity" real,
"2011\u201312 season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city houses the Ciro Vigorito stadium?
### Response:
|
SELECT "City" FROM table_51645 WHERE "Stadium" = 'ciro vigorito'
|
### Instruction:
CREATE TABLE table_name_86 (
city VARCHAR,
sport VARCHAR,
_number_of_titles VARCHAR,
last VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city is the school that had less than 17 titles in boys basketball with the last title being after 2005?
### Response:
|
SELECT city FROM table_name_86 WHERE _number_of_titles < 17 AND last > 2005 AND sport = "boys basketball"
|
### Instruction:
CREATE TABLE table_24978 (
"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.
-- Who is the player with the pick# 80?
### Response:
|
SELECT "Player" FROM table_24978 WHERE "Pick #" = '80'
|
### Instruction:
CREATE TABLE table_3968 (
"Proceed to Quarter-final" text,
"Match points" text,
"Aggregate score" text,
"Points margin" real,
"Eliminated from competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many teams eliminated b ziers from competition?
### Response:
|
SELECT COUNT("Match points") FROM table_3968 WHERE "Eliminated from competition" = 'Béziers'
|
### Instruction:
CREATE TABLE table_5570 (
"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 score when a loss was listed with Lannan (4-8)?
### Response:
|
SELECT "Score" FROM table_5570 WHERE "Loss" = 'lannan (4-8)'
|
### Instruction:
CREATE TABLE table_23292220_3 (
first_broadcast VARCHAR,
seans_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the first broadcast date of the episode in which Sean's team is made up of Peter Serafinowicz and Johnny Vegas?
### Response:
|
SELECT first_broadcast FROM table_23292220_3 WHERE seans_team = "Peter Serafinowicz and Johnny Vegas"
|
### Instruction:
CREATE TABLE table_11183 (
"Rank" text,
"City" text,
"Height" text,
"Stories" real,
"Completed" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many stories were done in 2008 with a 16 rank?
### Response:
|
SELECT COUNT("Stories") FROM table_11183 WHERE "Completed" = '2008' AND "Rank" = '16'
|
### Instruction:
CREATE TABLE table_12815 (
"Date" text,
"Team" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Location" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Competition on July 7?
### Response:
|
SELECT "Competition" FROM table_12815 WHERE "Date" = 'july 7'
|
### Instruction:
CREATE TABLE table_9215 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner and score" text,
"Finalist" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the semifinalists when the surface is hard (i)?
### Response:
|
SELECT "Semifinalists" FROM table_9215 WHERE "Surface" = 'hard (i)'
|
### Instruction:
CREATE TABLE table_name_37 (
nation VARCHAR,
club VARCHAR,
competition VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for nation when the Competition is preseason, Year less than 2011, and a Club of chivas de guadalajara?
### Response:
|
SELECT nation FROM table_name_37 WHERE competition = "preseason" AND year < 2011 AND club = "chivas de guadalajara"
|
### Instruction:
CREATE TABLE table_59180 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 2nd Leg, when Team 2 is 'Dunaferr'?
### Response:
|
SELECT "2nd leg" FROM table_59180 WHERE "Team 2" = 'dunaferr'
|
### Instruction:
CREATE TABLE table_65212 (
"Date" text,
"Location" text,
"Lineup" text,
"Assist/pass" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which assist/pass is in Ferreiras?
### Response:
|
SELECT "Assist/pass" FROM table_65212 WHERE "Location" = 'ferreiras'
|
### Instruction:
CREATE TABLE table_3466 (
"Player" text,
"Number Of Selections" real,
"First Team" real,
"Second Team" real,
"Season MVP" real,
"Final Four MVP" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what would be final four mvp maximum when first team is 1
### Response:
|
SELECT MAX("Final Four MVP") FROM table_3466 WHERE "First Team" = '1'
|
### Instruction:
CREATE TABLE table_name_52 (
lost VARCHAR,
club VARCHAR,
played VARCHAR,
losing_bp VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of games lost when 22 have been played, the losing BP number is 2, and the club is Merthyr RFC?
### Response:
|
SELECT lost FROM table_name_52 WHERE played = "22" AND losing_bp = "2" AND club = "merthyr rfc"
|
### Instruction:
CREATE TABLE table_204_422 (
id number,
"rank" number,
"lane" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many swimmers from china participated in the race ?
### Response:
|
SELECT COUNT("name") FROM table_204_422 WHERE "nationality" = 'china'
|
### Instruction:
CREATE TABLE table_name_57 (
location VARCHAR,
event VARCHAR,
method VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Location has a Method of submission (rear naked choke), a Round of 1, and an Event of ufc 127?
### Response:
|
SELECT location FROM table_name_57 WHERE method = "submission (rear naked choke)" AND round = 1 AND event = "ufc 127"
|
### Instruction:
CREATE TABLE table_5431 (
"Series Ep." text,
"Episode" real,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Segment A has a Segment B of s awning?
### Response:
|
SELECT "Segment A" FROM table_5431 WHERE "Segment B" = 's awning'
|
### Instruction:
CREATE TABLE table_51899 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which NBA draft has a School of huntington high school?
### Response:
|
SELECT "NBA Draft" FROM table_51899 WHERE "School" = 'huntington high school'
|
### Instruction:
CREATE TABLE table_64718 (
"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 slow dance?
### Response:
|
SELECT SUM("Episodes") FROM table_64718 WHERE "Romaji Title" = 'slow dance'
|
### Instruction:
CREATE TABLE table_204_800 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many sliver medal does bermuda has
### Response:
|
SELECT "silver" FROM table_204_800 WHERE "nation" = 'bermuda'
|
### Instruction:
CREATE TABLE table_13528 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text,
"Language/Rebroadcast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the owner of fm 94.5?
### Response:
|
SELECT "Owner" FROM table_13528 WHERE "Frequency" = 'fm 94.5'
|
### Instruction:
CREATE TABLE table_56927 (
"Player" text,
"Position" text,
"First-Team Debut" text,
"First-Team Appearances" real,
"First-Team Goals" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position does adam rachel play?
### Response:
|
SELECT "Position" FROM table_56927 WHERE "Player" = 'adam rachel'
|
### Instruction:
CREATE TABLE table_59708 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What report has gauteng falcons as the opposing team?
### Response:
|
SELECT "Report" FROM table_59708 WHERE "Opposing Team" = 'gauteng falcons'
|
### Instruction:
CREATE TABLE table_54935 (
"Year" text,
"Team" text,
"Comp" text,
"Rate" text,
"RAtt" text,
"RYds" text,
"RAvg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 1983, what was the RAtt?
### Response:
|
SELECT "RAtt" FROM table_54935 WHERE "Year" = '1983'
|
### Instruction:
CREATE TABLE table_63296 (
"Rank" real,
"Lane" real,
"Athlete" text,
"Nationality" text,
"Time" real,
"React" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the athlete with react of 0.185?
### Response:
|
SELECT "Athlete" FROM table_63296 WHERE "React" = '0.185'
|
### Instruction:
CREATE TABLE table_40732 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game held at the Al-Rashid Stadium, Dubai?
### Response:
|
SELECT "Date" FROM table_40732 WHERE "Venue" = 'al-rashid stadium, dubai'
|
### Instruction:
CREATE TABLE table_40493 (
"Rank" real,
"City" text,
"Airport" text,
"Passengers" real,
"Carriers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city had a rank before 3 and primary carrier JetBlue Airways?
### Response:
|
SELECT "City" FROM table_40493 WHERE "Rank" < '3' AND "Carriers" = 'jetblue airways'
|
### Instruction:
CREATE TABLE table_33859 (
"Name" text,
"Caps" real,
"Goals" real,
"First cap" text,
"Latest cap" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Latest cap of september 5, 2011 had how many goals?
### Response:
|
SELECT "Goals" FROM table_33859 WHERE "Latest cap" = 'september 5, 2011'
|
### Instruction:
CREATE TABLE table_79961 (
"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 attended by 10,389?
### Response:
|
SELECT "Record" FROM table_79961 WHERE "Attendance" = '10,389'
|
### Instruction:
CREATE TABLE table_204_525 (
id number,
"rank" number,
"player" text,
"county" text,
"tally" text,
"total" number,
"opposition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players have a total above 10 ?
### Response:
|
SELECT COUNT(DISTINCT "player") FROM table_204_525 WHERE "total" > 10
|
### Instruction:
CREATE TABLE table_name_61 (
rank INTEGER,
constituency VARCHAR,
swing_to_gain VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the lowest rank when the constituency is edinburgh northern and leith and the swing to gain is less than 4.16?
### Response:
|
SELECT MIN(rank) FROM table_name_61 WHERE constituency = "edinburgh northern and leith" AND swing_to_gain < 4.16
|
### Instruction:
CREATE TABLE table_68601 (
"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 is the record of the team that lost to Alexander (5-2)?
### Response:
|
SELECT "Record" FROM table_68601 WHERE "Loss" = 'alexander (5-2)'
|
### Instruction:
CREATE TABLE table_name_94 (
player VARCHAR,
round VARCHAR,
college_junior_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player from a round larger than 5 and the college/junior/club team of Leningrad SKA (russia)?
### Response:
|
SELECT player FROM table_name_94 WHERE round > 5 AND college_junior_club_team = "leningrad ska (russia)"
|
### Instruction:
CREATE TABLE table_60068 (
"Club" text,
"Head Coach" text,
"City" text,
"Stadium" text,
"2003\u20132004 season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the head coach for the club from Aveiro?
### Response:
|
SELECT "Head Coach" FROM table_60068 WHERE "City" = 'aveiro'
|
### Instruction:
CREATE TABLE table_49670 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Overall number that is the lowest, and has a pick greater than 9?
### Response:
|
SELECT MIN("Overall") FROM table_49670 WHERE "Pick" > '9'
|
### Instruction:
CREATE TABLE table_78291 (
"Disaster" text,
"Year" text,
"Countries Affected" text,
"Scale of Disaster" text,
"People Assisted" text,
"Nature of Help" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year did USA undergo a disaster?
### Response:
|
SELECT "Year" FROM table_78291 WHERE "Countries Affected" = 'usa'
|
### Instruction:
CREATE TABLE table_203_27 (
id number,
"number" number,
"serial no" number,
"entered service" text,
"withdrawn" text,
"kilometres travelled" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many kilometers did number 4110 travel ?
### Response:
|
SELECT "kilometres travelled" FROM table_203_27 WHERE "number" = 4110
|
### Instruction:
CREATE TABLE table_17570 (
"Condition" text,
"Prothrombin time" text,
"Partial thromboplastin time" text,
"Bleeding time" text,
"Platelet count" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What kind of bleeding does aspirin cause?
### Response:
|
SELECT "Bleeding time" FROM table_17570 WHERE "Condition" = 'Aspirin'
|
### Instruction:
CREATE TABLE table_14175 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event was the competition World Junior Championships in 2010?
### Response:
|
SELECT "Event" FROM table_14175 WHERE "Competition" = 'world junior championships' AND "Year" = '2010'
|
### Instruction:
CREATE TABLE table_2581397_4 (
race VARCHAR,
weight__kg_ VARCHAR,
winner_2nd VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what race was the weight in kg 55 and the winner/2nd 1st - Jim and Tonic?
### Response:
|
SELECT race FROM table_2581397_4 WHERE weight__kg_ = "55" AND winner_2nd = "1st - Jim And Tonic"
|
### Instruction:
CREATE TABLE table_9708 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date had a venue of the State Sports Centre?
### Response:
|
SELECT "Date" FROM table_9708 WHERE "Venue" = 'state sports centre'
|
### Instruction:
CREATE TABLE table_58657 (
"Matches" real,
"Wins" real,
"Draw" real,
"Losses" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many matches has 51 draws and more than 6 against?
### Response:
|
SELECT SUM("Matches") FROM table_58657 WHERE "Against" > '6' AND "Draw" = '51'
|
### Instruction:
CREATE TABLE table_80408 (
"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 date of the game after week 5 against the Houston Oilers?
### Response:
|
SELECT "Date" FROM table_80408 WHERE "Week" > '5' AND "Opponent" = 'houston oilers'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.