instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_8846 (
"Year" real,
"Ship" text,
"Departed From" text,
"Departed On" text,
"Returned On" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- From how many years did tampa, FL depart?
### Response:
| SELECT SUM("Year") FROM table_8846 WHERE "Departed From" = 'tampa, fl' |
### Instruction:
CREATE TABLE table_name_54 (
total_casualties VARCHAR,
military_and_or_civilian_wounded VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the total casualties with 1,200+ military and/or civilian wounded?
### Response:
| SELECT total_casualties FROM table_name_54 WHERE military_and_or_civilian_wounded = "1,200+" |
### Instruction:
CREATE TABLE table_64304 (
"Year" real,
"Chinese Title" text,
"English" text,
"Role" text,
"Character" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the English character for Lin Ming Kuan ( )?
### Response:
| SELECT "English" FROM table_64304 WHERE "Character" = 'lin ming kuan (林明寬)' |
### Instruction:
CREATE TABLE table_204_832 (
id number,
"name" text,
"nationality" text,
"club" text,
"from" number,
"until" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total coaches on the list are from canada ?
### Response:
| SELECT COUNT(*) FROM table_204_832 WHERE "nationality" = 'canada' |
### Instruction:
CREATE TABLE table_name_41 (
pole_position VARCHAR,
winning_team VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Pole Position for Winning Team Penske Racing, and the Name of II Copa Mexico 150?
### Response:
| SELECT pole_position FROM table_name_41 WHERE winning_team = "penske racing" AND name = "ii copa mexico 150" |
### Instruction:
CREATE TABLE table_name_46 (
tier VARCHAR,
semi_finalists VARCHAR,
runner_up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tier had a runner-up of Lisa Raymond and a semifinalist of Sandrine Testud Mary Pierce?
### Response:
| SELECT tier FROM table_name_46 WHERE semi_finalists = "sandrine testud mary pierce" AND runner_up = "lisa raymond" |
### Instruction:
CREATE TABLE table_56054 (
"Year" real,
"Song Title" text,
"Movie" text,
"Music Director" text,
"Co-Singers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was 'Ulike o Chilake' released?
### Response:
| SELECT "Year" FROM table_56054 WHERE "Song Title" = 'ulike o chilake' |
### Instruction:
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is mi... | SELECT job, MIN(age) FROM Person GROUP BY job |
### Instruction:
CREATE TABLE table_203_763 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in what years did ramon gonzalez come in first place ?
### Respon... | SELECT "year" FROM table_203_763 WHERE "position" = 1 |
### Instruction:
CREATE TABLE table_70906 (
"Director(s)" text,
"Writer(s)" text,
"Recipient" text,
"Date" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was Edward Jeffreys the writer?
### Response:
| SELECT "Date" FROM table_70906 WHERE "Writer(s)" = 'edward jeffreys' |
### Instruction:
CREATE TABLE table_name_84 (
opponents_in_the_final VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Opponents In The Final, when Score is 4-1 5-4 (7) 4-2?
### Response:
| SELECT opponents_in_the_final FROM table_name_84 WHERE score = "4-1 5-4 (7) 4-2" |
### Instruction:
CREATE TABLE table_71612 (
"Date" text,
"Company" text,
"Business" text,
"Country" text,
"Value ( USD )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What company has an unknown date and is an energy business?
### Response:
| SELECT "Company" FROM table_71612 WHERE "Business" = 'energy' AND "Date" = 'unknown' |
### Instruction:
CREATE TABLE table_35869 (
"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 event has 12-1 as a record?
### Response:
| SELECT "Event" FROM table_35869 WHERE "Record" = '12-1' |
### Instruction:
CREATE TABLE table_203_309 (
id number,
"team" text,
"winners" number,
"runners-up" number,
"years won" text,
"years lost" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which teams won the title at least twice ?
### Response:... | SELECT "team" FROM table_203_309 WHERE "winners" >= 2 |
### Instruction:
CREATE TABLE table_51103 (
"Owner" text,
"Class" text,
"Number in class" real,
"Road numbers" text,
"Built" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number in class for the Whitehaven Coal?
### Response:
| SELECT SUM("Number in class") FROM table_51103 WHERE "Owner" = 'whitehaven coal' |
### Instruction:
CREATE TABLE table_9699 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the home team when the away team was Frickley Athletic?
### Response:
| SELECT "Home team" FROM table_9699 WHERE "Away team" = 'frickley athletic' |
### Instruction:
CREATE TABLE table_name_41 (
total_apps INTEGER,
fa_cup_apps VARCHAR,
total_goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9?
### Respon... | SELECT MAX(total_apps) FROM table_name_41 WHERE fa_cup_apps = 26 AND total_goals > 9 |
### Instruction:
CREATE TABLE table_name_20 (
losses INTEGER,
sunrayia_fl VARCHAR,
against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the losses when Sunrayia FL is Red Cliffs, and the against is more than 2294?
### Response:
| SELECT AVG(losses) FROM table_name_20 WHERE sunrayia_fl = "red cliffs" AND against > 2294 |
### Instruction:
CREATE TABLE table_47443 (
"Series Sorted" text,
"Title" text,
"Doctor" text,
"Featuring" text,
"Released" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the released when the series is sorted 6y/ai?
### Response:
| SELECT "Released" FROM table_47443 WHERE "Series Sorted" = '6y/ai' |
### Instruction:
CREATE TABLE table_6071 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the events in the 1976 Innsbruck Games?
### Response:
| SELECT "Event" FROM table_6071 WHERE "Games" = '1976 innsbruck' |
### Instruction:
CREATE TABLE table_203_291 (
id number,
"round" number,
"pick" number,
"player" text,
"position" text,
"school/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the player picked in the last round ?
... | SELECT "player" FROM table_203_291 ORDER BY "round" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_77218 (
"Rank" text,
"Name" text,
"Location" text,
"Length ( m )" text,
"Length ( ft )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the longest arch with a length in meters of 63?
### Response:
| SELECT "Location" FROM table_77218 WHERE "Length ( m )" = '63' |
### Instruction:
CREATE TABLE table_name_34 (
city_of_license VARCHAR,
resolution VARCHAR,
official_website VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the city of license with resolution of sd 480i and official website of telemundo.com
### Res... | SELECT city_of_license FROM table_name_34 WHERE resolution = "sd 480i" AND official_website = "telemundo.com" |
### Instruction:
CREATE TABLE table_19614212_1 (
_percentage_same_sex_marriages VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many % same-sex marriages are there for the year 2008?
### Response:
| SELECT COUNT(_percentage_same_sex_marriages) FROM table_19614212_1 WHERE year = "2008" |
### Instruction:
CREATE TABLE table_30554 (
"#" real,
"Player" text,
"Country" text,
"Points" real,
"Reset points" real,
"Events" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of people where the pieces is 3015
### Response... | SELECT COUNT("Player") FROM table_30554 WHERE "Points" = '3015' |
### Instruction:
CREATE TABLE table_39371 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has a Pick # of 18?
### Response:
| SELECT "Position" FROM table_39371 WHERE "Pick #" = '18' |
### Instruction:
CREATE TABLE table_49850 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the score 123-112?
### Response:
| SELECT "Date" FROM table_49850 WHERE "Score" = '123-112' |
### Instruction:
CREATE TABLE table_48607 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score did Ted Kroll get to come in at T2?
### Response:
| SELECT "Score" FROM table_48607 WHERE "Place" = 't2' AND "Player" = 'ted kroll' |
### Instruction:
CREATE TABLE table_5467 (
"Date/Time ( GMT )" text,
"Variant" text,
"Launch site" text,
"Mission" text,
"Outcome" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Variant has a Launch site that is white sands?
### Response:
| SELECT "Variant" FROM table_5467 WHERE "Launch site" = 'white sands' |
### Instruction:
CREATE TABLE table_name_10 (
opponents VARCHAR,
partner VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the Opponents when Laura DuPont had Pam Shriver as Partner with a Score of 6-3, 6-3?
### Response:
| SELECT opponents FROM table_name_10 WHERE partner = "pam shriver" AND score = "6-3, 6-3" |
### Instruction:
CREATE TABLE table_55525 (
"Goal" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date did Goal 24 take place?
### Response:
| SELECT "Date" FROM table_55525 WHERE "Goal" = '24' |
### Instruction:
CREATE TABLE table_name_23 (
score VARCHAR,
player VARCHAR,
country VARCHAR,
money___$__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the United States when Harry Hampton is the player and the money is $73?
... | SELECT score FROM table_name_23 WHERE country = "united states" AND money___$__ = "73" AND player = "harry hampton" |
### Instruction:
CREATE TABLE table_50957 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country had a score of 69-67=136?
### Response:
| SELECT "Country" FROM table_50957 WHERE "Score" = '69-67=136' |
### Instruction:
CREATE TABLE table_49391 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the game that was played at Detroit Lions?
### Response:
| SELECT "Result" FROM table_49391 WHERE "Opponent" = 'at detroit lions' |
### Instruction:
CREATE TABLE table_79476 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average pick of player jim h. mitchell?
### Response:
| SELECT AVG("Pick") FROM table_79476 WHERE "Player" = 'jim h. mitchell' |
### Instruction:
CREATE TABLE table_62971 (
"Rank" real,
"Lane" real,
"Athlete" text,
"Nationality" text,
"Time" real,
"React" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much total time was in lane 4?
### Response:
| SELECT COUNT("Time") FROM table_62971 WHERE "Lane" = '4' |
### Instruction:
CREATE TABLE table_51008 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the away team when the attendance was 206?
### Response:
| SELECT "Away team" FROM table_51008 WHERE "Attendance" = '206' |
### Instruction:
CREATE TABLE table_71430 (
"Country" text,
"Film title used in nomination" text,
"Language" text,
"Original title" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the original title directed by sudhendu roy
##... | SELECT "Original title" FROM table_71430 WHERE "Director" = 'sudhendu roy' |
### Instruction:
CREATE TABLE table_43747 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player has a score of 71-72=143?
### Response:
| SELECT "Player" FROM table_43747 WHERE "Score" = '71-72=143' |
### Instruction:
CREATE TABLE table_13949 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date for the tournament acapulco?
### Response:
| SELECT "Date" FROM table_13949 WHERE "Tournament" = 'acapulco' |
### Instruction:
CREATE TABLE table_name_80 (
score VARCHAR,
opponent VARCHAR,
game VARCHAR,
march VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which score's game was less than 69 when the march was bigger than 2 and the opponents were the New York... | SELECT score FROM table_name_80 WHERE game < 69 AND march > 2 AND opponent = "new york islanders" |
### Instruction:
CREATE TABLE table_76838 (
"Name" text,
"Took Office" text,
"Left Office" text,
"President" text,
"Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Party, when Took Office is 1998?
### Response:
| SELECT "Party" FROM table_76838 WHERE "Took Office" = '1998' |
### Instruction:
CREATE TABLE table_25260 (
"Number" real,
"Name" text,
"Position" text,
"Height" text,
"Experience" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the number of the player that was 6-6?
### Response:
| SELECT "Number" FROM table_25260 WHERE "Height" = '6-6' |
### Instruction:
CREATE TABLE table_6758 (
"Date" text,
"Pos." text,
"Player" text,
"From club" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has a Date of 13 july 2007?
### Response:
| SELECT "Player" FROM table_6758 WHERE "Date" = '13 july 2007' |
### Instruction:
CREATE TABLE table_58497 (
"Name" text,
"Years" text,
"Area" text,
"Authority" text,
"Decile" text,
"Roll" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHat is the decile of the school in Purua?
### Response:
| SELECT "Decile" FROM table_58497 WHERE "Area" = 'purua' |
### Instruction:
CREATE TABLE table_13857700_1 (
mens_doubles VARCHAR,
mixed_doubles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the mens doubles with mixed doubles being jimm aalto nina sarnesto
### Response:
| SELECT mens_doubles FROM table_13857700_1 WHERE mixed_doubles = "Jimm Aalto Nina Sarnesto" |
### Instruction:
CREATE TABLE table_2071644_2 (
weight__kg_m_ VARCHAR,
cross_section_area__cm_2__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the weight with a cross section area of 25.3?
### Response:
| SELECT weight__kg_m_ FROM table_2071644_2 WHERE cross_section_area__cm_2__ = "25.3" |
### Instruction:
CREATE TABLE table_name_6 (
laps INTEGER,
grid VARCHAR,
constructor VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of laps for mika salo's arrows car with a grid over 13?
### Response:
| SELECT AVG(laps) FROM table_name_6 WHERE constructor = "arrows" AND driver = "mika salo" AND grid > 13 |
### Instruction:
CREATE TABLE table_name_78 (
venue VARCHAR,
date VARCHAR,
result VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the friendly competition that Andriy Yarmolenko won on 28 may 2012?
### Response:
| SELECT venue FROM table_name_78 WHERE result = "won" AND competition = "friendly" AND date = "28 may 2012" |
### Instruction:
CREATE TABLE table_203_306 (
id number,
"no." number,
"title" text,
"directed by" text,
"written by" text,
"original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many episodes were unaired in u.s ?
### Response... | SELECT COUNT("title") FROM table_203_306 WHERE "original air date" IS NULL |
### Instruction:
CREATE TABLE table_222 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which constructor was present at the Redex Trophy race?
... | SELECT "Constructor" FROM table_222 WHERE "Race Name" = 'RedeX Trophy' |
### Instruction:
CREATE TABLE table_name_48 (
runner_s__up VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the runner(s)-up with a winning score of 5 (72-71-68=211)?
### Response:
| SELECT runner_s__up FROM table_name_48 WHERE winning_score = −5(72 - 71 - 68 = 211) |
### Instruction:
CREATE TABLE table_name_4 (
laps INTEGER,
year VARCHAR,
co_drivers VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Laps that has a Year after 2002 with Alexander Frei Bruno Besson?
### Response:
| SELECT MIN(laps) FROM table_name_4 WHERE year > 2002 AND co_drivers = "alexander frei bruno besson" |
### Instruction:
CREATE TABLE table_name_56 (
total_finals INTEGER,
runners_up VARCHAR,
winners VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest total number of finals a club with more than 2 runners-up and fewer than 1 winner went to?
... | SELECT MAX(total_finals) FROM table_name_56 WHERE runners_up > 2 AND winners < 1 |
### Instruction:
CREATE TABLE table_name_50 (
grid VARCHAR,
bike VARCHAR,
rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Grid of R gis Laconi's bike that is a Kawasaki zx-10r?
### Response:
| SELECT grid FROM table_name_50 WHERE bike = "kawasaki zx-10r" AND rider = "régis laconi" |
### Instruction:
CREATE TABLE table_72860 (
"1st throw" real,
"2nd throw" real,
"3rd throw" text,
"Equation" text,
"Result" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the equation is all equal, what is the 3rd throw?
### Response:
| SELECT "3rd throw" FROM table_72860 WHERE "Equation" = 'all equal' |
### Instruction:
CREATE TABLE table_13998897_1 (
height_m___ft__ VARCHAR,
notes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many height m ( ft ) with notes being via wccv; formerly w236aj
### Response:
| SELECT COUNT(height_m___ft__) FROM table_13998897_1 WHERE notes = "via WCCV; formerly W236AJ" |
### Instruction:
CREATE TABLE table_4152 (
"Episode #" real,
"Series #" real,
"Episode Title" text,
"Original air date" text,
"Production Code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when 69 is the episode number what is the air date?
### ... | SELECT "Original air date" FROM table_4152 WHERE "Episode #" = '69' |
### Instruction:
CREATE TABLE table_61829 (
"School" text,
"Location" text,
"Nickname(s)" text,
"Colors" text,
"Years Member" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Colors has a School of zeigler high school?
### Response:
| SELECT "Colors" FROM table_61829 WHERE "School" = 'zeigler high school' |
### Instruction:
CREATE TABLE table_7340 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What away game had a time of 10:00?
### Response:
| SELECT "Away" FROM table_7340 WHERE "Time" = '10:00' |
### Instruction:
CREATE TABLE table_204_313 (
id number,
"date" text,
"operation" text,
"location" text,
"type" text,
"information" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many months did operation maritime monitor last ?
### Respon... | SELECT "date" - "date" FROM table_204_313 WHERE "operation" = 'operation maritime monitor' |
### Instruction:
CREATE TABLE table_25330991_3 (
james_e_holmes VARCHAR,
western_rockingham_middle_school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the james e. holmes for duane hensley
### Response:
| SELECT james_e_holmes FROM table_25330991_3 WHERE western_rockingham_middle_school = "Duane Hensley" |
### Instruction:
CREATE TABLE table_47687 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player from Spain that has a +2 to par?
### Response:
| SELECT "Player" FROM table_47687 WHERE "To par" = '+2' AND "Country" = 'spain' |
### Instruction:
CREATE TABLE table_62623 (
"Name" text,
"Tournaments" real,
"Pro Debut" text,
"Top division debut" text,
"Highest rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rank is Highest for Yoshiazuma?
### Response:
| SELECT "Highest rank" FROM table_62623 WHERE "Name" = 'yoshiazuma' |
### Instruction:
CREATE TABLE table_75793 (
"Date" text,
"Opponent" text,
"Location" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended when Wake Forest played Virginia Tech?
### Response:
| SELECT SUM("Attendance") FROM table_75793 WHERE "Opponent" = 'virginia tech' |
### Instruction:
CREATE TABLE table_name_26 (
points INTEGER,
visitor VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the points of the game with philadelphia as the visitor and an attendance greater than 7,284?
##... | SELECT SUM(points) FROM table_name_26 WHERE visitor = "philadelphia" AND attendance > 7 OFFSET 284 |
### Instruction:
CREATE TABLE table_41227 (
"Season" text,
"Competition" text,
"Round" text,
"Club" text,
"Home" text,
"Away" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which away has apoel as the club?
### Response:
| SELECT "Away" FROM table_41227 WHERE "Club" = 'apoel' |
### Instruction:
CREATE TABLE table_2450 (
"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.
-- Name the regular season for 2005
### Response:
| SELECT "Regular Season" FROM table_2450 WHERE "Year" = '2005' |
### Instruction:
CREATE TABLE table_11940 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended on July 5?
### Response:
| SELECT SUM("Attendance") FROM table_11940 WHERE "Date" = 'july 5' |
### 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.
-- how many mayors were either fisherman or farmers ?
### Response... | SELECT COUNT("name") FROM table_201_10 WHERE "occupation" IN ('fisherman', 'farmer') |
### Instruction:
CREATE TABLE table_26429543_1 (
production_code VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different production codes are there for the episode with 4.69 million US viewers?
### Response:
| SELECT COUNT(production_code) FROM table_26429543_1 WHERE us_viewers__millions_ = "4.69" |
### Instruction:
CREATE TABLE table_59393 (
"Competition" text,
"Round" text,
"Date and time" text,
"Opponent team" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Competition, when Round is '8 A'?
### Response:
| SELECT "Competition" FROM table_59393 WHERE "Round" = '8 a' |
### Instruction:
CREATE TABLE table_name_23 (
number_of_languages INTEGER,
frequency VARCHAR,
publisher VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mean number of languages for the monthly frequency when the publisher is the hearst corpora... | SELECT AVG(number_of_languages) FROM table_name_23 WHERE frequency = "monthly" AND publisher = "hearst corporation" |
### Instruction:
CREATE TABLE perpetrator (
Date VARCHAR,
People_ID VARCHAR
)
CREATE TABLE people (
People_ID VARCHAR,
Height VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the date of the tallest perpetrator.
### Response:
| SELECT T2.Date FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_203_815 (
id number,
"pick #" number,
"nfl team" text,
"player" text,
"position" text,
"college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the only player from kansas state ?
### Response:
| SELECT "player" FROM table_203_815 WHERE "college" = 'kansas state' |
### Instruction:
CREATE TABLE table_20900 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did the winnipeg blue bombers draft?
### Response:
| SELECT "Position" FROM table_20900 WHERE "CFL Team" = 'Winnipeg Blue Bombers' |
### Instruction:
CREATE TABLE table_1425 (
"#" real,
"Series Sorted" text,
"Title" text,
"Author" text,
"Doctor" text,
"Featuring" text,
"Released" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What series was sorted at number 3?
### Resp... | SELECT "Series Sorted" FROM table_1425 WHERE "#" = '3' |
### Instruction:
CREATE TABLE table_name_94 (
starts INTEGER,
chassis VARCHAR,
finishes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average starts when the chassis is focus rs wrc 08 and finishes is more than 27?
### Response:
| SELECT AVG(starts) FROM table_name_94 WHERE chassis = "focus rs wrc 08" AND finishes > 27 |
### Instruction:
CREATE TABLE table_38256 (
"Name" text,
"Type" text,
"Year Built" real,
"Where Built" text,
"Length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year built for the Fay No. 4?
### Response:
| SELECT MAX("Year Built") FROM table_38256 WHERE "Name" = 'fay no. 4' |
### Instruction:
CREATE TABLE table_63579 (
"Location" text,
"Name of mill" text,
"Type" text,
"Built" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the Notes of the Mill Built in the 19th Century?
### Response:
| SELECT "Notes" FROM table_63579 WHERE "Built" = '19th century' |
### Instruction:
CREATE TABLE table_14275 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on June 3?
### Response:
| SELECT "Opponent" FROM table_14275 WHERE "Date" = 'june 3' |
### Instruction:
CREATE TABLE table_51784 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Attendance has a Result of w 51-21?
### Response:
| SELECT "Attendance" FROM table_51784 WHERE "Result" = 'w 51-21' |
### Instruction:
CREATE TABLE table_69561 (
"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's the Qual listed with a Rank of 27?
### Response:
| SELECT "Qual" FROM table_69561 WHERE "Rank" = '27' |
### Instruction:
CREATE TABLE table_63126 (
"Club" text,
"League" text,
"City/Town" text,
"Stadium" text,
"Capacity" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What town has the Welford Road Stadium?
### Response:
| SELECT "City/Town" FROM table_63126 WHERE "Stadium" = 'welford road' |
### Instruction:
CREATE TABLE table_50858 (
"Internet Plan" text,
"Downstream" text,
"Upstream" text,
"Bandwidth Included" text,
"Price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Upstream, when Price is '14 EUR'?
### Response:
| SELECT "Upstream" FROM table_50858 WHERE "Price" = '14 eur' |
### Instruction:
CREATE TABLE table_71165 (
"School" text,
"Grades" text,
"Affiliation" text,
"Student Body" text,
"Enrollment" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What School has an Enrollement smaller than 301?
### Response:
| SELECT "School" FROM table_71165 WHERE "Enrollment" < '301' |
### Instruction:
CREATE TABLE table_202_104 (
id number,
"governorate" text,
"percentage" text,
"seats won" number,
"total seats" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many groups have more than 32 total seats ?
### Response:
| SELECT COUNT("governorate") FROM table_202_104 WHERE "total seats" > 32 |
### Instruction:
CREATE TABLE table_36562 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Round of joe patterson?
### Response:
| SELECT MIN("Round") FROM table_36562 WHERE "Player" = 'joe patterson' |
### Instruction:
CREATE TABLE table_18173916_8 (
wednesday VARCHAR,
monday VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which chapter was Transmitted on wednesday if the episode of '363 the hangover part ii' was transmitted on monday?
### Response:
| SELECT wednesday FROM table_18173916_8 WHERE monday = "363 The Hangover Part II" |
### Instruction:
CREATE TABLE table_56141 (
"Episode" text,
"1st edition" text,
"2nd edition" text,
"3rd edition" text,
"4th edition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1st Edition for the Episode 4?
### Response:
| SELECT "1st edition" FROM table_56141 WHERE "Episode" = '4' |
### Instruction:
CREATE TABLE table_51294 (
"Event" text,
"2nd round" text,
"Quarterfinal" text,
"Semifinal" text,
"Final" text,
"Rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Semifinal has an Event of team?
### Response:
| SELECT "Semifinal" FROM table_51294 WHERE "Event" = 'team' |
### Instruction:
CREATE TABLE table_77934 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the circuit held on 15 april?
### Response:
| SELECT "Circuit" FROM table_77934 WHERE "Date" = '15 april' |
### Instruction:
CREATE TABLE table_60660 (
"Season" text,
"League" text,
"Finish" text,
"Wins" text,
"Losses" text,
"Pct." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the league with 0 losses?
### Response:
| SELECT "League" FROM table_60660 WHERE "Losses" = '0' |
### Instruction:
CREATE TABLE table_17120964_8 (
attendance INTEGER,
man_of_the_match VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance at the game where Neil Liddiard was Man of the Match?
### Response:
| SELECT MIN(attendance) FROM table_17120964_8 WHERE man_of_the_match = "Neil Liddiard" |
### Instruction:
CREATE TABLE table_name_14 (
bronze INTEGER,
total VARCHAR,
gold VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest bronze medal count for Italy with fewer than 6 gold medals and greater than 10 total m... | SELECT MIN(bronze) FROM table_name_14 WHERE gold < 6 AND nation = "italy" AND total > 10 |
### Instruction:
CREATE TABLE table_22904752_1 (
_number VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the # when u.s. viewers (million) is 17.44?
### Response:
| SELECT COUNT(_number) FROM table_22904752_1 WHERE us_viewers__million_ = "17.44" |
### Instruction:
CREATE TABLE table_204_846 (
id number,
"tie no" number,
"home team" text,
"score" text,
"away team" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which tie no had the least attendants ?
### Response:
| SELECT "tie no" FROM table_204_846 ORDER BY "attendance" LIMIT 1 |
### Instruction:
CREATE TABLE table_47587 (
"Rank" real,
"Team" text,
"Played" real,
"Wins" real,
"Losses" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank for less than 6 plays?
### Response:
| SELECT SUM("Rank") FROM table_47587 WHERE "Played" < '6' |
### Instruction:
CREATE TABLE table_28859177_3 (
production_code VARCHAR,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production code for the episode that aired on October 15, 2004?
### Response:
| SELECT production_code FROM table_28859177_3 WHERE original_air_date = "October 15, 2004" |
### Instruction:
CREATE TABLE table_10294071_1 (
ties_played INTEGER,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the maximum ties played where player is josip palada category:articles with hcards
### Response:
| SELECT MAX(ties_played) FROM table_10294071_1 WHERE player = "Josip Palada Category:Articles with hCards" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.