instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_25791 (
"Rank" real,
"City/Town" text,
"County" text,
"Region/Province" text,
"Population" real,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 2 is the rank what is the city/town?
### Respons... | SELECT "City/Town" FROM table_25791 WHERE "Rank" = '2' |
### Instruction:
CREATE TABLE table_1783 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record when the game was at the San... | SELECT "Record" FROM table_1783 WHERE "Game site" = 'San Diego Stadium' |
### Instruction:
CREATE TABLE table_72607 (
"Episode #" text,
"Country" text,
"City" text,
"Martial Art/Style" text,
"Masters" text,
"Original Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many masters fought using a boxing style?
... | SELECT COUNT("Masters") FROM table_72607 WHERE "Martial Art/Style" = 'Boxing' |
### Instruction:
CREATE TABLE table_15511178_3 (
report VARCHAR,
pole_position VARCHAR,
winning_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl Ske... | SELECT report FROM table_15511178_3 WHERE pole_position = "Carl Skerlong" AND winning_team = "Newman Wachs Racing" |
### Instruction:
CREATE TABLE table_36069 (
"Place" text,
"Player" text,
"Nation" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for a match where Sophie Gustafson played?
###... | SELECT "Score" FROM table_36069 WHERE "Player" = 'sophie gustafson' |
### Instruction:
CREATE TABLE table_name_89 (
loser VARCHAR,
date VARCHAR,
location VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who lost at schaefer stadium when the Winner was new england patriots, and a Date of october 18?
### ... | SELECT loser FROM table_name_89 WHERE location = "schaefer stadium" AND winner = "new england patriots" AND date = "october 18" |
### Instruction:
CREATE TABLE table_42832 (
"Spoofed Title" text,
"Actual Title" text,
"Writer" text,
"Artist" text,
"Issue" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the writer for issue 224?
### Response... | SELECT "Writer" FROM table_42832 WHERE "Issue" = '224' |
### Instruction:
CREATE TABLE table_60996 (
"Semi-closed initial unstressed vowels" text,
"17th c." text,
"American" text,
"Australian" text,
"Examples" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the American sound that has a 17th centur... | SELECT "American" FROM table_60996 WHERE "17th c." = 'ɔ' |
### Instruction:
CREATE TABLE table_76099 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Player that spent the Year 2005 in Orlando?
### ... | SELECT "Player" FROM table_76099 WHERE "Years in Orlando" = '2005' |
### Instruction:
CREATE TABLE table_203_191 (
id number,
"year" number,
"group" text,
"award" text,
"result" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times did erbedija win best actor between 1994 and 2012 ?
### Re... | SELECT COUNT(*) FROM table_203_191 WHERE "award" = 'best actor' |
### Instruction:
CREATE TABLE table_61813 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Status has a Date of 18/03/1989?
### Response:
| SELECT "Status" FROM table_61813 WHERE "Date" = '18/03/1989' |
### Instruction:
CREATE TABLE table_12159115_2 (
directed_by VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total number of directors who've directed episodes seen by 11.34 million US viewers?
### Response:
| SELECT COUNT(directed_by) FROM table_12159115_2 WHERE us_viewers__millions_ = "11.34" |
### Instruction:
CREATE TABLE table_name_79 (
rbis INTEGER,
team VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the team is the Boston Red Sox and the is date July 27, 1946, what are the average RBIs?
### Response:
| SELECT AVG(rbis) FROM table_name_79 WHERE team = "boston red sox" AND date = "july 27, 1946" |
### Instruction:
CREATE TABLE table_2076516_1 (
enrollment__2012_ INTEGER,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When university of north carolina at charlotte is the school what is the lowest enrollment in 2012?
### Response:
| SELECT MIN(enrollment__2012_) FROM table_2076516_1 WHERE school = "University of North Carolina at Charlotte" |
### Instruction:
CREATE TABLE table_49950 (
"Driver" text,
"Race 1" text,
"Race 2" text,
"Race 3" text,
"Race 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Race 2, when Race 1 is 30?
### Response:
| SELECT "Race 2" FROM table_49950 WHERE "Race 1" = '30' |
### Instruction:
CREATE TABLE table_name_86 (
gold INTEGER,
rank VARCHAR,
total VARCHAR,
silver VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of gold medal totals for nations with 1 silver, less than 2 bronze, and... | SELECT SUM(gold) FROM table_name_86 WHERE silver = 1 AND bronze < 2 AND total = 1 AND rank < 10 |
### Instruction:
CREATE TABLE table_61646 (
"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 place when the score was 70-69-74=213?
### Response:
| SELECT "Place" FROM table_61646 WHERE "Score" = '70-69-74=213' |
### Instruction:
CREATE TABLE table_28290 (
"Rank" real,
"Average" text,
"Player" text,
"Matches" real,
"Innings" real,
"Period" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of the player with the 39.69 average?
### Response... | SELECT "Rank" FROM table_28290 WHERE "Average" = '39.69' |
### Instruction:
CREATE TABLE table_65291 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result for the game played on December 20, 1970?
### Response:
| SELECT "Result" FROM table_65291 WHERE "Date" = 'december 20, 1970' |
### Instruction:
CREATE TABLE table_54993 (
"Year" real,
"English title" text,
"Korean title" text,
"Romanization" text,
"Role" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the English of chae soo-yeon?
### Response:... | SELECT "English title" FROM table_54993 WHERE "Role" = 'chae soo-yeon' |
### Instruction:
CREATE TABLE table_44902 (
"Game" real,
"Team" text,
"Score" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which game was played at the Forum and led to a series result of 0-1?
### Respo... | SELECT "Game" FROM table_44902 WHERE "Location Attendance" = 'the forum' AND "Series" = '0-1' |
### Instruction:
CREATE TABLE table_11029 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the event held on July 23, 2009?
### Response:
| SELECT "Score" FROM table_11029 WHERE "Date" = 'july 23, 2009' |
### Instruction:
CREATE TABLE table_name_30 (
week INTEGER,
date VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many weeks have a Date of december 4, 1976, and an Attendance larger than 57,366?
### Response:
| SELECT SUM(week) FROM table_name_30 WHERE date = "december 4, 1976" AND attendance > 57 OFFSET 366 |
### Instruction:
CREATE TABLE table_203_612 (
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 had the top bronze metal count ?
... | SELECT "nation" FROM table_203_612 ORDER BY "bronze" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_name_92 (
co_drivers VARCHAR,
team VARCHAR,
pos VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the co-drivers for the Racing Organisation Course team in years before 2011, who had a position ... | SELECT co_drivers FROM table_name_92 WHERE pos = "dnf" AND year < 2011 AND team = "racing organisation course" |
### Instruction:
CREATE TABLE table_77627 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is driver of the d6 chassis?
### Respon... | SELECT "Driver" FROM table_77627 WHERE "Chassis" = 'd6' |
### Instruction:
CREATE TABLE table_204_311 (
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 teams won more than 6 medals total ?
... | SELECT COUNT("nation") FROM table_204_311 WHERE "total" > 6 |
### Instruction:
CREATE TABLE table_978 (
"Year" real,
"Team Name" text,
"Division" text,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the division for the year 2006... | SELECT "Division" FROM table_978 WHERE "Year" = '2006' |
### Instruction:
CREATE TABLE table_41001 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Attendance is 2,444?
### Response:
| SELECT "Score" FROM table_41001 WHERE "Attendance" = '2,444' |
### Instruction:
CREATE TABLE table_38294 (
"Pos." real,
"Car #" real,
"Driver" text,
"Make" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Pos has a Team of circle bar racing, and a Car # smaller than 14?
### Response:
| SELECT MAX("Pos.") FROM table_38294 WHERE "Team" = 'circle bar racing' AND "Car #" < '14' |
### Instruction:
CREATE TABLE table_34664 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Length" text,
"Participation as" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Participation as of actor, film editor has wha... | SELECT AVG("Year") FROM table_34664 WHERE "Participation as" = 'actor, film editor' |
### Instruction:
CREATE TABLE table_75165 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time did team kawasaki zx10 1000cc have?
### Response:
| SELECT "Time" FROM table_75165 WHERE "Team" = 'kawasaki zx10 1000cc' |
### Instruction:
CREATE TABLE table_75952 (
"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.
-- What is the average points that the driver Ryan Hunter-Reay has?
###... | SELECT AVG("Points") FROM table_75952 WHERE "Driver" = 'ryan hunter-reay' |
### Instruction:
CREATE TABLE table_204_986 (
id number,
"#" number,
"event year" number,
"season" text,
"flag bearer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of years ele opeloge was the samoa flag bearer at the olym... | SELECT COUNT("event year") FROM table_204_986 WHERE "flag bearer" = 'ele opeloge' |
### Instruction:
CREATE TABLE table_12862 (
"Elimination" text,
"Wrestler" text,
"Team" text,
"Eliminated by" text,
"Elimination Move" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Wrestler has an Elimination of 7?
### Respo... | SELECT "Wrestler" FROM table_12862 WHERE "Elimination" = '7' |
### Instruction:
CREATE TABLE table_75188 (
"Surname" text,
"First" text,
"D.O.B." text,
"Uni#" real,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has a Surname of naylor?
### Respons... | SELECT "Position" FROM table_75188 WHERE "Surname" = 'naylor' |
### Instruction:
CREATE TABLE table_13091 (
"Municipality" text,
"Inhabitants" real,
"Mayor" text,
"Party" text,
"Election" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest election that has cinisello balsamo as the municipality?
... | SELECT MIN("Election") FROM table_13091 WHERE "Municipality" = 'cinisello balsamo' |
### Instruction:
CREATE TABLE table_10210 (
"Rank" real,
"Stadium" text,
"Capacity" real,
"Location" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Gaelic Athletic Association stadium is located in Carrick-on-Shannon?
### Respo... | SELECT "Stadium" FROM table_10210 WHERE "Location" = 'carrick-on-shannon' |
### Instruction:
CREATE TABLE table_27732 (
"Number" real,
"Name" text,
"Vertices" text,
"Hypotenuse 0 c" text,
"Vertical 0 b" text,
"Horizontal 0 a" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the horizontal number for number 10
### R... | SELECT COUNT("Horizontal 0 a") FROM table_27732 WHERE "Number" = '10' |
### Instruction:
CREATE TABLE table_77705 (
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Opponent at the Game Site Indianapolis Hoosierdome?
### Response:
| SELECT "Opponent" FROM table_77705 WHERE "Game site" = 'indianapolis hoosierdome' |
### Instruction:
CREATE TABLE table_37 (
"Calls" text,
"Frequency" text,
"Branding" text,
"Format" text,
"Market/Rank" text,
"Timeslot" text,
"Group owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Branding does WRKO calls use?
#... | SELECT "Branding" FROM table_37 WHERE "Calls" = 'WRKO' |
### Instruction:
CREATE TABLE table_36390 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Attendances on may 24?
### Response:
| SELECT MIN("Attendance") FROM table_36390 WHERE "Date" = 'may 24' |
### Instruction:
CREATE TABLE table_69432 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many were in attendance on October 27, 1963?
### Response:
| SELECT MAX("Attendance") FROM table_69432 WHERE "Date" = 'october 27, 1963' |
### Instruction:
CREATE TABLE table_46190 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the money ($) for player justin leonard?
### Response:
| SELECT "Money ( $ )" FROM table_46190 WHERE "Player" = 'justin leonard' |
### Instruction:
CREATE TABLE table_2930244_2 (
year VARCHAR,
number_of_hurricanes VARCHAR,
strongest_storm VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years saw 3 hurricanes wherein the strongest storm was level three?
### Response:
| SELECT COUNT(year) FROM table_2930244_2 WHERE number_of_hurricanes = 3 AND strongest_storm = "Three" |
### Instruction:
CREATE TABLE table_78992 (
"Time" text,
"Show Name" text,
"Local/Networked" text,
"Ad Freq" text,
"News Freq" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Time has a Show Name of mornings with neil mitchell?
### Response:
| SELECT "Time" FROM table_78992 WHERE "Show Name" = 'mornings with neil mitchell' |
### Instruction:
CREATE TABLE table_2417395_4 (
reason_for_change VARCHAR,
date_successor_seated VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the reason for change to the successor that was seated on December 13, 1880?
### Response:
| SELECT reason_for_change FROM table_2417395_4 WHERE date_successor_seated = "December 13, 1880" |
### Instruction:
CREATE TABLE table_name_96 (
score INTEGER,
number VARCHAR,
drop_goals VARCHAR,
penalties VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- drop goals larger than 0, and a Penalties of 52, and a Number larger than 5 had what lowest scor... | SELECT MIN(score) FROM table_name_96 WHERE drop_goals > 0 AND penalties = 52 AND number > 5 |
### Instruction:
CREATE TABLE table_25025 (
"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.
-- How many seats became avaliable in Massachusetts 3rd dist... | SELECT COUNT("Vacator") FROM table_25025 WHERE "District" = 'Massachusetts 3rd' |
### Instruction:
CREATE TABLE table_54915 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the highest cuts made with wins more than 1
### Response... | SELECT MAX("Cuts made") FROM table_54915 WHERE "Wins" > '1' |
### 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.
-- how many players won at least $ 400 ?
### Respons... | SELECT COUNT("player") FROM table_204_355 WHERE "money ($)" >= 400 |
### Instruction:
CREATE TABLE table_204_927 (
id number,
"title" text,
"year" number,
"artist(s)" text,
"album" text,
"writer(s)" text,
"producer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of producing credit... | SELECT COUNT("producer(s)") FROM table_204_927 |
### Instruction:
CREATE TABLE table_204_312 (
id number,
"stage" text,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which type of terrain is listed the most ?
### Respons... | SELECT "terrain" FROM table_204_312 GROUP BY "terrain" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_10918 (
"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.
-- What's the hometown of the player who went to lsu?
### Respons... | SELECT "Hometown" FROM table_10918 WHERE "College" = 'lsu' |
### Instruction:
CREATE TABLE table_10087 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the driver with 58 laps and a grid smaller than 21?
### Response:
| SELECT "Driver" FROM table_10087 WHERE "Laps" = '58' AND "Grid" < '21' |
### Instruction:
CREATE TABLE table_77313 (
"Rank" real,
"Title" text,
"Studio" text,
"Director(s)" text,
"Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank has a gross of $35,976,000?
### Response:
| SELECT "Rank" FROM table_77313 WHERE "Gross" = '$35,976,000' |
### Instruction:
CREATE TABLE table_77430 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of round R3?
### Response:
| SELECT "Result" FROM table_77430 WHERE "Round" = 'r3' |
### Instruction:
CREATE TABLE table_204_261 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many medals did france get in total ?
### ... | SELECT "total" FROM table_204_261 WHERE "nation" = 'france' |
### Instruction:
CREATE TABLE table_1146 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the record when attendance 42827
### Res... | SELECT "Record" FROM table_1146 WHERE "Attendance" = '42827' |
### Instruction:
CREATE TABLE table_name_26 (
mountains_classification VARCHAR,
points_classification VARCHAR,
general_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the mountains classification when the points classification is Ale... | SELECT mountains_classification FROM table_name_26 WHERE points_classification = "alessandro petacchi" AND general_classification = "danilo di luca" |
### Instruction:
CREATE TABLE table_41610 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver had less than 65 laps for Sigma Autosport?
### Response:
| SELECT "Driver" FROM table_41610 WHERE "Laps" < '65' AND "Team" = 'sigma autosport' |
### Instruction:
CREATE TABLE table_74139 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the record for score 1-3?
#... | SELECT "Record" FROM table_74139 WHERE "Score" = '1-3' |
### Instruction:
CREATE TABLE table_72577 (
"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.
-- Name the position for pick number 128
###... | SELECT "Position" FROM table_72577 WHERE "Pick #" = '128' |
### Instruction:
CREATE TABLE table_6107 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date for week more than 1 and game site of bye
### Resp... | SELECT "Date" FROM table_6107 WHERE "Game site" = 'bye' AND "Week" > '1' |
### Instruction:
CREATE TABLE table_67648 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rank of Bobby Grim when he finished 1059 laps?
### Response:
| SELECT "Rank" FROM table_67648 WHERE "Laps" = '1059' |
### Instruction:
CREATE TABLE table_2104176_1 (
air_force_cross VARCHAR,
homeland_security_distinguished_service_medal VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the air force cross when you recieve the Aerial achievement medal?
### Response:
| SELECT air_force_cross FROM table_2104176_1 WHERE homeland_security_distinguished_service_medal = "Aerial Achievement Medal" |
### Instruction:
CREATE TABLE table_1785 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game at Arrowhead Stadi... | SELECT "Date" FROM table_1785 WHERE "Game site" = 'Arrowhead Stadium' |
### Instruction:
CREATE TABLE table_46760 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the team 1 in the match with a team 2 of Karabakh?
### Response:
| SELECT "Team 1" FROM table_46760 WHERE "Team 2" = 'karabakh' |
### Instruction:
CREATE TABLE table_202_32 (
id number,
"year" text,
"cast\n(nabucco, abigaille, zaccaria, ismaele, fenena)" text,
"conductor,\nopera house and orchestra" text,
"label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many recordin... | SELECT COUNT(*) FROM table_202_32 |
### Instruction:
CREATE TABLE table_23395 (
"No. in series" text,
"No. in season" real,
"Family/families" text,
"Location(s)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What family was featured in episode us14 of the se... | SELECT "Family/families" FROM table_23395 WHERE "No. in series" = 'US14' |
### Instruction:
CREATE TABLE table_204_54 (
id number,
"pondicherry assembly" text,
"duration" text,
"name of m.l.a." text,
"party affiliation" text,
"election year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many were affiliated with... | SELECT COUNT(*) FROM table_204_54 WHERE "party affiliation" = 'janata party' |
### Instruction:
CREATE TABLE table_39268 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Game site has 27,189 Attendances ?
### Response:
| SELECT "Game site" FROM table_39268 WHERE "Attendance" = '27,189' |
### Instruction:
CREATE TABLE table_15510 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the score in the loss to tapani (0-1)?
### Response:
| SELECT "Score" FROM table_15510 WHERE "Loss" = 'tapani (0-1)' |
### Instruction:
CREATE TABLE table_15561 (
"Unit" text,
"Type" text,
"Net Power" text,
"Total Power" text,
"Finish construction" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which type had the unit greifswald - 7 (kgr 7) ?
### Response:
| SELECT "Type" FROM table_15561 WHERE "Unit" = 'greifswald - 7 (kgr 7)' |
### Instruction:
CREATE TABLE table_204_180 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- did they win or lose to iowa ?
### Response:
| SELECT "result" FROM table_204_180 WHERE "opponent#" = 'iowa' |
### Instruction:
CREATE TABLE table_75452 (
"Track" text,
"Song title" text,
"Length" text,
"Composer(s)" text,
"Performance location(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the composer of the song with a length of 6:24?
### Res... | SELECT "Composer(s)" FROM table_75452 WHERE "Length" = '6:24' |
### Instruction:
CREATE TABLE table_name_7 (
class_aA VARCHAR,
class_aAA VARCHAR,
giddings VARCHAR,
school_year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Class AA in the 2010-11 school year with a class AAA of Giddings?
### Respons... | SELECT class_aA FROM table_name_7 WHERE class_aAA = giddings AND school_year = "2010-11" |
### Instruction:
CREATE TABLE table_2228 (
"Year" real,
"Fowler" real,
"Stanier, 3 cylinder" real,
"Stanier, 2 cylinder" real,
"Fairburn" real,
"BR Standard" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is tops for Folwe... | SELECT MAX("Fowler") FROM table_2228 |
### Instruction:
CREATE TABLE table_17636 (
"State" text,
"Preliminaries" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which interview score belongs to the state of Nevada... | SELECT "Interview" FROM table_17636 WHERE "State" = 'Nevada' |
### Instruction:
CREATE TABLE table_18263 (
"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 party was Tony P. Hall affiliated with?
### Resp... | SELECT "Party" FROM table_18263 WHERE "Incumbent" = 'Tony P. Hall' |
### Instruction:
CREATE TABLE table_53620 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Constructor did Michael Schumacher have with a Grid smaller than 5?
### Res... | SELECT "Constructor" FROM table_53620 WHERE "Grid" < '5' AND "Driver" = 'michael schumacher' |
### Instruction:
CREATE TABLE table_20860 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season was the episode titled 'Harlequin' ... | SELECT MAX("Season #") FROM table_20860 WHERE "Title" = 'Harlequin' |
### Instruction:
CREATE TABLE table_204_775 (
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 came in first with 7 gold medals ?... | SELECT "nation" FROM table_204_775 WHERE "gold" = 7 |
### Instruction:
CREATE TABLE table_1314 (
"Team" text,
"Titles" real,
"Runner-up" real,
"Third place" real,
"Fourth place" real,
"Years participated" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the team is Toronto how many times did the... | SELECT COUNT("Third place") FROM table_1314 WHERE "Team" = 'Toronto' |
### Instruction:
CREATE TABLE table_12162 (
"Rank" real,
"Result" real,
"Athlete" text,
"Date" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest Result with a Location of birmingham, and Rank larger than 5?
### R... | SELECT MIN("Result") FROM table_12162 WHERE "Location" = 'birmingham' AND "Rank" > '5' |
### Instruction:
CREATE TABLE table_47424 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tournaments was Ryan Palmer in as a runner-up?
### Resp... | SELECT "Tournament" FROM table_47424 WHERE "Runner(s)-up" = 'ryan palmer' |
### Instruction:
CREATE TABLE table_14342592_4 (
player VARCHAR,
position VARCHAR,
starter VARCHAR,
touchdowns VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of players when starter is no and touchdowns is 1 for right halfback
### R... | SELECT COUNT(player) FROM table_14342592_4 WHERE starter = "No" AND touchdowns = 1 AND position = "Right halfback" |
### Instruction:
CREATE TABLE table_11665016_2 (
original_air_date VARCHAR,
written_by VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the air date for the episode written by Wendy Battles and directed by Oz Scott
### Respon... | SELECT original_air_date FROM table_11665016_2 WHERE written_by = "Wendy Battles" AND directed_by = "Oz Scott" |
### Instruction:
CREATE TABLE table_24638867_4 (
championship VARCHAR,
surface VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What championships were played on clay and the opponent was virginia ruano pascual paola su rez?
### Respons... | SELECT championship FROM table_24638867_4 WHERE surface = "Clay" AND opponent = "Virginia Ruano Pascual Paola Suárez" |
### Instruction:
CREATE TABLE table_24112 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Black Knights points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the game for record 1-0
### R... | SELECT "Game" FROM table_24112 WHERE "Record" = '1-0' |
### Instruction:
CREATE TABLE table_55658 (
"Player" text,
"Pos." text,
"From" real,
"School/Country" text,
"Rebs" real,
"Asts" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the pos for an asts less than 117?
### Response:
| SELECT "Pos." FROM table_55658 WHERE "Asts" < '117' |
### Instruction:
CREATE TABLE table_25383 (
"No." real,
"Player" text,
"Position" text,
"Height" text,
"Weight" real,
"Class" text,
"Hometown" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is jim dutcher's hometown?
### Response:
| SELECT "Hometown" FROM table_25383 WHERE "Player" = 'Jim Dutcher' |
### Instruction:
CREATE TABLE table_48087 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has an Opponent of ryan bixler?
### Response:
| SELECT "Round" FROM table_48087 WHERE "Opponent" = 'ryan bixler' |
### Instruction:
CREATE TABLE table_53823 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Tournament was on the Date 6 Sep 2009?
### Response:
| SELECT "Tournament" FROM table_53823 WHERE "Date" = '6 sep 2009' |
### Instruction:
CREATE TABLE table_201_25 (
id number,
"party" text,
"leader" text,
"from" text,
"to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which party had only one leader and only a three year office term ?
### Response:
| SELECT "party" FROM table_201_25 GROUP BY "party" HAVING COUNT("leader") = 1 AND "to" - "from" = 3 |
### Instruction:
CREATE TABLE table_name_76 (
accolade VARCHAR,
rank VARCHAR,
year VARCHAR,
publication VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Accolade, when Year is less than 2002, when Publication is 'Rolling Stone', and when Rank i... | SELECT accolade FROM table_name_76 WHERE year < 2002 AND publication = "rolling stone" AND rank = 48 |
### Instruction:
CREATE TABLE table_68476 (
"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 1st leg score when Team 1 was Gor Mahia?
### Response:
| SELECT "1st leg" FROM table_68476 WHERE "Team 1" = 'gor mahia' |
### Instruction:
CREATE TABLE election (
election_id number,
representative_id number,
date text,
votes number,
vote_percent number,
seats number,
place number
)
CREATE TABLE representative (
representative_id number,
name text,
state text,
party text,
lifespan text
)
... | SELECT votes FROM election ORDER BY votes DESC |
### Instruction:
CREATE TABLE table_22338 (
"City of license /Market" text,
"Station" text,
"Channel ( TV / RF )" text,
"Owned Since" real,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What station is affiliated with kmgh-tv?
### R... | SELECT "Affiliation" FROM table_22338 WHERE "Station" = 'KMGH-TV' |
### Instruction:
CREATE TABLE table_6030 (
"Year" real,
"Group" text,
"Award" text,
"Film/Series" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For which group was Kim nominated in 2010 for Best International Actress?
### Response:... | SELECT "Group" FROM table_6030 WHERE "Year" = '2010' AND "Award" = 'best international actress' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.