instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_69234 (
"Rank" text,
"Mine" text,
"County" text,
"Operator" text,
"Capacity (thousands of metric tons)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank is the Silver Bell mine of Pima county?
### Response:
|
SELECT "Rank" FROM table_69234 WHERE "County" = 'pima' AND "Mine" = 'silver bell'
|
### Instruction:
CREATE TABLE table_32126 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Top-5 values with events values less than 2?
### Response:
|
SELECT SUM("Top-5") FROM table_32126 WHERE "Events" < '2'
|
### Instruction:
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Draw a bar chart for how many people are under 40 for each gender?
### Response:
|
SELECT gender, COUNT(*) FROM Person WHERE age < 40 GROUP BY gender
|
### Instruction:
CREATE TABLE table_3529 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every year for joined with the Ravens nickname?
### Response:
|
SELECT "Joined" FROM table_3529 WHERE "Nickname" = 'Ravens'
|
### Instruction:
CREATE TABLE table_6984 (
"Year" text,
"Film title used in nomination" text,
"Original title" text,
"Main Language(s)" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the film made in 1964: (37th), what was the result?
### Response:
|
SELECT "Result" FROM table_6984 WHERE "Year" = '1964: (37th)'
|
### Instruction:
CREATE TABLE table_17640 (
"Record" text,
"Date and Time" text,
"Competition" text,
"Home or Away" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What records are hit where the opponent is Aylesbury United?
### Response:
|
SELECT "Record" FROM table_17640 WHERE "Opponent" = 'Aylesbury United'
|
### Instruction:
CREATE TABLE table_44817 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Round was the Memphis Player drafted?
### Response:
|
SELECT AVG("Round") FROM table_44817 WHERE "School/Club Team" = 'memphis'
|
### Instruction:
CREATE TABLE table_204_698 (
id number,
"name" text,
"lifetime" text,
"nationality" text,
"notable as" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which nationality had the larger amount of names listed ?
### Response:
|
SELECT "nationality" FROM table_204_698 GROUP BY "nationality" ORDER BY COUNT("name") DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_35855 (
"Season" real,
"Overall" text,
"Slalom" text,
"Giant Slalom" text,
"Super G" text,
"Combined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest season with a Giant Slalom of 5?
### Response:
|
SELECT MIN("Season") FROM table_35855 WHERE "Giant Slalom" = '5'
|
### Instruction:
CREATE TABLE table_40672 (
"AIRLINES" text,
"IATA" text,
"ICAO" text,
"CALLSIGN" text,
"COMMENCED OPERATIONS" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the callsign that has ICAO of SCO?
### Response:
|
SELECT "CALLSIGN" FROM table_40672 WHERE "ICAO" = 'sco'
|
### Instruction:
CREATE TABLE table_46780 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Record that has the Score of 100-105?
### Response:
|
SELECT "Record" FROM table_46780 WHERE "Score" = '100-105'
|
### Instruction:
CREATE TABLE table_58424 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the Jazz player 1977-79?
### Response:
|
SELECT "Nationality" FROM table_58424 WHERE "Years for Jazz" = '1977-79'
|
### Instruction:
CREATE TABLE table_7730 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date's margin of victory was 3 and 2?
### Response:
|
SELECT "Date" FROM table_7730 WHERE "Margin of victory" = '3 and 2'
|
### Instruction:
CREATE TABLE table_49745 (
"Model number" text,
"Frequency" text,
"L1 Cache" text,
"Mult." real,
"Voltage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the L1 Cache, when the Model Number is X5-133 ADY?
### Response:
|
SELECT "L1 Cache" FROM table_49745 WHERE "Model number" = 'x5-133 ady'
|
### Instruction:
CREATE TABLE table_34374 (
"Place" real,
"Nation" text,
"6 Ropes" real,
"4 Hoops, 2 Clubs" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of Greece, which is placed below 8?
### Response:
|
SELECT COUNT("Total") FROM table_34374 WHERE "Nation" = 'greece' AND "Place" > '8'
|
### Instruction:
CREATE TABLE table_72659 (
"Year" text,
"Best Film" text,
"Best Director" text,
"Best Actor" text,
"Best Actress" text,
"Best Supporting Actor" text,
"Best Supporting Actress" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the best director for mother
### Response:
|
SELECT "Best Director" FROM table_72659 WHERE "Best Film" = 'Mother'
|
### Instruction:
CREATE TABLE table_204_53 (
id number,
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"round" number,
"time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many wins are there in total ?
### Response:
|
SELECT COUNT(*) FROM table_204_53 WHERE "result" = 'win'
|
### Instruction:
CREATE TABLE table_77618 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game that had a score of 3 1?
### Response:
|
SELECT "Date" FROM table_77618 WHERE "Score" = '3 – 1'
|
### Instruction:
CREATE TABLE table_42210 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponent in Final" text,
"Score in Final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the partner of the winner?
### Response:
|
SELECT "Partner" FROM table_42210 WHERE "Outcome" = 'winner'
|
### Instruction:
CREATE TABLE table_name_33 (
main_contestant VARCHAR,
co_contestant__yaar_vs_pyaar_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the main contestant when the co-contestant (yaar vs. pyaar) is Shalini Chandran?
### Response:
|
SELECT main_contestant FROM table_name_33 WHERE co_contestant__yaar_vs_pyaar_ = "shalini chandran"
|
### Instruction:
CREATE TABLE table_name_8 (
name VARCHAR,
term_expires VARCHAR,
appointing_governor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which person has an expiring term of December 31, 2020, and has Terry Branstad as the appointing governor?
### Response:
|
SELECT name FROM table_name_8 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad"
|
### Instruction:
CREATE TABLE table_77311 (
"Rank" real,
"Title" text,
"Studio" text,
"Director(s)" text,
"Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank is the title with a gross of $26,589,355?
### Response:
|
SELECT "Rank" FROM table_77311 WHERE "Gross" = '$26,589,355'
|
### Instruction:
CREATE TABLE table_76714 (
"Week" text,
"Theme" text,
"Artist" text,
"Order sung" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week did the contestant finish in the bottom 2 with a Celine Dion song?
### Response:
|
SELECT "Week" FROM table_76714 WHERE "Status" = 'bottom 2' AND "Artist" = 'celine dion'
|
### Instruction:
CREATE TABLE table_203_290 (
id number,
"game" number,
"date" text,
"opponent" text,
"location" text,
"score" text,
"ot" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the top attendance for this season ?
### Response:
|
SELECT MAX("attendance") FROM table_203_290
|
### Instruction:
CREATE TABLE Asset_Parts (
part_id VARCHAR
)
CREATE TABLE Parts (
part_name VARCHAR,
part_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many assets can each parts be used in? List the part name and the number.
### Response:
|
SELECT T1.part_name, COUNT(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name
|
### Instruction:
CREATE TABLE table_60474 (
"English name" text,
"Thai name" text,
"Abbr." text,
"Transcription" text,
"Sanskrit word" text,
"Zodiac sign" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the abbreviation for the sign of Capricorn?
### Response:
|
SELECT "Abbr." FROM table_60474 WHERE "Zodiac sign" = 'capricorn'
|
### Instruction:
CREATE TABLE table_30474 (
"Club" text,
"Location" text,
"Home Venue" text,
"Capacity" text,
"Founded" real,
"Years Active" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the home venue of the team founded in 1993?
### Response:
|
SELECT "Home Venue" FROM table_30474 WHERE "Founded" = '1993'
|
### Instruction:
CREATE TABLE table_47032 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of game 25?
### Response:
|
SELECT "Score" FROM table_47032 WHERE "Game" = '25'
|
### Instruction:
CREATE TABLE table_67829 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total overall when Kenny Lewis is the player in a round after 5?
### Response:
|
SELECT COUNT("Overall") FROM table_67829 WHERE "Player" = 'kenny lewis' AND "Round" > '5'
|
### Instruction:
CREATE TABLE table_204_111 (
id number,
"name" text,
"animal type" text,
"introduced" number,
"reintroduced" text,
"retired" number,
"beanie baby resembled" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in what year were the first pillow pals introduced ?
### Response:
|
SELECT MIN("introduced") FROM table_204_111
|
### Instruction:
CREATE TABLE table_name_1 (
general_classification VARCHAR,
asian_rider_classification VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich General classification has an Asian rider classification of shinichi fukushima, and a Winner of jeremy hunt?
### Response:
|
SELECT general_classification FROM table_name_1 WHERE asian_rider_classification = "shinichi fukushima" AND winner = "jeremy hunt"
|
### Instruction:
CREATE TABLE table_70798 (
"Date" text,
"Opponents" text,
"Result F\u2013A" text,
"Attendance" real,
"Group position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Date of 24 september 2002 is what group position?
### Response:
|
SELECT "Group position" FROM table_70798 WHERE "Date" = '24 september 2002'
|
### Instruction:
CREATE TABLE table_31978 (
"Candidate" text,
"Party" text,
"Constituency" text,
"Year" text,
"Days" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was Hazel Grove the constituent for the liberal party?
### Response:
|
SELECT "Year" FROM table_31978 WHERE "Party" = 'liberal' AND "Constituency" = 'hazel grove'
|
### Instruction:
CREATE TABLE personfriend (
name text,
friend text,
year number
)
CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a friend that is from new york city?
### Response:
|
SELECT T2.name FROM person AS T1 JOIN personfriend AS T2 ON T1.name = T2.friend WHERE T1.city = 'new york city'
|
### Instruction:
CREATE TABLE table_52198 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Rebounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which game had less than 270 rebounds and a rank lower than 5?
### Response:
|
SELECT "Games" FROM table_52198 WHERE "Rebounds" < '270' AND "Rank" < '5'
|
### Instruction:
CREATE TABLE table_18952 (
"Ep. No." real,
"Title" text,
"Director" text,
"Written by" text,
"Original Air Date" text,
"Production No." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production number of 'rain of terror'?
### Response:
|
SELECT MIN("Production No.") FROM table_18952 WHERE "Title" = 'Rain of Terror'
|
### Instruction:
CREATE TABLE table_75592 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent had an attendance of 10,089?
### Response:
|
SELECT "Opponent" FROM table_75592 WHERE "Attendance" = '10,089'
|
### Instruction:
CREATE TABLE table_name_75 (
fs VARCHAR,
sp VARCHAR,
points VARCHAR,
rank VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the total number of SP+FS with rank more than 8 for the netherlands and points more than 127.26
### Response:
|
SELECT COUNT(sp) + fs FROM table_name_75 WHERE rank > 8 AND nation = "netherlands" AND points > 127.26
|
### Instruction:
CREATE TABLE table_71595 (
"Draw" real,
"Artist" text,
"Song" text,
"Votes" real,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the draw number of the song with a place lower than 6 and more than 38 votes?
### Response:
|
SELECT SUM("Draw") FROM table_71595 WHERE "Place" > '6' AND "Votes" > '38'
|
### Instruction:
CREATE TABLE table_name_43 (
drawn VARCHAR,
played VARCHAR,
goals_against VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Drawn has Goals Against larger than 74, and a Lost smaller than 20, and a Played larger than 38?
### Response:
|
SELECT COUNT(drawn) FROM table_name_43 WHERE goals_against > 74 AND lost < 20 AND played > 38
|
### Instruction:
CREATE TABLE table_55636 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the home team Richmond play?
### Response:
|
SELECT "Date" FROM table_55636 WHERE "Home team" = 'richmond'
|
### Instruction:
CREATE TABLE table_23271 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the school in Springfield, Massachusetts founded?
### Response:
|
SELECT MAX("Founded") FROM table_23271 WHERE "Location" = 'Springfield, Massachusetts'
|
### Instruction:
CREATE TABLE table_29990 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions does Janne Niinimaa play?
### Response:
|
SELECT COUNT("Position") FROM table_29990 WHERE "Player" = 'Janne Niinimaa'
|
### Instruction:
CREATE TABLE table_8732 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played against the Celtics when the final game score was 85-102?
### Response:
|
SELECT "Opponent" FROM table_8732 WHERE "Score" = '85-102'
|
### Instruction:
CREATE TABLE table_47578 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Primary Language(s)" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Result, when Original Title is 'Qala'?
### Response:
|
SELECT "Result" FROM table_47578 WHERE "Original title" = 'qala'
|
### Instruction:
CREATE TABLE table_73903 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- under belles, which is the most possible created?
### Response:
|
SELECT MAX("Founded") FROM table_73903 WHERE "Nickname" = 'Belles'
|
### Instruction:
CREATE TABLE table_38783 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the game that 33,531 people went too?
### Response:
|
SELECT "Score" FROM table_38783 WHERE "Attendance" = '33,531'
|
### Instruction:
CREATE TABLE table_204_947 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many opponents were played twice that season ?
### Response:
|
SELECT COUNT(*) FROM (SELECT "opponent" FROM table_204_947 GROUP BY "opponent" HAVING COUNT(*) = 2)
|
### Instruction:
CREATE TABLE table_203_364 (
id number,
"year" number,
"driver" text,
"nation of citizenship" text,
"racing series" text,
"type of vehicle" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which racing series has the highest total of winners ?
### Response:
|
SELECT "racing series" FROM table_203_364 GROUP BY "racing series" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE book (
Book_ID int,
Title text,
Issues real,
Writer text
)
CREATE TABLE publication (
Publication_ID int,
Book_ID int,
Publisher text,
Publication_Date text,
Price real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- A bar chart showing the number of publication dates of books.
### Response:
|
SELECT Publication_Date, COUNT(Publication_Date) FROM publication GROUP BY Publication_Date
|
### Instruction:
CREATE TABLE table_44828 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country placed t6 with player Vijay Singh?
### Response:
|
SELECT "Country" FROM table_44828 WHERE "Place" = 't6' AND "Player" = 'vijay singh'
|
### Instruction:
CREATE TABLE table_35435 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Last match" text,
"Replaced by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the manner of departure replaced by tita?
### Response:
|
SELECT "Manner of departure" FROM table_35435 WHERE "Replaced by" = 'tita'
|
### Instruction:
CREATE TABLE table_1638 (
"Country" text,
"Amateur Era" real,
"Open Era" real,
"All-time" real,
"First title" real,
"Last title" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many open era titles does the team with their first title in 1925 have?
### Response:
|
SELECT "Open Era" FROM table_1638 WHERE "First title" = '1925'
|
### Instruction:
CREATE TABLE table_57828 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many silvers for japan (1 gold)?
### Response:
|
SELECT SUM("Silver") FROM table_57828 WHERE "Nation" = 'japan' AND "Gold" > '1'
|
### Instruction:
CREATE TABLE table_75973 (
"Season" text,
"Nationality" text,
"Player" text,
"Club" text,
"League" text,
"Goals" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player was in the Omonia Nicosia club?
### Response:
|
SELECT "Player" FROM table_75973 WHERE "Club" = 'omonia nicosia'
|
### Instruction:
CREATE TABLE table_44703 (
"Name" text,
"Location" text,
"Format" text,
"Record Label" text,
"Release Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name in the UK, with a release date of December 1966?
### Response:
|
SELECT "Name" FROM table_44703 WHERE "Location" = 'uk' AND "Release Date" = 'december 1966'
|
### Instruction:
CREATE TABLE table_39081 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Points have an Opponent of @ calgary flames?
### Response:
|
SELECT SUM("Points") FROM table_39081 WHERE "Opponent" = '@ calgary flames'
|
### Instruction:
CREATE TABLE table_name_69 (
team VARCHAR,
location_attendance VARCHAR,
high_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Team, when Location Attendance is 'Madison Square Garden Unknown', and when High Points is 'Alonzo Mourning (24)'?
### Response:
|
SELECT team FROM table_name_69 WHERE location_attendance = "madison square garden unknown" AND high_points = "alonzo mourning (24)"
|
### Instruction:
CREATE TABLE table_49274 (
"Name" text,
"Type" text,
"Themed area" text,
"Manufacturer" text,
"Opened" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What themed area opened in 2010 as an animal show?
### Response:
|
SELECT "Themed area" FROM table_49274 WHERE "Type" = 'animal show' AND "Opened" = '2010'
|
### Instruction:
CREATE TABLE table_62931 (
"Campus" text,
"Year opened" text,
"Students" text,
"Size" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What location was the campus opened in 2005 with students listed as na?
### Response:
|
SELECT "Location" FROM table_62931 WHERE "Students" = 'na' AND "Year opened" = '2005'
|
### Instruction:
CREATE TABLE table_78141 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where's the first round that southern mississippi shows up during the draft?
### Response:
|
SELECT MIN("Round") FROM table_78141 WHERE "School/Club Team" = 'southern mississippi'
|
### Instruction:
CREATE TABLE table_203_6 (
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.
-- against which team did holosko score the most goals ?
### Response:
|
SELECT "opponent" FROM table_203_6 ORDER BY "score" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_78624 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the match in which player David Frost scored a To Par of +7, what was the final score?
### Response:
|
SELECT "Score" FROM table_78624 WHERE "To par" = '+7' AND "Player" = 'david frost'
|
### Instruction:
CREATE TABLE table_67762 (
"Year" real,
"Pick" text,
"Player name" text,
"College" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which lowest year has a Position of rb, and a College of louisiana state?
### Response:
|
SELECT MIN("Year") FROM table_67762 WHERE "Position" = 'rb' AND "College" = 'louisiana state'
|
### Instruction:
CREATE TABLE table_20971444_3 (
share__18_49_ VARCHAR,
rating__18_49_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number for 18-49 share being 18-49 being 3.1
### Response:
|
SELECT COUNT(share__18_49_) FROM table_20971444_3 WHERE rating__18_49_ = "3.1"
|
### Instruction:
CREATE TABLE table_4905 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Richmond play as the home team?
### Response:
|
SELECT "Venue" FROM table_4905 WHERE "Home team" = 'richmond'
|
### Instruction:
CREATE TABLE table_72757 (
"Appearances" real,
"School" text,
"Wins" real,
"Losses" real,
"Percent" text,
"Last Appearance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many schools had the win loss ratio of 0.667?
### Response:
|
SELECT COUNT("School") FROM table_72757 WHERE "Percent" = '0.667'
|
### Instruction:
CREATE TABLE table_51181 (
"Romaji title" text,
"Japanese title" text,
"Release date" text,
"Reference" text,
"Oricon" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the reference for the romani title da.i.su.ki?
### Response:
|
SELECT "Reference" FROM table_51181 WHERE "Romaji title" = 'da.i.su.ki'
|
### Instruction:
CREATE TABLE table_name_71 (
gpu_frequency VARCHAR,
frequency VARCHAR,
sspec_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is GPU Frequency, when Frequency is 1.67 GHz, and when sSpec Number is SLBX9(A0)?
### Response:
|
SELECT gpu_frequency FROM table_name_71 WHERE frequency = "1.67 ghz" AND sspec_number = "slbx9(a0)"
|
### Instruction:
CREATE TABLE table_name_72 (
venue VARCHAR,
competition VARCHAR,
year VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships?
### Response:
|
SELECT venue FROM table_name_72 WHERE year < 2009 AND event = "3000 m" AND competition = "world youth championships"
|
### Instruction:
CREATE TABLE table_31797 (
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the team of vitali yeremeyev
### Response:
|
SELECT "NHL team" FROM table_31797 WHERE "Player" = 'vitali yeremeyev'
|
### Instruction:
CREATE TABLE table_48487 (
"Name" text,
"Country" text,
"Status" text,
"Moving to" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE COUNTRY WITH SUMMER TRANSFER WINDOW?
### Response:
|
SELECT "Country" FROM table_48487 WHERE "Transfer window" = 'summer'
|
### Instruction:
CREATE TABLE table_29986 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For player is john jakopin mention the total number of position
### Response:
|
SELECT COUNT("Position") FROM table_29986 WHERE "Player" = 'John Jakopin'
|
### Instruction:
CREATE TABLE table_50284 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What record has 46 as the game?
### Response:
|
SELECT "Record" FROM table_50284 WHERE "Game" = '46'
|
### Instruction:
CREATE TABLE table_32669 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was Richmond the away team?
### Response:
|
SELECT "Date" FROM table_32669 WHERE "Away team" = 'richmond'
|
### Instruction:
CREATE TABLE table_27125 (
"Wind farm" text,
"Installed capacity (MW)" text,
"Turbine Manufacturer" text,
"County" text,
"Date in Service" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the turbine manufacturer for the Wheatland county?
### Response:
|
SELECT "Turbine Manufacturer" FROM table_27125 WHERE "County" = 'Wheatland'
|
### Instruction:
CREATE TABLE table_1948 (
"Period" text,
"Kit manufacturer" text,
"Main sponsor" text,
"Secondary sponsor" text,
"Minor sponsors" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When tim brasil brokers are the minor sponsors who is the kit manufacturer?
### Response:
|
SELECT "Kit manufacturer" FROM table_1948 WHERE "Minor sponsors" = 'Tim Brasil Brokers'
|
### Instruction:
CREATE TABLE table_10176 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is the Geelong game?
### Response:
|
SELECT "Date" FROM table_10176 WHERE "Home team" = 'geelong'
|
### Instruction:
CREATE TABLE table_74555 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the venue for extra of short race and year less than 1999
### Response:
|
SELECT "Venue" FROM table_74555 WHERE "Extra" = 'short race' AND "Year" < '1999'
|
### Instruction:
CREATE TABLE table_204_334 (
id number,
"opposition" text,
"matches" number,
"won" number,
"drawn" number,
"lost" number,
"for" number,
"against" number,
"win%" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total amount of matches drawn ?
### Response:
|
SELECT SUM("drawn") FROM table_204_334
|
### Instruction:
CREATE TABLE table_44588 (
"Name" text,
"Born-Died" text,
"Term start" text,
"Term end" text,
"Political Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the prime minister that had a term that ended on 5 March 1930?
### Response:
|
SELECT "Name" FROM table_44588 WHERE "Term end" = '5 march 1930'
|
### Instruction:
CREATE TABLE table_204_601 (
id number,
"area served" text,
"city of license" text,
"vc" number,
"rf" number,
"callsign" text,
"network" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many are on the cbs network ?
### Response:
|
SELECT COUNT(*) FROM table_204_601 WHERE "network" = 'cbs'
|
### Instruction:
CREATE TABLE tryout (
pID VARCHAR,
decision VARCHAR
)
CREATE TABLE player (
HS INTEGER,
pID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the average and maximum hours for the students whose tryout decision is yes.
### Response:
|
SELECT AVG(T1.HS), MAX(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'
|
### Instruction:
CREATE TABLE table_53169 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game where Geelong was the away team?
### Response:
|
SELECT "Date" FROM table_53169 WHERE "Away team" = 'geelong'
|
### Instruction:
CREATE TABLE table_28337 (
"Country" text,
"Exports" text,
"Imports" text,
"Total Trade" text,
"Trade Balance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where the total trade is 14,954.86, what are the exports?
### Response:
|
SELECT "Exports" FROM table_28337 WHERE "Total Trade" = '14,954.86'
|
### Instruction:
CREATE TABLE table_204_473 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the least number of laps made ?
### Response:
|
SELECT MIN("laps") FROM table_204_473
|
### Instruction:
CREATE TABLE table_41044 (
"Place" real,
"Rider" text,
"Country" text,
"Machine" text,
"Speed" text,
"Time" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Time, when Speed is 87.49mph?
### Response:
|
SELECT "Time" FROM table_41044 WHERE "Speed" = '87.49mph'
|
### Instruction:
CREATE TABLE table_name_98 (
winning_score VARCHAR,
margin_of_victory VARCHAR,
runner_s__up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the winning score for the tournament where Garth Mulroy was the runner-up, and the margin of victory was 1 stroke?
### Response:
|
SELECT winning_score FROM table_name_98 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "garth mulroy"
|
### Instruction:
CREATE TABLE table_24577 (
"Round #" real,
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pick # for player david grannis?
### Response:
|
SELECT MAX("Pick #") FROM table_24577 WHERE "Player" = 'David Grannis'
|
### Instruction:
CREATE TABLE table_name_24 (
latitude INTEGER,
township VARCHAR,
geo_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest latitude when the township is kingsley and the geo id is higher than 3803942820?
### Response:
|
SELECT MAX(latitude) FROM table_name_24 WHERE township = "kingsley" AND geo_id > 3803942820
|
### Instruction:
CREATE TABLE table_name_27 (
gold_medals VARCHAR,
appearances VARCHAR,
silver_medals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of 4th place that has 3 appearances for 3, and a more than 0 silver medals, and no gold medals?
### Response:
|
SELECT COUNT(4 AS th_place) FROM table_name_27 WHERE appearances = 3 AND silver_medals > 0 AND gold_medals < 0
|
### Instruction:
CREATE TABLE table_74474 (
"Townland" text,
"Area( acres )" real,
"Barony" text,
"Civil parish" text,
"Poor law union" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the areas (in acres) of the Kilnahera East townland?
### Response:
|
SELECT "Area( acres )" FROM table_74474 WHERE "Townland" = 'Kilnahera East'
|
### Instruction:
CREATE TABLE table_65729 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds did Pierre Bland have a pick larger than 148?
### Response:
|
SELECT COUNT("Round") FROM table_65729 WHERE "Pick" > '148' AND "Player" = 'pierre bland'
|
### Instruction:
CREATE TABLE table_36898 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Loss of gonz lez (0 3) had what attendance?
### Response:
|
SELECT "Attendance" FROM table_36898 WHERE "Loss" = 'gonzález (0–3)'
|
### Instruction:
CREATE TABLE table_64823 (
"Name (pinyin)" text,
"Name (Wade Giles)" text,
"Characters" text,
"Type" text,
"Construction" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Name (pinyin) is named fu-ching?
### Response:
|
SELECT "Name (pinyin)" FROM table_64823 WHERE "Name (Wade Giles)" = 'fu-ching'
|
### Instruction:
CREATE TABLE table_34255 (
"Venue" text,
"Home" text,
"Guest" text,
"Score (first match)" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the guest team wehn the match score was 3:0 (0:2)?
### Response:
|
SELECT "Guest" FROM table_34255 WHERE "Score (first match)" = '3:0 (0:2)'
|
### Instruction:
CREATE TABLE table_23435 (
"Episode" text,
"First broadcast" text,
"Rufus guest" text,
"Marcus guest" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the rufus guest for 15 december 2008
### Response:
|
SELECT COUNT("Rufus guest") FROM table_23435 WHERE "First broadcast" = '15 December 2008'
|
### Instruction:
CREATE TABLE table_203_830 (
id number,
"year" number,
"song" text,
"chart positions\nus country" number,
"chart positions\ncan country" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many songs were not on albums , being only released as a single ?
### Response:
|
SELECT COUNT("song") FROM table_203_830 WHERE "album" = 'singles only'
|
### Instruction:
CREATE TABLE table_73790 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many viewers (in millions) did episode 1 have?
### Response:
|
SELECT "Viewers (in millions)" FROM table_73790 WHERE "Series #" = '1'
|
### Instruction:
CREATE TABLE table_204_761 (
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 nation is the top nation in number of gold awards won ?
### Response:
|
SELECT "nation" FROM table_204_761 ORDER BY "gold" DESC LIMIT 1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.