instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_66 (
bronze INTEGER,
gold VARCHAR,
silver VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Montenegro's average bronze with less than 7 silver and more than 4 golds?
### Response:
|
SELECT AVG(bronze) FROM table_name_66 WHERE silver < 7 AND nation = "montenegro" AND gold > 4
|
### Instruction:
CREATE TABLE table_80148 (
"Designation" text,
"Constellation" text,
"Date sent" text,
"Arrival date" text,
"Message" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is Hip 4872?
### Response:
|
SELECT "Constellation" FROM table_80148 WHERE "Designation" = 'hip 4872'
|
### Instruction:
CREATE TABLE table_66805 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score for september 25
### Response:
|
SELECT "Score" FROM table_66805 WHERE "Date" = 'september 25'
|
### Instruction:
CREATE TABLE table_45765 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Streak has a Game larger than 49?
### Response:
|
SELECT "Streak" FROM table_45765 WHERE "Game" > '49'
|
### Instruction:
CREATE TABLE table_name_19 (
height__cm_ VARCHAR,
jersey__number VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different Heights (cm) did Mark Fusco have, when his Jersey # was less than 16?
### Response:
|
SELECT COUNT(height__cm_) FROM table_name_19 WHERE jersey__number < 16 AND name = "mark fusco"
|
### Instruction:
CREATE TABLE table_36592 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On October 31 what team played at home?
### Response:
|
SELECT "Home" FROM table_36592 WHERE "Date" = 'october 31'
|
### Instruction:
CREATE TABLE table_17355716_10 (
score VARCHAR,
high_rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times were high rebounds mehmet okur , paul millsap (6)
### Response:
|
SELECT COUNT(score) FROM table_17355716_10 WHERE high_rebounds = "Mehmet Okur , Paul Millsap (6)"
|
### Instruction:
CREATE TABLE table_46218 (
"Date" text,
"Opponent" text,
"Location" text,
"Time" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score for the game played at 7:00 pm?
### Response:
|
SELECT "Result" FROM table_46218 WHERE "Time" = '7:00 pm'
|
### Instruction:
CREATE TABLE table_204_793 (
id number,
"call-sign" text,
"location" text,
"rf" number,
"psip" number,
"programming" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which programming is played the most ?
### Response:
|
SELECT "programming" FROM table_204_793 GROUP BY "programming" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_11087 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What grid has a Time/Retired of +5 laps?
### Response:
|
SELECT "Grid" FROM table_11087 WHERE "Time/Retired" = '+5 laps'
|
### Instruction:
CREATE TABLE table_204_91 (
id number,
"year" number,
"original title" text,
"english title" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the number of films starring henrik malberg that have translated english titles ?
### Response:
|
SELECT COUNT("english title") FROM table_204_91
|
### Instruction:
CREATE TABLE table_name_88 (
team_classification VARCHAR,
general_classification VARCHAR,
mountains_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Team classification has a General classification of Vladimir Karpets and a Mountains classification of No Award?
### Response:
|
SELECT team_classification FROM table_name_88 WHERE general_classification = "vladimir karpets" AND mountains_classification = "no award"
|
### Instruction:
CREATE TABLE table_70970 (
"Year" text,
"Venue" text,
"Winners" text,
"Runner-up" text,
"3rd place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who took the winning slot at the Vojens venue?
### Response:
|
SELECT "Winners" FROM table_70970 WHERE "Venue" = 'vojens'
|
### Instruction:
CREATE TABLE table_38239 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the week 16 game?
### Response:
|
SELECT "Date" FROM table_38239 WHERE "Week" = '16'
|
### Instruction:
CREATE TABLE table_name_33 (
silver INTEGER,
gold VARCHAR,
rank VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many silver medals were awarded to the Nation with less than 2 gold, more than 6 bronze and a rank higher than 5?
### Response:
|
SELECT SUM(silver) FROM table_name_33 WHERE rank > 5 AND bronze > 6 AND gold < 2
|
### Instruction:
CREATE TABLE table_name_19 (
position_in_1959_1960 VARCHAR,
clubs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the position in 1959-1960 for the Sporting De Braga club?
### Response:
|
SELECT position_in_1959_1960 FROM table_name_19 WHERE clubs = "sporting de braga"
|
### Instruction:
CREATE TABLE table_56724 (
"Station" text,
"Engine Company" text,
"Ambulance" text,
"Address" text,
"Phone" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the phone number of the station located at 53 Dayton Road?
### Response:
|
SELECT "Phone" FROM table_56724 WHERE "Address" = '53 dayton road'
|
### Instruction:
CREATE TABLE table_name_48 (
class VARCHAR,
wheel_arrangement VARCHAR,
quantity_made VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the locomotive class that has a wheel arrangement of 2-8-2 and a quantity made of 25?
### Response:
|
SELECT class FROM table_name_48 WHERE wheel_arrangement = "2-8-2" AND quantity_made = "25"
|
### Instruction:
CREATE TABLE table_42984 (
"Year" text,
"GP/GS" text,
"Goals" text,
"Assists" text,
"Total Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total number of points when there were 7 assists?
### Response:
|
SELECT "Total Points" FROM table_42984 WHERE "Assists" = '7'
|
### Instruction:
CREATE TABLE table_name_37 (
goals_for INTEGER,
playoffs VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Goals, when Playoffs is Lost in Round 2, and when Games is less than 81?
### Response:
|
SELECT AVG(goals_for) FROM table_name_37 WHERE playoffs = "lost in round 2" AND games < 81
|
### Instruction:
CREATE TABLE table_19483 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many colleges did pick number 269 attend?
### Response:
|
SELECT COUNT("College") FROM table_19483 WHERE "Pick #" = '269'
|
### Instruction:
CREATE TABLE table_16013 (
"Nomination" text,
"Actors Name" text,
"Film Name" text,
"Director" text,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the actor's name for best debut?
### Response:
|
SELECT "Actors Name" FROM table_16013 WHERE "Nomination" = 'Best Debut'
|
### Instruction:
CREATE TABLE table_name_48 (
date VARCHAR,
outcome VARCHAR,
opponents VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Outcome is 'Winner', and when Opponents is 'Paul Haarhuis Sandon Stolle'?
### Response:
|
SELECT date FROM table_name_48 WHERE outcome = "winner" AND opponents = "paul haarhuis sandon stolle"
|
### Instruction:
CREATE TABLE table_name_84 (
competition VARCHAR,
score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Competition, when Score is '2-1', and when Date is 'October 22, 2008'?
### Response:
|
SELECT competition FROM table_name_84 WHERE score = "2-1" AND date = "october 22, 2008"
|
### Instruction:
CREATE TABLE table_14812 (
"Office" text,
"Representative" text,
"Party" text,
"Residence" text,
"First Elected" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Party has a Representative of brian bosma?
### Response:
|
SELECT "Party" FROM table_14812 WHERE "Representative" = 'brian bosma'
|
### Instruction:
CREATE TABLE table_47504 (
"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 Date of the Competition with a Score of 1 2?
### Response:
|
SELECT "Date" FROM table_47504 WHERE "Score" = '1–2'
|
### Instruction:
CREATE TABLE table_name_45 (
monday VARCHAR,
sunday VARCHAR,
series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the presenter on Monday of 'Big Brother 13' in which Alice Levine Jamie East presented on Sunday?
### Response:
|
SELECT monday FROM table_name_45 WHERE sunday = "alice levine jamie east" AND series = "big brother 13"
|
### Instruction:
CREATE TABLE Rating (
rID VARCHAR
)
CREATE TABLE Reviewer (
name VARCHAR,
rID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the names of all reviewers who have contributed three or more ratings.
### Response:
|
SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T1.rID HAVING COUNT(*) >= 3
|
### Instruction:
CREATE TABLE table_61436 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the height of player James Stanton?
### Response:
|
SELECT "Height" FROM table_61436 WHERE "Name" = 'james stanton'
|
### Instruction:
CREATE TABLE table_8527 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the highest laps for Marco Melandri?
### Response:
|
SELECT MAX("Laps") FROM table_8527 WHERE "Rider" = 'marco melandri'
|
### Instruction:
CREATE TABLE table_name_29 (
place VARCHAR,
dance VARCHAR,
points_jury VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the place for the tango dance when the points was jury of 24 (7,5,6,6)?
### Response:
|
SELECT place FROM table_name_29 WHERE dance = "tango" AND points_jury = "24 (7,5,6,6)"
|
### Instruction:
CREATE TABLE table_29163303_4 (
surface VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what surface was it the year when the score was 6 1, 4 6, [12 10]?
### Response:
|
SELECT surface FROM table_29163303_4 WHERE score = "6–1, 4–6, [12–10]"
|
### Instruction:
CREATE TABLE table_40049 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ICAO for luqa airport?
### Response:
|
SELECT "ICAO" FROM table_40049 WHERE "Airport" = 'luqa airport'
|
### Instruction:
CREATE TABLE table_70447 (
"Team" text,
"Manager 1" text,
"Captain" text,
"Kit manufacturer" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the manager 1 for Leeds United?
### Response:
|
SELECT "Manager 1" FROM table_70447 WHERE "Team" = 'leeds united'
|
### Instruction:
CREATE TABLE table_36704 (
"Conference" text,
"Division" text,
"Team" text,
"City" text,
"Home Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Division does the City being jacksonville, florida belong to?
### Response:
|
SELECT "Division" FROM table_36704 WHERE "City" = 'jacksonville, florida'
|
### Instruction:
CREATE TABLE table_204_937 (
id number,
"rank" number,
"lane" number,
"athlete" text,
"time" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many athletes did not finish with the time less than 53.00 ?
### Response:
|
SELECT COUNT("athlete") FROM table_204_937 WHERE "time" >= 53
|
### Instruction:
CREATE TABLE table_24424 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week # featured first solo as the theme?
### Response:
|
SELECT "Week #" FROM table_24424 WHERE "Theme" = 'First Solo'
|
### Instruction:
CREATE TABLE table_26998135_2 (
date_of_appointment VARCHAR,
outgoing_manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of appointment when the outgoing manager was mustafa denizli?
### Response:
|
SELECT date_of_appointment FROM table_26998135_2 WHERE outgoing_manager = "Mustafa Denizli"
|
### Instruction:
CREATE TABLE table_name_19 (
rank INTEGER,
headquarters VARCHAR,
screens VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of the cinema when the headquarters are in toronto, ON and the screens is less than 1,438?
### Response:
|
SELECT AVG(rank) FROM table_name_19 WHERE headquarters = "toronto, on" AND screens < 1 OFFSET 438
|
### Instruction:
CREATE TABLE table_name_39 (
score VARCHAR,
week VARCHAR,
visitor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE SCORE WITH A WEEK LARGER THAN 13, AND VISITOR TEAM MONTREAL ALOUETTES?
### Response:
|
SELECT score FROM table_name_39 WHERE week > 13 AND visitor = "montreal alouettes"
|
### Instruction:
CREATE TABLE table_54177 (
"Date" text,
"Result" text,
"Opponent" text,
"Location" text,
"Method" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the match in Vilnius, Lithuania?
### Response:
|
SELECT "Date" FROM table_54177 WHERE "Location" = 'vilnius, lithuania'
|
### Instruction:
CREATE TABLE table_76499 (
"Minister" text,
"Party" text,
"Start date" text,
"End date" text,
"Prime Minister" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the end date when Alex Bodry was the minister?
### Response:
|
SELECT "End date" FROM table_76499 WHERE "Minister" = 'alex bodry'
|
### Instruction:
CREATE TABLE table_15407 (
"Date" text,
"City" text,
"Event" text,
"Winner" text,
"Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date, when the Winner is Aaron Gustavson?
### Response:
|
SELECT "Date" FROM table_15407 WHERE "Winner" = 'aaron gustavson'
|
### Instruction:
CREATE TABLE table_37432 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position of Dale Craigwell?
### Response:
|
SELECT "Position" FROM table_37432 WHERE "Player" = 'dale craigwell'
|
### Instruction:
CREATE TABLE table_2359 (
"Round" real,
"Choice" real,
"Player" text,
"Position" text,
"Height" text,
"Weight" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions have round 3?
### Response:
|
SELECT COUNT("Position") FROM table_2359 WHERE "Round" = '3'
|
### Instruction:
CREATE TABLE table_204_903 (
id number,
"title" text,
"character" text,
"broadcaster" text,
"episodes" number,
"date" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many titles only had one episode ?
### Response:
|
SELECT COUNT("title") FROM table_204_903 WHERE "episodes" = 1
|
### Instruction:
CREATE TABLE table_76360 (
"Date" text,
"Name of ship" text,
"Flag" text,
"Tonnage" real,
"Fate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How did the ship named proletarij finish its service?
### Response:
|
SELECT "Fate" FROM table_76360 WHERE "Name of ship" = 'proletarij'
|
### Instruction:
CREATE TABLE table_55428 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record for April 8?
### Response:
|
SELECT "Record" FROM table_55428 WHERE "Date" = 'april 8'
|
### Instruction:
CREATE TABLE table_78426 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of grids for peter gethin?
### Response:
|
SELECT SUM("Grid") FROM table_78426 WHERE "Driver" = 'peter gethin'
|
### Instruction:
CREATE TABLE table_15665 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What authority does the rototuna area have?
### Response:
|
SELECT "Authority" FROM table_15665 WHERE "Area" = 'rototuna'
|
### Instruction:
CREATE TABLE table_55065 (
"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.
-- when did asts reach 0?
### Response:
|
SELECT "From" FROM table_55065 WHERE "Asts" = '0'
|
### Instruction:
CREATE TABLE table_66617 (
"Title" text,
"Series" text,
"Director" text,
"Production Num." text,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was sniffles and the bookworm released?
### Response:
|
SELECT "Release date" FROM table_66617 WHERE "Title" = 'sniffles and the bookworm'
|
### Instruction:
CREATE TABLE table_14153 (
"Year" real,
"September" text,
"October" text,
"November" text,
"December" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is in December when November has Alexus Winston?
### Response:
|
SELECT "December" FROM table_14153 WHERE "November" = 'alexus winston'
|
### Instruction:
CREATE TABLE table_name_13 (
week INTEGER,
game_site VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week did the Jets play in the meadowlands with and attendance of 78,161?
### Response:
|
SELECT SUM(week) FROM table_name_13 WHERE game_site = "the meadowlands" AND attendance = "78,161"
|
### Instruction:
CREATE TABLE table_72054 (
"Representative" text,
"Years" text,
"State" text,
"Party" text,
"Lifespan" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party did Thomas L. Young belong to?
### Response:
|
SELECT "Party" FROM table_72054 WHERE "Representative" = 'thomas l. young'
|
### Instruction:
CREATE TABLE table_26202788_7 (
opponent_in_the_final VARCHAR,
championship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the championship Indian Wells, United States (2), who are the opponents in the final?
### Response:
|
SELECT opponent_in_the_final FROM table_26202788_7 WHERE championship = "Indian Wells, United States (2)"
|
### Instruction:
CREATE TABLE table_21035326_1 (
golden_bears_points INTEGER,
opponents VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the least amount of points scored by the golden bears when the opponent scored 15 points?
### Response:
|
SELECT MIN(golden_bears_points) FROM table_21035326_1 WHERE opponents = 15
|
### Instruction:
CREATE TABLE table_76900 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player finished at +10?
### Response:
|
SELECT "Player" FROM table_76900 WHERE "To par" = '+10'
|
### Instruction:
CREATE TABLE table_6043 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position is the MLS team, Los Angeles Galaxy in?
### Response:
|
SELECT "Position" FROM table_6043 WHERE "MLS Team" = 'los angeles galaxy'
|
### Instruction:
CREATE TABLE table_74816 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Date of february 9?
### Response:
|
SELECT "Score" FROM table_74816 WHERE "Date" = 'february 9'
|
### Instruction:
CREATE TABLE table_26013618_1 (
date_established VARCHAR,
name_of_the_nature_reserve VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was Stellbrookmoor established?
### Response:
|
SELECT date_established FROM table_26013618_1 WHERE name_of_the_nature_reserve = "Stellbrookmoor"
|
### Instruction:
CREATE TABLE table_11373 (
"Year" real,
"Team" text,
"League" text,
"Record" text,
"Finish" text,
"Organization" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which organization has a Finish of 4th?
### Response:
|
SELECT "Organization" FROM table_11373 WHERE "Finish" = '4th'
|
### Instruction:
CREATE TABLE table_47207 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the positions of Damon Jones?
### Response:
|
SELECT "Position" FROM table_47207 WHERE "Player" = 'damon jones'
|
### Instruction:
CREATE TABLE table_56069 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps did ant nio pizzonia do?
### Response:
|
SELECT COUNT("Laps") FROM table_56069 WHERE "Driver" = 'antônio pizzonia'
|
### Instruction:
CREATE TABLE table_203_875 (
id number,
"#" number,
"name" text,
"birth and death" text,
"office started" text,
"office ended" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many people have served as the bishop of iceland since 1801 ?
### Response:
|
SELECT COUNT("name") FROM table_203_875
|
### Instruction:
CREATE TABLE table_name_67 (
record VARCHAR,
time___et__ VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Time ( ET ) of 1:00pm, and a Result of w 34 14 has what record?
### Response:
|
SELECT record FROM table_name_67 WHERE time___et__ = "1:00pm" AND result = "w 34–14"
|
### Instruction:
CREATE TABLE table_53501 (
"Location" text,
"Londonborough" text,
"Post town" text,
"Postcodedistrict" text,
"Dialcode" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Dialcode of whitechapel?
### Response:
|
SELECT "Dialcode" FROM table_53501 WHERE "Location" = 'whitechapel'
|
### Instruction:
CREATE TABLE table_68985 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponent with record of 52-58
### Response:
|
SELECT "Opponent" FROM table_68985 WHERE "Record" = '52-58'
|
### Instruction:
CREATE TABLE table_8010 (
"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 the tie number when Wigan Athletic is the home team?
### Response:
|
SELECT "Tie no" FROM table_8010 WHERE "Home team" = 'wigan athletic'
|
### Instruction:
CREATE TABLE table_71846 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year has has a Engine of maserati straight-6?
### Response:
|
SELECT COUNT("Year") FROM table_71846 WHERE "Engine" = 'maserati straight-6'
|
### Instruction:
CREATE TABLE table_67707 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the home captain that played at Edgbaston?
### Response:
|
SELECT "Home captain" FROM table_67707 WHERE "Venue" = 'edgbaston'
|
### Instruction:
CREATE TABLE table_60747 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the position of the event held in Valencia, Spain?
### Response:
|
SELECT "Position" FROM table_60747 WHERE "Venue" = 'valencia, spain'
|
### Instruction:
CREATE TABLE table_49987 (
"Draw" real,
"Song" text,
"Artist" text,
"Televotes" real,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Place, when Song is 'Dis Oui'?
### Response:
|
SELECT AVG("Place") FROM table_49987 WHERE "Song" = 'dis oui'
|
### Instruction:
CREATE TABLE table_64863 (
"Year" text,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the genre of the game from 2006?
### Response:
|
SELECT "Genre" FROM table_64863 WHERE "Year" = '2006'
|
### Instruction:
CREATE TABLE table_204_976 (
id number,
"pos" text,
"driver" text,
"entrant" text,
"constructor" text,
"time/retired" text,
"grid" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who came in first ?
### Response:
|
SELECT "driver" FROM table_204_976 WHERE "pos" = 1
|
### Instruction:
CREATE TABLE table_10548224_1 (
final_score VARCHAR,
date_contested VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score for the game that was contested on February 1, 2009?
### Response:
|
SELECT final_score FROM table_10548224_1 WHERE date_contested = "February 1, 2009"
|
### Instruction:
CREATE TABLE table_68595 (
"Film" text,
"Director(s)" text,
"Recipient" text,
"Date" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What film had Bub Ltd as the recipient?
### Response:
|
SELECT "Film" FROM table_68595 WHERE "Recipient" = 'bub ltd'
|
### Instruction:
CREATE TABLE table_204_441 (
id number,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" number,
"scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total opponents are there ?
### Response:
|
SELECT COUNT("opponent") FROM table_204_441
|
### Instruction:
CREATE TABLE table_61517 (
"Region" text,
"Date" text,
"Label" text,
"Format(s)" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What region is on 11 August 2008?
### Response:
|
SELECT "Region" FROM table_61517 WHERE "Date" = '11 august 2008'
|
### Instruction:
CREATE TABLE table_17076 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hometown of the player who attended American Heritage School?
### Response:
|
SELECT "Hometown" FROM table_17076 WHERE "School" = 'American Heritage School'
|
### Instruction:
CREATE TABLE table_25258 (
"Number" real,
"Name" text,
"Position" text,
"Height" text,
"Experience" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How long has Mel Daniels been playing?
### Response:
|
SELECT "Experience" FROM table_25258 WHERE "Name" = 'Mel Daniels'
|
### Instruction:
CREATE TABLE table_77937 (
"Race Title" text,
"Circuit" text,
"City / State" text,
"Date" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the team for launceston
### Response:
|
SELECT "Team" FROM table_77937 WHERE "Race Title" = 'launceston'
|
### Instruction:
CREATE TABLE scientists (
ssn number,
name text
)
CREATE TABLE projects (
code text,
name text,
hours number
)
CREATE TABLE assignedto (
scientist number,
project text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of scientists who are not assigned to any project.
### Response:
|
SELECT name FROM scientists WHERE NOT ssn IN (SELECT scientist FROM assignedto)
|
### Instruction:
CREATE TABLE table_62190 (
"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 score when the way team was Wrexham?
### Response:
|
SELECT "Score" FROM table_62190 WHERE "Away team" = 'wrexham'
|
### Instruction:
CREATE TABLE table_43147 (
"Date" text,
"Tournament" text,
"Location" text,
"Home team" text,
"Score" text,
"Away team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date with Cuba is Home team?
### Response:
|
SELECT "Date" FROM table_43147 WHERE "Home team" = 'cuba'
|
### Instruction:
CREATE TABLE table_15082102_3 (
s_spoilt_vote INTEGER,
electorate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in electorate of 83850 what is the minimum s split vote
### Response:
|
SELECT MIN(s_spoilt_vote) FROM table_15082102_3 WHERE electorate = 83850
|
### Instruction:
CREATE TABLE table_46155 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date for Game 41?
### Response:
|
SELECT "Date" FROM table_46155 WHERE "Game" = '41'
|
### Instruction:
CREATE TABLE table_name_46 (
agricultural_panel INTEGER,
industrial_and_commercial_panel INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0?
### Response:
|
SELECT SUM(agricultural_panel) FROM table_name_46 WHERE industrial_and_commercial_panel < 0
|
### Instruction:
CREATE TABLE table_1606824_1 (
area_km_2 VARCHAR,
pop_density_people_km_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of area km 2 for population density is 87
### Response:
|
SELECT COUNT(area_km_2) FROM table_1606824_1 WHERE pop_density_people_km_2 = "87"
|
### Instruction:
CREATE TABLE table_69734 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the nation with rank more than 9
### Response:
|
SELECT "Nation" FROM table_69734 WHERE "Rank" > '9'
|
### Instruction:
CREATE TABLE table_22815568_13 (
county VARCHAR,
market_income_per_capita VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the county where the market income per capita is $25,006?
### Response:
|
SELECT county FROM table_22815568_13 WHERE market_income_per_capita = "$25,006"
|
### Instruction:
CREATE TABLE table_40082 (
"Round" real,
"Location" text,
"Circuit" text,
"Date" text,
"Winning Driver" text,
"Winning Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date has a round more than 9?
### Response:
|
SELECT "Date" FROM table_40082 WHERE "Round" > '9'
|
### Instruction:
CREATE TABLE table_74513 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the title of jean-pierre jeunet
### Response:
|
SELECT "English title" FROM table_74513 WHERE "Director" = 'jean-pierre jeunet'
|
### Instruction:
CREATE TABLE table_name_72 (
week INTEGER,
game_site VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest week at Ralph Wilson Stadium on October 7, 2001?
### Response:
|
SELECT MIN(week) FROM table_name_72 WHERE game_site = "ralph wilson stadium" AND date = "october 7, 2001"
|
### Instruction:
CREATE TABLE table_18304259_1 (
year_to_april VARCHAR,
ebit__£m_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of year to april for ebit being 24.5
### Response:
|
SELECT COUNT(year_to_april) FROM table_18304259_1 WHERE ebit__£m_ = "24.5"
|
### Instruction:
CREATE TABLE table_30610 (
"Callsign" text,
"City of license" text,
"Virtual channel" text,
"Digital channel" text,
"Network" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many networks run on virtual channel 23.4?
### Response:
|
SELECT COUNT("Network") FROM table_30610 WHERE "Virtual channel" = '23.4'
|
### Instruction:
CREATE TABLE table_30550 (
"#" 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 most number where the person is luke donald
### Response:
|
SELECT MAX("Reset points") FROM table_30550 WHERE "Player" = 'Luke Donald'
|
### Instruction:
CREATE TABLE table_13924 (
"SEASON" text,
"TEAM" text,
"LEAGUE" text,
"GAMES" text,
"GOALS" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the team name that as games of 7?
### Response:
|
SELECT "TEAM" FROM table_13924 WHERE "GAMES" = '7'
|
### Instruction:
CREATE TABLE table_64715 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What notes did Gabriella Bascelli receive?
### Response:
|
SELECT "Notes" FROM table_64715 WHERE "Athlete" = 'gabriella bascelli'
|
### Instruction:
CREATE TABLE table_15294880_2 (
stage VARCHAR,
winner VARCHAR,
points_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many stages were there where the winner and the points classification were Alberto Contador?
### Response:
|
SELECT COUNT(stage) FROM table_15294880_2 WHERE winner = "Alberto Contador" AND points_classification = "Alberto Contador"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.