instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_5114 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did they get 4 points with Suzuki?
### Response:
| SELECT AVG("Year") FROM table_5114 WHERE "Team" = 'suzuki' AND "Points" = '4' |
### Instruction:
CREATE TABLE table_48627 (
"Team" text,
"Head coach" text,
"Team captain" text,
"Kitmaker" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the team captain of the team that L bzer is the shirt sponsor for?
### Response:
| SELECT "Team captain" FROM table_48627 WHERE "Shirt sponsor" = 'lübzer' |
### Instruction:
CREATE TABLE table_9810 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the class of 2009?
### Response:
| SELECT "Class" FROM table_9810 WHERE "Year" = '2009' |
### Instruction:
CREATE TABLE table_204_373 (
id number,
"wager" text,
"winner" text,
"loser" text,
"location" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total fights took place in mexico city , mexico ?
### Response:
| SELECT COUNT(*) FROM table_204_373 WHERE "location" = 'mexico city, mexico' |
### Instruction:
CREATE TABLE table_name_17 (
place VARCHAR,
date VARCHAR,
race VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the place result of the downhill race before the 1996 season on 11-Mar-1995?
### Response:
| SELECT place FROM table_name_17 WHERE race = "downhill" AND season < 1996 AND date = "11-mar-1995" |
### Instruction:
CREATE TABLE table_80024 (
"Model" text,
"Seats" text,
"Period" text,
"Built" real,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many cabins were built in the time between 1967-1987?
### Response:
| SELECT "Built" FROM table_80024 WHERE "Period" = '1967-1987' |
### Instruction:
CREATE TABLE table_53035 (
"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 was the aggregate for a team #2 of Okk Beograd?
### Response:
| SELECT "Agg." FROM table_53035 WHERE "Team #2" = 'okk beograd' |
### Instruction:
CREATE TABLE table_name_13 (
total INTEGER,
rank VARCHAR,
county VARCHAR,
tally VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Total has a County of kilkenny, and a Tally of 1 4, and a Rank larger than 10?
### Response:
| SELECT AVG(total) FROM table_name_13 WHERE county = "kilkenny" AND tally = "1–4" AND rank > 10 |
### Instruction:
CREATE TABLE table_11751 (
"Town/City" text,
"Population" real,
"Operator" text,
"First year" real,
"Duration" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which is the smallest First year when the population is 32,645?
### Response:
| SELECT MIN("First year") FROM table_11751 WHERE "Population" = '32,645' |
### Instruction:
CREATE TABLE table_203_790 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which week saw attendance of at least 70,000 ?
### Response:
| SELECT "date" FROM table_203_790 WHERE "attendance" >= 70000 |
### Instruction:
CREATE TABLE table_70285 (
"Date" text,
"Venue" text,
"Score [A ]" text,
"Competition" text,
"Att." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue was used on 12 September 1998?
### Response:
| SELECT "Venue" FROM table_70285 WHERE "Date" = '12 september 1998' |
### Instruction:
CREATE TABLE table_2789 (
"Date" text,
"Location" text,
"Opponent" text,
"Cyclones Points" real,
"Opp. Points" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the team play against Niagara?
### Response:
| SELECT "Date" FROM table_2789 WHERE "Opponent" = 'Niagara' |
### Instruction:
CREATE TABLE table_1371 (
"Vertical" real,
"Horizontal" real,
"Aspect ratio" text,
"Pixel aspect ratio" text,
"Form of scanning" text,
"Framerate ( Hz )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the aspect ratio for 720
### Response:
| SELECT "Aspect ratio" FROM table_1371 WHERE "Horizontal" = '720' |
### Instruction:
CREATE TABLE table_37321 (
"District" real,
"Incumbent" text,
"2008 Status" text,
"Democratic" text,
"Republican" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which District has a Republican of dan mansell?
### Response:
| SELECT AVG("District") FROM table_37321 WHERE "Republican" = 'dan mansell' |
### Instruction:
CREATE TABLE table_71087 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the loss of the game when the record was 3 2?
### Response:
| SELECT "Loss" FROM table_71087 WHERE "Record" = '3–2' |
### Instruction:
CREATE TABLE table_name_87 (
byes INTEGER,
wins VARCHAR,
against VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Byes have an Against larger than 1235, and Losses smaller than 10, and Wins larger than 7?
### Response:
| SELECT MAX(byes) FROM table_name_87 WHERE against > 1235 AND losses < 10 AND wins > 7 |
### Instruction:
CREATE TABLE table_12978 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Week 2 has a Week 3 of casey mae?
### Response:
| SELECT "Week 2" FROM table_12978 WHERE "Week 3" = 'casey mae' |
### Instruction:
CREATE TABLE table_72406 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What candidates are from mississippi 6?
### Response:
| SELECT "Candidates" FROM table_72406 WHERE "District" = 'Mississippi 6' |
### Instruction:
CREATE TABLE table_204_951 (
id number,
"candidate" text,
"votes" number,
"percentage" text,
"counties" number,
"delegates" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many votes did alan keyes receive ?
### Response:
| SELECT "votes" FROM table_204_951 WHERE "candidate" = 'alan keyes' |
### Instruction:
CREATE TABLE table_27495117_3 (
manner_of_departure VARCHAR,
date_of_appointment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the manner of departure for the appointment date of 21 september 2010
### Response:
| SELECT manner_of_departure FROM table_27495117_3 WHERE date_of_appointment = "21 September 2010" |
### Instruction:
CREATE TABLE table_203_562 (
id number,
"state" text,
"no. of candidates" number,
"no. of elected" number,
"total no. of seats in assembly" number,
"year of election" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who elected 17 ?
### Response:
| SELECT "state" FROM table_203_562 WHERE "no. of elected" = 17 |
### 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.
-- How old is the youngest person for each job. Show the proportion.
### Response:
| SELECT job, MIN(age) FROM Person GROUP BY job |
### Instruction:
CREATE TABLE table_36453 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Record is on july 31?
### Response:
| SELECT "Record" FROM table_36453 WHERE "Date" = 'july 31' |
### Instruction:
CREATE TABLE table_75295 (
"Position" text,
"Game 1" text,
"Game 2" text,
"Game 3" text,
"Exhibition*" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wjat game 3 has ian french as a game of 2?
### Response:
| SELECT "Game 3" FROM table_75295 WHERE "Game 2" = 'ian french' |
### Instruction:
CREATE TABLE table_31887 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the latest round with a running back from a California college?
### Response:
| SELECT MAX("Round") FROM table_31887 WHERE "Position" = 'running back' AND "College" = 'california' |
### Instruction:
CREATE TABLE table_71864 (
"Team" text,
"1st Match" text,
"Matches" text,
"Lost" text,
"% Won" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the matches for the first match being 30 march 1997
### Response:
| SELECT "Matches" FROM table_71864 WHERE "1st Match" = '30 march 1997' |
### Instruction:
CREATE TABLE table_66096 (
"Rank" real,
"Heat" real,
"Name" text,
"Nationality" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average time with a rank lower than 2 for Andy Turner?
### Response:
| SELECT AVG("Time") FROM table_66096 WHERE "Rank" > '2' AND "Name" = 'andy turner' |
### Instruction:
CREATE TABLE table_2308 (
"#" real,
"Date" text,
"at/vs." text,
"Opponent" text,
"Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date for attendance 9372
### Response:
| SELECT "Date" FROM table_2308 WHERE "Attendance" = '9372' |
### Instruction:
CREATE TABLE table_75620 (
"Source" text,
"Date" text,
"Goldberg" text,
"Murray" text,
"Silbert" text,
"Undecided" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the poll with Silbert at 18%?
### Response:
| SELECT "Date" FROM table_75620 WHERE "Silbert" = '18%' |
### Instruction:
CREATE TABLE table_9379 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day did Phoenix play?
### Response:
| SELECT "Date" FROM table_9379 WHERE "Team" = 'phoenix' |
### Instruction:
CREATE TABLE table_68633 (
"Year" text,
"Record" text,
"Finish" text,
"Manager" text,
"Playoffs" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the year for jesus alfaro and finish of 6th
### Response:
| SELECT "Year" FROM table_68633 WHERE "Manager" = 'jesus alfaro' AND "Finish" = '6th' |
### Instruction:
CREATE TABLE table_51089 (
"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 is Away Team, when Home Team is 'Sheffield Wednesday'?
### Response:
| SELECT "Away team" FROM table_51089 WHERE "Home team" = 'sheffield wednesday' |
### Instruction:
CREATE TABLE table_57015 (
"Year" real,
"Author" text,
"English title" text,
"Original title" text,
"Representing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the representating for ingenj r andr es luftf rd
### Response:
| SELECT "Representing" FROM table_57015 WHERE "Original title" = 'ingenjör andrées luftfärd' |
### Instruction:
CREATE TABLE table_41035 (
"Year" real,
"Song" text,
"Canada Singles" text,
"US Hot 100" text,
"US A.C." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the US A.C. in 1974?
### Response:
| SELECT "US A.C." FROM table_41035 WHERE "Year" = '1974' |
### Instruction:
CREATE TABLE table_10133 (
"Rank" real,
"Airline" text,
"Country" text,
"Passengers Carried" real,
"Remarks" text,
"Alliance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average rank of gol on airlines?
### Response:
| SELECT AVG("Rank") FROM table_10133 WHERE "Airline" = 'gol' |
### Instruction:
CREATE TABLE table_56362 (
"Class" text,
"Ships in class" text,
"Pennant Number" real,
"Unit" text,
"Builder" text,
"Commissioned" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which unit has a Pennant Number of 82?
### Response:
| SELECT "Unit" FROM table_56362 WHERE "Pennant Number" = '82' |
### Instruction:
CREATE TABLE table_37890 (
"Date" text,
"Round" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Was the semi-final round held at home or away?
### Response:
| SELECT "H / A" FROM table_37890 WHERE "Round" = 'semi-final' |
### Instruction:
CREATE TABLE table_39912 (
"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 is the Ground with a Score that is 49-80?
### Response:
| SELECT "Ground" FROM table_39912 WHERE "Score" = '49-80' |
### Instruction:
CREATE TABLE table_41073 (
"Platform" real,
"Frequency (per hour)" real,
"Destination" text,
"Service Pattern" text,
"Operator" text,
"Line" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Platforms have a Frequency of less than 2?
### Response:
| SELECT COUNT("Platform") FROM table_41073 WHERE "Frequency (per hour)" < '2' |
### Instruction:
CREATE TABLE table_41375 (
"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 was the first leg score for the match that had AS Police as team 2?
### Response:
| SELECT "1st leg" FROM table_41375 WHERE "Team 2" = 'as police' |
### Instruction:
CREATE TABLE table_203_139 (
id number,
"name" text,
"abbr." text,
"leader" text,
"ideology" text,
"political position" text,
"mps" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which party has the most mps ?
### Response:
| SELECT "name" FROM table_203_139 ORDER BY "mps" DESC LIMIT 1 |
### Instruction:
CREATE TABLE list (
classroom VARCHAR
)
CREATE TABLE teachers (
classroom VARCHAR,
firstname VARCHAR,
lastname VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many students does KAWA GORDON teaches?
### Response:
| SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "KAWA" AND T2.lastname = "GORDON" |
### Instruction:
CREATE TABLE table_55983 (
"Name" text,
"Current version" text,
"System" text,
"Platform" text,
"License" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the License when the Platform is windows and the Name is Altirra?
### Response:
| SELECT "License" FROM table_55983 WHERE "Platform" = 'windows' AND "Name" = 'altirra' |
### Instruction:
CREATE TABLE table_10113 (
"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 opponent has a Result of l 6 3?
### Response:
| SELECT "Opponent" FROM table_10113 WHERE "Result" = 'l 6–3' |
### Instruction:
CREATE TABLE table_17964087_2 (
foreign_nationality VARCHAR,
romanised_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the name romanised name is lo yik-kee, victor what is the total number foreign nationality that is listed?
### Response:
| SELECT COUNT(foreign_nationality) FROM table_17964087_2 WHERE romanised_name = "Lo Yik-kee, Victor" |
### Instruction:
CREATE TABLE table_52830 (
"Name" text,
"Species" text,
"Overview" text,
"Introduced" text,
"Feral" text,
"Threat level" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Overview with a medium Threat Level?
### Response:
| SELECT "Overview" FROM table_52830 WHERE "Threat level" = 'medium' |
### Instruction:
CREATE TABLE table_51967 (
"Component" text,
"Integrated" text,
"Allied-Related" text,
"Allied-Unrelated" text,
"Holding" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Allied-Unrelated is labeled as 'common'?
### Response:
| SELECT "Allied-Unrelated" FROM table_51967 WHERE "Allied-Related" = 'common' |
### Instruction:
CREATE TABLE table_9917 (
"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 with a score of 69-70-76=215?
### Response:
| SELECT "Player" FROM table_9917 WHERE "Score" = '69-70-76=215' |
### Instruction:
CREATE TABLE table_3218 (
"Season" text,
"Winner" text,
"Runner-up" text,
"Final Score" text,
"3rd place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In season 2007 08 who is the runner-up?
### Response:
| SELECT "Runner-up" FROM table_3218 WHERE "Season" = '2007–08' |
### Instruction:
CREATE TABLE table_15491 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the competition that was on august 25, 2007
### Response:
| SELECT "Competition" FROM table_15491 WHERE "Date" = 'august 25, 2007' |
### Instruction:
CREATE TABLE people (
Name VARCHAR,
People_ID VARCHAR
)
CREATE TABLE perpetrator (
People_ID VARCHAR,
Country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of perpetrators whose country is not 'China'?
### Response:
| SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country <> "China" |
### Instruction:
CREATE TABLE table_20596 (
"Western Title" text,
"Chinese Title" text,
"Pinyin" text,
"Released Date" text,
"Genre" text,
"Game Modes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the released date of Polarium?
### Response:
| SELECT "Released Date" FROM table_20596 WHERE "Western Title" = 'Polarium' |
### Instruction:
CREATE TABLE table_53166 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many attended the game with weekes recording the decision?
### Response:
| SELECT "Attendance" FROM table_53166 WHERE "Decision" = 'weekes' |
### Instruction:
CREATE TABLE table_51219 (
"Goal" real,
"Date" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals were scored on November 22, 1994?
### Response:
| SELECT SUM("Goal") FROM table_51219 WHERE "Date" = 'november 22, 1994' |
### Instruction:
CREATE TABLE table_4067 (
"Category" text,
"Player" text,
"Team" text,
"Games played" real,
"Totals" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the team when player is listed as Ronjay Buenafe?
### Response:
| SELECT "Team" FROM table_4067 WHERE "Player" = 'Ronjay Buenafe' |
### Instruction:
CREATE TABLE table_name_55 (
against VARCHAR,
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Against, when Venue is 'Twickenham , London', and when Date is '04/03/2000'?
### Response:
| SELECT against FROM table_name_55 WHERE venue = "twickenham , london" AND date = "04/03/2000" |
### Instruction:
CREATE TABLE table_name_19 (
year INTEGER,
round_1 VARCHAR,
money__$_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Round 1 of 66, and a Money ($) larger than 400,000 has what sum of year?
### Response:
| SELECT SUM(year) FROM table_name_19 WHERE round_1 = "66" AND money__$_ > 400 OFFSET 000 |
### Instruction:
CREATE TABLE table_1310 (
"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.
-- How many years did notre dame participate?
### Response:
| SELECT MAX("Years participated") FROM table_1310 WHERE "Team" = 'Notre Dame' |
### Instruction:
CREATE TABLE table_11469 (
"Outcome" text,
"Date" text,
"Location" text,
"Surface" text,
"Opponent in final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the opponent in the final Virginie Pichet?
### Response:
| SELECT "Date" FROM table_11469 WHERE "Opponent in final" = 'virginie pichet' |
### Instruction:
CREATE TABLE table_18221 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What location is Vin Weber from?
### Response:
| SELECT "District" FROM table_18221 WHERE "Incumbent" = 'Vin Weber' |
### Instruction:
CREATE TABLE table_25011 (
"Year" real,
"Song title" text,
"Artist" text,
"Master recording" text,
"NA/UK/AUS/JPN/NL tier" text,
"European tier" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the master recording for europe
### Response:
| SELECT "Master recording" FROM table_25011 WHERE "Artist" = 'Europe' |
### Instruction:
CREATE TABLE table_35835 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the silver medal in the games where Hong Chia-yuh took home bronze?
### Response:
| SELECT "Silver" FROM table_35835 WHERE "Bronze" = 'hong chia-yuh' |
### Instruction:
CREATE TABLE table_3219 (
"Season" text,
"Winner" text,
"Runner-up" text,
"Final Score" text,
"3rd place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the runner-up for season 2011 12?
### Response:
| SELECT "Runner-up" FROM table_3219 WHERE "Season" = '2011–12' |
### Instruction:
CREATE TABLE table_70980 (
"Year" real,
"Award" text,
"Category" text,
"Nominated work" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the award for nominated result and year after 2011
### Response:
| SELECT "Award" FROM table_70980 WHERE "Result" = 'nominated' AND "Year" > '2011' |
### Instruction:
CREATE TABLE table_name_62 (
college_junior_club_team__league_ VARCHAR,
position VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the college/junior/club team (league) of left wing Ondrej Roman?
### Response:
| SELECT college_junior_club_team__league_ FROM table_name_62 WHERE position = "left wing" AND player = "ondrej roman" |
### Instruction:
CREATE TABLE table_65461 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What pick number did the linebacker from the denver broncos get?
### Response:
| SELECT "Pick" FROM table_65461 WHERE "Position" = 'linebacker' AND "Team" = 'denver broncos' |
### Instruction:
CREATE TABLE table_name_59 (
population VARCHAR,
official_name VARCHAR,
area_km_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For Saint-Paul parish, if it has an area of over 228.65 kilometers how many people live there?
### Response:
| SELECT COUNT(population) FROM table_name_59 WHERE official_name = "saint-paul" AND area_km_2 > 228.65 |
### Instruction:
CREATE TABLE table_203_533 (
id number,
"season" number,
"level" text,
"division" text,
"section" text,
"position" text,
"movements" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which division as the most entries ?
### Response:
| SELECT "division" FROM table_203_533 GROUP BY "division" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_18453 (
"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 is the district for carl vinson?
### Response:
| SELECT "District" FROM table_18453 WHERE "Incumbent" = 'Carl Vinson' |
### Instruction:
CREATE TABLE table_204_608 (
id number,
"name" text,
"elected party" text,
"constituency" text,
"elected date" text,
"military service" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- count how many of these members were unionists .
### Response:
| SELECT COUNT("name") FROM table_204_608 WHERE "elected party" = 'unionist' |
### Instruction:
CREATE TABLE table_name_13 (
genes VARCHAR,
species VARCHAR,
base_pairs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many genes are in species burkholderia pseudomallei with 4,126,292 base pairs?
### Response:
| SELECT genes FROM table_name_13 WHERE species = "burkholderia pseudomallei" AND base_pairs = "4,126,292" |
### Instruction:
CREATE TABLE table_8059 (
"Rank" text,
"Margin" text,
"Opponent" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Rank that has a Season of 1995/96?
### Response:
| SELECT "Rank" FROM table_8059 WHERE "Season" = '1995/96' |
### Instruction:
CREATE TABLE table_6229 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the distance for the course Civitavecchia to San Vincenzo?
### Response:
| SELECT "Distance" FROM table_6229 WHERE "Course" = 'civitavecchia to san vincenzo' |
### Instruction:
CREATE TABLE table_31748 (
"Nomination" text,
"Actor's Name" text,
"Film Name" text,
"Director" text,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the nominator for piotr adamczyk
### Response:
| SELECT "Nomination" FROM table_31748 WHERE "Actor's Name" = 'piotr adamczyk' |
### Instruction:
CREATE TABLE table_19060 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the maximum lowest with average being 734
### Response:
| SELECT MAX("Lowest") FROM table_19060 WHERE "Average" = '734' |
### Instruction:
CREATE TABLE table_4996 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent had a result of 0:1?
### Response:
| SELECT "Opponent" FROM table_4996 WHERE "Results\u00b9" = '0:1' |
### Instruction:
CREATE TABLE table_47528 (
"Name" text,
"Born-Died" text,
"Term start" text,
"Term end" text,
"Political Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Fejzi Bej Alizoti's term start?
### Response:
| SELECT "Term start" FROM table_47528 WHERE "Name" = 'fejzi bej alizoti' |
### Instruction:
CREATE TABLE table_13643 (
"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.
-- Who is team 2 with a 2nd leg of 0-2?
### Response:
| SELECT "Team 2" FROM table_13643 WHERE "2nd leg" = '0-2' |
### Instruction:
CREATE TABLE table_203_475 (
id number,
"stage" number,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many routes have below 100 km total ?
### Response:
| SELECT COUNT("route") FROM table_203_475 WHERE "length" < 100 |
### Instruction:
CREATE TABLE table_5111 (
"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 score has an attendance less than 10,553?
### Response:
| SELECT "Score" FROM table_5111 WHERE "Attendance" < '10,553' |
### Instruction:
CREATE TABLE table_76320 (
"Game" real,
"January" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent with the record of 15-21-6?
### Response:
| SELECT "Opponent" FROM table_76320 WHERE "Record" = '15-21-6' |
### Instruction:
CREATE TABLE table_54340 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average point count for tristan gommendy?
### Response:
| SELECT AVG("Points") FROM table_54340 WHERE "Driver" = 'tristan gommendy' |
### Instruction:
CREATE TABLE table_34801 (
"Player" text,
"Number" real,
"Yards" real,
"Average" real,
"Long" real,
"Touchdowns" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest amount of yards when the average is 9.5?
### Response:
| SELECT MAX("Yards") FROM table_34801 WHERE "Average" = '9.5' |
### Instruction:
CREATE TABLE table_60248 (
"Season" text,
"Premier Division" text,
"Division One" text,
"Division Two" text,
"Division Three" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Season was the Division Two Fownhope Reserves champions?
### Response:
| SELECT "Season" FROM table_60248 WHERE "Division Two" = 'fownhope reserves' |
### Instruction:
CREATE TABLE table_1095 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did Marty Gateman play?
### Response:
| SELECT "Position" FROM table_1095 WHERE "Player" = 'Marty Gateman' |
### Instruction:
CREATE TABLE table_19219 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the run times with 8.2 million viewers?
### Response:
| SELECT "Run time" FROM table_19219 WHERE "Viewers (in millions)" = '8.2' |
### Instruction:
CREATE TABLE table_71819 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which host team won on a final scoreline of 13-10?
### Response:
| SELECT "Host Team" FROM table_71819 WHERE "Final Score" = '13-10' |
### Instruction:
CREATE TABLE table_28736 (
"Institution" text,
"Location" text,
"Team Nickname" text,
"Years" text,
"New Conference" text,
"New Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the years that the new classification was MCLA division i?
### Response:
| SELECT "Years" FROM table_28736 WHERE "New Classification" = 'MCLA Division I' |
### Instruction:
CREATE TABLE table_8730 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds was the fight with a decision by submission (punches)?
### Response:
| SELECT "Round" FROM table_8730 WHERE "Method" = 'submission (punches)' |
### Instruction:
CREATE TABLE table_name_92 (
nat VARCHAR,
name VARCHAR,
ends VARCHAR,
since VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Nat., when Ends is greater than 2010, when Since is 2006, and when Name is Paligeorgos?
### Response:
| SELECT nat FROM table_name_92 WHERE ends > 2010 AND since = 2006 AND name = "paligeorgos" |
### Instruction:
CREATE TABLE table_66004 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the notes for the athlete with the time of 7:38.87?
### Response:
| SELECT "Notes" FROM table_66004 WHERE "Time" = '7:38.87' |
### Instruction:
CREATE TABLE table_35056 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date of the tournament in michalovce
### Response:
| SELECT "Date" FROM table_35056 WHERE "Tournament" = 'michalovce' |
### Instruction:
CREATE TABLE table_75003 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Sport had an Event of men's 400 m hurdles?
### Response:
| SELECT "Sport" FROM table_75003 WHERE "Event" = 'men''s 400 m hurdles' |
### Instruction:
CREATE TABLE table_name_59 (
right_ascension___j2000__ VARCHAR,
object_type VARCHAR,
ngc_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the right ascension for open cluster and NGC number more than 2547
### Response:
| SELECT right_ascension___j2000__ FROM table_name_59 WHERE object_type = "open cluster" AND ngc_number > 2547 |
### Instruction:
CREATE TABLE table_name_96 (
average INTEGER,
swimsuit VARCHAR,
evening_gown VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many averages had a swimsuit number of 8.42 and an evening gown number that was less than 8.71?
### Response:
| SELECT SUM(average) FROM table_name_96 WHERE swimsuit = 8.42 AND evening_gown < 8.71 |
### Instruction:
CREATE TABLE table_203_267 (
id number,
"no." number,
"song" text,
"singers" text,
"length (m:ss)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- other than the first track , what track was less than 2 minutes in length ?
### Response:
| SELECT "song" FROM table_203_267 WHERE id <> 1 AND "length (m:ss)" < 2 |
### Instruction:
CREATE TABLE table_16391 (
"Round" real,
"Choice" real,
"Player name" text,
"Position" text,
"Height" text,
"Weight" real,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position does Colt Brennan play?
### Response:
| SELECT "Position" FROM table_16391 WHERE "Player name" = 'Colt Brennan' |
### Instruction:
CREATE TABLE table_203_716 (
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 the usa win ?
### Response:
| SELECT "total" FROM table_203_716 WHERE "nation" = 'usa' |
### Instruction:
CREATE TABLE table_74635 (
"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 venue of the game on 20 November 2002?
### Response:
| SELECT "Venue" FROM table_74635 WHERE "Date" = '20 november 2002' |
### Instruction:
CREATE TABLE table_40715 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Package/Option, when Television Service is Sky Inside?
### Response:
| SELECT "Package/Option" FROM table_40715 WHERE "Television service" = 'sky inside' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.