instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_18 (
place INTEGER,
team VARCHAR,
lost VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest place when lost is more than 4, points is less than 18 and team is Team of atl tico verag ense?
### Response:
|
SELECT MAX(place) FROM table_name_18 WHERE lost > 4 AND points < 18 AND team = "atlético veragüense"
|
### Instruction:
CREATE TABLE table_69888 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Try BP" text,
"Losing BP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Club that has the Lost of 19?
### Response:
|
SELECT "Club" FROM table_69888 WHERE "Lost" = '19'
|
### Instruction:
CREATE TABLE table_71144 (
"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 captain of the team that has a kit manufacturer of Fox Leisure?
### Response:
|
SELECT "Captain" FROM table_71144 WHERE "Kit manufacturer" = 'fox leisure'
|
### Instruction:
CREATE TABLE table_204_750 (
id number,
"team" text,
"stadium" text,
"capacity" number,
"seated" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- besides merthyr town , which other team had the highest number of capacity ?
### Response:
|
SELECT "team" FROM table_204_750 WHERE "team" <> 'merthyr town' ORDER BY "capacity" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_23397386_2 (
viewers__millions_ VARCHAR,
rating VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many million viewers watched the episode that had a 2.6/7 rating/share (18-49)
### Response:
|
SELECT viewers__millions_ FROM table_23397386_2 WHERE rating / SHARE(18 AS –49) = 2.6 / 7
|
### Instruction:
CREATE TABLE table_name_46 (
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Venue, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
### Response:
|
SELECT venue FROM table_name_46 WHERE date = "23,24,26,27,28,29 feb, 1 mar 1912"
|
### Instruction:
CREATE TABLE table_70197 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which class has a city of Richmond, Virginia?
### Response:
|
SELECT "Class" FROM table_70197 WHERE "City of license" = 'richmond, virginia'
|
### Instruction:
CREATE TABLE table_name_41 (
constituency VARCHAR,
candidate VARCHAR,
position VARCHAR,
party VARCHAR,
election VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Alliance Constituency has Seamus Close, position 2 and an election smaller than 1997?
### Response:
|
SELECT constituency FROM table_name_41 WHERE party = "alliance" AND election < 1997 AND position = 2 AND candidate = "seamus close"
|
### Instruction:
CREATE TABLE table_55423 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance of april 17?
### Response:
|
SELECT SUM("Attendance") FROM table_55423 WHERE "Date" = 'april 17'
|
### Instruction:
CREATE TABLE table_77973 (
"Episode" text,
"Air Date" text,
"Timeslot" text,
"Viewers" text,
"Weekly Rank for Living" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the episode with the 183,000 viewers?
### Response:
|
SELECT "Episode" FROM table_77973 WHERE "Viewers" = '183,000'
|
### Instruction:
CREATE TABLE table_202_276 (
id number,
"year 1958" text,
"title {the rebel" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which role did victor buono play in surfside 6 ?
### Response:
|
SELECT "role" FROM table_202_276 WHERE "title {the rebel" = 'surfside 6'
|
### Instruction:
CREATE TABLE table_19560 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text,
"Class AAAAA" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which is the class AA when graford was the class A
### Response:
|
SELECT "Class AA" FROM table_19560 WHERE "Class A" = 'Graford'
|
### Instruction:
CREATE TABLE table_37639 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Record of 0 8 had what lowest week?
### Response:
|
SELECT MIN("Week") FROM table_37639 WHERE "Record" = '0–8'
|
### Instruction:
CREATE TABLE table_9597 (
"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.
-- What was the method in the fight against Chris Myers?
### Response:
|
SELECT "Method" FROM table_9597 WHERE "Opponent" = 'chris myers'
|
### Instruction:
CREATE TABLE table_36860 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record on March 14?
### Response:
|
SELECT "Record" FROM table_36860 WHERE "Date" = 'march 14'
|
### Instruction:
CREATE TABLE CUSTOMER (
Address VARCHAR,
CustomerId VARCHAR,
country VARCHAR
)
CREATE TABLE INVOICE (
CustomerId VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the address of all customers that live in Germany and have invoice.
### Response:
|
SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Germany"
|
### Instruction:
CREATE TABLE table_28077 (
"No." real,
"#" real,
"Episode" text,
"Writer" text,
"Director" text,
"Original air date" text,
"Viewing figure" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode directed by colin teague?
### Response:
|
SELECT "Writer" FROM table_28077 WHERE "Director" = 'Colin Teague'
|
### Instruction:
CREATE TABLE table_name_33 (
chassis VARCHAR,
engine VARCHAR,
year VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Chassis of the Cooper Car Company after 1965 when the engine was a Maserati v12?
### Response:
|
SELECT chassis FROM table_name_33 WHERE year > 1965 AND team = "cooper car company" AND engine = "maserati v12"
|
### Instruction:
CREATE TABLE table_19665 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the mens singles for 1989
### Response:
|
SELECT "Mens singles" FROM table_19665 WHERE "Year" = '1989'
|
### Instruction:
CREATE TABLE table_203_378 (
id number,
"against" text,
"played" number,
"won" number,
"drawn" number,
"lost" number,
"win %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country have they played against the most ?
### Response:
|
SELECT "against" FROM table_203_378 ORDER BY "played" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_70 (
id number,
"pick #" number,
"nfl team" text,
"player" text,
"position" text,
"college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- karl farmer played the same position as jay chesley . what position was it ?
### Response:
|
SELECT "position" FROM table_204_70 WHERE "player" = 'karl farmer'
|
### Instruction:
CREATE TABLE table_33296 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest attendance number for august 9, 1968?
### Response:
|
SELECT MIN("Attendance") FROM table_33296 WHERE "Date" = 'august 9, 1968'
|
### Instruction:
CREATE TABLE table_22919 (
"Version" text,
"Code name" text,
"Release date" text,
"Desktops" text,
"Servers" text,
"Kernel Version" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many servers have a kernel version 3.11?
### Response:
|
SELECT COUNT("Servers") FROM table_22919 WHERE "Kernel Version" = '3.11'
|
### Instruction:
CREATE TABLE table_22874 (
"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.
-- Who did she play with on clay?
### Response:
|
SELECT "Partner" FROM table_22874 WHERE "Surface" = 'Clay'
|
### Instruction:
CREATE TABLE table_7235 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Assists" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Assists for the Player with 13 Games and a Rank less than 3?
### Response:
|
SELECT SUM("Assists") FROM table_7235 WHERE "Games" = '13' AND "Rank" < '3'
|
### Instruction:
CREATE TABLE table_27942 (
"meas. num." real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest measure number?
### Response:
|
SELECT MAX("meas. num.") FROM table_27942
|
### Instruction:
CREATE TABLE table_53182 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Vanwall time/retired with 49 laps?
### Response:
|
SELECT "Time/Retired" FROM table_53182 WHERE "Laps" = '49' AND "Constructor" = 'vanwall'
|
### Instruction:
CREATE TABLE table_203_405 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- were there more or less than 15 points scored in week 7 ?
### Response:
|
SELECT (SELECT "result" FROM table_203_405 WHERE "week" = 7) > 15
|
### Instruction:
CREATE TABLE table_55321 (
"Date" text,
"Opponent" text,
"Home/Away" text,
"Field" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the away game played on August 4?
### Response:
|
SELECT "Result" FROM table_55321 WHERE "Home/Away" = 'away' AND "Date" = 'august 4'
|
### Instruction:
CREATE TABLE table_204_927 (
id number,
"title" text,
"year" number,
"artist(s)" text,
"album" text,
"writer(s)" text,
"producer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of producing credits that this producer has ?
### Response:
|
SELECT COUNT("producer(s)") FROM table_204_927
|
### Instruction:
CREATE TABLE table_17602 (
"#" real,
"Nation" text,
"Winners" real,
"Runners-up" real,
"3rd Place" real,
"4th Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many runners-up with nation being india
### Response:
|
SELECT COUNT("Runners-up") FROM table_17602 WHERE "Nation" = 'India'
|
### Instruction:
CREATE TABLE table_38420 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team did the Chicago Black Hawks visit on April 20?
### Response:
|
SELECT "Home" FROM table_38420 WHERE "Visitor" = 'chicago black hawks' AND "Date" = 'april 20'
|
### Instruction:
CREATE TABLE table_61859 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHICH Date has a Venue of lancaster park , christchurch?
### Response:
|
SELECT "Date" FROM table_61859 WHERE "Venue" = 'lancaster park , christchurch'
|
### Instruction:
CREATE TABLE table_name_92 (
no_s_ INTEGER,
position VARCHAR,
school_club_team_country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of years did he play the forward position and what school/club/team/country of Oregon State did he play?
### Response:
|
SELECT SUM(no_s_) FROM table_name_92 WHERE position = "forward" AND school_club_team_country = "oregon state"
|
### Instruction:
CREATE TABLE table_40108 (
"Capacity" text,
"Volts" text,
"Temp." text,
"Energy-to-weight ratio" text,
"Power-to-weight ratio" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the capacity of 3500v volts?
### Response:
|
SELECT "Capacity" FROM table_40108 WHERE "Volts" = '3500v'
|
### Instruction:
CREATE TABLE table_613 (
"English Name" text,
"Simplified" text,
"Traditional" text,
"Pinyin" text,
"Area" real,
"Population" real,
"Density" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people live in ?
### Response:
|
SELECT MAX("Population") FROM table_613 WHERE "Simplified" = '铅山县'
|
### Instruction:
CREATE TABLE table_49954 (
"Driver" text,
"Race 1" text,
"Race 2" text,
"Race 3" text,
"Race 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Race 2, when Race 4 is 28?
### Response:
|
SELECT "Race 2" FROM table_49954 WHERE "Race 4" = '28'
|
### Instruction:
CREATE TABLE table_42330 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the winning score of the Greater Vancouver Open tournament?
### Response:
|
SELECT "Winning score" FROM table_42330 WHERE "Tournament" = 'greater vancouver open'
|
### Instruction:
CREATE TABLE table_3250 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people directed episode 3 in the season?
### Response:
|
SELECT COUNT("Directed by") FROM table_3250 WHERE "No. in season" = '3'
|
### Instruction:
CREATE TABLE table_76907 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the wheel arrangement with 1 quantity preserved?
### Response:
|
SELECT "Wheel arrangement" FROM table_76907 WHERE "Quantity preserved" = '1'
|
### Instruction:
CREATE TABLE table_68009 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of overall for villanova and round less than 2
### Response:
|
SELECT COUNT("Overall") FROM table_68009 WHERE "College" = 'villanova' AND "Round" < '2'
|
### Instruction:
CREATE TABLE table_48319 (
"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 nationality of the Team Georgia Tech?
### Response:
|
SELECT "Nationality" FROM table_48319 WHERE "School/Club Team" = 'georgia tech'
|
### Instruction:
CREATE TABLE table_name_79 (
points VARCHAR,
opponent VARCHAR,
february VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did the Flyers have against the New York Islanders with a February bigger than 12, and a game smaller than 60?
### Response:
|
SELECT COUNT(points) FROM table_name_79 WHERE february > 12 AND game < 60 AND opponent = "new york islanders"
|
### Instruction:
CREATE TABLE table_204_970 (
id number,
"year" number,
"award" text,
"category" text,
"title" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the only tv show this actor was nominated for a daytime emmy award for ?
### Response:
|
SELECT "title" FROM table_204_970 WHERE "award" = 'daytime emmy award'
|
### Instruction:
CREATE TABLE table_6708 (
"Date" text,
"Opponent#" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent in the game that was attended by 48,000 people?
### Response:
|
SELECT "Opponent#" FROM table_6708 WHERE "Attendance" = '48,000'
|
### Instruction:
CREATE TABLE table_39207 (
"Isotope" text,
"Half-life" text,
"Decay mode" text,
"Discovery year" text,
"Reaction" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the half-life discovered in 2003?
### Response:
|
SELECT "Half-life" FROM table_39207 WHERE "Discovery year" = '2003'
|
### Instruction:
CREATE TABLE table_60189 (
"Election" text,
"First member" text,
"1st Party" text,
"Second member" text,
"2nd Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Election, when 2nd Party is 'Constituency Abolished'?
### Response:
|
SELECT "Election" FROM table_60189 WHERE "2nd Party" = 'constituency abolished'
|
### Instruction:
CREATE TABLE table_name_87 (
vehicle VARCHAR,
position VARCHAR,
stages_won VARCHAR,
class VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which vehicle had a class of car in years after 2009 with 0 stages won and position of 5?
### Response:
|
SELECT vehicle FROM table_name_87 WHERE class = "car" AND year > 2009 AND stages_won = "0" AND position = "5"
|
### Instruction:
CREATE TABLE table_67012 (
"Round" real,
"Pick" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average pick of northwestern state college under round 3?
### Response:
|
SELECT AVG("Pick") FROM table_67012 WHERE "Round" < '3' AND "College" = 'northwestern state'
|
### Instruction:
CREATE TABLE table_204_726 (
id number,
"rank" number,
"athlete" text,
"country" text,
"time" text,
"behind" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- lavia is ranked 6 , but who is ranked above it ?
### Response:
|
SELECT "country" FROM table_204_726 WHERE "rank" = 6 - 1
|
### Instruction:
CREATE TABLE table_70179 (
"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 nationality is the #63 pick?
### Response:
|
SELECT "Nationality" FROM table_70179 WHERE "Pick #" = '63'
|
### Instruction:
CREATE TABLE table_36874 (
"Club" text,
"Sport" text,
"League" text,
"Venue" text,
"Established" real,
"Championships" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many championships does Evergreen Premier League have?
### Response:
|
SELECT MAX("Championships") FROM table_36874 WHERE "League" = 'evergreen premier league'
|
### Instruction:
CREATE TABLE table_41043 (
"Place" real,
"Rider" text,
"Country" text,
"Machine" text,
"Speed" text,
"Time" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Country , when Rider is Lindsay Porter?
### Response:
|
SELECT "Country" FROM table_41043 WHERE "Rider" = 'lindsay porter'
|
### Instruction:
CREATE TABLE table_77860 (
"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.
-- Name the away team score for lake oval
### Response:
|
SELECT "Away team score" FROM table_77860 WHERE "Venue" = 'lake oval'
|
### Instruction:
CREATE TABLE table_56121 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Assists" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the team with assists greater than 118 and rank less than 2
### Response:
|
SELECT "Team" FROM table_56121 WHERE "Assists" > '118' AND "Rank" < '2'
|
### Instruction:
CREATE TABLE table_73997 (
"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.
-- Name the total number of party for willis alston
### Response:
|
SELECT COUNT("Party") FROM table_73997 WHERE "Incumbent" = 'Willis Alston'
|
### Instruction:
CREATE TABLE table_name_83 (
start INTEGER,
year VARCHAR,
finish VARCHAR,
manufacturer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE START THAT HAS A FINISH BIGGER THAN 3, FROM FORD, AFTER 1969?
### Response:
|
SELECT MAX(start) FROM table_name_83 WHERE finish > 3 AND manufacturer = "ford" AND year > 1969
|
### Instruction:
CREATE TABLE table_27765443_2 (
no_of_processors VARCHAR,
period_of_operation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of processors for october 2006 - january 2010
### Response:
|
SELECT no_of_processors FROM table_27765443_2 WHERE period_of_operation = "October 2006 - January 2010"
|
### Instruction:
CREATE TABLE table_49756 (
"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 city when the country is libya and the iata is ben?
### Response:
|
SELECT "City" FROM table_49756 WHERE "Country" = 'libya' AND "IATA" = 'ben'
|
### Instruction:
CREATE TABLE table_71036 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number that Tom Watson parred larger than 10?
### Response:
|
SELECT COUNT("Total") FROM table_71036 WHERE "Player" = 'tom watson' AND "To par" > '10'
|
### Instruction:
CREATE TABLE table_2032 (
"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 was the team's status in the USISL Pro League playoffs?
### Response:
|
SELECT "Playoffs" FROM table_2032 WHERE "League" = 'USISL Pro League'
|
### Instruction:
CREATE TABLE table_47925 (
"Title" text,
"Series" text,
"Release" real,
"Featuring" text,
"Writer" text,
"Director" text,
"Length" text,
"Release Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote Infiltration?
### Response:
|
SELECT "Writer" FROM table_47925 WHERE "Title" = 'infiltration'
|
### Instruction:
CREATE TABLE table_41320 (
"Date" text,
"Venue" text,
"Result" text,
"Goals" real,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At which venue did the event held on 15 November 2010 occur?
### Response:
|
SELECT "Venue" FROM table_41320 WHERE "Date" = '15 november 2010'
|
### Instruction:
CREATE TABLE table_11667521_17 (
stage__winner_ VARCHAR,
general_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- IN WHAT STAGE DID ALEXANDER VINOKOUROV WON THE GENERAL CLASSIFICATION?
### Response:
|
SELECT stage__winner_ FROM table_11667521_17 WHERE general_classification = "Alexander Vinokourov"
|
### Instruction:
CREATE TABLE table_38088 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result has a Record of 5 4?
### Response:
|
SELECT "Result" FROM table_38088 WHERE "Record" = '5–4'
|
### Instruction:
CREATE TABLE table_48612 (
"Round" real,
"Pick" text,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is School/Club Team, when Pick is 9 (via Hamilton)?
### Response:
|
SELECT "School/Club Team" FROM table_48612 WHERE "Pick" = '9 (via hamilton)'
|
### Instruction:
CREATE TABLE table_24581 (
"Round #" real,
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions is player Tom Glavine?
### Response:
|
SELECT COUNT("Position") FROM table_24581 WHERE "Player" = 'Tom Glavine'
|
### Instruction:
CREATE TABLE table_204_958 (
id number,
"episode" number,
"original broadcast date" text,
"average" number,
"rank" number,
"remarks" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many episodes had an average over 0.75 ?
### Response:
|
SELECT COUNT("episode") FROM table_204_958 WHERE "average" > 0.75
|
### Instruction:
CREATE TABLE table_60971 (
"Title" text,
"Developer" text,
"Category" text,
"Release date" text,
"Version" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Version has a Developer of dino games, and a Title of metronome?
### Response:
|
SELECT "Version" FROM table_60971 WHERE "Developer" = 'dino games' AND "Title" = 'metronome'
|
### Instruction:
CREATE TABLE table_12268 (
"Draft" real,
"Round" text,
"Pick" real,
"Player" text,
"Nationality" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest draft of player justin martin from the USA?
### Response:
|
SELECT MIN("Draft") FROM table_12268 WHERE "Nationality" = 'usa' AND "Player" = 'justin martin'
|
### Instruction:
CREATE TABLE table_48935 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Status has a Date of 19/05/1981?
### Response:
|
SELECT "Status" FROM table_48935 WHERE "Date" = '19/05/1981'
|
### Instruction:
CREATE TABLE table_name_47 (
goals__2008_ INTEGER,
games__2008_ VARCHAR,
debut_round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of goals with 21 games for a debut round less than 1?
### Response:
|
SELECT AVG(goals__2008_) FROM table_name_47 WHERE games__2008_ = 21 AND debut_round < 1
|
### Instruction:
CREATE TABLE table_19724 (
"Character" text,
"French voice actor" text,
"Italian voice actor" text,
"German voice actor" text,
"Spanish voice actor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the german voice actor for rafael torres
### Response:
|
SELECT "German voice actor" FROM table_19724 WHERE "Spanish voice actor" = 'Rafael Torres'
|
### Instruction:
CREATE TABLE table_name_45 (
competition VARCHAR,
venue VARCHAR,
goal VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Competition has a Venue of estadio alfonso lastras, san luis potos , mexico, and a Goal larger than 15?
### Response:
|
SELECT competition FROM table_name_45 WHERE venue = "estadio alfonso lastras, san luis potosí, mexico" AND goal > 15
|
### Instruction:
CREATE TABLE table_24059973_3 (
denis_nizhegorodov___rus__ VARCHAR,
world_record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When north american record is the world record who is the denis nizhegorodov ( rus )?
### Response:
|
SELECT denis_nizhegorodov___rus__ FROM table_24059973_3 WHERE world_record = "North American record"
|
### Instruction:
CREATE TABLE table_61040 (
"Draft" real,
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Canada's highest round before 1973?
### Response:
|
SELECT MAX("Round") FROM table_61040 WHERE "Nationality" = 'canada' AND "Draft" < '1973'
|
### Instruction:
CREATE TABLE table_71977 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date for opponent in the final being ignasi villacampa
### Response:
|
SELECT "Date" FROM table_71977 WHERE "Opponent in the final" = 'ignasi villacampa'
|
### Instruction:
CREATE TABLE table_67648 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rank of Bobby Grim when he finished 1059 laps?
### Response:
|
SELECT "Rank" FROM table_67648 WHERE "Laps" = '1059'
|
### Instruction:
CREATE TABLE table_203_123 (
id number,
"year" number,
"title" text,
"b-side" text,
"mediums" text,
"label (catalog)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the only modest mouse single released under the hit or miss label ?
### Response:
|
SELECT "title" FROM table_203_123 WHERE "label (catalog)" = 'hit or miss'
|
### Instruction:
CREATE TABLE table_78177 (
"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 low grid that has brm and over 54 laps?
### Response:
|
SELECT MIN("Grid") FROM table_78177 WHERE "Constructor" = 'brm' AND "Laps" > '54'
|
### Instruction:
CREATE TABLE table_62508 (
"Season" text,
"Division" text,
"Tier" real,
"Points" real,
"FA Cup" text,
"FA Trophy" text,
"Shropshire Senior Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season had 78 points?
### Response:
|
SELECT "Season" FROM table_62508 WHERE "Points" = '78'
|
### Instruction:
CREATE TABLE table_72385 (
"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.
-- what's the first elected with district being florida 7
### Response:
|
SELECT "First elected" FROM table_72385 WHERE "District" = 'Florida 7'
|
### Instruction:
CREATE TABLE table_3187 (
"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 none (new seat) is the first elected who are the candidates?
### Response:
|
SELECT "Candidates" FROM table_3187 WHERE "First elected" = 'None (New seat)'
|
### Instruction:
CREATE TABLE table_50050 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record with 23 points and a visitor of Chicago?
### Response:
|
SELECT "Record" FROM table_50050 WHERE "Points" = '23' AND "Visitor" = 'chicago'
|
### Instruction:
CREATE TABLE table_38865 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the margin of victory over Steve Rintoul?
### Response:
|
SELECT "Margin of victory" FROM table_38865 WHERE "Runner(s)-up" = 'steve rintoul'
|
### Instruction:
CREATE TABLE table_39514 (
"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 date with works number less than 1673 and number less than 3
### Response:
|
SELECT "Date" FROM table_39514 WHERE "Works number" < '1673' AND "Number" < '3'
|
### Instruction:
CREATE TABLE table_1093 (
"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 is Bernie Germain's nationality?
### Response:
|
SELECT "Nationality" FROM table_1093 WHERE "Player" = 'Bernie Germain'
|
### Instruction:
CREATE TABLE table_30942 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game when the home team is melbourne?
### Response:
|
SELECT "Date" FROM table_30942 WHERE "Home team" = 'Melbourne'
|
### Instruction:
CREATE TABLE table_61645 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the place when the score was 67-73-73=213?
### Response:
|
SELECT "Place" FROM table_61645 WHERE "Score" = '67-73-73=213'
|
### Instruction:
CREATE TABLE table_name_14 (
week INTEGER,
opponent VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average week for the gaime against the philadelphia eagles with less than 31,066 in attendance?
### Response:
|
SELECT AVG(week) FROM table_name_14 WHERE opponent = "philadelphia eagles" AND attendance < 31 OFFSET 066
|
### Instruction:
CREATE TABLE table_44905 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the attendance of the November 19, 1990 game?
### Response:
|
SELECT "Attendance" FROM table_44905 WHERE "Date" = 'november 19, 1990'
|
### Instruction:
CREATE TABLE table_name_45 (
karen_handel VARCHAR,
eric_johnson VARCHAR,
undecided VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%?
### Response:
|
SELECT karen_handel FROM table_name_45 WHERE eric_johnson = "13%" AND undecided = "22%"
|
### Instruction:
CREATE TABLE table_36121 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Home of quebec nordiques on april 16?
### Response:
|
SELECT "Score" FROM table_36121 WHERE "Home" = 'quebec nordiques' AND "Date" = 'april 16'
|
### Instruction:
CREATE TABLE table_name_29 (
rank INTEGER,
silver VARCHAR,
gold VARCHAR,
total VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank of the medal total less than 15, more than 2 bronzes, 0 gold and 1 silver?
### Response:
|
SELECT MAX(rank) FROM table_name_29 WHERE total < 15 AND bronze > 2 AND gold = 0 AND silver = 1
|
### Instruction:
CREATE TABLE table_10735 (
"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 is the Date with a Score with 86 108?
### Response:
|
SELECT "Date" FROM table_10735 WHERE "Score" = '86–108'
|
### Instruction:
CREATE TABLE table_42973 (
"City of License /Market" text,
"Station" text,
"Channel TV ( DT )" text,
"Years owned" text,
"Current affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Channel TV is located in Baltimore?
### Response:
|
SELECT "Channel TV ( DT )" FROM table_42973 WHERE "City of License /Market" = 'baltimore'
|
### Instruction:
CREATE TABLE table_42636 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tournament had a Runner(s)-up of Tom Kite?
### Response:
|
SELECT "Tournament" FROM table_42636 WHERE "Runner(s)-up" = 'tom kite'
|
### Instruction:
CREATE TABLE table_39907 (
"Number" real,
"Builder" text,
"Type" text,
"Date" text,
"Works number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Type has a Builder of avonside engine company, and a Number of 9?
### Response:
|
SELECT "Type" FROM table_39907 WHERE "Builder" = 'avonside engine company' AND "Number" = '9'
|
### Instruction:
CREATE TABLE table_37385 (
"Train Number" text,
"Train Name" text,
"Origin" text,
"Destination" text,
"Frequency (inbound/outbound)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the frequency of the rail with an origin of Ranchi?
### Response:
|
SELECT "Frequency (inbound/outbound)" FROM table_37385 WHERE "Origin" = 'ranchi'
|
### Instruction:
CREATE TABLE table_name_46 (
labour_panel INTEGER,
university_of_dublin VARCHAR,
agricultural_panel VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest labour panel when the university of dublin is less than 2 and the agricultural panel is greater than 5?
### Response:
|
SELECT MAX(labour_panel) FROM table_name_46 WHERE university_of_dublin < 2 AND agricultural_panel > 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.