instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_92 (
club VARCHAR,
season VARCHAR,
away_result VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Away result of 1 1, and a Round of 1r, and a Season of 1967-68 involves what club?
### Response:
|
SELECT club FROM table_name_92 WHERE away_result = "1β1" AND round = "1r" AND season = "1967-68"
|
### Instruction:
CREATE TABLE table_25279 (
"Constituency" text,
"Winner" text,
"Party" text,
"Margin" real,
"Runner-up a" text,
"Party a" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the constituency for 175130
### Response:
|
SELECT "Constituency" FROM table_25279 WHERE "Margin" = '175130'
|
### Instruction:
CREATE TABLE table_3154 (
"Tie no" real,
"Home team" text,
"Score 1" text,
"Away team" text,
"Attendance" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance of the game where Stoke city was the away team?
### Response:
|
SELECT MIN("Attendance") FROM table_3154 WHERE "Away team" = 'Stoke City'
|
### Instruction:
CREATE TABLE table_1754531_4 (
domestic_freight VARCHAR,
international_mail VARCHAR,
domestic_mail VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Namw the total number for domestic freight for international mail is larger than 1.0 with domestic mail for 260
### Response:
|
SELECT COUNT(domestic_freight) FROM table_1754531_4 WHERE international_mail > 1.0 AND domestic_mail = 260
|
### Instruction:
CREATE TABLE table_21132404_1 (
seats_2006 VARCHAR,
_percentage_1997 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many seats in 2006 has a % 1997 rating of 38.9?
### Response:
|
SELECT COUNT(seats_2006) FROM table_21132404_1 WHERE _percentage_1997 = "38.9"
|
### Instruction:
CREATE TABLE table_15213 (
"Game" real,
"Date" text,
"Score" text,
"Location" text,
"Time" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average Game, when the attendance was higher than 56,040?
### Response:
|
SELECT AVG("Game") FROM table_15213 WHERE "Attendance" > '56,040'
|
### Instruction:
CREATE TABLE table_name_50 (
format VARCHAR,
label VARCHAR,
region VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the format for the label Mightier than Sword on January 12, 2010 in the United States?
### Response:
|
SELECT format FROM table_name_50 WHERE region = "united states" AND date = "january 12, 2010" AND label = "mightier than sword"
|
### Instruction:
CREATE TABLE table_204_14 (
id number,
"rank" number,
"bib" number,
"athlete" text,
"country" text,
"time" text,
"deficit" text,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long did nicole fessel take ?
### Response:
|
SELECT "time" FROM table_204_14 WHERE "athlete" = 'nicole fessel'
|
### Instruction:
CREATE TABLE table_204_282 (
id number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text,
"#" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where was the last game of the season held ?
### Response:
|
SELECT "venue" FROM table_204_282 ORDER BY "date" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_415 (
id number,
"season" text,
"tier" number,
"division" text,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in season 1996/97 was the place above or below 10th ?
### Response:
|
SELECT (SELECT "place" FROM table_204_415 WHERE "season" = '1996/97') < 10
|
### Instruction:
CREATE TABLE table_13824 (
"Brand" text,
"Model" text,
"Type" text,
"Modem" text,
"Storage" text,
"CPU speed" text,
"CPU chip" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which CPU chip(s) is used in the Classic type hardware?
### Response:
|
SELECT "CPU chip" FROM table_13824 WHERE "Type" = 'classic'
|
### Instruction:
CREATE TABLE table_29129 (
"Name" text,
"Position" text,
"Height" text,
"Weight" real,
"Age" real,
"Home Town" text,
"Team/School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How tall is the player from farmington, ky?
### Response:
|
SELECT "Height" FROM table_29129 WHERE "Home Town" = 'Farmington, KY'
|
### Instruction:
CREATE TABLE table_28138035_33 (
year_location VARCHAR,
womens_doubles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the place and when was the year when the women's doubles womens were Bai yang Niu Jianfeng?
### Response:
|
SELECT year_location FROM table_28138035_33 WHERE womens_doubles = "Bai Yang Niu Jianfeng"
|
### Instruction:
CREATE TABLE table_58998 (
"Title" text,
"Developer" text,
"Genre" text,
"Release date" text,
"Version" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Title, when Developer is '2Play Mobile', and when Genre is 'Action'?
### Response:
|
SELECT "Title" FROM table_58998 WHERE "Developer" = '2play mobile' AND "Genre" = 'action'
|
### Instruction:
CREATE TABLE table_203_116 (
id number,
"no." number,
"player" text,
"birth date" text,
"weight" number,
"height" number,
"position" text,
"current club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players are middle blockers ?
### Response:
|
SELECT COUNT("player") FROM table_203_116 WHERE "position" = 'middle blocker'
|
### Instruction:
CREATE TABLE table_15142 (
"Name" text,
"Design" text,
"Manufacturer" text,
"Acquired" real,
"Disposed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average year for Wallenstein with 1a1 design?
### Response:
|
SELECT AVG("Acquired") FROM table_15142 WHERE "Design" = '1a1' AND "Name" = 'wallenstein'
|
### Instruction:
CREATE TABLE table_32852 (
"Date" real,
"Sport" text,
"Winner" text,
"Score" text,
"Loser" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What sport was played before 2006 with a loser of france b?
### Response:
|
SELECT "Sport" FROM table_32852 WHERE "Date" < '2006' AND "Loser" = 'france b'
|
### Instruction:
CREATE TABLE table_18454 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most first elected for james c. davis?
### Response:
|
SELECT MAX("First elected") FROM table_18454 WHERE "Incumbent" = 'James C. Davis'
|
### Instruction:
CREATE TABLE table_name_70 (
format VARCHAR,
country VARCHAR,
catalogue__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the format of catalog number 886973273913 (gowow012) in the United Kingdom?
### Response:
|
SELECT format FROM table_name_70 WHERE country = "united kingdom" AND catalogue__number = "886973273913 (gowow012)"
|
### Instruction:
CREATE TABLE table_69944 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What chassis had fewer than 0 points in a year before 1954?
### Response:
|
SELECT "Chassis" FROM table_69944 WHERE "Year" < '1954' AND "Points" = '0'
|
### Instruction:
CREATE TABLE table_74335 (
"Team" text,
"Stadium" text,
"Home Games" real,
"Average Attendance" real,
"Total Attendance" real,
"Capacity Percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the capacity for the Denver Broncos?
### Response:
|
SELECT "Capacity Percentage" FROM table_74335 WHERE "Team" = 'Denver Broncos'
|
### Instruction:
CREATE TABLE table_47597 (
"Rank" text,
"Team" text,
"Run 1" text,
"Run 2" text,
"Run 3" text,
"Final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which final has a run of 1:19.49?
### Response:
|
SELECT "Final" FROM table_47597 WHERE "Run 3" = '1:19.49'
|
### Instruction:
CREATE TABLE table_name_59 (
place VARCHAR,
to_par VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Place, when To Par is less than 15, and when Score is 76-72-75-71=294?
### Response:
|
SELECT place FROM table_name_59 WHERE to_par < 15 AND score = 76 - 72 - 75 - 71 = 294
|
### Instruction:
CREATE TABLE table_64997 (
"Rank:" real,
"Premier:" text,
"Party:" text,
"Assumed Office:" text,
"Left Office:" text,
"TOTAL Time in Office:" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank was the premier Sir John See?
### Response:
|
SELECT COUNT("Rank:") FROM table_64997 WHERE "Premier:" = 'sir john see'
|
### Instruction:
CREATE TABLE table_59136 (
"Statistic" text,
"Name" text,
"Total" text,
"School" text,
"Opponent" text,
"Stage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Calvin Abueva Calvin Abueva had what statistic?
### Response:
|
SELECT "Statistic" FROM table_59136 WHERE "Name" = 'calvin abueva calvin abueva'
|
### Instruction:
CREATE TABLE table_72255 (
"Series #" real,
"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.
-- What is the date of the episode written by Michael Poryes?
### Response:
|
SELECT "Original air date" FROM table_72255 WHERE "Written by" = 'Michael Poryes'
|
### Instruction:
CREATE TABLE table_10260 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player plays for Illinois?
### Response:
|
SELECT "Player" FROM table_10260 WHERE "School/Club Team/Country" = 'illinois'
|
### Instruction:
CREATE TABLE table_29060 (
"Date" text,
"Time" text,
"Visiting team" text,
"Home team" text,
"Site" text,
"Broadcast" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date for broadcast fsn
### Response:
|
SELECT "Date" FROM table_29060 WHERE "Broadcast" = 'FSN'
|
### Instruction:
CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
)
CREATE TABLE tags (
index number,
id number,
tag text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which artist/group is most productive?
### Response:
|
SELECT artist FROM torrents GROUP BY artist ORDER BY COUNT(groupname) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_73958 (
"Year" text,
"Winner" text,
"Runner-up" text,
"Result" text,
"Venues" text,
"Attendance" real,
"Entries" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games had red star as the runner up?
### Response:
|
SELECT COUNT("Attendance") FROM table_73958 WHERE "Runner-up" = 'Red Star'
|
### Instruction:
CREATE TABLE table_203_614 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what venue was the latest match played at ?
### Response:
|
SELECT "venue" FROM table_203_614 ORDER BY "date" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_1689 (
"Province" text,
"Provincial capital" text,
"Largest city" text,
"Area (km 2 )" real,
"Population (2013)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the largest city where the province is eastern cape?
### Response:
|
SELECT "Largest city" FROM table_1689 WHERE "Province" = 'Eastern Cape'
|
### Instruction:
CREATE TABLE table_72365 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the candidates in the district where Jerry Costello won?
### Response:
|
SELECT "Candidates" FROM table_72365 WHERE "Incumbent" = 'Jerry Costello'
|
### Instruction:
CREATE TABLE table_62254 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What district was a republican first elected in 2000?
### Response:
|
SELECT "District" FROM table_62254 WHERE "First elected" = '2000' AND "Party" = 'republican'
|
### Instruction:
CREATE TABLE table_name_37 (
year VARCHAR,
title VARCHAR,
result VARCHAR,
genre VARCHAR,
label VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year's genre was jazz under the columbia label when it was nominated for the title Trio jeepy?
### Response:
|
SELECT year FROM table_name_37 WHERE genre = "jazz" AND label = "columbia" AND result = "nominated" AND title = "trio jeepy"
|
### Instruction:
CREATE TABLE table_203_61 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which 4 countries were scored last , with only 1 bronze medal each ?
### Response:
|
SELECT "nation" FROM table_203_61 ORDER BY "rank" DESC LIMIT 4
|
### Instruction:
CREATE TABLE county (
County_name VARCHAR,
County_id VARCHAR
)
CREATE TABLE election (
District VARCHAR,
Committee VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of the county that the delegates on 'Appropriations' committee belong to?
### Response:
|
SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations"
|
### Instruction:
CREATE TABLE table_46024 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Player, when Position is DB, and when College is Saint Mary's?
### Response:
|
SELECT "Player" FROM table_46024 WHERE "Position" = 'db' AND "College" = 'saint mary''s'
|
### Instruction:
CREATE TABLE table_25392 (
"Team" text,
"SEC Wins" real,
"SEC Losses" real,
"Percentage" text,
"Home Record" text,
"Road Record" text,
"Overall Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the percentage for georgia
### Response:
|
SELECT "Percentage" FROM table_25392 WHERE "Team" = 'Georgia'
|
### Instruction:
CREATE TABLE table_18493 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the candidates for noah m. mason?
### Response:
|
SELECT COUNT("Candidates") FROM table_18493 WHERE "Incumbent" = 'Noah M. Mason'
|
### Instruction:
CREATE TABLE table_21891 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the outcome in 1975?
### Response:
|
SELECT "Outcome" FROM table_21891 WHERE "Year" = '1975'
|
### Instruction:
CREATE TABLE table_204_627 (
id number,
"date" text,
"opponent" text,
"score" text,
"top scorer (total points)" text,
"venue (location)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many games were not played at araneta coliseum ?
### Response:
|
SELECT COUNT(*) FROM table_204_627 WHERE "venue (location)" <> 'araneta coliseum'
|
### Instruction:
CREATE TABLE table_203_551 (
id number,
"goal" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many games did he score but his team lost ?
### Response:
|
SELECT COUNT(*) FROM table_203_551 WHERE "result" < "result"
|
### Instruction:
CREATE TABLE table_12583 (
"Standard order" real,
"English translation" text,
"Transcription (based on Pinyin)" text,
"Traditional Chinese" text,
"Simplified Chinese" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the english translation of the traditional Chinese word, ?
### Response:
|
SELECT "English translation" FROM table_12583 WHERE "Traditional Chinese" = 'ει’'
|
### Instruction:
CREATE TABLE table_78041 (
"Full Name" text,
"Nickname" text,
"Gender" text,
"Weight at birth" text,
"Meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Chukwubuikem Maduabuchi is what gender?
### Response:
|
SELECT "Gender" FROM table_78041 WHERE "Full Name" = 'chukwubuikem maduabuchi'
|
### Instruction:
CREATE TABLE table_76222 (
"Date" text,
"Opponent" text,
"Score" text,
"Leading Scorer" text,
"Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the leading scorer of the wnba finals series?
### Response:
|
SELECT "Leading Scorer" FROM table_76222 WHERE "Series" = 'wnba finals'
|
### Instruction:
CREATE TABLE table_30343 (
"Character" text,
"Game" text,
"Platform" text,
"Status" text,
"Mystic Arte" text,
"Character Voice" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many platforms have celsius calibur as mystic arte?
### Response:
|
SELECT COUNT("Platform") FROM table_30343 WHERE "Mystic Arte" = 'Celsius Calibur'
|
### Instruction:
CREATE TABLE table_27293285_4 (
won VARCHAR,
points_against VARCHAR,
played VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the won for played being 22 and points against 511 and lost being 15
### Response:
|
SELECT won FROM table_27293285_4 WHERE played = "22" AND lost = "15" AND points_against = "511"
|
### Instruction:
CREATE TABLE table_72371 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What districts does incumbent Curt Weldon hold?
### Response:
|
SELECT "District" FROM table_72371 WHERE "Incumbent" = 'Curt Weldon'
|
### Instruction:
CREATE TABLE table_9781 (
"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 Attendance after Week 8 with a Result of W 42 0?
### Response:
|
SELECT MAX("Attendance") FROM table_9781 WHERE "Week" > '8' AND "Result" = 'w 42β0'
|
### Instruction:
CREATE TABLE table_name_40 (
constituency_number VARCHAR,
number_of_electorates__2009_ INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the constituency number with electorates (2009) number larger than 152,958?
### Response:
|
SELECT constituency_number FROM table_name_40 WHERE number_of_electorates__2009_ > 152 OFFSET 958
|
### Instruction:
CREATE TABLE table_203_775 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"game site" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the only opponent they played which resulted in a tie game ?
### Response:
|
SELECT "opponent" FROM table_203_775 WHERE "result" = 't'
|
### Instruction:
CREATE TABLE table_41968 (
"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 is the Order # when the song choice was ' you're so vain '?
### Response:
|
SELECT "Order #" FROM table_41968 WHERE "Song choice" = ' you''re so vain '
|
### Instruction:
CREATE TABLE table_15804 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did Ecurie Bleue score more than 0 points?
### Response:
|
SELECT AVG("Year") FROM table_15804 WHERE "Pts." > '0' AND "Entrant" = 'ecurie bleue'
|
### Instruction:
CREATE TABLE table_name_49 (
laps INTEGER,
grid VARCHAR,
points VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of laps when there are less than 5 points for team garry rogers motorsport and the grid number is under 23?
### Response:
|
SELECT MAX(laps) FROM table_name_49 WHERE points < 5 AND team = "garry rogers motorsport" AND grid < 23
|
### Instruction:
CREATE TABLE table_name_67 (
magnitude VARCHAR,
time__utc_ VARCHAR,
epicenter VARCHAR,
intensity VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the magnitude with epicenter at Vrancea County, unknown intensity and which happened at 06:36?
### Response:
|
SELECT magnitude FROM table_name_67 WHERE epicenter = "vrancea county" AND intensity = "unknown" AND time__utc_ = "06:36"
|
### Instruction:
CREATE TABLE table_64705 (
"Date" text,
"Event" text,
"Heat/Semifinal/Final" text,
"Nation" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What heat, semifinal or final has a time of 25.00?
### Response:
|
SELECT "Heat/Semifinal/Final" FROM table_64705 WHERE "Time" = '25.00'
|
### Instruction:
CREATE TABLE table_60013 (
"Provider" text,
"Years" text,
"Free or pay" text,
"Transmission" text,
"On demand" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which On demandhas a Free or pay of free and a Provider of freesat?
### Response:
|
SELECT "On demand" FROM table_60013 WHERE "Free or pay" = 'free' AND "Provider" = 'freesat'
|
### Instruction:
CREATE TABLE table_name_3 (
floors VARCHAR,
rank VARCHAR,
height VARCHAR,
_m__ft_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many floors were there with a building rank of less than 3 and a height of 300 / 985 m (ft)?
### Response:
|
SELECT COUNT(floors) FROM table_name_3 WHERE height * _m__ft_ = "300 / 985" AND rank < 3
|
### Instruction:
CREATE TABLE people (
Height VARCHAR,
People_ID VARCHAR
)
CREATE TABLE perpetrator (
People_ID VARCHAR,
Injured VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the heights of perpetrators in descending order of the number of people they injured?
### Response:
|
SELECT T1.Height FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Injured DESC
|
### Instruction:
CREATE TABLE table_61685 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date is there a status of Five Nations and an against of 23?
### Response:
|
SELECT "Date" FROM table_61685 WHERE "Status" = 'five nations' AND "Against" = '23'
|
### Instruction:
CREATE TABLE table_204_174 (
id number,
"rank" number,
"name" text,
"nationality" text,
"result" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which person medaled , but was not from south korea ?
### Response:
|
SELECT "name" FROM table_204_174 WHERE "rank" IS NULL AND "nationality" <> 'south korea'
|
### Instruction:
CREATE TABLE table_204_774 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what opponent is listed in the top of the table ?
### Response:
|
SELECT "opponent" FROM table_204_774 WHERE id = 1
|
### Instruction:
CREATE TABLE table_18223 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the status of incumbent Charles Stenholm?
### Response:
|
SELECT "Status" FROM table_18223 WHERE "Incumbent" = 'Charles Stenholm'
|
### Instruction:
CREATE TABLE table_70090 (
"Project" text,
"Year" text,
"Location" text,
"Capacity" real,
"Suites" text,
"Architect" text,
"Cost" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the Eren Talu bidding project located?
### Response:
|
SELECT "Location" FROM table_70090 WHERE "Project" = 'eren talu bidding project'
|
### Instruction:
CREATE TABLE table_20305 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was an episode with a run time of 24:30 broadcasted?
### Response:
|
SELECT "Broadcast date" FROM table_20305 WHERE "Run time" = '24:30'
|
### Instruction:
CREATE TABLE table_14108 (
"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.
-- What is the total number of points of driver enrique bernoldi (r)?
### Response:
|
SELECT COUNT("Points") FROM table_14108 WHERE "Driver" = 'enrique bernoldi (r)'
|
### Instruction:
CREATE TABLE table_204_822 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country was first in rank at the 1972 olympics ?
### Response:
|
SELECT "nation" FROM table_204_822 WHERE "rank" = 1
|
### Instruction:
CREATE TABLE table_23390 (
"No. in series" text,
"No. in season" real,
"Family/families" text,
"Location(s)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In how many locations was the episode with the Bailey family filmed?
### Response:
|
SELECT COUNT("Location(s)") FROM table_23390 WHERE "Family/families" = 'The Bailey Family'
|
### Instruction:
CREATE TABLE table_name_61 (
Severe INTEGER,
season VARCHAR,
tropical_lows VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least amount of severe tropical cyclones for the 1992 93 season and the tropical Lows smaller than 6?
### Response:
|
SELECT MIN(Severe) AS tropical_cyclones FROM table_name_61 WHERE season = "1992β93" AND tropical_lows < 6
|
### Instruction:
CREATE TABLE table_6024 (
"Rank" real,
"Rider" text,
"Manufacturer" text,
"Points" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Points of 26, and a Rank smaller than 27 had what sum of wins?
### Response:
|
SELECT SUM("Wins") FROM table_6024 WHERE "Points" = '26' AND "Rank" < '27'
|
### Instruction:
CREATE TABLE table_73048 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When danilo di luca is the winner who is the general classification?
### Response:
|
SELECT "General classification" FROM table_73048 WHERE "Winner" = 'Danilo Di Luca'
|
### Instruction:
CREATE TABLE table_45356 (
"Team" text,
"Tries for" text,
"Tries against" text,
"Try diff" text,
"Points for" text,
"Points against" text,
"Points diff" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Team, when Tries Against is 8?
### Response:
|
SELECT "Team" FROM table_45356 WHERE "Tries against" = '8'
|
### Instruction:
CREATE TABLE table_name_56 (
vessel_name VARCHAR,
built VARCHAR,
class VARCHAR,
flag VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel?
### Response:
|
SELECT vessel_name FROM table_name_56 WHERE flag = "malta" AND type = "panamax" AND class = "gl" AND built > 2010
|
### Instruction:
CREATE TABLE table_32972 (
"Year" real,
"Sportsperson" text,
"Nation of birth" text,
"Team" text,
"Competition , federation , or league" text,
"Sport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who playes the sport of athletics?
### Response:
|
SELECT "Sportsperson" FROM table_32972 WHERE "Sport" = 'athletics'
|
### Instruction:
CREATE TABLE table_11585313_1 (
number_of_goals VARCHAR,
date_of_debut VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of goals on the debut date of 14-04-1907?
### Response:
|
SELECT COUNT(number_of_goals) FROM table_11585313_1 WHERE date_of_debut = "14-04-1907"
|
### Instruction:
CREATE TABLE table_name_15 (
second_member VARCHAR,
first_member VARCHAR,
first_party VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the second member ewarlier than 1804 when Tory Henry Isherwood is the first member?
### Response:
|
SELECT second_member FROM table_name_15 WHERE first_party = "tory" AND year < 1804 AND first_member = "henry isherwood"
|
### Instruction:
CREATE TABLE table_204_212 (
id number,
"wager" text,
"winner" text,
"loser" text,
"location" text,
"date" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times is psycho clown the winner ?
### Response:
|
SELECT COUNT(*) FROM table_204_212 WHERE "winner" = 'psycho clown'
|
### Instruction:
CREATE TABLE table_74964 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is an Opponent of evie dominikovic?
### Response:
|
SELECT "Date" FROM table_74964 WHERE "Opponent" = 'evie dominikovic'
|
### Instruction:
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total enrollment number of all colleges?
### Response:
|
SELECT SUM(enr) FROM college
|
### Instruction:
CREATE TABLE table_1169 (
"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 playoff result when they finished 5th, north in the regular sesason?
### Response:
|
SELECT "Playoffs" FROM table_1169 WHERE "Regular Season" = '5th, North'
|
### Instruction:
CREATE TABLE table_19529 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which title had the production code 1ACX04?
### Response:
|
SELECT "Title" FROM table_19529 WHERE "Production code" = '1ACX04'
|
### Instruction:
CREATE TABLE table_80220 (
"Year" real,
"Alabama" text,
"Arkansas" text,
"Auburn" text,
"Ole Miss" text,
"Mississippi St." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Ole Miss player associated with Chuck Dicus?
### Response:
|
SELECT "Ole Miss" FROM table_80220 WHERE "Arkansas" = 'chuck dicus'
|
### Instruction:
CREATE TABLE table_79645 (
"Year" real,
"Player" text,
"Country" text,
"Score" text,
"To Par" text,
"Margin" real,
"Earnings ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is russ cochran's average margin?
### Response:
|
SELECT AVG("Margin") FROM table_79645 WHERE "Player" = 'russ cochran'
|
### Instruction:
CREATE TABLE table_18256 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many district with incumbent being lindy boggs
### Response:
|
SELECT COUNT("District") FROM table_18256 WHERE "Incumbent" = 'Lindy Boggs'
|
### Instruction:
CREATE TABLE table_33276 (
"Club" text,
"Played" real,
"Lost" real,
"Drawn" real,
"Against" real,
"Diff." real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total difference for teams that played less than 6 games?
### Response:
|
SELECT SUM("Diff.") FROM table_33276 WHERE "Played" < '6'
|
### Instruction:
CREATE TABLE table_60699 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season has a league 3rd liga, and away of 1-0?
### Response:
|
SELECT "Season" FROM table_60699 WHERE "League" = '3rd liga' AND "Away" = '1-0'
|
### Instruction:
CREATE TABLE table_70653 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a lost of wells (6-2)?
### Response:
|
SELECT "Opponent" FROM table_70653 WHERE "Loss" = 'wells (6-2)'
|
### Instruction:
CREATE TABLE table_49319 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Record of 11 10 2?
### Response:
|
SELECT "Date" FROM table_49319 WHERE "Record" = '11β10β2'
|
### Instruction:
CREATE TABLE table_203_521 (
id number,
"year" number,
"division" number,
"league" text,
"regular season" text,
"playoffs" text,
"open cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times did this team lose in the conference finals ?
### Response:
|
SELECT COUNT(*) FROM table_203_521 WHERE "playoffs" = 'conference finals'
|
### Instruction:
CREATE TABLE table_51807 (
"Name" text,
"Built" text,
"Wheels" text,
"Fuel/ Trans" text,
"Status" text,
"Colour" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What sort of Fuel/Trans does the Grey & Red locomotive have?
### Response:
|
SELECT "Fuel/ Trans" FROM table_51807 WHERE "Colour" = 'grey & red'
|
### Instruction:
CREATE TABLE table_204_727 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what nation was ranked first in total number of gold medals ?
### Response:
|
SELECT "nation" FROM table_204_727 ORDER BY "gold" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_77062 (
"Team" text,
"Location" text,
"Venue" text,
"Capacity" real,
"Position in 2005" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Capacity that has the Position in 2005 of 8?
### Response:
|
SELECT "Capacity" FROM table_77062 WHERE "Position in 2005" = '8'
|
### Instruction:
CREATE TABLE table_68357 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the money for the to par of -6
### Response:
|
SELECT "Money ( \u00a3 )" FROM table_68357 WHERE "To par" = '-6'
|
### Instruction:
CREATE TABLE table_203_502 (
id number,
"team" text,
"titles" number,
"runner-up" number,
"third place" number,
"fourth place" number,
"years participated" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which team had the most fourth place finishes ?
### Response:
|
SELECT "team" FROM table_203_502 ORDER BY "fourth place" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_28328 (
"Episode #" real,
"Series #" real,
"Title" text,
"Director" text,
"Writer" text,
"Original airdate" text,
"Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote episode 26 in the series?
### Response:
|
SELECT "Writer" FROM table_28328 WHERE "Episode #" = '26'
|
### Instruction:
CREATE TABLE table_56524 (
"Chapter" text,
"University" text,
"City" text,
"State" text,
"Conference" text,
"Founding Date" real,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which chapter was founded later than 2012?
### Response:
|
SELECT "Chapter" FROM table_56524 WHERE "Founding Date" > '2012'
|
### Instruction:
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name and revenue of the company that earns the highest revenue in each city.
### Response:
|
SELECT name, MAX(revenue), headquarter FROM manufacturers GROUP BY headquarter
|
### Instruction:
CREATE TABLE table_64248 (
"Year" real,
"Title" text,
"Director" text,
"Studio(s)" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What studio did Paul Greengrass direct in 2007?
### Response:
|
SELECT "Studio(s)" FROM table_64248 WHERE "Year" = '2007' AND "Director" = 'paul greengrass'
|
### Instruction:
CREATE TABLE table_12576 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the venue for the Status of Five Nations and 0 againts?
### Response:
|
SELECT "Venue" FROM table_12576 WHERE "Status" = 'five nations' AND "Against" = '0'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.