instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### 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_54957 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings( $ )" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the highest ranked player that has earnings below 395,386?
### Response:
|
SELECT MAX("Rank") FROM table_54957 WHERE "Earnings( $ )" < '395,386'
|
### Instruction:
CREATE TABLE table_2872 (
"Year" real,
"Title of Drama" text,
"Name of Role" text,
"Nature of Role" text,
"Co-Artists" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every nature of role with year as 2009?
### Response:
|
SELECT "Nature of Role" FROM table_2872 WHERE "Year" = '2009'
|
### Instruction:
CREATE TABLE table_53018 (
"Player" text,
"Rec." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many receptions does Chris Watton with yards of less than 1?
### Response:
|
SELECT COUNT("Rec.") FROM table_53018 WHERE "Player" = 'chris watton' AND "Yards" < '1'
|
### Instruction:
CREATE TABLE bank (
bname VARCHAR,
city VARCHAR,
branch_id VARCHAR
)
CREATE TABLE loan (
branch_id VARCHAR,
loan_type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the city and name of bank branches that provide business loans.
### Response:
|
SELECT T1.bname, T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business'
|
### Instruction:
CREATE TABLE table_204_269 (
id number,
"week" number,
"room" text,
"winning couple" text,
"2nd couple" text,
"3rd couple" text,
"chumps" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what room was previous to week 5 ?
### Response:
|
SELECT "room" FROM table_204_269 WHERE "week" < 5 ORDER BY "week" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_14242137_11 (
regionalliga_west_südwest VARCHAR,
regionalliga_süd VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the regionalliga west/s dwest with regionalliga s d being stuttgarter kickers
### Response:
|
SELECT regionalliga_west_südwest FROM table_14242137_11 WHERE regionalliga_süd = "Stuttgarter Kickers"
|
### Instruction:
CREATE TABLE table_12531 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent is on mar 10?
### Response:
|
SELECT "Opponent" FROM table_12531 WHERE "Date" = 'mar 10'
|
### Instruction:
CREATE TABLE table_75198 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of points for players with 4 touchdowns and more than 0 field goals?
### Response:
|
SELECT AVG("Points") FROM table_75198 WHERE "Touchdowns" = '4' AND "Field goals" > '0'
|
### Instruction:
CREATE TABLE table_28849 (
"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 incumbents was first elected in the Anti-Masonic party?
### Response:
|
SELECT COUNT("First elected") FROM table_28849 WHERE "Party" = 'Anti-Masonic'
|
### Instruction:
CREATE TABLE table_name_87 (
utility_pv INTEGER,
hydro VARCHAR,
renewable_total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest utility PV with hydro great than 289.25 and renweable total larger than 520.07?
### Response:
|
SELECT MIN(utility_pv) FROM table_name_87 WHERE hydro > 289.25 AND renewable_total > 520.07
|
### Instruction:
CREATE TABLE table_61822 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the smallest total with a bronze count of 5 and a gold count less than 8?
### Response:
|
SELECT MIN("Total") FROM table_61822 WHERE "Bronze" = '5' AND "Gold" < '8'
|
### Instruction:
CREATE TABLE table_203_228 (
id number,
"#" number,
"title" text,
"songwriters" text,
"producer(s)" text,
"performer (s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- total number of performers other than o.credle :
### Response:
|
SELECT COUNT(DISTINCT "songwriters") FROM table_203_228 WHERE "songwriters" <> 'o. credle'
|
### Instruction:
CREATE TABLE table_28867 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the 'incumbent' of district south carolina 7?
### Response:
|
SELECT "Incumbent" FROM table_28867 WHERE "District" = 'South Carolina 7'
|
### Instruction:
CREATE TABLE table_11837 (
"Name" text,
"Country" text,
"Reign began" text,
"Reign ended" text,
"Length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Whose reign began in Vietnam and ended in October 1005?
### Response:
|
SELECT "Reign began" FROM table_11837 WHERE "Country" = 'vietnam' AND "Reign ended" = 'october 1005'
|
### Instruction:
CREATE TABLE table_52173 (
"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 was the score of the home team when the away team was Geelong?
### Response:
|
SELECT "Home team score" FROM table_52173 WHERE "Away team" = 'geelong'
|
### Instruction:
CREATE TABLE table_59528 (
"Result" text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which event has Toa Naketoatama as an opponent?
### Response:
|
SELECT "Event" FROM table_59528 WHERE "Opponent" = 'toa naketoatama'
|
### Instruction:
CREATE TABLE table_36895 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue #" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Label of Catalogue # HVNLP26CD from United Kingdom?
### Response:
|
SELECT "Label" FROM table_36895 WHERE "Country" = 'united kingdom' AND "Catalogue #" = 'hvnlp26cd'
|
### Instruction:
CREATE TABLE table_67443 (
"Matches" real,
"Wickets" real,
"Runs" real,
"10WM" real,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most runs for wickets of 66 and matches less than 13
### Response:
|
SELECT MAX("Runs") FROM table_67443 WHERE "Wickets" = '66' AND "Matches" < '13'
|
### Instruction:
CREATE TABLE table_8908 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Stadium had a Result of w 20 16?
### Response:
|
SELECT "Stadium" FROM table_8908 WHERE "Result" = 'w 20–16'
|
### Instruction:
CREATE TABLE table_51762 (
"Production no." text,
"Episode no." real,
"Original Airdate" text,
"Episode Title" text,
"Host" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What host has an original air date of june 11, 2007?
### Response:
|
SELECT "Host" FROM table_51762 WHERE "Original Airdate" = 'june 11, 2007'
|
### Instruction:
CREATE TABLE table_53171 (
"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 venue of the game where Geelong was the away team?
### Response:
|
SELECT "Venue" FROM table_53171 WHERE "Away team" = 'geelong'
|
### Instruction:
CREATE TABLE table_28873 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the running candidates when Joshua Sands was the incumbent?
### Response:
|
SELECT "Candidates" FROM table_28873 WHERE "Incumbent" = 'Joshua Sands'
|
### Instruction:
CREATE TABLE table_34059 (
"Date" text,
"Opponents" text,
"Result F\u2013A" text,
"Attendance" real,
"League position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people in total attended the game on 1 november 1997?
### Response:
|
SELECT COUNT("Attendance") FROM table_34059 WHERE "Date" = '1 november 1997'
|
### Instruction:
CREATE TABLE table_48806 (
"Name" text,
"Launched" text,
"Vehicle" text,
"Ceased operation" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the ceased operation with a launch date of August 8, 1968?
### Response:
|
SELECT "Ceased operation" FROM table_48806 WHERE "Launched" = 'august 8, 1968'
|
### Instruction:
CREATE TABLE table_name_49 (
poll_wins INTEGER,
ties VARCHAR,
poll_losses VARCHAR,
advocate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest poll of the advocate Andy Kindler with poll losses greater than 2 and ties less than 0?
### Response:
|
SELECT MAX(poll_wins) FROM table_name_49 WHERE poll_losses > 2 AND advocate = "andy kindler" AND ties < 0
|
### Instruction:
CREATE TABLE table_204_672 (
id number,
"year" number,
"title" text,
"label" text,
"uk singles chart" number,
"u.s. billboard hot 100 chart" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of years for singles by philips label ?
### Response:
|
SELECT COUNT("year") FROM table_204_672 WHERE "label" = 'philips'
|
### Instruction:
CREATE TABLE table_5504 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total attendance with a result of W 31-21 before week 9?
### Response:
|
SELECT COUNT("Attendance") FROM table_5504 WHERE "Result" = 'w 31-21' AND "Week" < '9'
|
### Instruction:
CREATE TABLE table_74764 (
"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 home team played at western oval?
### Response:
|
SELECT "Home team" FROM table_74764 WHERE "Venue" = 'western oval'
|
### Instruction:
CREATE TABLE table_430 (
"State" text,
"Preliminaries" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average score when the swimsuit score is 8.503?
### Response:
|
SELECT "Average" FROM table_430 WHERE "Swimsuit" = '8.503'
|
### Instruction:
CREATE TABLE table_25062 (
"Name" text,
"#" real,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text,
"High School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hometown of the players from alvin high school?
### Response:
|
SELECT "Home Town" FROM table_25062 WHERE "High School" = 'Alvin'
|
### Instruction:
CREATE TABLE table_17421 (
"Number" real,
"Builder" text,
"Built" text,
"Rebuilt" text,
"Name as rebuilt" text,
"Scrapped/Sold" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the built data for Knocklayd rebuild?
### Response:
|
SELECT "Built" FROM table_17421 WHERE "Name as rebuilt" = 'Knocklayd'
|
### Instruction:
CREATE TABLE table_73396 (
"State (class)" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date of successors formal installation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of successors when the vacator was William North ( F )
### Response:
|
SELECT COUNT("Successor") FROM table_73396 WHERE "Vacator" = 'William North ( F )'
|
### Instruction:
CREATE TABLE table_45296 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which method had a time of 0:46?
### Response:
|
SELECT "Method" FROM table_45296 WHERE "Time" = '0:46'
|
### Instruction:
CREATE TABLE table_62836 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the date in the United Kingdom having a catalog of reveal50cd/lp?
### Response:
|
SELECT "Date" FROM table_62836 WHERE "Catalog" = 'reveal50cd/lp' AND "Region" = 'united kingdom'
|
### Instruction:
CREATE TABLE table_940 (
"Year" real,
"Domestic freight" real,
"Domestic mail" real,
"International freight" real,
"International mail" real,
"Total freight and mail" real,
"Change" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the year with change being +8.0%
### Response:
|
SELECT "Year" FROM table_940 WHERE "Change" = '+8.0%'
|
### Instruction:
CREATE TABLE table_77961 (
"Team" text,
"Played" real,
"Drew" real,
"Lost" real,
"Against" real,
"Difference" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest difference for the team that had less than 0 draws?
### Response:
|
SELECT MAX("Difference") FROM table_77961 WHERE "Drew" < '0'
|
### 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 competition ?
### Response:
|
SELECT "competition" FROM table_204_52 GROUP BY "competition" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_4 (
length VARCHAR,
composer_s_ VARCHAR,
arranger_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Length, when the Composer(s) is Sakdatorn, and when the Arranger(s) is Jitrakorn Mongkoltham?
### Response:
|
SELECT length FROM table_name_4 WHERE composer_s_ = "sakdatorn" AND arranger_s_ = "jitrakorn mongkoltham"
|
### Instruction:
CREATE TABLE table_name_13 (
opponent VARCHAR,
record VARCHAR,
score VARCHAR,
decision VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the opponent when the score was 3 - 2, and the decision was Raycroft, with a record of 25-29-1?
### Response:
|
SELECT opponent FROM table_name_13 WHERE score = "3 - 2" AND decision = "raycroft" AND record = "25-29-1"
|
### Instruction:
CREATE TABLE table_204_913 (
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 the number of games played against vietnam ?
### Response:
|
SELECT COUNT(*) FROM table_204_913 WHERE "opponent" = 'vietnam'
|
### Instruction:
CREATE TABLE table_27319183_5 (
total_itv1_viewers__millions_ VARCHAR,
share___percentage_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total ITV1 viewers in millions for the episode with a share (%) of 28.9?
### Response:
|
SELECT total_itv1_viewers__millions_ FROM table_27319183_5 WHERE share___percentage_ = "28.9"
|
### Instruction:
CREATE TABLE table_5622 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Record has an Event of tpf 5: stars and strikes?
### Response:
|
SELECT "Record" FROM table_5622 WHERE "Event" = 'tpf 5: stars and strikes'
|
### Instruction:
CREATE TABLE table_49711 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"Mult." text,
"Voltage" text,
"Socket" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is L2 Cache, when Model Number is Pentium II 350?
### Response:
|
SELECT "L2 cache" FROM table_49711 WHERE "Model number" = 'pentium ii 350'
|
### Instruction:
CREATE TABLE table_30835 (
"Round" real,
"Date" text,
"Grand Prix" text,
"Circuit" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the race on May 1?
### Response:
|
SELECT "Race Winner" FROM table_30835 WHERE "Date" = 'May 1'
|
### Instruction:
CREATE TABLE table_name_41 (
population VARCHAR,
altitude__mslm_ VARCHAR,
area__km_2__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people have an Altitude (mslm) larger than 302, and an Area (km 2) of 29.2?
### Response:
|
SELECT COUNT(population) FROM table_name_41 WHERE altitude__mslm_ > 302 AND area__km_2__ = 29.2
|
### Instruction:
CREATE TABLE table_30406 (
"Season" text,
"Host" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are all hosts when men's singles is Ma Wenge?
### Response:
|
SELECT "Host" FROM table_30406 WHERE "Mens Singles" = 'Ma Wenge'
|
### Instruction:
CREATE TABLE table_74310 (
"Track no." real,
"Track" text,
"Original Artist" text,
"Soloist(s)" text,
"Vocal Percussionist(s)" text,
"Arranger(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the original artist(s) for track number 6?
### Response:
|
SELECT "Original Artist" FROM table_74310 WHERE "Track no." = '6'
|
### Instruction:
CREATE TABLE table_29616 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Decision" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On how many days in October was the score 6-1?
### Response:
|
SELECT COUNT("October") FROM table_29616 WHERE "Score" = '6-1'
|
### Instruction:
CREATE TABLE table_70881 (
"Title" text,
"Studio" text,
"Role" text,
"Leading lady" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the leading lady in The Lonely Trail for Joseph Kane?
### Response:
|
SELECT "Leading lady" FROM table_70881 WHERE "Director" = 'joseph kane' AND "Title" = 'the lonely trail'
|
### 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.
-- who is the last opposition ?
### Response:
|
SELECT "opposition" FROM table_204_334 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_22506 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 1.79 is the height what is the geographical region?
### Response:
|
SELECT "Geographical Regions" FROM table_22506 WHERE "Height" = '1.79'
|
### Instruction:
CREATE TABLE table_38914 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What record has chicago black hawks as the visitor and march 23 as the date?
### Response:
|
SELECT "Record" FROM table_38914 WHERE "Visitor" = 'chicago black hawks' AND "Date" = 'march 23'
|
### Instruction:
CREATE TABLE table_name_96 (
population__total_ INTEGER,
year VARCHAR,
_barcaldine_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the high Population (total) from 1976 with a (Barcaldine) smaller than 1,780?
### Response:
|
SELECT MAX(population__total_) FROM table_name_96 WHERE year = 1976 AND _barcaldine_ < 1 OFFSET 780
|
### Instruction:
CREATE TABLE table_64652 (
"Rank" real,
"Name" text,
"Status" text,
"City" text,
"Floors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of floors when the r Rank larger than 41, and a City of parel?
### Response:
|
SELECT "Floors" FROM table_64652 WHERE "Rank" > '41' AND "City" = 'parel'
|
### Instruction:
CREATE TABLE table_204_927 (
id number,
"title" text,
"year" number,
"artist(s)" text,
"album" text,
"writer(s)" text,
"producer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year is next to the title cheat on you ?
### Response:
|
SELECT "year" FROM table_204_927 WHERE "title" = '"cheat on you"'
|
### Instruction:
CREATE TABLE table_34267 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has Attendances of 60,594?
### Response:
|
SELECT "Opponent" FROM table_34267 WHERE "Attendance" = '60,594'
|
### Instruction:
CREATE TABLE table_1341707_15 (
incumbent VARCHAR,
district VARCHAR,
party VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the democratic incumbent in the Illinois 11 district who was re-elected?
### Response:
|
SELECT incumbent FROM table_1341707_15 WHERE party = "Democratic" AND result = "Re-elected" AND district = "Illinois 11"
|
### Instruction:
CREATE TABLE table_55542 (
"Tournament" text,
"Wins" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of events with a top-25 less than 0?
### Response:
|
SELECT COUNT("Events") FROM table_55542 WHERE "Top-25" < '0'
|
### Instruction:
CREATE TABLE table_43100 (
"Date" text,
"Race" text,
"Country" text,
"Winner" text,
"Team" text,
"World Cup Leader" text,
"Leader's Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country was the race in on April 27?
### Response:
|
SELECT "Country" FROM table_43100 WHERE "Date" = 'april 27'
|
### Instruction:
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Return the flag that is most common among all ships.
### Response:
|
SELECT flag FROM ship GROUP BY flag ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_13836704_9 (
airport VARCHAR,
_percentage_change_2005_2006 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the airport with % change 2005/2006 being 13.0%
### Response:
|
SELECT airport FROM table_13836704_9 WHERE _percentage_change_2005_2006 = "13.0%"
|
### Instruction:
CREATE TABLE table_name_89 (
gold INTEGER,
bronze VARCHAR,
silver VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of gold medals when the total was 1335 medals, with more than 469 bronzes and more than 14 silvers?
### Response:
|
SELECT AVG(gold) FROM table_name_89 WHERE silver > 14 AND total = 1335 AND bronze > 469
|
### 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_79179 (
"Rank" real,
"Club" text,
"Season" text,
"Goals" real,
"Apps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many apps when the rank was after 13 and having more than 73 goals?
### Response:
|
SELECT AVG("Apps") FROM table_79179 WHERE "Goals" > '73' AND "Rank" > '13'
|
### Instruction:
CREATE TABLE table_11305 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did the player from the saskatchewan roughriders (via toronto) play?
### Response:
|
SELECT "Position" FROM table_11305 WHERE "CFL Team" = 'saskatchewan roughriders (via toronto)'
|
### Instruction:
CREATE TABLE table_17156199_1 (
film_title_used_in_nomination VARCHAR,
original_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the nominated film title of (shyamol chhaya)?
### Response:
|
SELECT film_title_used_in_nomination FROM table_17156199_1 WHERE original_title = "শ্যামল ছায়া (Shyamol Chhaya)"
|
### Instruction:
CREATE TABLE table_16411 (
"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 title where romaji is titles da.i.su.ki
### Response:
|
SELECT "Japanese title" FROM table_16411 WHERE "Romaji title" = 'Da.i.su.ki'
|
### Instruction:
CREATE TABLE table_35243 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many attendances had the Detroit Lions as opponents?
### Response:
|
SELECT SUM("Attendance") FROM table_35243 WHERE "Opponent" = 'detroit lions'
|
### Instruction:
CREATE TABLE table_21817 (
"Season" text,
"Timeslot" text,
"Premiere" text,
"Finale" text,
"TV season" text,
"Ranking" text,
"Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What seasons had a ranking of #47?
### Response:
|
SELECT "Season" FROM table_21817 WHERE "Ranking" = '#47'
|
### Instruction:
CREATE TABLE table_10471 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many laps was the driver jacques villeneuve and the grid more than 7?
### Response:
|
SELECT COUNT("Laps") FROM table_10471 WHERE "Driver" = 'jacques villeneuve' AND "Grid" > '7'
|
### Instruction:
CREATE TABLE table_61610 (
"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 of Howard Clark from England with a To Par of +1?
### Response:
|
SELECT "Score" FROM table_61610 WHERE "To par" = '+1' AND "Country" = 'england' AND "Player" = 'howard clark'
|
### Instruction:
CREATE TABLE student (
lname VARCHAR,
sex VARCHAR,
city_code VARCHAR,
age VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the last name of students who is either female (sex is F) and living in the city of code BAL or male (sex is M) and in age of below 20.
### Response:
|
SELECT lname FROM student WHERE sex = 'F' AND city_code = 'BAL' UNION SELECT lname FROM student WHERE sex = 'M' AND age < 20
|
### Instruction:
CREATE TABLE table_39500 (
"Season" text,
"Team" text,
"Wins" real,
"Losses" real,
"Draws" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of losses for Nottingham City with fewer than 0 wins?
### Response:
|
SELECT MIN("Losses") FROM table_39500 WHERE "Team" = 'nottingham city' AND "Wins" < '0'
|
### Instruction:
CREATE TABLE table_56213 (
"Edition" text,
"Round" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent for the 1985 World Group i edition?
### Response:
|
SELECT "Opponent" FROM table_56213 WHERE "Edition" = '1985 world group i'
|
### Instruction:
CREATE TABLE match_season (
College VARCHAR,
Team VARCHAR
)
CREATE TABLE team (
Team_id VARCHAR,
Name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many distinct colleges are associated with players from the team with name 'Columbus Crew'.
### Response:
|
SELECT COUNT(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew"
|
### Instruction:
CREATE TABLE table_38194 (
"Rank" real,
"Name" text,
"Height m (ft)" text,
"Floors" real,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the earliest year with rank 20 and less than 60 floors?
### Response:
|
SELECT MIN("Year") FROM table_38194 WHERE "Rank" = '20' AND "Floors" < '60'
|
### Instruction:
CREATE TABLE table_52146 (
"Result" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event was in hong kong and went less than 2 rounds?
### Response:
|
SELECT "Event" FROM table_52146 WHERE "Round" < '2' AND "Location" = 'hong kong'
|
### Instruction:
CREATE TABLE table_name_98 (
rank INTEGER,
name VARCHAR,
source VARCHAR,
out_of VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank that has fao as a source and an out greater than 50, with dietary calorie intake as the name?
### Response:
|
SELECT MAX(rank) FROM table_name_98 WHERE source = "fao" AND out_of > 50 AND name = "dietary calorie intake"
|
### 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_75972 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score with a Date that is 2008-06-28?
### Response:
|
SELECT "Score" FROM table_75972 WHERE "Date" = '2008-06-28'
|
### Instruction:
CREATE TABLE table_55426 (
"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 loss of the Mariners game when they had a record of 22-35?
### Response:
|
SELECT "Loss" FROM table_55426 WHERE "Record" = '22-35'
|
### Instruction:
CREATE TABLE table_59456 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Date of mercedes, and a Circuit of elgin?
### Response:
|
SELECT "Date" FROM table_59456 WHERE "Winning constructor" = 'mercedes' AND "Circuit" = 'elgin'
|
### Instruction:
CREATE TABLE table_61944 (
"Summoned" text,
"Elected" text,
"Assembled" text,
"1st member" text,
"2nd member" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Summoned, when Elected is 'March 1298'?
### Response:
|
SELECT "Summoned" FROM table_61944 WHERE "Elected" = 'march 1298'
|
### Instruction:
CREATE TABLE table_29826467_2 (
lmp2_winning_team VARCHAR,
flm_winning_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- if the flm winning team is no. 99 jmb racing what is the name of the lmp2 winning team
### Response:
|
SELECT lmp2_winning_team FROM table_29826467_2 WHERE flm_winning_team = "No. 99 JMB Racing"
|
### Instruction:
CREATE TABLE table_41267 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the language of the television service cartello promozionale sky hd?
### Response:
|
SELECT "Language" FROM table_41267 WHERE "Television service" = 'cartello promozionale sky hd'
|
### Instruction:
CREATE TABLE table_8570 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Rebounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How few games are there for a rank more than 1 and more than 212 rebounds?
### Response:
|
SELECT MIN("Games") FROM table_8570 WHERE "Rank" > '1' AND "Rebounds" > '212'
|
### 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 selected before round 6?
### Response:
|
SELECT MAX("Overall") FROM table_33476 WHERE "College" = 'southern mississippi' AND "Round" < '6'
|
### Instruction:
CREATE TABLE table_1324 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" real,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT WAS HER SONG CHOICE WHEN THE WEEK WAS TOP 10?
### Response:
|
SELECT "Song choice" FROM table_1324 WHERE "Week #" = 'Top 10'
|
### Instruction:
CREATE TABLE table_30438 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school is located in Huntsville, Texas?
### Response:
|
SELECT "Institution" FROM table_30438 WHERE "Location" = 'Huntsville, Texas'
|
### 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_69753 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the opponent at the Herceg Novi tournament?
### Response:
|
SELECT "Opponent" FROM table_69753 WHERE "Tournament" = 'herceg novi'
|
### Instruction:
CREATE TABLE table_75764 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Tournament has a Date of jul 14, 2013?
### Response:
|
SELECT "Tournament" FROM table_75764 WHERE "Date" = 'jul 14, 2013'
|
### Instruction:
CREATE TABLE table_46588 (
"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 Score, when To Par is '+1', and when Player is 'Mike Souchak'?
### Response:
|
SELECT "Score" FROM table_46588 WHERE "To Par" = '+1' AND "Player" = 'mike souchak'
|
### Instruction:
CREATE TABLE table_53933 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Grid with fewer than 65 Laps and with Driver Tim Schenken?
### Response:
|
SELECT MIN("Grid") FROM table_53933 WHERE "Laps" < '65' AND "Driver" = 'tim schenken'
|
### Instruction:
CREATE TABLE table_8188 (
"Club" text,
"Sport" text,
"Founded" real,
"League" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Club which has a Founded larger than 1875, and a Sport of football?
### Response:
|
SELECT "Club" FROM table_8188 WHERE "Founded" > '1875' AND "Sport" = 'football'
|
### 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 table_64892 (
"Size" text,
"Density" text,
"Tracks" real,
"Coercivity" text,
"Unformatted capacity per side" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many tracks have an unformatted capacity per side of 2000kb?
### Response:
|
SELECT COUNT("Tracks") FROM table_64892 WHERE "Unformatted capacity per side" = '2000kb'
|
### Instruction:
CREATE TABLE table_18925 (
"Date" text,
"Winning Team" text,
"Score" text,
"Winning Pitcher" text,
"Losing Pitcher" text,
"Attendance" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the game on may 21?
### Response:
|
SELECT "Winning Team" FROM table_18925 WHERE "Date" = 'May 21'
|
### Instruction:
CREATE TABLE table_203_218 (
id number,
"pos" number,
"class" text,
"no" number,
"team" text,
"drivers" text,
"chassis" text,
"engine" text,
"laps" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who only completed 7 laps ?
### Response:
|
SELECT "team" FROM table_203_218 WHERE "laps" = 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.