instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_65633 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What game was before 2010 and was a role-playing game?
### Response:
| SELECT "Game" FROM table_65633 WHERE "Year" < '2010' AND "Genre" = 'role-playing game' |
### Instruction:
CREATE TABLE table_44555 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game site" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which game site hosted a match on April 10, 2004?
### Response:
| SELECT "Game site" FROM table_44555 WHERE "Date" = 'april 10, 2004' |
### Instruction:
CREATE TABLE table_203_293 (
id number,
"years of appearance" text,
"title" text,
"network" text,
"character name" text,
"actor" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- collectively , how many shows did ... | SELECT COUNT("title") FROM table_203_293 WHERE "network" IN ('hbo', 'mtv') |
### Instruction:
CREATE TABLE table_27474 (
"Team" text,
"Home city" text,
"Home ground" text,
"In Toppserien since" real,
"First appearance" real,
"Seasons" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home city for the team whose... | SELECT "Home city" FROM table_27474 WHERE "Home ground" = 'DnB Nor Arena' |
### Instruction:
CREATE TABLE table_4578 (
"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.
-- Which home team score occurred a... | SELECT "Home team score" FROM table_4578 WHERE "Venue" = 'victoria park' |
### Instruction:
CREATE TABLE table_65815 (
"Position" text,
"Gymnast" text,
"A Score" real,
"B Score" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total scored for the 8th position and a score more than 6.6
### Respons... | SELECT MAX("Total") FROM table_65815 WHERE "Position" = '8th' AND "A Score" > '6.6' |
### Instruction:
CREATE TABLE table_49117 (
"Name" text,
"Years" text,
"Seasons" real,
"Lost" real,
"Pct." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many losses did the coach who served under 1 season and in 1975 have?
### Response:
| SELECT COUNT("Lost") FROM table_49117 WHERE "Years" = '1975' AND "Seasons" < '1' |
### Instruction:
CREATE TABLE table_32911 (
"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.
-- On what date was a match held a... | SELECT "Date" FROM table_32911 WHERE "Venue" = 'mcg' |
### Instruction:
CREATE TABLE professor (
dept_code VARCHAR
)
CREATE TABLE department (
dept_code VARCHAR,
dept_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many professors who are from either Accounting or Biology department?
### Response:... | SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology' |
### Instruction:
CREATE TABLE table_1312 (
"Team" text,
"Titles" real,
"Runner-up" real,
"Third place" real,
"Fourth place" real,
"Years participated" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the team is lake superior state how many t... | SELECT MIN("Fourth place") FROM table_1312 WHERE "Team" = 'Lake Superior State' |
### Instruction:
CREATE TABLE table_63342 (
"Title" text,
"Series" text,
"Director" text,
"Production Number" text,
"Release date" text,
"reissue?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Series with Production Number of 95, br 1... | SELECT "Series" FROM table_63342 WHERE "Production Number" = '95, br 1254' |
### Instruction:
CREATE TABLE table_20226 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was featured in 20 questions on ... | SELECT "20 Questions" FROM table_20226 WHERE "Date" = '4-03' |
### Instruction:
CREATE TABLE table_71453 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- \What is the class of the station with the call sig... | SELECT "Class" FROM table_71453 WHERE "Call sign" = 'w254ah' |
### Instruction:
CREATE TABLE table_41574 (
"Week of" text,
"Tier" text,
"Winner" text,
"Runner-up" text,
"Semi finalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Week, when Semi Finalists is Sandrine Testud Yone Kamio?
### Response... | SELECT "Week of" FROM table_41574 WHERE "Semi finalists" = 'sandrine testud yone kamio' |
### Instruction:
CREATE TABLE table_65765 (
"Rank" real,
"Athlete" text,
"Country" text,
"Day 1" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the country when the total is 111 and the day 1 is 69?
### Response:
| SELECT "Country" FROM table_65765 WHERE "Total" = '111' AND "Day 1" = '69' |
### Instruction:
CREATE TABLE table_23808 (
"BSE Code" text,
"Company" text,
"City" text,
"GICS Sector" text,
"Free float" text,
"Index weighting (%" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many values of free float for the BSE code o... | SELECT COUNT("Free float") FROM table_23808 WHERE "BSE Code" = '4EH' |
### Instruction:
CREATE TABLE table_44677 (
"Nat." text,
"Name" text,
"Moving to" text,
"Type" text,
"Transfer window" text,
"Transfer fee" text,
"Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is moving to Metalurh Donetsk?
##... | SELECT "Name" FROM table_44677 WHERE "Moving to" = 'metalurh donetsk' |
### Instruction:
CREATE TABLE table_65497 (
"Index" text,
"Score" text,
"PALOP rank" text,
"CPLP rank" text,
"n Africa rank" text,
"World rank" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had a score of 0.586?
###... | SELECT COUNT("Year") FROM table_65497 WHERE "Score" = '0.586' |
### Instruction:
CREATE TABLE table_25282 (
"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.
-- What is every party with a winner of P. Chidambaram?
### ... | SELECT "Party a" FROM table_25282 WHERE "Winner" = 'P. Chidambaram' |
### Instruction:
CREATE TABLE table_204_735 (
id number,
"rank" number,
"team" text,
"names" text,
"time" text,
"qualification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which team took a shorter amount of time , ukraine or united states ?
... | SELECT "team" FROM table_204_735 WHERE "team" IN ('ukraine', 'united states') ORDER BY "time" LIMIT 1 |
### Instruction:
CREATE TABLE table_203_287 (
id number,
"rank" number,
"area" text,
"date" text,
"presenter" text,
"seven wonders covered" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which area has the river severn and the exmoor as two of t... | SELECT "area" FROM table_203_287 WHERE "seven wonders covered" = 'river severn' |
### Instruction:
CREATE TABLE table_52139 (
"Athlete" text,
"Nationality" text,
"3.60" text,
"3.80" text,
"3.95" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the athlete with a final result of 4.30?
### Response:
| SELECT "Athlete" FROM table_52139 WHERE "Result" = '4.30' |
### Instruction:
CREATE TABLE table_name_25 (
date_of_vacancy VARCHAR,
position_in_table VARCHAR,
outgoing_manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date of vacancy when the position in table is 16th and the outgoing manager is r... | SELECT date_of_vacancy FROM table_name_25 WHERE position_in_table = "16th" AND outgoing_manager = "russell slade" |
### Instruction:
CREATE TABLE table_41439 (
"Season" text,
"Conference" text,
"Division" text,
"Finish" text,
"Wins" real,
"Losses" real,
"Win%" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest win percentage when there wer... | SELECT MAX("Win%") FROM table_41439 WHERE "Losses" = '23' |
### Instruction:
CREATE TABLE table_31613 (
"Year" text,
"Games" real,
"Rushes" real,
"Yards" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games had 41 rushes and were than 197 yards?
### Response:
| SELECT COUNT("Games") FROM table_31613 WHERE "Rushes" = '41' AND "Yards" < '197' |
### Instruction:
CREATE TABLE table_78592 (
"Year" text,
"Award" text,
"Category" text,
"Nominated" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was there a nomination for Best Actress at the Kids' Choice Awards Argentina?... | SELECT "Year" FROM table_78592 WHERE "Award" = 'kids'' choice awards argentina' AND "Category" = 'best actress' |
### Instruction:
CREATE TABLE table_46077 (
"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.
-- What is Born-Died, when Term Start is 4 December 1941?
### Response:
| SELECT "Born-Died" FROM table_46077 WHERE "Term start" = '4 december 1941' |
### Instruction:
CREATE TABLE table_68074 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average points for chassis of stevens and year less than 1950
### Response:
| SELECT AVG("Points") FROM table_68074 WHERE "Chassis" = 'stevens' AND "Year" < '1950' |
### Instruction:
CREATE TABLE table_24068 (
"Episode No." real,
"Series No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Viewers (millions)" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed... | SELECT "Directed by" FROM table_24068 WHERE "Episode No." = '23' |
### Instruction:
CREATE TABLE table_14104 (
"Season" text,
"Division" text,
"Tms." text,
"Pos." text,
"PFF NMCC" text,
"UFL Cup" text,
"AFC PC" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Season has a UFL Cup of tbd?
### Response:... | SELECT "Season" FROM table_14104 WHERE "UFL Cup" = 'tbd' |
### Instruction:
CREATE TABLE table_204_521 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time (hand)" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which competitor from united states had the longest time ?
### ... | SELECT "name" FROM table_204_521 WHERE "nationality" = 'united states' ORDER BY "time (hand)" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_203_442 (
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.
-- which month held the least amount ... | SELECT "date" FROM table_203_442 GROUP BY "date" ORDER BY COUNT(*) LIMIT 1 |
### Instruction:
CREATE TABLE table_10683 (
"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 was the away team that pla... | SELECT "Away team" FROM table_10683 WHERE "Home team" = 'melbourne' |
### Instruction:
CREATE TABLE table_43748 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the United States in place T1 for David Duval?
### Response:
| SELECT "Score" FROM table_43748 WHERE "Country" = 'united states' AND "Place" = 't1' AND "Player" = 'david duval' |
### Instruction:
CREATE TABLE table_45264 (
"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.
-- Who had the mos... | SELECT "High points" FROM table_45264 WHERE "Game" > '59' |
### Instruction:
CREATE TABLE table_18304058_2 (
nickname_s_ VARCHAR,
enrollment__2013_14_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nickname of the team whose 2013/2014 enrollment is 436?
### Response:
| SELECT nickname_s_ FROM table_18304058_2 WHERE enrollment__2013_14_ = 436 |
### Instruction:
CREATE TABLE table_204_365 (
id number,
"year" number,
"single" text,
"chart positions\nusa billboard hot dance club play" number,
"chart positions\npolish charts" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- h... | SELECT COUNT("single") FROM table_204_365 WHERE "year" = 2010 |
### Instruction:
CREATE TABLE table_63015 (
"Title" text,
"Series" text,
"Director" text,
"Release date" text,
"reissue?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was Tree Cornered Tweety, directed by Friz Freleng, released?
### Respons... | SELECT "Release date" FROM table_63015 WHERE "Director" = 'friz freleng' AND "Title" = 'tree cornered tweety' |
### Instruction:
CREATE TABLE table_56363 (
"Class" text,
"Ships in class" text,
"Pennant Number" real,
"Unit" text,
"Builder" text,
"Commissioned" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest pennant number with ships in r... | SELECT MAX("Pennant Number") FROM table_56363 WHERE "Ships in class" = 'raahe' |
### Instruction:
CREATE TABLE table_name_26 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which car won the same award in 2001 that the bmw m67d39 3.9l v8 e38 740d won in 1999?
### Response:
| SELECT 2001 FROM table_name_26 WHERE 1999 = "bmw m67d39 3.9l v8 e38 740d" |
### Instruction:
CREATE TABLE table_25960 (
"Round" real,
"Location" text,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Winning Driver" text,
"Winning Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which location is aci valle... | SELECT "Location" FROM table_25960 WHERE "Circuit" = 'ACI Vallelunga Circuit' |
### Instruction:
CREATE TABLE table_name_58 (
track_number VARCHAR,
recording_date VARCHAR,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many track numbers were recorded on November 16, 1959 for the title of I Couldn't Hear Nobody Pray?
###... | SELECT COUNT(track_number) FROM table_name_58 WHERE recording_date = "november 16, 1959" AND title = "i couldn't hear nobody pray" |
### Instruction:
CREATE TABLE table_61300 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has fewer than 32 against and the opposing team of Australia?
### Respo... | SELECT "Date" FROM table_61300 WHERE "Against" < '32' AND "Opposing Teams" = 'australia' |
### Instruction:
CREATE TABLE table_9536 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the friendly competition on 17 December 1967 played at?
### Response:
| SELECT "Venue" FROM table_9536 WHERE "Competition" = 'friendly' AND "Date" = '17 december 1967' |
### Instruction:
CREATE TABLE table_27103 (
"Total" real,
"#" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Viewers" text,
"Air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 3 is the number w... | SELECT MAX("Total") FROM table_27103 WHERE "#" = '3' |
### Instruction:
CREATE TABLE table_15603 (
"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 was the date of the game that had a loss of lidle (10-8)?
### ... | SELECT "Date" FROM table_15603 WHERE "Loss" = 'lidle (10-8)' |
### Instruction:
CREATE TABLE table_33476 (
"Player" text,
"Position" text,
"Round" real,
"Overall" real,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest overall pick from the College of Southern Mississippi that was sel... | SELECT MAX("Overall") FROM table_33476 WHERE "College" = 'southern mississippi' AND "Round" < '6' |
### Instruction:
CREATE TABLE table_18246 (
"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 candidates are listed all together for the inc... | SELECT COUNT("Candidates") FROM table_18246 WHERE "Incumbent" = 'Bob Clement' |
### Instruction:
CREATE TABLE table_24118 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Orangemen points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a record of 6-2?
##... | SELECT "Opponent" FROM table_24118 WHERE "Record" = '6-2' |
### Instruction:
CREATE TABLE table_204_617 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total of games where t... | SELECT COUNT(*) FROM table_204_617 WHERE "result" = 0 |
### 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 total times has this team fi... | SELECT COUNT(*) FROM table_203_521 WHERE "regular season" = '1st, mid south' |
### Instruction:
CREATE TABLE table_56893 (
"Result" text,
"Opponent" text,
"Method" text,
"Event" text,
"Date" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the event with leonardo chocolate in 2009?
### Response:
| SELECT "Event" FROM table_56893 WHERE "Date" = '2009' AND "Opponent" = 'leonardo chocolate' |
### Instruction:
CREATE TABLE table_name_79 (
gillingham_career VARCHAR,
position VARCHAR,
nationality VARCHAR,
goals VARCHAR,
apps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the mf from England play for Gillingham that made 0 goals ... | SELECT gillingham_career FROM table_name_79 WHERE goals = 0 AND apps < 37 AND nationality = "england" AND position = "mf" |
### Instruction:
CREATE TABLE table_30560 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position was the player who was drafte... | SELECT "Position" FROM table_30560 WHERE "NHL team" = 'Washington Capitals' |
### Instruction:
CREATE TABLE table_67998 (
"Year" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least year for david edd... | SELECT MIN("Year") FROM table_67998 WHERE "Men's singles" = 'david eddy' |
### Instruction:
CREATE TABLE table_26769_1 (
country_or_territory_with_flag VARCHAR,
population_density_per_km² VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the country with a population density per km of 3.5/km (/sqmi)?
### Response:
| SELECT country_or_territory_with_flag FROM table_26769_1 WHERE population_density_per_km² = "3.5/km² (/sqmi)" |
### Instruction:
CREATE TABLE table_52573 (
"Player" text,
"Tries" text,
"Conv" text,
"Pens" text,
"Drop" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player has 2 tries and 0 drops?
### Response:
| SELECT "Player" FROM table_52573 WHERE "Drop" = '0' AND "Tries" = '2' |
### Instruction:
CREATE TABLE table_40687 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Class for a year later than 1958, with 4 points?
### Response:
| SELECT "Class" FROM table_40687 WHERE "Year" > '1958' AND "Points" = '4' |
### Instruction:
CREATE TABLE table_40828 (
"Player" text,
"Tries" real,
"Goals" real,
"Field Goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Goal for danny williams, with more than 0 Field Goals?
### Respo... | SELECT MAX("Goals") FROM table_40828 WHERE "Player" = 'danny williams' AND "Field Goals" > '0' |
### Instruction:
CREATE TABLE table_44268 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the report for the game played at the... | SELECT "Report" FROM table_44268 WHERE "Venue" = 'hisense arena' |
### Instruction:
CREATE TABLE table_name_38 (
date VARCHAR,
set_3 VARCHAR,
score VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Score of 2 3, a Time of 20:30, and a Set 3 of 16 25?
### Response:
| SELECT date FROM table_name_38 WHERE score = "2–3" AND time = "20:30" AND set_3 = "16–25" |
### Instruction:
CREATE TABLE table_61269 (
"Episode" text,
"Air date" text,
"Official ITV1 rating" real,
"Weekly rank" text,
"Share" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest official ITV1 rating with 45.4% share?
### Resp... | SELECT MIN("Official ITV1 rating") FROM table_61269 WHERE "Share" = '45.4%' |
### Instruction:
CREATE TABLE table_1479 (
"Player" text,
"Team" text,
"Matches" real,
"Innings" real,
"Runs" real,
"Average" text,
"Highest Score" text,
"100s" real,
"50s" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the h... | SELECT MAX("Matches") FROM table_1479 |
### Instruction:
CREATE TABLE table_8322 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the outgoing ma... | SELECT "Outgoing manager" FROM table_8322 WHERE "Team" = 'heart of midlothian' |
### Instruction:
CREATE TABLE table_203_108 (
id number,
"kilometers" number,
"name" text,
"location" text,
"intersecting routes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- after you complete deganya road , what portion comes next ?
### Respon... | SELECT "name" FROM table_203_108 WHERE id = (SELECT id FROM table_203_108 WHERE "name" = 'deganya road') + 1 |
### Instruction:
CREATE TABLE table_204_52 (
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 is their most frequent competi... | SELECT "competition" FROM table_204_52 GROUP BY "competition" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_19376 (
"Tour" text,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the mixed doubles when tour is h... | SELECT "Mixed doubles" FROM table_19376 WHERE "Tour" = 'Hong Kong Super Series' |
### Instruction:
CREATE TABLE table_11187 (
"State" text,
"Population" real,
"GDP per cap. (PPP)" real,
"Currency" text,
"Gini" real,
"Council votes" real,
"EP seats" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has less than... | SELECT "State" FROM table_11187 WHERE "Council votes" < '4' |
### 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.
-- nigeria has the most gold medals , but who has th... | SELECT "nation" FROM table_203_61 ORDER BY "total" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_14063 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the venue of the competition with a result of 1st before 2009?
### Response:
| SELECT "Venue" FROM table_14063 WHERE "Year" < '2009' AND "Result" = '1st' |
### Instruction:
CREATE TABLE table_20117 (
"Pos." real,
"Driver" text,
"Qualifying" real,
"Race 1" text,
"Race 2" text,
"Race 3" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the race 2 for james winslow
### Response:... | SELECT "Race 2" FROM table_20117 WHERE "Driver" = 'James Winslow' |
### Instruction:
CREATE TABLE courses (
course_name VARCHAR,
course_id VARCHAR
)
CREATE TABLE student_course_registrations (
student_id VARCHAR,
course_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the ids of all students for courses an... | SELECT T1.student_id, T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id |
### Instruction:
CREATE TABLE table_4954 (
"Name" text,
"GP-GS" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Loss has an Avg/G larger than 129.2?
### Response:
| SELECT COUNT("Loss") FROM table_4954 WHERE "Avg/G" > '129.2' |
### Instruction:
CREATE TABLE table_47223 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Total laps for Shinya Nakano at smaller than 10 grids.
### Response:
| SELECT COUNT("Laps") FROM table_47223 WHERE "Rider" = 'shinya nakano' AND "Grid" < '10' |
### Instruction:
CREATE TABLE table_52537 (
"Competition" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Position" text,
"Coach" text,
"Captain" text,
"Main Article" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Captain has Lost ... | SELECT "Captain" FROM table_52537 WHERE "Lost" = '13' |
### Instruction:
CREATE TABLE table_22856 (
"Year" real,
"Worldwide" real,
"Africa" real,
"America" real,
"Asia" real,
"Australia" real,
"Europe" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest year that Europe had 471895?
... | SELECT MAX("Year") FROM table_22856 WHERE "Europe" = '471895' |
### Instruction:
CREATE TABLE table_22000 (
"Name (year commissioned)" text,
"Owner/operator" text,
"Length" text,
"Maximum diameter" text,
"From/to" text,
"Licence number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the length for a ... | SELECT "Length" FROM table_22000 WHERE "Maximum diameter" = '450 mm' |
### Instruction:
CREATE TABLE table_76297 (
"Year" real,
"Date" text,
"Driver / Rider" text,
"Car / Motorcycle" text,
"Time" text,
"Speed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What car/motorcycle goes 91.813mph?
### Response:
| SELECT "Car / Motorcycle" FROM table_76297 WHERE "Speed" = '91.813mph' |
### Instruction:
CREATE TABLE table_35887 (
"Date" text,
"Competition" text,
"Opponents" text,
"Venue" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the opponent at the League Play Offs at home?
### Response:
| SELECT "Opponents" FROM table_35887 WHERE "Venue" = 'home' AND "Competition" = 'league play offs' |
### Instruction:
CREATE TABLE table_66766 (
"Rank" real,
"Year" real,
"Name" text,
"Moving from" text,
"Moving to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the listed year that has a rank smaller than 8 and moving from Olympiacos?
##... | SELECT "Year" FROM table_66766 WHERE "Rank" < '8' AND "Moving from" = 'olympiacos' |
### Instruction:
CREATE TABLE table_7170 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height m / ft" text,
"Floors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many floors have 207 w. hastings st. as the address?
### Resp... | SELECT COUNT("Floors") FROM table_7170 WHERE "Street address" = '207 w. hastings st.' |
### Instruction:
CREATE TABLE table_62054 (
"Round" real,
"Race" text,
"Circuit" text,
"Date" text,
"Event" text,
"Winning driver" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What race was a round smaller than 8, on 6 july?
### Response:
| SELECT "Race" FROM table_62054 WHERE "Round" < '8' AND "Date" = '6 july' |
### Instruction:
CREATE TABLE table_57112 (
"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 coimbatore affilation that was established in 1982?
### Respo... | SELECT "Affiliation" FROM table_57112 WHERE "Estd" = '1982' AND "Location" = 'coimbatore' |
### Instruction:
CREATE TABLE table_67311 (
"Name" text,
"Party" text,
"Hometown" text,
"District" text,
"Term" text,
"Legislatures" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hometown of the representative that served the twenty... | SELECT "Hometown" FROM table_67311 WHERE "Legislatures" = 'twenty-sixth' |
### Instruction:
CREATE TABLE table_31968 (
"Heat Rank" real,
"Lane" real,
"Swimmer" text,
"Country" text,
"Time" real,
"Overall Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For how long did Bolivia have a lane greater than 6?
### Resp... | SELECT COUNT("Time") FROM table_31968 WHERE "Country" = 'bolivia' AND "Lane" > '6' |
### Instruction:
CREATE TABLE table_36064 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Rebounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the lowest amount of 12 games and less than 48 rebounds?
### Response:
| SELECT MIN("Rank") FROM table_36064 WHERE "Games" = '12' AND "Rebounds" < '48' |
### Instruction:
CREATE TABLE table_55719 (
"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 was the venue of the Melbo... | SELECT "Venue" FROM table_55719 WHERE "Home team" = 'melbourne' |
### Instruction:
CREATE TABLE table_8822 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Airport, when Country is 'Egypt', and when ICAO is 'Heba'?
### Response:
| SELECT "Airport" FROM table_8822 WHERE "Country" = 'egypt' AND "ICAO" = 'heba' |
### Instruction:
CREATE TABLE table_7912 (
"Team 1" text,
"Score" text,
"Team 2" text,
"1st round" text,
"2nd round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is team 1 when team 2 is gaz lec ajaccio (d3)?
### Response:
| SELECT "Team 1" FROM table_7912 WHERE "Team 2" = 'gazélec ajaccio (d3)' |
### Instruction:
CREATE TABLE table_51126 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Lost has a Position of 4, and a Drawn smaller than 3?
### Respons... | SELECT AVG("Lost") FROM table_51126 WHERE "Position" = '4' AND "Drawn" < '3' |
### Instruction:
CREATE TABLE table_29474481_4 (
french_head_of_state VARCHAR,
head_of_mission VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many French heads of state have a head of mission of Xavier Daufresne de la Chevalerie?
### Response:
| SELECT COUNT(french_head_of_state) FROM table_29474481_4 WHERE head_of_mission = "Xavier Daufresne de la Chevalerie" |
### Instruction:
CREATE TABLE table_6447 (
"Name" text,
"Pinnacle height" text,
"Structural type" text,
"Main use" text,
"Country" text,
"Town" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Main use of transmitter solt in Hungary?
... | SELECT "Main use" FROM table_6447 WHERE "Country" = 'hungary' AND "Name" = 'transmitter solt' |
### Instruction:
CREATE TABLE table_14502 (
"Status" text,
"Name" text,
"First Performance" text,
"Last Performance" text,
"Style" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the First Performance of Rhys Kosakowski as Billy E... | SELECT "First Performance" FROM table_14502 WHERE "Status" = 'original cast' AND "Name" = 'rhys kosakowski' |
### Instruction:
CREATE TABLE table_51074 (
"Date" text,
"Distance" text,
"Handler" text,
"Event" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was Mike Jackson a handler at the Indianapolis Boat, Sport & Travel Show?
... | SELECT "Date" FROM table_51074 WHERE "Handler" = 'mike jackson' AND "Event" = 'indianapolis boat, sport & travel show' |
### Instruction:
CREATE TABLE table_64640 (
"Name" text,
"Nickname" text,
"Location" text,
"Home ground(s)" text,
"Coach" text,
"Captain" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Home ground(s) listed for the Name Melville Crick... | SELECT "Home ground(s)" FROM table_64640 WHERE "Name" = 'melville cricket club' |
### Instruction:
CREATE TABLE table_75681 (
"Name" text,
"State" text,
"Status" text,
"Title" text,
"Appointment" text,
"Credentials Presented" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What state has an appointment for jul 12, 2001?
### ... | SELECT "State" FROM table_75681 WHERE "Appointment" = 'jul 12, 2001' |
### Instruction:
CREATE TABLE table_29039 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" real,
"Wins" real,
"Poles" real,
"Podiums" real,
"Points" real,
"Final Placing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What i... | SELECT MIN("Wins") FROM table_29039 |
### Instruction:
CREATE TABLE table_60584 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score points in WC Kerrville, when rank was points of 8?
### Resp... | SELECT "Score points" FROM table_60584 WHERE "Event" = 'wc kerrville' AND "Rank points" = '8' |
### Instruction:
CREATE TABLE table_61789 (
"Sign" text,
"Domicile" text,
"Detriment" text,
"Exaltation" text,
"Fall" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which exaltation has a domicile of Saturn and a fall of Jupiter?
### Response:
| SELECT "Exaltation" FROM table_61789 WHERE "Domicile" = 'saturn' AND "Fall" = 'jupiter' |
### Instruction:
CREATE TABLE table_69811 (
"Year" text,
"Men's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year has a Men's doubles of marcus ellis peter mills?
... | SELECT "Year" FROM table_69811 WHERE "Men's doubles" = 'marcus ellis peter mills' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.