instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_50328 (
"Season" text,
"North" text,
"South" text,
"East" text,
"West" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was west when ev f rstenfeldbruck was south?
### Response:
|
SELECT "West" FROM table_50328 WHERE "South" = 'ev fürstenfeldbruck'
|
### Instruction:
CREATE TABLE table_203_676 (
id number,
"pick #" number,
"cfl team" text,
"player" text,
"position" text,
"college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the first player picked in round four ?
### Response:
|
SELECT "player" FROM table_203_676 ORDER BY "pick #" LIMIT 1
|
### Instruction:
CREATE TABLE table_36525 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Date of april 9 had what score?
### Response:
|
SELECT "Score" FROM table_36525 WHERE "Date" = 'april 9'
|
### Instruction:
CREATE TABLE table_name_32 (
memory VARCHAR,
turbo VARCHAR,
release_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Memory has a Turbo of 2/2/4/5 and the Release date of May 2010?
### Response:
|
SELECT memory FROM table_name_32 WHERE turbo = "2/2/4/5" AND release_date = "may 2010"
|
### Instruction:
CREATE TABLE table_33883 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Loss of finley (8-7) had what record?
### Response:
|
SELECT "Record" FROM table_33883 WHERE "Loss" = 'finley (8-7)'
|
### Instruction:
CREATE TABLE table_name_39 (
rank INTEGER,
built VARCHAR,
building VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Rank with a build year earlier than 2007 for the howard johnson hotel bucharest?
### Response:
|
SELECT SUM(rank) FROM table_name_39 WHERE built < 2007 AND building = "howard johnson hotel bucharest"
|
### Instruction:
CREATE TABLE table_66906 (
"Territory" text,
"Broadcaster" text,
"Channel" real,
"Launched" text,
"Closed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who broadcasts in malaysia?
### Response:
|
SELECT "Broadcaster" FROM table_66906 WHERE "Territory" = 'malaysia'
|
### Instruction:
CREATE TABLE table_4079 (
"Player" text,
"Games" real,
"Field goals" real,
"Free throws" real,
"Points" real,
"Points per game" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points per game did Jack Williams score?
### Response:
|
SELECT COUNT("Points per game") FROM table_4079 WHERE "Player" = 'Jack Williams'
|
### Instruction:
CREATE TABLE table_16677738_1 (
holborn_division INTEGER,
tower_division VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 272966 is the tower division what is the highest holborn division?
### Response:
|
SELECT MAX(holborn_division) FROM table_16677738_1 WHERE tower_division = 272966
|
### Instruction:
CREATE TABLE table_name_94 (
mountains_classification VARCHAR,
winner VARCHAR,
sprints_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Mountains Classification for Winner Thor hushovd with Sprints Classification of no award?
### Response:
|
SELECT mountains_classification FROM table_name_94 WHERE winner = "thor hushovd" AND sprints_classification = "no award"
|
### Instruction:
CREATE TABLE table_name_72 (
total VARCHAR,
gold VARCHAR,
silver VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of medals of Norway with a silver medal count greater than 6 and a gold medal count greater than 10?
### Response:
|
SELECT COUNT(total) FROM table_name_72 WHERE silver > 6 AND nation = "norway" AND gold > 10
|
### Instruction:
CREATE TABLE table_36814 (
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Matches" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Tally in Kerry County?
### Response:
|
SELECT "Tally" FROM table_36814 WHERE "County" = 'kerry'
|
### Instruction:
CREATE TABLE table_11214772_1 (
semi_finalist__number2 VARCHAR,
runner_up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of semi-finalist #2 where runner-up is east carolina
### Response:
|
SELECT COUNT(semi_finalist__number2) FROM table_11214772_1 WHERE runner_up = "East Carolina"
|
### Instruction:
CREATE TABLE table_3287 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What university is houston dynamo affiliated with?
### Response:
|
SELECT "Affiliation" FROM table_3287 WHERE "MLS Team" = 'Houston Dynamo'
|
### Instruction:
CREATE TABLE table_21449 (
"Team #1" text,
"Points" text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played against team 1 Vit ria?
### Response:
|
SELECT "Team #2" FROM table_21449 WHERE "Team #1" = 'Vitória'
|
### Instruction:
CREATE TABLE table_49734 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the game when the liberty had a record of 12-9?
### Response:
|
SELECT "Date" FROM table_49734 WHERE "Record" = '12-9'
|
### Instruction:
CREATE TABLE table_45542 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver had 248 laps?
### Response:
|
SELECT "Driver" FROM table_45542 WHERE "Laps" = '248'
|
### Instruction:
CREATE TABLE table_18600760_7 (
ansi_code INTEGER,
pop__2010_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the population is 1858, what is the maximum ansi code?
### Response:
|
SELECT MAX(ansi_code) FROM table_18600760_7 WHERE pop__2010_ = 1858
|
### Instruction:
CREATE TABLE table_6494 (
"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.
-- Which Tie # has an Away team of slough town?
### Response:
|
SELECT "Tie no" FROM table_6494 WHERE "Away team" = 'slough town'
|
### Instruction:
CREATE TABLE table_31755 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the year for class of 125cc
### Response:
|
SELECT "Year" FROM table_31755 WHERE "Class" = '125cc'
|
### Instruction:
CREATE TABLE table_19396259_1 (
title VARCHAR,
directed_by VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the title directed by charles beeson by jeremy carver
### Response:
|
SELECT title FROM table_19396259_1 WHERE directed_by = "Charles Beeson" AND written_by = "Jeremy Carver"
|
### Instruction:
CREATE TABLE table_44941 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Round which has a Player of zack walz?
### Response:
|
SELECT "Round" FROM table_44941 WHERE "Player" = 'zack walz'
|
### Instruction:
CREATE TABLE table_32998 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" real,
"Laps" real,
"Winnings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What car number has 130 points?
### Response:
|
SELECT "Car #" FROM table_32998 WHERE "Points" = '130'
|
### Instruction:
CREATE TABLE table_47338 (
"Date" text,
"Home" text,
"Score" text,
"Away" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the match with an attendance of 2248?
### Response:
|
SELECT "Score" FROM table_47338 WHERE "Attendance" = '2248'
|
### Instruction:
CREATE TABLE table_47037 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record when the game was at the Rose Garden?
### Response:
|
SELECT "Record" FROM table_47037 WHERE "Location" = 'rose garden'
|
### Instruction:
CREATE TABLE table_12917 (
"Club" text,
"City" text,
"Founded" real,
"Stadium" text,
"Capacity" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much capacity has 1944 as the founded?
### Response:
|
SELECT COUNT("Capacity") FROM table_12917 WHERE "Founded" = '1944'
|
### Instruction:
CREATE TABLE table_10722506_6 (
record VARCHAR,
round_of_32 VARCHAR,
conference VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record when round of 32 is 0 and metro atlantic conference?
### Response:
|
SELECT record FROM table_10722506_6 WHERE round_of_32 = 0 AND conference = "Metro Atlantic"
|
### Instruction:
CREATE TABLE table_59069 (
"Name" text,
"Owner" text,
"Programming" text,
"Type" text,
"Encryption" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the programming for mrt sobraniski kanal?
### Response:
|
SELECT "Programming" FROM table_59069 WHERE "Name" = 'mrt sobraniski kanal'
|
### Instruction:
CREATE TABLE table_25259 (
"Number" real,
"Name" text,
"Position" text,
"Height" text,
"Experience" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did the player from San Jose State play?
### Response:
|
SELECT "Position" FROM table_25259 WHERE "College" = 'San Jose State'
|
### Instruction:
CREATE TABLE table_27786562_1 (
points__margin_ VARCHAR,
top_tens VARCHAR,
owner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the points for top tens being 24 and ownder david pearson
### Response:
|
SELECT points__margin_ FROM table_27786562_1 WHERE top_tens = 24 AND owner = "David Pearson"
|
### Instruction:
CREATE TABLE table_204_538 (
id number,
"pos." number,
"driver" text,
"co-driver" text,
"car" text,
"time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which driver had the slowest time in finishing this race ?
### Response:
|
SELECT "driver" FROM table_204_538 ORDER BY "pos." DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_44484 (
"Season" real,
"Player" text,
"Club" text,
"Nationality" text,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which seaosn had a player of rohan ricketts?
### Response:
|
SELECT COUNT("Season") FROM table_44484 WHERE "Player" = 'rohan ricketts'
|
### Instruction:
CREATE TABLE table_54766 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game that had a decision of wall?
### Response:
|
SELECT "Date" FROM table_54766 WHERE "Decision" = 'wall'
|
### Instruction:
CREATE TABLE table_38522 (
"Round" text,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In round 3 what was the position?
### Response:
|
SELECT "Position" FROM table_38522 WHERE "Round" = '3'
|
### Instruction:
CREATE TABLE table_name_62 (
nature_of_incident VARCHAR,
location VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nature of the incident in Kabul on 2004-01-28?
### Response:
|
SELECT nature_of_incident FROM table_name_62 WHERE location = "kabul" AND date = "2004-01-28"
|
### Instruction:
CREATE TABLE table_name_34 (
touchdowns INTEGER,
net_yards VARCHAR,
attempts VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the highest touchdowns that have net yards greater than 631, with attempts less than 145?
### Response:
|
SELECT MAX(touchdowns) FROM table_name_34 WHERE net_yards > 631 AND attempts < 145
|
### Instruction:
CREATE TABLE table_70866 (
"Goal" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Result where Goal is 9?
### Response:
|
SELECT "Result" FROM table_70866 WHERE "Goal" = '9'
|
### Instruction:
CREATE TABLE table_73187 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number picks were the players who went to Calgary?
### Response:
|
SELECT "Pick #" FROM table_73187 WHERE "College" = 'Calgary'
|
### Instruction:
CREATE TABLE table_76148 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the Position is Running Back what is the Total number of Pick #?
### Response:
|
SELECT COUNT("Pick #") FROM table_76148 WHERE "Position" = 'running back'
|
### Instruction:
CREATE TABLE table_67030 (
"Number" text,
"Player" text,
"Position" text,
"Height" text,
"Weight" text,
"Home Town" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player's home town is Swift Current, AB?
### Response:
|
SELECT "Player" FROM table_67030 WHERE "Home Town" = 'swift current, ab'
|
### Instruction:
CREATE TABLE table_5144 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average grid with a number of laps smaller than 8?
### Response:
|
SELECT AVG("Grid") FROM table_5144 WHERE "Laps" < '8'
|
### Instruction:
CREATE TABLE table_28138035_4 (
womens_singles VARCHAR,
year_location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of womens singles for 1999 rio de janeiro
### Response:
|
SELECT COUNT(womens_singles) FROM table_28138035_4 WHERE year_location = "1999 Rio de Janeiro"
|
### Instruction:
CREATE TABLE table_17890 (
"No" real,
"Player" text,
"Height" text,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number is Andrea Bargnani?
### Response:
|
SELECT MAX("No") FROM table_17890 WHERE "Player" = 'Andrea Bargnani'
|
### Instruction:
CREATE TABLE table_203_565 (
id number,
"wrestlers" text,
"times" number,
"date" text,
"location" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which location was used the most often ?
### Response:
|
SELECT "location" FROM table_203_565 GROUP BY "location" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_37900 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the First elected of california 3?
### Response:
|
SELECT "First elected" FROM table_37900 WHERE "District" = 'california 3'
|
### Instruction:
CREATE TABLE table_10815352_1 (
total_attendance INTEGER,
sport VARCHAR,
league VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the minimum total attendance of the Premier League association football?
### Response:
|
SELECT MIN(total_attendance) FROM table_10815352_1 WHERE sport = "Association football" AND league = "Premier league"
|
### Instruction:
CREATE TABLE table_203_201 (
id number,
"class" text,
"type" text,
"ships" text,
"displacement" text,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which class has the least displacement in tonnes ?
### Response:
|
SELECT "class" FROM table_203_201 ORDER BY "displacement" LIMIT 1
|
### Instruction:
CREATE TABLE table_name_14 (
byes INTEGER,
geelong_dfl VARCHAR,
against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Byes by Anakie who has an Against smaller than 2275?
### Response:
|
SELECT MAX(byes) FROM table_name_14 WHERE geelong_dfl = "anakie" AND against < 2275
|
### Instruction:
CREATE TABLE table_49853 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the score 92-134?
### Response:
|
SELECT "Date" FROM table_49853 WHERE "Score" = '92-134'
|
### Instruction:
CREATE TABLE table_name_14 (
rider VARCHAR,
grid VARCHAR,
manufacturer VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rider is on an aprilia that went under 18 laps with a grid total of 17?
### Response:
|
SELECT rider FROM table_name_14 WHERE manufacturer = "aprilia" AND laps < 18 AND grid = 17
|
### Instruction:
CREATE TABLE table_50913 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player from round 8?
### Response:
|
SELECT "Player" FROM table_50913 WHERE "Round" = '8'
|
### Instruction:
CREATE TABLE table_766 (
"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 result for new york 1
### Response:
|
SELECT "Result" FROM table_766 WHERE "District" = 'New York 1'
|
### Instruction:
CREATE TABLE table_15001957_1 (
womens_doubles VARCHAR,
mens_singles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How may women doubles winner were there when Philippe Aulner was mens singles winner?
### Response:
|
SELECT COUNT(womens_doubles) FROM table_15001957_1 WHERE mens_singles = "Philippe Aulner"
|
### Instruction:
CREATE TABLE table_name_96 (
points INTEGER,
wins VARCHAR,
team VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Before 1981, how many Points did Team Suzuki have with less than 0 Wins?
### Response:
|
SELECT SUM(points) FROM table_name_96 WHERE team = "suzuki" AND year < 1981 AND wins < 0
|
### Instruction:
CREATE TABLE table_name_14 (
runner_up VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the Score was kapunda 7-7-49 angaston 6-8-44, who was the Runner-up?
### Response:
|
SELECT runner_up FROM table_name_14 WHERE score = "kapunda 7-7-49 angaston 6-8-44"
|
### Instruction:
CREATE TABLE table_204_539 (
id number,
"date" text,
"name" text,
"moving from" text,
"moving to" text,
"fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many dates are listed as free ?
### Response:
|
SELECT COUNT("date") FROM table_204_539 WHERE "fee" = 'free'
|
### Instruction:
CREATE TABLE table_name_95 (
gold INTEGER,
rank VARCHAR,
total VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Gold, when Total is 2, when Silver is less than 1, and when Rank is greater than 5?
### Response:
|
SELECT AVG(gold) FROM table_name_95 WHERE total = 2 AND silver < 1 AND rank > 5
|
### Instruction:
CREATE TABLE table_67711 (
"Rank" real,
"Games" real,
"Player" text,
"Club/Clubs" text,
"Career span" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which rank is Hawthorn?
### Response:
|
SELECT "Rank" FROM table_67711 WHERE "Club/Clubs" = 'hawthorn'
|
### Instruction:
CREATE TABLE table_name_24 (
date VARCHAR,
location_attendance VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the location attendance at&t center 18,797, and a game earlier than 57?
### Response:
|
SELECT date FROM table_name_24 WHERE location_attendance = "at&t center 18,797" AND game < 57
|
### Instruction:
CREATE TABLE table_17084 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player's hometown is Abilene, Texas?
### Response:
|
SELECT "Player" FROM table_17084 WHERE "Hometown" = 'Abilene, Texas'
|
### Instruction:
CREATE TABLE table_name_78 (
theatre VARCHAR,
_studio VARCHAR,
_or_network VARCHAR,
date VARCHAR,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who created One Night in Lisbon in 1941?
### Response:
|
SELECT theatre, _studio, _or_network FROM table_name_78 WHERE date = "1941" AND title = "one night in lisbon"
|
### Instruction:
CREATE TABLE table_name_83 (
bronze VARCHAR,
total VARCHAR,
rank VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of bronze medals of West Germany, which is ranked 2 and has less than 1 total medals?
### Response:
|
SELECT COUNT(bronze) FROM table_name_83 WHERE rank = 2 AND nation = "west germany" AND total < 1
|
### Instruction:
CREATE TABLE table_203_643 (
id number,
"year" number,
"award" text,
"group" text,
"result" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many teen choice awards has he been nominated for ?
### Response:
|
SELECT COUNT(*) FROM table_203_643 WHERE "award" = 'teen choice awards'
|
### Instruction:
CREATE TABLE table_78629 (
"joule" text,
"watt hour" text,
"kilowatt hour" text,
"electronvolt" text,
"calorie" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many calories is 1 watt hour?
### Response:
|
SELECT "calorie" FROM table_78629 WHERE "watt hour" = '1'
|
### Instruction:
CREATE TABLE table_69068 (
"Stage" text,
"Date" text,
"Course" text,
"Distance" text,
"Winner" text,
"Race Leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winner of stage 11?
### Response:
|
SELECT "Winner" FROM table_69068 WHERE "Stage" = '11'
|
### Instruction:
CREATE TABLE orders (
order_id VARCHAR
)
CREATE TABLE order_items (
order_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the id of the order which has the most items?
### Response:
|
SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_66508 (
"Medal" text,
"Name" text,
"Sport" text,
"Event" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the Women's Individual Class 3?
### Response:
|
SELECT "Date" FROM table_66508 WHERE "Event" = 'women''s individual class 3'
|
### Instruction:
CREATE TABLE table_name_57 (
score_in_the_final VARCHAR,
location VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score for moscow, ussr 15 february 1971
### Response:
|
SELECT score_in_the_final FROM table_name_57 WHERE location = "moscow, ussr" AND date = "15 february 1971"
|
### Instruction:
CREATE TABLE table_44162 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the overall sum of round 3?
### Response:
|
SELECT SUM("Overall") FROM table_44162 WHERE "Round" = '3'
|
### Instruction:
CREATE TABLE table_50070 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Team has a Record of 17 8?
### Response:
|
SELECT "Team" FROM table_50070 WHERE "Record" = '17–8'
|
### Instruction:
CREATE TABLE mill (
Id VARCHAR
)
CREATE TABLE architect (
name VARCHAR,
nationality VARCHAR,
id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the distinct names and nationalities of the architects who have ever built a mill?
### Response:
|
SELECT DISTINCT T1.name, T1.nationality FROM architect AS T1 JOIN mill AS t2 ON T1.id = T2.architect_id
|
### Instruction:
CREATE TABLE table_name_37 (
player VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the player when the place is t10 and the score is 67-72-72=211?
### Response:
|
SELECT player FROM table_name_37 WHERE place = "t10" AND score = 67 - 72 - 72 = 211
|
### Instruction:
CREATE TABLE table_15469 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the english title for mexico/spain/usa
### Response:
|
SELECT "English title" FROM table_15469 WHERE "Country" = 'mexico/spain/usa'
|
### Instruction:
CREATE TABLE table_12517 (
"Rank" real,
"Name" text,
"Team" text,
"Goals" real,
"Appearances" real,
"Minutes played" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Rank has a Team of roma?
### Response:
|
SELECT "Rank" FROM table_12517 WHERE "Team" = 'roma'
|
### Instruction:
CREATE TABLE table_63165 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of Game 48?
### Response:
|
SELECT "Score" FROM table_63165 WHERE "Game" = '48'
|
### Instruction:
CREATE TABLE table_37914 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score on 8 September 1999?
### Response:
|
SELECT "Score" FROM table_37914 WHERE "Date" = '8 september 1999'
|
### Instruction:
CREATE TABLE table_name_60 (
fa_cup_apps VARCHAR,
league_cup_goals VARCHAR,
total_apps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fa cup apps with 0 league cup goals, and a total of 43 apps?
### Response:
|
SELECT fa_cup_apps FROM table_name_60 WHERE league_cup_goals = 0 AND total_apps = "43"
|
### Instruction:
CREATE TABLE table_65041 (
"Actor" text,
"Character" text,
"Soap Opera" text,
"Years" text,
"Duration" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How long did the soap opera run in which Nadine Spru acted in?
### Response:
|
SELECT "Character" FROM table_65041 WHERE "Actor" = 'nadine spruß'
|
### Instruction:
CREATE TABLE table_204_146 (
id number,
"tie" number,
"home team" text,
"score" text,
"away team" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which match had the least in attendance ?
### Response:
|
SELECT "home team" FROM table_204_146 ORDER BY "attendance" LIMIT 1
|
### Instruction:
CREATE TABLE table_57116 (
"College Name" text,
"Location" text,
"District" text,
"Affiliation" text,
"Estd" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the location of the coimbatore medical college?
### Response:
|
SELECT "Location" FROM table_57116 WHERE "College Name" = 'coimbatore medical college'
|
### Instruction:
CREATE TABLE table_23399481_4 (
title VARCHAR,
us_viewers__in_millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the episodes which had 1.22 million U.S. viewers?
### Response:
|
SELECT title FROM table_23399481_4 WHERE us_viewers__in_millions_ = "1.22"
|
### Instruction:
CREATE TABLE table_20513 (
"Line" text,
"Terminals" text,
"Status" text,
"Length" text,
"Total number of stations" real,
"Operator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the terminals for line 2?
### Response:
|
SELECT "Terminals" FROM table_20513 WHERE "Line" = 'Line 2'
|
### Instruction:
CREATE TABLE table_20423 (
"Issuing network" text,
"IIN ranges" text,
"Active" text,
"Length" text,
"Validation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many validations are listed for the iin range 36?
### Response:
|
SELECT COUNT("Validation") FROM table_20423 WHERE "IIN ranges" = '36'
|
### Instruction:
CREATE TABLE table_name_9 (
fumb_yds INTEGER,
fumb_f VARCHAR,
int_lg VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Fumb Yds has a Fumb F. of 0, and a Int LG smaller than 0?
### Response:
|
SELECT MAX(fumb_yds) FROM table_name_9 WHERE fumb_f = 0 AND int_lg < 0
|
### Instruction:
CREATE TABLE table_name_76 (
since INTEGER,
transfer_fee VARCHAR,
ends VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest year in since that had a transfer fee of 14m and ended after 2011?
### Response:
|
SELECT MIN(since) FROM table_name_76 WHERE transfer_fee = "€ 14m" AND ends > 2011
|
### Instruction:
CREATE TABLE table_2469 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which order #1 has a result of bottom 2
### Response:
|
SELECT "Order #" FROM table_2469 WHERE "Result" = 'Bottom 2'
|
### Instruction:
CREATE TABLE table_name_36 (
game_1 VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 3rd Liga from Game 1 of 0-1 between the years 2008-09?
### Response:
|
SELECT 3 AS rd_liga_3rd FROM table_name_36 WHERE game_1 = "0-1" AND date = "2008-09"
|
### Instruction:
CREATE TABLE table_13196 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country has a 14 to par?
### Response:
|
SELECT "Country" FROM table_13196 WHERE "To par" = '14'
|
### Instruction:
CREATE TABLE table_51631 (
"Date" text,
"Three" text,
"Four" text,
"Five" text,
"Seven" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the seven for 29 november 1690
### Response:
|
SELECT "Seven" FROM table_51631 WHERE "Date" = '29 november 1690'
|
### Instruction:
CREATE TABLE table_203_372 (
id number,
"from" number,
"to" number,
"name" text,
"party" text,
"position" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long was daubin in office ?
### Response:
|
SELECT "to" - "from" FROM table_203_372 WHERE "name" = 'daubin'
|
### Instruction:
CREATE TABLE table_name_38 (
team VARCHAR,
number VARCHAR,
years_with_franchise VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team is number 14 and had a franchise in 1993-2000?
### Response:
|
SELECT team FROM table_name_38 WHERE number = 14 AND years_with_franchise = "1993-2000"
|
### Instruction:
CREATE TABLE table_28310 (
"Rank" real,
"Player" text,
"Year" real,
"Opponent" text,
"Passing yards" real,
"Rushing yards" real,
"Total offense" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the earliest year?
### Response:
|
SELECT MIN("Year") FROM table_28310
|
### Instruction:
CREATE TABLE table_3526 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the results for top 12?
### Response:
|
SELECT "Result" FROM table_3526 WHERE "Week #" = 'Top 12'
|
### Instruction:
CREATE TABLE table_204_939 (
id number,
"year" number,
"chassis" text,
"engine" text,
"start" text,
"finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in how many years was the finish 7th ?
### Response:
|
SELECT COUNT("year") FROM table_204_939 WHERE "finish" = 7
|
### Instruction:
CREATE TABLE table_10300 (
"Name" text,
"Type" text,
"Local board" text,
"Suburb" text,
"Authority" text,
"Decile" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which name is the learning/social difficulties type?
### Response:
|
SELECT "Name" FROM table_10300 WHERE "Type" = 'learning/social difficulties'
|
### Instruction:
CREATE TABLE table_204_763 (
id number,
"county" text,
"km" number,
"intersecting road" text,
"notes" text,
"coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last intersecting road ?
### Response:
|
SELECT "intersecting road" FROM table_204_763 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_88 (
population__1931__in_1 VARCHAR,
capital VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Capital of brze nad bugiem has what population (1931) in 1,000s?
### Response:
|
SELECT population__1931__in_1, 000 AS s FROM table_name_88 WHERE capital = "brześć nad bugiem"
|
### Instruction:
CREATE TABLE table_name_93 (
year INTEGER,
winning_team VARCHAR,
usa_captain VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest year that Europe won, when the USA's Captain was Kathy Whitworth?
### Response:
|
SELECT MAX(year) FROM table_name_93 WHERE winning_team = "europe" AND usa_captain = "kathy whitworth"
|
### Instruction:
CREATE TABLE table_name_50 (
extras INTEGER,
name VARCHAR,
er VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Extras for Chamara Kapugedera, with an E.R. less than 4.59?
### Response:
|
SELECT MIN(extras) FROM table_name_50 WHERE name = "chamara kapugedera" AND er < 4.59
|
### Instruction:
CREATE TABLE table_name_4 (
first_day_cover_cancellation VARCHAR,
date_of_issue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's listed as the First Day Cover Cancellation with a Date of Issue of 13 June 2005?
### Response:
|
SELECT first_day_cover_cancellation FROM table_name_4 WHERE date_of_issue = "13 june 2005"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.