instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_85 (
team__league_ VARCHAR,
player VARCHAR,
reg_gp VARCHAR,
pick__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has a Reg GP of 0, a pick number under 136 with a player named Regan Darby?
### Response:
|
SELECT team__league_ FROM table_name_85 WHERE reg_gp = 0 AND pick__number < 136 AND player = "regan darby"
|
### Instruction:
CREATE TABLE table_59313 (
"Portland DFL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average entry in the against column with draws smaller than 0?
### Response:
|
SELECT AVG("Against") FROM table_59313 WHERE "Draws" < '0'
|
### Instruction:
CREATE TABLE table_2417 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Midshipmen points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most opponents for 8-1 record
### Response:
|
SELECT MAX("Opponents") FROM table_2417 WHERE "Record" = '8-1'
|
### Instruction:
CREATE TABLE table_33202 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The school nicknamed the wildcats has what sum of enrollment?
### Response:
|
SELECT SUM("Enrollment") FROM table_33202 WHERE "Team Nickname" = 'wildcats'
|
### Instruction:
CREATE TABLE table_name_4 (
quantity_rebuilt VARCHAR,
type VARCHAR,
railway_number_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of quantity rebuilt if the type is 1B N2T and the railway number is 88, 118?
### Response:
|
SELECT COUNT(quantity_rebuilt) FROM table_name_4 WHERE type = "1b n2t" AND railway_number_s_ = "88, 118"
|
### Instruction:
CREATE TABLE table_10614 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Melbourne play as the home team?
### Response:
|
SELECT "Venue" FROM table_10614 WHERE "Home team" = 'melbourne'
|
### Instruction:
CREATE TABLE city (
city_id VARCHAR
)
CREATE TABLE hosting_city (
host_city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the GDP and population of the city that already served as a host more than once?
### Response:
|
SELECT t1.gdp, t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY t2.host_city HAVING COUNT(*) > 1
|
### Instruction:
CREATE TABLE table_204_431 (
id number,
"yacht" text,
"nation" text,
"owner" text,
"skipper" text,
"launch year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the owner of the wild oatsxi bob oatley or mark richards ?
### Response:
|
SELECT "owner" FROM table_204_431 WHERE "yacht" = 'wild oats xi'
|
### Instruction:
CREATE TABLE table_68566 (
"Station" text,
"Frequency" real,
"Network Affiliation" text,
"Format" text,
"City of License" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the status of the independent station KPFB?
### Response:
|
SELECT "Status" FROM table_68566 WHERE "Network Affiliation" = 'independent' AND "Station" = 'kpfb'
|
### Instruction:
CREATE TABLE table_73676 (
"Club" text,
"Home city" text,
"Stadium" text,
"First season in the Serie A" real,
"First season in current spell" real,
"Last title" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the last title for 2012
### Response:
|
SELECT "Last title" FROM table_73676 WHERE "First season in current spell" = '2012'
|
### Instruction:
CREATE TABLE table_204_879 (
id number,
"year" number,
"host / location" text,
"division i overall" text,
"division i undergraduate" text,
"division ii overall" text,
"division ii community college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the first year on the chart ?
### Response:
|
SELECT "year" FROM table_204_879 WHERE id = 1
|
### Instruction:
CREATE TABLE table_name_50 (
to_par VARCHAR,
country VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the to par of the player from the United States with a place of t1 and a 76-68=144 score?
### Response:
|
SELECT to_par FROM table_name_50 WHERE country = "united states" AND place = "t1" AND score = 76 - 68 = 144
|
### Instruction:
CREATE TABLE table_11570261_1 (
year INTEGER,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the minimum year where winning score is 8 (71-63-69-69=272)
### Response:
|
SELECT MIN(year) FROM table_11570261_1 WHERE winning_score = −8(71 - 63 - 69 - 69 = 272)
|
### Instruction:
CREATE TABLE table_203_824 (
id number,
"pick #" number,
"player" text,
"position" text,
"nationality" text,
"nhl team" text,
"college/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many center position players are there ?
### Response:
|
SELECT COUNT("player") FROM table_203_824 WHERE "position" = 'centre'
|
### Instruction:
CREATE TABLE table_34461 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score has tim duncan (27) as the leading scorer?
### Response:
|
SELECT "Score" FROM table_34461 WHERE "Leading scorer" = 'tim duncan (27)'
|
### Instruction:
CREATE TABLE table_16119 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of playoffs where regular season is 6th, southwest
### Response:
|
SELECT COUNT("Playoffs") FROM table_16119 WHERE "Regular Season" = '6th, Southwest'
|
### Instruction:
CREATE TABLE table_6326 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" text,
"Finish" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Engine with 3 as the start in the year of 2007?
### Response:
|
SELECT "Engine" FROM table_6326 WHERE "Start" = '3' AND "Year" = '2007'
|
### Instruction:
CREATE TABLE table_name_67 (
opponent VARCHAR,
date VARCHAR,
type VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a Type of tko, and a Round of 2 (6) on 2006-09-20?
### Response:
|
SELECT opponent FROM table_name_67 WHERE type = "tko" AND round = "2 (6)" AND date = "2006-09-20"
|
### Instruction:
CREATE TABLE table_68809 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position had notes of 20km and a year earlier than 2002?
### Response:
|
SELECT "Position" FROM table_68809 WHERE "Notes" = '20km' AND "Year" < '2002'
|
### Instruction:
CREATE TABLE table_18718 (
"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.
-- How many candidates won the election of john n. sandlin?
### Response:
|
SELECT COUNT("Candidates") FROM table_18718 WHERE "Incumbent" = 'John N. Sandlin'
|
### Instruction:
CREATE TABLE table_203_753 (
id number,
"rank" number,
"name" text,
"caps" number,
"goals" number,
"years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players were playing in 1990 ?
### Response:
|
SELECT COUNT("name") FROM table_203_753 WHERE "years" <= 1990 AND "years" >= 1990
|
### Instruction:
CREATE TABLE table_39675 (
"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.
-- What was the result of the Euro '64 qualifying game?
### Response:
|
SELECT "Results\u00b9" FROM table_39675 WHERE "Type of game" = 'euro ''64 qualifying'
|
### Instruction:
CREATE TABLE table_8252 (
"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 score of the game where Wrexham is the home team and the date is Blackpool?
### Response:
|
SELECT "Score" FROM table_8252 WHERE "Home team" = 'wrexham' AND "Date" = 'blackpool'
|
### Instruction:
CREATE TABLE table_10204 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did St Kilda play a home game?
### Response:
|
SELECT "Date" FROM table_10204 WHERE "Home team" = 'st kilda'
|
### Instruction:
CREATE TABLE table_5788 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When has a Score of 6 3, 6 4?
### Response:
|
SELECT "Date" FROM table_5788 WHERE "Score" = '6–3, 6–4'
|
### Instruction:
CREATE TABLE checking (
balance VARCHAR,
custid VARCHAR
)
CREATE TABLE savings (
balance VARCHAR,
custid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.
### Response:
|
SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance
|
### Instruction:
CREATE TABLE table_41598 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total number of matches for Nat Lofthouse, ranking higher than 7?
### Response:
|
SELECT COUNT("Matches") FROM table_41598 WHERE "Name" = 'nat lofthouse' AND "Rank" > '7'
|
### Instruction:
CREATE TABLE table_78808 (
"Geelong DFL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of losses where the byes were greater than 0?
### Response:
|
SELECT COUNT("Losses") FROM table_78808 WHERE "Byes" > '0'
|
### Instruction:
CREATE TABLE table_name_73 (
examples VARCHAR,
american VARCHAR,
semi_closed_initial_unstressed_vowels VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the example for the American of , , and a Semi-closed initial unstressed vowels of y / /?
### Response:
|
SELECT examples FROM table_name_73 WHERE american = "ɪ, ə" AND semi_closed_initial_unstressed_vowels = "y /ɨ/"
|
### Instruction:
CREATE TABLE table_77716 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player has a Position of fly-half, and a Caps of 3?
### Response:
|
SELECT "Player" FROM table_77716 WHERE "Position" = 'fly-half' AND "Caps" = '3'
|
### Instruction:
CREATE TABLE mission (
mission_id number,
ship_id number,
code text,
launched_year number,
location text,
speed_knots number,
fate text
)
CREATE TABLE ship (
ship_id number,
name text,
type text,
nationality text,
tonnage number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the types and nationalities of every ship?
### Response:
|
SELECT type, nationality FROM ship
|
### Instruction:
CREATE TABLE table_29447 (
"Club" text,
"Chairman" text,
"Current manager" text,
"Team captain" text,
"Kitmaker" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the club when the chairman is roger lambrecht?
### Response:
|
SELECT "Club" FROM table_29447 WHERE "Chairman" = 'Roger Lambrecht'
|
### Instruction:
CREATE TABLE table_33800 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which event in the 2008 Beijing Games had a bronze medal?
### Response:
|
SELECT "Event" FROM table_33800 WHERE "Games" = '2008 beijing' AND "Medal" = 'bronze'
|
### Instruction:
CREATE TABLE table_203_33 (
id number,
"conference" text,
"date" text,
"place" text,
"attendance" number,
"archive of presentations" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many days was the wikimania 2011 ?
### Response:
|
SELECT "date" - "date" FROM table_203_33 WHERE "conference" = 'wikimania 2011'
|
### Instruction:
CREATE TABLE table_73839 (
"No. in season" real,
"No. in series" real,
"Title" text,
"Canadian airdate" text,
"US airdate" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many titles had production code 1040?
### Response:
|
SELECT COUNT("Title") FROM table_73839 WHERE "Production code" = '1040'
|
### Instruction:
CREATE TABLE table_17235 (
"Disc" real,
"Track" real,
"English title" text,
"Japanese title" text,
"R\u014dmaji title" text,
"Artist" text,
"Track time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How long is track number 8?
### Response:
|
SELECT "Track time" FROM table_17235 WHERE "Track" = '8'
|
### Instruction:
CREATE TABLE table_42376 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2nd leg that has 31-37 as the 1st leg?
### Response:
|
SELECT "2nd leg" FROM table_42376 WHERE "1st leg" = '31-37'
|
### Instruction:
CREATE TABLE table_24171 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the director when the writer(s) was John W. Bloch?
### Response:
|
SELECT "Director" FROM table_24171 WHERE "Writer(s)" = 'John W. Bloch'
|
### Instruction:
CREATE TABLE table_46336 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who made the decision when detroit was the home team and boston was the visitor?
### Response:
|
SELECT "Decision" FROM table_46336 WHERE "Home" = 'detroit' AND "Visitor" = 'boston'
|
### Instruction:
CREATE TABLE table_67904 (
"Match" real,
"Date" text,
"Tournament" text,
"Location" text,
"Opponent team" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What match number took place on August 3, 2007?
### Response:
|
SELECT MAX("Match") FROM table_67904 WHERE "Date" = 'august 3, 2007'
|
### Instruction:
CREATE TABLE table_60921 (
"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.
-- In what place(s) did the player(s) with a total less than 282 finish?
### Response:
|
SELECT "Finish" FROM table_60921 WHERE "Total" < '282'
|
### Instruction:
CREATE TABLE table_name_40 (
run_1 INTEGER,
run_2 VARCHAR,
athlete VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the run 1 of athlete matthias guggenberger, who has a run 2 greater than 55.24?
### Response:
|
SELECT SUM(run_1) FROM table_name_40 WHERE run_2 > 55.24 AND athlete = "matthias guggenberger"
|
### Instruction:
CREATE TABLE table_70177 (
"Pick #" text,
"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 is the position of the player on the Los Angeles Kings?
### Response:
|
SELECT "Position" FROM table_70177 WHERE "NHL team" = 'los angeles kings'
|
### Instruction:
CREATE TABLE table_56930 (
"Ship name" text,
"Year" real,
"Length" text,
"Width" text,
"Passengers" real,
"Vessels" real,
"Speed" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many vessels are named aqua jewel?
### Response:
|
SELECT COUNT("Vessels") FROM table_56930 WHERE "Ship name" = 'aqua jewel'
|
### Instruction:
CREATE TABLE table_28936 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the incumbent from the Virginia 10 district first elected?
### Response:
|
SELECT "First elected" FROM table_28936 WHERE "District" = 'Virginia 10'
|
### Instruction:
CREATE TABLE table_38436 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the college that is from a round greater than 3 with Gillis Wilson playing?
### Response:
|
SELECT "College" FROM table_38436 WHERE "Round" > '3' AND "Player" = 'gillis wilson'
|
### Instruction:
CREATE TABLE table_59046 (
"Name" text,
"Location" text,
"Years as tallest" text,
"Height metres / ft" text,
"Floors" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Height metres / ft of Floors of 05.0 n/a?
### Response:
|
SELECT "Height metres / ft" FROM table_59046 WHERE "Floors" = '05.0 n/a'
|
### Instruction:
CREATE TABLE table_9405 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Label has a Catalog of 7243 8 49494 2 6?
### Response:
|
SELECT "Label" FROM table_9405 WHERE "Catalog" = '7243 8 49494 2 6'
|
### Instruction:
CREATE TABLE table_204_598 (
id number,
"name" text,
"state of residence" text,
"took office" text,
"left office" text,
"president served under" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years did david plouffe serve ?
### Response:
|
SELECT "left office" - "took office" FROM table_204_598 WHERE "name" = 'david plouffe'
|
### Instruction:
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show me a scatter plot of mid and mean stars for .
### Response:
|
SELECT mID, AVG(stars) FROM Rating GROUP BY mID
|
### Instruction:
CREATE TABLE table_23536 (
"Year" text,
"Winner" text,
"First Runner Up" text,
"Third Place" text,
"Consolation Winner/4th" text,
"Finals Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Austin Austin TX get the third place?
### Response:
|
SELECT "Year" FROM table_23536 WHERE "Third Place" = 'Austin Austin TX'
|
### Instruction:
CREATE TABLE table_name_70 (
name VARCHAR,
college VARCHAR,
aafc_team VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Name has a AAFC Team of los angeles dons, and a Position of fb, and a College of oklahoma a&m?
### Response:
|
SELECT name FROM table_name_70 WHERE aafc_team = "los angeles dons" AND position = "fb" AND college = "oklahoma a&m"
|
### Instruction:
CREATE TABLE table_204_513 (
id number,
"date" text,
"time" text,
"opponent#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which game has the least attendance ?
### Response:
|
SELECT "opponent#" FROM table_204_513 ORDER BY "attendance" LIMIT 1
|
### Instruction:
CREATE TABLE table_44333 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the time when the laps is less than 21 and the grid is more than 17?
### Response:
|
SELECT "Time" FROM table_44333 WHERE "Laps" < '21' AND "Grid" > '17'
|
### Instruction:
CREATE TABLE table_name_51 (
avg_g VARCHAR,
gain VARCHAR,
long VARCHAR,
loss VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Avg/G has a Long of 51, and a Loss of 333, and a Gain larger than 2013?
### Response:
|
SELECT COUNT(avg_g) FROM table_name_51 WHERE long = 51 AND loss = 333 AND gain > 2013
|
### Instruction:
CREATE TABLE table_3194 (
"Episode #" real,
"Production Count" real,
"Original Airdate" text,
"Prod. Code" text,
"Title" text,
"Viewing Figures millions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the 1st air date for the episode titled 'baby talk'.
### Response:
|
SELECT "Original Airdate" FROM table_3194 WHERE "Title" = 'Baby Talk'
|
### Instruction:
CREATE TABLE table_10557 (
"Year" real,
"Butterfly" text,
"Artist" text,
"Mintage" real,
"Issue Price" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which artist's work is the butterfly Tiger Swallowtail?
### Response:
|
SELECT "Artist" FROM table_10557 WHERE "Butterfly" = 'tiger swallowtail'
|
### Instruction:
CREATE TABLE table_6217 (
"Election date" real,
"Party leader" text,
"Number of votes received" text,
"Percentage of votes" text,
"Number of deputies" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of deputies with 94.2% of the votes?
### Response:
|
SELECT SUM("Number of deputies") FROM table_6217 WHERE "Percentage of votes" = '94.2%'
|
### Instruction:
CREATE TABLE table_53503 (
"Location" text,
"Londonborough" text,
"Post town" text,
"Postcodedistrict" text,
"Dialcode" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Post Town has a Dialcode of 020 and is located in Hook?
### Response:
|
SELECT "Post town" FROM table_53503 WHERE "Dialcode" = '020' AND "Location" = 'hook'
|
### Instruction:
CREATE TABLE table_56149 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the away team score, when the away team was Fitzroy?
### Response:
|
SELECT "Away team score" FROM table_56149 WHERE "Away team" = 'fitzroy'
|
### Instruction:
CREATE TABLE table_74976 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Indians record during the game that had 19,823 fans attending?
### Response:
|
SELECT "Record" FROM table_74976 WHERE "Attendance" = '19,823'
|
### Instruction:
CREATE TABLE table_78583 (
"Season" text,
"Division North" text,
"Division South" text,
"Division East" text,
"Division West" text,
"Division Southwest" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won Division West when Division North was won by Alumina?
### Response:
|
SELECT "Division West" FROM table_78583 WHERE "Division North" = 'alumina'
|
### Instruction:
CREATE TABLE table_name_17 (
goals_scored VARCHAR,
played VARCHAR,
points VARCHAR,
goals_conceded VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total goals scored with more than 11 points, 18 goals conceded, and played fewer than 18 times?
### Response:
|
SELECT COUNT(goals_scored) FROM table_name_17 WHERE points > 11 AND goals_conceded = 18 AND played < 18
|
### Instruction:
CREATE TABLE table_203_476 (
id number,
"no." number,
"title (latin)" text,
"title (english translation)" text,
"subject" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the only subject on 23 may 1920 ?
### Response:
|
SELECT "subject" FROM table_203_476 WHERE "date" = '23 may 1920'
|
### Instruction:
CREATE TABLE table_65528 (
"Country" text,
"Builder" text,
"Location" text,
"Ship" text,
"Class / type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country was Brage, built by karljohansverns verft, from?
### Response:
|
SELECT "Country" FROM table_65528 WHERE "Builder" = 'karljohansverns verft' AND "Ship" = 'brage'
|
### Instruction:
CREATE TABLE table_18746 (
"Frequency" text,
"Call sign" text,
"Name" text,
"Format" text,
"Owner" text,
"Target city/ market" text,
"City of license" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What market is Wessington Springs in
### Response:
|
SELECT "Target city/ market" FROM table_18746 WHERE "City of license" = 'Wessington Springs'
|
### Instruction:
CREATE TABLE table_79520 (
"Title" text,
"Series" text,
"Director" text,
"Production Number" real,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was Wet Hare, directed by Robert McKimson, released?
### Response:
|
SELECT "Release date" FROM table_79520 WHERE "Director" = 'robert mckimson' AND "Title" = 'wet hare'
|
### Instruction:
CREATE TABLE table_72432 (
"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's the party with incumbent being william e. evans
### Response:
|
SELECT "Party" FROM table_72432 WHERE "Incumbent" = 'William E. Evans'
|
### Instruction:
CREATE TABLE table_37128 (
"Episode No." text,
"Episode Title" text,
"UK Broadcast Date" text,
"Presenter" text,
"Details of Journey" text,
"Countries Visited" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which episode title featured a visit to the country of Cuba?
### Response:
|
SELECT "Episode Title" FROM table_37128 WHERE "Countries Visited" = 'cuba'
|
### Instruction:
CREATE TABLE table_71857 (
"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 was the score of the game that had a loss of Cerutti (0-1)?
### Response:
|
SELECT "Score" FROM table_71857 WHERE "Loss" = 'cerutti (0-1)'
|
### Instruction:
CREATE TABLE table_58656 (
"Matches" real,
"Wins" real,
"Draw" real,
"Losses" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total losses were with less than 51 draws but more than 6 wins?
### Response:
|
SELECT COUNT("Losses") FROM table_58656 WHERE "Draw" < '51' AND "Wins" > '6'
|
### Instruction:
CREATE TABLE table_75846 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has alamodome, san antonio, united states as the venue?
### Response:
|
SELECT "Date" FROM table_75846 WHERE "Venue" = 'alamodome, san antonio, united states'
|
### Instruction:
CREATE TABLE Project_outcomes (
project_id VARCHAR
)
CREATE TABLE Projects (
organisation_id VARCHAR,
project_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the organisation id with the maximum outcome count, and the count.
### Response:
|
SELECT T1.organisation_id, COUNT(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_31703 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds did the IFL: Oakland event have?
### Response:
|
SELECT SUM("Round") FROM table_31703 WHERE "Event" = 'ifl: oakland'
|
### Instruction:
CREATE TABLE table_14133 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent had an Attendance of 78,883?
### Response:
|
SELECT "Opponent" FROM table_14133 WHERE "Attendance" = '78,883'
|
### Instruction:
CREATE TABLE table_58181 (
"Nationality" text,
"Position" text,
"Tottenham Hotspur career" text,
"Club Apps" text,
"Goals" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position of the player from England with 62 goals?
### Response:
|
SELECT "Position" FROM table_58181 WHERE "Nationality" = 'england' AND "Goals" = '62'
|
### Instruction:
CREATE TABLE table_204_190 (
id number,
"rank" number,
"city" text,
"county" text,
"state" text,
"percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which california city has a higher percentage of korean americans ?
### Response:
|
SELECT "city" FROM table_204_190 WHERE "state" = 'california' ORDER BY "percentage" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_71020 (
"Date" text,
"Tournament" text,
"Surface" text,
"Tier" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the tier versus Annalisa bona?
### Response:
|
SELECT "Tier" FROM table_71020 WHERE "Opponent in the final" = 'annalisa bona'
|
### Instruction:
CREATE TABLE table_21481509_4 (
r1b1c__r_v88_ VARCHAR,
total_percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage is listed in column r1b1c (r-v88) for the 4.5% total percentage?
### Response:
|
SELECT r1b1c__r_v88_ FROM table_21481509_4 WHERE total_percentage = "4.5%"
|
### Instruction:
CREATE TABLE table_203_76 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which driver has his grid at 2 ?
### Response:
|
SELECT "driver" FROM table_203_76 WHERE "grid" = 2
|
### Instruction:
CREATE TABLE table_204_698 (
id number,
"name" text,
"lifetime" text,
"nationality" text,
"notable as" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how old was pierre vallieres before he died ?
### Response:
|
SELECT "lifetime" - "lifetime" FROM table_204_698 WHERE "name" = 'pierre vallieres'
|
### Instruction:
CREATE TABLE table_41437 (
"Date" text,
"Location" text,
"Country" text,
"Event" text,
"Winner" text,
"Runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date when Runner-up is Sof a Mul novich ( per )?
### Response:
|
SELECT "Date" FROM table_41437 WHERE "Runner-up" = 'sofía mulánovich ( per )'
|
### Instruction:
CREATE TABLE table_39515 (
"Number" real,
"Builder" text,
"Type" text,
"Date" text,
"Works number" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the builder for 4/1906 and works number more than 199
### Response:
|
SELECT "Builder" FROM table_39515 WHERE "Works number" > '199' AND "Date" = '4/1906'
|
### Instruction:
CREATE TABLE table_67520 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps were there when the Time/Retired was +1:00.003?
### Response:
|
SELECT "Laps" FROM table_67520 WHERE "Time/Retired" = '+1:00.003'
|
### Instruction:
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different colleges were represented at tryouts?
### Response:
|
SELECT COUNT(DISTINCT cname) FROM tryout
|
### Instruction:
CREATE TABLE table_50505 (
"Year" real,
"Show" text,
"Season" text,
"Episode" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Episode number of Ernest Dickerson in 2009 when the show was dexter?
### Response:
|
SELECT "Episode" FROM table_50505 WHERE "Year" = '2009' AND "Show" = 'dexter'
|
### Instruction:
CREATE TABLE table_21682 (
"School" text,
"Years of Participation" text,
"OCC Championships" real,
"Last OCC Championship" text,
"Last Outright OCC Championship" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many schools won their last occ championship in 2006?
### Response:
|
SELECT COUNT("School") FROM table_21682 WHERE "Last OCC Championship" = '2006'
|
### Instruction:
CREATE TABLE table_name_63 (
left_office VARCHAR,
political_party VARCHAR,
took_office VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Left Office, when Political Party is Ba'ath Party ( Syria Region ), and when Took Office is 7 March 1958?
### Response:
|
SELECT left_office FROM table_name_63 WHERE political_party = "ba'ath party ( syria region )" AND took_office = "7 march 1958"
|
### Instruction:
CREATE TABLE table_8809 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Manufacturer" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What manufacturer made class b-2?
### Response:
|
SELECT "Manufacturer" FROM table_8809 WHERE "Class" = 'b-2'
|
### Instruction:
CREATE TABLE table_12841 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 1st Party has an Election of 1893 by-election?
### Response:
|
SELECT "1st Party" FROM table_12841 WHERE "Election" = '1893 by-election'
|
### Instruction:
CREATE TABLE table_18153 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the party elected in the district that first elected in 1990?
### Response:
|
SELECT "Party" FROM table_18153 WHERE "First elected" = '1990'
|
### Instruction:
CREATE TABLE table_16787 (
"Series #" real,
"Episode title" text,
"Writer(s)" text,
"Director" text,
"U.S. viewers (millions)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Shelia Lawrence join the series?
### Response:
|
SELECT MIN("Series #") FROM table_16787 WHERE "Writer(s)" = 'Shelia Lawrence'
|
### Instruction:
CREATE TABLE table_15865 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country is the player that went to Georgetown from?
### Response:
|
SELECT "Nationality" FROM table_15865 WHERE "School/Club Team" = 'Georgetown'
|
### Instruction:
CREATE TABLE table_24801 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the partner is Rafael Osuna?
### Response:
|
SELECT "Score" FROM table_24801 WHERE "Partner" = 'Rafael Osuna'
|
### Instruction:
CREATE TABLE table_1300 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the pictorials when the interview subject is steve jobs
### Response:
|
SELECT "Pictorials" FROM table_1300 WHERE "Interview subject" = 'Steve Jobs'
|
### Instruction:
CREATE TABLE table_38528 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What the result for the hypo-meeting tournament in 1994?
### Response:
|
SELECT "Result" FROM table_38528 WHERE "Year" = '1994' AND "Tournament" = 'hypo-meeting'
|
### Instruction:
CREATE TABLE table_65048 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the year of the World Half Marathon Championships with a result of 3rd?
### Response:
|
SELECT "Year" FROM table_65048 WHERE "Tournament" = 'world half marathon championships' AND "Result" = '3rd'
|
### Instruction:
CREATE TABLE table_37447 (
"School" text,
"Mascot" text,
"Location" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school is located in Michigan City?
### Response:
|
SELECT "School" FROM table_37447 WHERE "Location" = 'michigan city'
|
### Instruction:
CREATE TABLE table_41161 (
"Rank" real,
"Country" text,
"1st place" real,
"2nd place" real,
"3rd place" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average 1st place with a Rank that is larger than 10?
### Response:
|
SELECT AVG("1st place") FROM table_41161 WHERE "Rank" > '10'
|
### Instruction:
CREATE TABLE table_55013 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for set 2 when set 3 was 15 6?
### Response:
|
SELECT "Set 2" FROM table_55013 WHERE "Set 3" = '15–6'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.