instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_17765 (
"Player" text,
"League" real,
"Scottish Cup" real,
"League Cup" real,
"Challenge Cup" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the least amount in the tournament?
### Response:
|
SELECT MIN("League Cup") FROM table_17765
|
### Instruction:
CREATE TABLE table_name_95 (
date VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date was the Winning score 8 (69-72-70-69=280)?
### Response:
|
SELECT date FROM table_name_95 WHERE winning_score = –8(69 - 72 - 70 - 69 = 280)
|
### Instruction:
CREATE TABLE table_79318 (
"Rank" real,
"Heat" real,
"Cyclist" text,
"Nation" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest rank that spain got?
### Response:
|
SELECT MIN("Rank") FROM table_79318 WHERE "Nation" = 'spain'
|
### Instruction:
CREATE TABLE table_33861 (
"Pos." real,
"Mark" text,
"Athlete" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which athlete played at the Birmingham venue?
### Response:
|
SELECT "Athlete" FROM table_33861 WHERE "Venue" = 'birmingham'
|
### Instruction:
CREATE TABLE table_17120964_6 (
venue VARCHAR,
man_of_the_match VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At what venue did Alex Mettam/Mark Williams be named Man of the Match?
### Response:
|
SELECT venue FROM table_17120964_6 WHERE man_of_the_match = "Alex Mettam/Mark Williams"
|
### Instruction:
CREATE TABLE table_31732 (
"Model" text,
"Sensor resolution" text,
"Angle" real,
"Released" real,
"Latest software" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What model was released in 2005?
### Response:
|
SELECT "Model" FROM table_31732 WHERE "Released" = '2005'
|
### Instruction:
CREATE TABLE table_47080 (
"Name" text,
"Class" text,
"Navy" text,
"Date joined" text,
"Date departed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the class of the HMS Fowey?
### Response:
|
SELECT "Class" FROM table_47080 WHERE "Name" = 'hms fowey'
|
### Instruction:
CREATE TABLE table_70407 (
"School" text,
"Team" text,
"Division Record" text,
"Overall Record" text,
"Season Outcome" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the division record for the Indians?
### Response:
|
SELECT "Division Record" FROM table_70407 WHERE "Team" = 'indians'
|
### Instruction:
CREATE TABLE table_8770 (
"Song" text,
"Original Name" text,
"Country" text,
"Language" text,
"Singer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original name for the song 'Sono Io'?
### Response:
|
SELECT "Original Name" FROM table_8770 WHERE "Song" = 'sono io'
|
### Instruction:
CREATE TABLE table_1140073_2 (
race VARCHAR,
pole_position VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What race had Nelson Piquet on the pole and was in N rburgring?
### Response:
|
SELECT race FROM table_1140073_2 WHERE pole_position = "Nelson Piquet" AND location = "Nürburgring"
|
### Instruction:
CREATE TABLE table_15039 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which of the chassis had a total of 7 points?
### Response:
|
SELECT "Chassis" FROM table_15039 WHERE "Points" = '7'
|
### 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.
-- how many total awards did he win ?
### Response:
|
SELECT COUNT("award") FROM table_204_970 WHERE "result" = 'won'
|
### Instruction:
CREATE TABLE table_247955_2 (
margin_of_victory VARCHAR,
runner_s__up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the margin of victory when runner-up was K. J. Choi?
### Response:
|
SELECT margin_of_victory FROM table_247955_2 WHERE runner_s__up = "K. J. Choi"
|
### Instruction:
CREATE TABLE table_name_36 (
first_elected INTEGER,
results VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is re-elected Incumbent Jerry Costello's First elected date?
### Response:
|
SELECT MIN(first_elected) FROM table_name_36 WHERE results = "re-elected" AND incumbent = "jerry costello"
|
### Instruction:
CREATE TABLE table_12785 (
"Flight Day" text,
"Song" text,
"Artist" text,
"Played for" text,
"Links" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what flight day was U2 played?
### Response:
|
SELECT "Flight Day" FROM table_12785 WHERE "Artist" = 'u2'
|
### Instruction:
CREATE TABLE table_name_48 (
goals_against INTEGER,
wins VARCHAR,
draws VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the smallest goals with wins smaller than 16, and a Draws larger than 14?
### Response:
|
SELECT MIN(goals_against) FROM table_name_48 WHERE wins < 16 AND draws > 14
|
### Instruction:
CREATE TABLE table_171356_2 (
status VARCHAR,
census_ranking VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What status doe the area with a census ranking of 2,290 of 5,008 have?
### Response:
|
SELECT status FROM table_171356_2 WHERE census_ranking = "2,290 of 5,008"
|
### Instruction:
CREATE TABLE table_67559 (
"School" text,
"Team" text,
"Division Record" text,
"Overall Record" text,
"Season Outcome" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Team for the Milford School?
### Response:
|
SELECT "Team" FROM table_67559 WHERE "School" = 'milford'
|
### Instruction:
CREATE TABLE table_53552 (
"Name" text,
"Position" text,
"From (Club)" text,
"Date Joined" text,
"Debut" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round was the debut of Scott Tunbridge?
### Response:
|
SELECT "Debut" FROM table_53552 WHERE "Name" = 'scott tunbridge'
|
### Instruction:
CREATE TABLE table_71323 (
"Club" text,
"League" text,
"Sport" text,
"Venue" text,
"Established" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Venue has Basketball as a Sport?
### Response:
|
SELECT "Venue" FROM table_71323 WHERE "Sport" = 'basketball'
|
### Instruction:
CREATE TABLE table_name_52 (
attribute VARCHAR,
category VARCHAR,
cancelable VARCHAR,
bubbles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Cancelable of yes, bubble of yes and a Category of keyboard, what was the Attribute?
### Response:
|
SELECT attribute FROM table_name_52 WHERE cancelable = "yes" AND bubbles = "yes" AND category = "keyboard"
|
### Instruction:
CREATE TABLE table_name_96 (
area__km_2__ VARCHAR,
population VARCHAR,
place VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of area listed for cannonvale with a population less than 409?
### Response:
|
SELECT COUNT(area__km_2__) FROM table_name_96 WHERE population < 409 AND place = "cannonvale"
|
### Instruction:
CREATE TABLE table_name_49 (
co_champions VARCHAR,
solo VARCHAR,
mrc_championships VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the co-champions value when solo was 3 and MRC Championships is greater than 3?
### Response:
|
SELECT co_champions FROM table_name_49 WHERE solo = 3 AND mrc_championships > 3
|
### Instruction:
CREATE TABLE table_12219 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Record, when Date is 'April 24'?
### Response:
|
SELECT "Record" FROM table_12219 WHERE "Date" = 'april 24'
|
### Instruction:
CREATE TABLE table_name_64 (
play_offs INTEGER,
club VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest play-offs that have stevenage borough as the club, and a total greater than 21?
### Response:
|
SELECT MAX(play_offs) FROM table_name_64 WHERE club = "stevenage borough" AND total > 21
|
### Instruction:
CREATE TABLE table_80387 (
"Team" text,
"Manager" text,
"Captain" text,
"Kit manufacturer" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has george graham as the manager?
### Response:
|
SELECT "Team" FROM table_80387 WHERE "Manager" = 'george graham'
|
### Instruction:
CREATE TABLE table_name_44 (
viewers VARCHAR,
order VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average 18-49 for the episode that had an order number higher than 35 and less than 3.5 viewers?
### Response:
|
SELECT AVG(18 AS _49) FROM table_name_44 WHERE viewers < 3.5 AND order > 35
|
### Instruction:
CREATE TABLE table_5405 (
"Number" real,
"Name" text,
"Position" text,
"Date of birth" text,
"Height" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Position of the player with a Height off 188cm?
### Response:
|
SELECT "Position" FROM table_5405 WHERE "Height" = '188cm'
|
### Instruction:
CREATE TABLE table_name_40 (
attendance INTEGER,
date VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest attendance for December 14, 1958 for after week 12
### Response:
|
SELECT MAX(attendance) FROM table_name_40 WHERE date = "december 14, 1958" AND week > 12
|
### Instruction:
CREATE TABLE table_61190 (
"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 Burnley was the away team?
### Response:
|
SELECT "Score" FROM table_61190 WHERE "Away team" = 'burnley'
|
### Instruction:
CREATE TABLE table_38362 (
"Season" text,
"Player" text,
"Position" text,
"Nationality" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Team has the Player of A.J. Moye?
### Response:
|
SELECT "Team" FROM table_38362 WHERE "Player" = 'a.j. moye'
|
### Instruction:
CREATE TABLE table_204_886 (
id number,
"rank" number,
"swimmer" text,
"country" text,
"time" text,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many swimmers did not swim ?
### Response:
|
SELECT COUNT("swimmer") FROM table_204_886 WHERE "rank" IS NULL
|
### Instruction:
CREATE TABLE table_14757 (
"Series" text,
"Name" text,
"Hometown" text,
"Occupation" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Hasan Shah's hometown?
### Response:
|
SELECT "Hometown" FROM table_14757 WHERE "Name" = 'hasan shah'
|
### Instruction:
CREATE TABLE table_27057070_3 (
date_of_appointment VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many date of appointment entries are there when the team is khazar lankaran?
### Response:
|
SELECT COUNT(date_of_appointment) FROM table_27057070_3 WHERE team = "Khazar Lankaran"
|
### Instruction:
CREATE TABLE table_name_38 (
pos INTEGER,
car__number VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Pos has a Car # larger than 2, and a Team of billy ballew motorsports?
### Response:
|
SELECT AVG(pos) FROM table_name_38 WHERE car__number > 2 AND team = "billy ballew motorsports"
|
### Instruction:
CREATE TABLE table_name_43 (
goals INTEGER,
season VARCHAR,
division VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Goals, when Season is '2005-06', and when Division is less than 1?
### Response:
|
SELECT SUM(goals) FROM table_name_43 WHERE season = "2005-06" AND division < 1
|
### Instruction:
CREATE TABLE table_204_834 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many ranked swimmers were from the united states ?
### Response:
|
SELECT COUNT(*) FROM table_204_834 WHERE "nationality" = 'united states'
|
### Instruction:
CREATE TABLE table_name_39 (
result VARCHAR,
game_site VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the result at psinet stadium when the cincinnati bengals are the opponent?
### Response:
|
SELECT result FROM table_name_39 WHERE game_site = "psinet stadium" AND opponent = "cincinnati bengals"
|
### Instruction:
CREATE TABLE table_6350 (
"Country" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total when bronze has a silver larger than 2?
### Response:
|
SELECT COUNT("Bronze") FROM table_6350 WHERE "Silver" > '2'
|
### Instruction:
CREATE TABLE table_6579 (
"Celebrity" text,
"Famous for" text,
"Entered" text,
"Exited" text,
"Finished" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What celebrity finished 6th?
### Response:
|
SELECT "Celebrity" FROM table_6579 WHERE "Finished" = '6th'
|
### Instruction:
CREATE TABLE table_1616 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the population in Westfield?
### Response:
|
SELECT COUNT("Population") FROM table_1616 WHERE "Official Name" = 'Westfield'
|
### Instruction:
CREATE TABLE table_5088 (
"Station Code" text,
"Station Name" text,
"Arrival" text,
"Departure" text,
"Platform" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Station Code of the Destination Station Departure?
### Response:
|
SELECT "Station Code" FROM table_5088 WHERE "Departure" = 'destination station'
|
### Instruction:
CREATE TABLE table_52590 (
"Race" text,
"Length" text,
"Class" text,
"Circuit" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What class is the dodge dealers grand prix?
### Response:
|
SELECT "Class" FROM table_52590 WHERE "Race" = 'the dodge dealers grand prix'
|
### Instruction:
CREATE TABLE table_79506 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the race time for emma twigg?
### Response:
|
SELECT "Time" FROM table_79506 WHERE "Athlete" = 'emma twigg'
|
### Instruction:
CREATE TABLE table_name_18 (
year VARCHAR,
award VARCHAR,
category VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Year, when Award is 'Vamsi Berkley Award', and when Category is 'Best Actor'?
### Response:
|
SELECT COUNT(year) FROM table_name_18 WHERE award = "vamsi berkley award" AND category = "best actor"
|
### Instruction:
CREATE TABLE table_6848 (
"Rank" real,
"Country" text,
"Claimant" text,
"Highest point" text,
"Height" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most points for South Ossetia?
### Response:
|
SELECT "Highest point" FROM table_6848 WHERE "Country" = 'south ossetia'
|
### Instruction:
CREATE TABLE table_name_48 (
total VARCHAR,
round_1_ VARCHAR,
_2a_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of total when round 1 +2A points of 19.620
### Response:
|
SELECT COUNT(total) FROM table_name_48 WHERE round_1_ + _2a_points = "19.620"
|
### Instruction:
CREATE TABLE table_204_898 (
id number,
"seed" text,
"school" text,
"conf (overall)" text,
"tiebreaker" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what school had the most wins overall ?
### Response:
|
SELECT "school" FROM table_204_898 ORDER BY "conf (overall)" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_35 (
meg_whitman__r_ VARCHAR,
margin_of_error VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of the vote with a margin of error of 3.3% did Meg Whitman (R) get?
### Response:
|
SELECT meg_whitman__r_ FROM table_name_35 WHERE margin_of_error = "± 3.3%"
|
### Instruction:
CREATE TABLE table_37273 (
"Rank" real,
"Name" text,
"Nation" text,
"Points" real,
"Places" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Nation Placed 122.5?
### Response:
|
SELECT "Nation" FROM table_37273 WHERE "Places" = '122.5'
|
### Instruction:
CREATE TABLE table_name_60 (
round INTEGER,
opponent VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which is the lowest Round with the Opponent, Paul Cahoon and Location, Amsterdam, Netherlands?
### Response:
|
SELECT MIN(round) FROM table_name_60 WHERE opponent = "paul cahoon" AND location = "amsterdam, netherlands"
|
### Instruction:
CREATE TABLE table_name_29 (
gold INTEGER,
silver VARCHAR,
rank VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many gold have a Rank of 7, and a Bronze of 1, and a Silver smaller than 0?
### Response:
|
SELECT SUM(gold) FROM table_name_29 WHERE rank = 7 AND bronze = 1 AND silver < 0
|
### Instruction:
CREATE TABLE table_name_60 (
total VARCHAR,
silver VARCHAR,
gold VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0?
### Response:
|
SELECT COUNT(total) FROM table_name_60 WHERE gold = 1 AND rank = "12" AND silver > 0
|
### Instruction:
CREATE TABLE table_58067 (
"Tournament" text,
"Winner" text,
"Runner-up" text,
"Score" text,
"Third Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the tournament in Budapest?
### Response:
|
SELECT "Score" FROM table_58067 WHERE "Tournament" = 'budapest'
|
### Instruction:
CREATE TABLE table_204_886 (
id number,
"rank" number,
"swimmer" text,
"country" text,
"time" text,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which swimmer had the longest time ?
### Response:
|
SELECT "swimmer" FROM table_204_886 ORDER BY "rank" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_10602294_1 (
pressure VARCHAR,
deaths VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)?
### Response:
|
SELECT pressure FROM table_10602294_1 WHERE deaths = "95km/h (60mph)"
|
### Instruction:
CREATE TABLE table_name_74 (
driver VARCHAR,
constructor VARCHAR,
grid VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a grid smaller than 24, less than 61 laps, and a ferrari constructor?
### Response:
|
SELECT driver FROM table_name_74 WHERE grid < 24 AND laps < 61 AND constructor = "ferrari"
|
### Instruction:
CREATE TABLE table_22853654_10 (
round VARCHAR,
edition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds were there in the 2006 davis cup europe/africa group I?
### Response:
|
SELECT COUNT(round) FROM table_22853654_10 WHERE edition = "2006 Davis Cup Europe/Africa Group I"
|
### Instruction:
CREATE TABLE table_203_877 (
id number,
"year" number,
"single" text,
"us cashbox" number,
"us hot 100" number,
"uk singles" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of singles released ?
### Response:
|
SELECT COUNT("single") FROM table_203_877
|
### Instruction:
CREATE TABLE table_50877 (
"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 lowest grid number for Yamaha?
### Response:
|
SELECT MIN("Grid") FROM table_50877 WHERE "Manufacturer" = 'yamaha'
|
### Instruction:
CREATE TABLE table_68637 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total points in 1974?
### Response:
|
SELECT COUNT("Points") FROM table_68637 WHERE "Year" = '1974'
|
### Instruction:
CREATE TABLE table_name_86 (
distance_medellín_downtown___km__ VARCHAR,
municipalities VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Distance Medell n Downtown (km) when the municipalities Envigado?
### Response:
|
SELECT distance_medellín_downtown___km__ FROM table_name_86 WHERE municipalities = "envigado"
|
### Instruction:
CREATE TABLE table_75510 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year was michele assaf nominated
### Response:
|
SELECT "Year" FROM table_75510 WHERE "Nominee" = 'michele assaf'
|
### Instruction:
CREATE TABLE table_13996 (
"Medal" text,
"Name" text,
"Sport" text,
"Event" text,
"Date" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the sport for wolfgang schattauer?
### Response:
|
SELECT "Sport" FROM table_13996 WHERE "Name" = 'wolfgang schattauer'
|
### Instruction:
CREATE TABLE table_name_52 (
call_sign VARCHAR,
network VARCHAR,
digital_psip VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Call sign of the Omni television network with a Digitial PSIP of 14.1?
### Response:
|
SELECT call_sign FROM table_name_52 WHERE network = "omni television" AND digital_psip = 14.1
|
### Instruction:
CREATE TABLE table_name_16 (
time VARCHAR,
jockey VARCHAR,
trainer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Time, when Jockey is John Velazquez, and when Trainer is Todd A. Pletcher?
### Response:
|
SELECT time FROM table_name_16 WHERE jockey = "john velazquez" AND trainer = "todd a. pletcher"
|
### Instruction:
CREATE TABLE table_77250 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of tie number 15?
### Response:
|
SELECT "Score" FROM table_77250 WHERE "Tie no" = '15'
|
### Instruction:
CREATE TABLE table_79326 (
"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.
-- Which away team has a tie number of 3?
### Response:
|
SELECT "Away team" FROM table_79326 WHERE "Tie no" = '3'
|
### Instruction:
CREATE TABLE table_6760 (
"Date" text,
"Pos." text,
"Player" text,
"From club" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date had a Transfer fee of 8.8m?
### Response:
|
SELECT "Date" FROM table_6760 WHERE "Transfer fee" = '£8.8m'
|
### Instruction:
CREATE TABLE table_name_57 (
season VARCHAR,
position VARCHAR,
poles VARCHAR,
series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which season did he have 0 Poles and 19th position in the GP2 Series?
### Response:
|
SELECT season FROM table_name_57 WHERE poles = "0" AND series = "gp2 series" AND position = "19th"
|
### Instruction:
CREATE TABLE table_10937 (
"Round" text,
"Pick" text,
"Player" text,
"Nationality" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which nationality's pick was 415?
### Response:
|
SELECT "Nationality" FROM table_10937 WHERE "Pick" = '415'
|
### Instruction:
CREATE TABLE table_38591 (
"Distance" text,
"Time" text,
"Date" text,
"Location" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Distance has a Time of men's speed skating?
### Response:
|
SELECT "Distance" FROM table_38591 WHERE "Time" = 'men''s speed skating'
|
### Instruction:
CREATE TABLE table_name_91 (
round INTEGER,
opponent VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest round of the match with Rene Rooze as the opponent in Saitama, Japan?
### Response:
|
SELECT MAX(round) FROM table_name_91 WHERE opponent = "rene rooze" AND location = "saitama, japan"
|
### Instruction:
CREATE TABLE table_76248 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country has an ICAO of ENZV?
### Response:
|
SELECT "Country" FROM table_76248 WHERE "ICAO" = 'enzv'
|
### Instruction:
CREATE TABLE table_64430 (
"Name" text,
"Hull" real,
"Pennant number" text,
"Status" text,
"Date of commission" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The boat named Agamemnon has what status?
### Response:
|
SELECT "Status" FROM table_64430 WHERE "Name" = 'agamemnon'
|
### Instruction:
CREATE TABLE table_name_79 (
to_par VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the game that has a score of 71-71-70-73=285 what is the to par?
### Response:
|
SELECT to_par FROM table_name_79 WHERE score = 71 - 71 - 70 - 73 = 285
|
### Instruction:
CREATE TABLE table_1013129_1 (
college_junior_club_team VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What teams did the player vadim sharifijanov play for?
### Response:
|
SELECT college_junior_club_team FROM table_1013129_1 WHERE player = "Vadim Sharifijanov"
|
### Instruction:
CREATE TABLE table_name_80 (
top_5 INTEGER,
tournament VARCHAR,
top_25 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the top-5 when the tournament is totals and the top-25 is more than 4?
### Response:
|
SELECT AVG(top_5) FROM table_name_80 WHERE tournament = "totals" AND top_25 > 4
|
### Instruction:
CREATE TABLE table_name_81 (
hot_digital_songs_reaction VARCHAR,
hot_100_reaction VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What digital reaction has a hot 100 reaction of 4 (+4)?
### Response:
|
SELECT hot_digital_songs_reaction FROM table_name_81 WHERE hot_100_reaction = "4 (+4)"
|
### Instruction:
CREATE TABLE table_name_89 (
events INTEGER,
top_5 VARCHAR,
top_25 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average number of events when the top-5 is less than 1 and top 25 more than 1
### Response:
|
SELECT AVG(events) FROM table_name_89 WHERE top_5 < 1 AND top_25 > 1
|
### Instruction:
CREATE TABLE table_37829 (
"Rank" real,
"Name" text,
"Club" text,
"Nation" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points for the skater from club btsc?
### Response:
|
SELECT COUNT("Points") FROM table_37829 WHERE "Club" = 'btsc'
|
### Instruction:
CREATE TABLE table_17118006_2 (
department VARCHAR,
local_investment__us$_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the department that got $626,798 in local investments?
### Response:
|
SELECT department FROM table_17118006_2 WHERE local_investment__us$_ = "626,798"
|
### Instruction:
CREATE TABLE table_14309 (
"Date" text,
"Opponent" text,
"City" text,
"Result" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was Milwaukee's opponent?
### Response:
|
SELECT "Opponent" FROM table_14309 WHERE "City" = 'milwaukee'
|
### Instruction:
CREATE TABLE table_name_16 (
film_or_television_series_or_miniseries VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the film, television series, or miniseries with a nomination in 2001?
### Response:
|
SELECT film_or_television_series_or_miniseries FROM table_name_16 WHERE year = 2001
|
### Instruction:
CREATE TABLE table_name_44 (
balls VARCHAR,
runs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the total number of 100s that has the Balls larger than 325, and the Runs smaller than 572?
### Response:
|
SELECT COUNT(100 AS s) FROM table_name_44 WHERE balls > 325 AND runs < 572
|
### Instruction:
CREATE TABLE table_name_69 (
opponent_in_the_final VARCHAR,
surface VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the tournament played on a hard surface and ending with a score of Walkover, who was the Finals opponent?
### Response:
|
SELECT opponent_in_the_final FROM table_name_69 WHERE surface = "hard" AND score = "walkover"
|
### Instruction:
CREATE TABLE table_60695 (
"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.
-- Who was the team who played home team woking?
### Response:
|
SELECT "Away team" FROM table_60695 WHERE "Home team" = 'woking'
|
### Instruction:
CREATE TABLE table_78453 (
"Rank" text,
"Games" text,
"Player" text,
"Nationality" text,
"Career Span" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Wasim Akram's rank?
### Response:
|
SELECT "Rank" FROM table_78453 WHERE "Player" = 'wasim akram'
|
### Instruction:
CREATE TABLE table_1130632_1 (
written_by VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote all the shows with 18.73 u.s. viewers?
### Response:
|
SELECT written_by FROM table_1130632_1 WHERE us_viewers__million_ = "18.73"
|
### Instruction:
CREATE TABLE table_name_63 (
name VARCHAR,
location VARCHAR,
notes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name of the dinosaur that was discovered in the Location, China, and whose Notes are, 'described from a single tooth'?
### Response:
|
SELECT name FROM table_name_63 WHERE location = "china" AND notes = "described from a single tooth"
|
### Instruction:
CREATE TABLE table_12163387_1 (
mens_doubles VARCHAR,
womens_singles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the mens doubles the year Alison Humby won the womens singles?
### Response:
|
SELECT mens_doubles FROM table_12163387_1 WHERE womens_singles = "Alison Humby"
|
### Instruction:
CREATE TABLE table_20866024_2 (
axle_ratio VARCHAR,
model_designation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the axle ratio of the model with model designation 97G00?
### Response:
|
SELECT axle_ratio FROM table_20866024_2 WHERE model_designation = "97G00"
|
### Instruction:
CREATE TABLE table_10284385_1 (
party VARCHAR,
date_of_birth VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which politican party has a birthday of November 10, 1880
### Response:
|
SELECT party FROM table_10284385_1 WHERE date_of_birth = "November 10, 1880"
|
### Instruction:
CREATE TABLE table_47606 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the home team in the game with a record of 2-4?
### Response:
|
SELECT "Home" FROM table_47606 WHERE "Record" = '2-4'
|
### Instruction:
CREATE TABLE table_31875 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event took place in Erfurt, Germany?
### Response:
|
SELECT "Event" FROM table_31875 WHERE "Venue" = 'erfurt, germany'
|
### Instruction:
CREATE TABLE table_name_22 (
to_par VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which To par has a Winning score of 64-68-66-63=261?
### Response:
|
SELECT to_par FROM table_name_22 WHERE winning_score = 64 - 68 - 66 - 63 = 261
|
### Instruction:
CREATE TABLE table_34356 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which catalogue is on 12' vinyl?
### Response:
|
SELECT "Catalogue" FROM table_34356 WHERE "Format" = '12" vinyl'
|
### Instruction:
CREATE TABLE table_1342426_18 (
incumbent VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the incumbent in the election of henry garland dupr (d) unopposed?
### Response:
|
SELECT incumbent FROM table_1342426_18 WHERE candidates = "Henry Garland Dupré (D) Unopposed"
|
### Instruction:
CREATE TABLE table_4310 (
"Time Period" text,
"Position" text,
"Bureau" text,
"Office" text,
"District Attorney" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the DA for bureau chief ada
### Response:
|
SELECT "District Attorney" FROM table_4310 WHERE "Position" = 'bureau chief ada'
|
### Instruction:
CREATE TABLE table_name_13 (
byes INTEGER,
benalla_dfl VARCHAR,
against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the most number of byes for Longwood having less than 1944 against?
### Response:
|
SELECT MAX(byes) FROM table_name_13 WHERE benalla_dfl = "longwood" AND against < 1944
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.