instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_43026 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During which week was the earliest game with an attendance of 65,904 people?
### Response:
|
SELECT MIN("Week") FROM table_43026 WHERE "Attendance" = '65,904'
|
### Instruction:
CREATE TABLE table_8439 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The 2nd leg is what for the Atl tico Madrid as Team 1?
### Response:
|
SELECT "2nd leg" FROM table_8439 WHERE "Team 1" = 'atlético madrid'
|
### Instruction:
CREATE TABLE table_59113 (
"Benalla DFL" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Byes" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the most wins of Tatong?
### Response:
|
SELECT MAX("Wins") FROM table_59113 WHERE "Benalla DFL" = 'tatong'
|
### Instruction:
CREATE TABLE table_200_3 (
id number,
"year" number,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"breeder" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in which year did seattle slew win the triple crown ?
### Response:
|
SELECT "year" FROM table_200_3 WHERE "winner" = 'seattle slew'
|
### Instruction:
CREATE TABLE table_45796 (
"Year" text,
"Result" text,
"Matches" text,
"Wins" text,
"Draws" text,
"Losses" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Draws, when Wins is 'Did Not Qualify'?
### Response:
|
SELECT "Draws" FROM table_45796 WHERE "Wins" = 'did not qualify'
|
### Instruction:
CREATE TABLE table_21693 (
"Winner" text,
"Country" text,
"Winter Olympics" text,
"FIS Nordic World Ski Championships" text,
"Holmenkollen" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did Thorleif Haug win the Winter Olympics?
### Response:
|
SELECT "Winter Olympics" FROM table_21693 WHERE "Winner" = 'Thorleif Haug'
|
### Instruction:
CREATE TABLE table_name_91 (
rank__night_ INTEGER,
episode VARCHAR,
rating VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest nightly rank for an episode after episode 1 with a rating/share of 2.6/8?
### Response:
|
SELECT MIN(rank__night_) FROM table_name_91 WHERE rating / SHARE(18 - 49) = 2.6 / 8 AND episode > 1
|
### Instruction:
CREATE TABLE table_42698 (
"Result" text,
"Record" text,
"Opponent" text,
"Method" text,
"Date" text,
"Round" real,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was his record in 1987?
### Response:
|
SELECT "Record" FROM table_42698 WHERE "Date" = '1987'
|
### Instruction:
CREATE TABLE table_52039 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total pick numbers for the CFL team Edmonton Eskimos?
### Response:
|
SELECT SUM("Pick #") FROM table_52039 WHERE "CFL Team" = 'edmonton eskimos'
|
### Instruction:
CREATE TABLE table_78642 (
"Battle" text,
"Date" text,
"Bulgarian Commander" text,
"Latin Commander" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Result of the battle with Latin Commander Boniface of Montferrat?
### Response:
|
SELECT "Result" FROM table_78642 WHERE "Latin Commander" = 'boniface of montferrat'
|
### Instruction:
CREATE TABLE table_name_70 (
year_named INTEGER,
latitude VARCHAR,
diameter__km_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Year Named, when Latitude is 37.9N, and when Diameter (km) is greater than 76?
### Response:
|
SELECT AVG(year_named) FROM table_name_70 WHERE latitude = "37.9n" AND diameter__km_ > 76
|
### Instruction:
CREATE TABLE table_203_105 (
id number,
"name" text,
"street address" text,
"years as tallest" text,
"height\nft (m)" text,
"floors" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name the tallest building .
### Response:
|
SELECT "name" FROM table_203_105 ORDER BY "height\nft (m)" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_37056 (
"Game #" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first game that has a home team of Detroit?
### Response:
|
SELECT MIN("Game #") FROM table_37056 WHERE "Home" = 'detroit'
|
### Instruction:
CREATE TABLE table_10508 (
"Game" real,
"Date" text,
"Score" text,
"Location" text,
"Time" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the game that the attendance was 24,694?
### Response:
|
SELECT MIN("Game") FROM table_10508 WHERE "Attendance" = '24,694'
|
### Instruction:
CREATE TABLE table_35235 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the match on December 19, 2009?
### Response:
|
SELECT "Score" FROM table_35235 WHERE "Date" = 'december 19, 2009'
|
### Instruction:
CREATE TABLE table_16751596_13 (
lead_maragin VARCHAR,
dates_administered VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On July 17, 2008, what was the total number of lead maragin?
### Response:
|
SELECT COUNT(lead_maragin) FROM table_16751596_13 WHERE dates_administered = "July 17, 2008"
|
### Instruction:
CREATE TABLE table_name_6 (
parent_magazine VARCHAR,
title VARCHAR,
frequency VARCHAR,
magazine_type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the parent magazine for the manga magazine, dengeki moeoh that was issued bimonthly?
### Response:
|
SELECT parent_magazine FROM table_name_6 WHERE frequency = "bimonthly" AND magazine_type = "manga" AND title = "dengeki moeoh"
|
### Instruction:
CREATE TABLE table_52307 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver had brm as a constructor and a time/retired of engine?
### Response:
|
SELECT "Driver" FROM table_52307 WHERE "Constructor" = 'brm' AND "Time/Retired" = 'engine'
|
### Instruction:
CREATE TABLE table_1602 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the census ranking when the area is 78.67 ?
### Response:
|
SELECT "Census Ranking" FROM table_1602 WHERE "Area km 2" = '78.67'
|
### Instruction:
CREATE TABLE table_77435 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Event has 5th Position in the European Championships Competition?
### Response:
|
SELECT "Event" FROM table_77435 WHERE "Competition" = 'european championships' AND "Position" = '5th'
|
### Instruction:
CREATE TABLE table_69793 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the authority for roll of 96?
### Response:
|
SELECT "Authority" FROM table_69793 WHERE "Roll" = '96'
|
### Instruction:
CREATE TABLE table_15438 (
"Week" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the theme for Vegas Verdicts week with a result of Advanced?
### Response:
|
SELECT "Theme" FROM table_15438 WHERE "Result" = 'advanced' AND "Week" = 'vegas verdicts'
|
### Instruction:
CREATE TABLE table_35416 (
"Week" real,
"Date" text,
"Opponent" text,
"Time ( ET )" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many weeks have an Opponent of at new york giants?
### Response:
|
SELECT COUNT("Week") FROM table_35416 WHERE "Opponent" = 'at new york giants'
|
### Instruction:
CREATE TABLE table_33382 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"2012 club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Weight for the 2012 club, Victorian Tigers?
### Response:
|
SELECT "Weight" FROM table_33382 WHERE "2012 club" = 'victorian tigers'
|
### Instruction:
CREATE TABLE table_203_798 (
id number,
"party" text,
"votes" text,
"%" number,
"swing" number,
"seats" number,
"change" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many seats were gained by the australian labor party ?
### Response:
|
SELECT "change" FROM table_203_798 WHERE "party" = 'australian labor party'
|
### Instruction:
CREATE TABLE table_10299 (
"Name" text,
"Type" text,
"Local board" text,
"Suburb" text,
"Authority" text,
"Decile" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which local board does the Clendon Teen Parent Unit belong to?
### Response:
|
SELECT "Local board" FROM table_10299 WHERE "Name" = 'clendon teen parent unit'
|
### Instruction:
CREATE TABLE table_5832 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of Game 2 in the series against the Florida Panthers?
### Response:
|
SELECT "Score" FROM table_5832 WHERE "Opponent" = 'florida panthers' AND "Game" = '2'
|
### Instruction:
CREATE TABLE table_2230 (
"Pos" text,
"No" text,
"Driver" text,
"Constructor" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver was number 2 ?
### Response:
|
SELECT "Driver" FROM table_2230 WHERE "No" = '2‡'
|
### Instruction:
CREATE TABLE table_1555308_1 (
condition VARCHAR,
bleeding_time VARCHAR,
prothrombin_time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which condition(s) is bleeding time prolonged and prothrombin time unaffected?
### Response:
|
SELECT condition FROM table_1555308_1 WHERE bleeding_time = "Prolonged" AND prothrombin_time = "Unaffected"
|
### Instruction:
CREATE TABLE table_47226 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" text,
"Position" text,
"Years" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player wears the number 2 on his jersey?
### Response:
|
SELECT "Player" FROM table_47226 WHERE "Jersey Number(s)" = '2'
|
### Instruction:
CREATE TABLE table_6349 (
"Country" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total when the gold of 0, and a bronze larger than 1?
### Response:
|
SELECT MAX("Total") FROM table_6349 WHERE "Gold" = '0' AND "Bronze" > '1'
|
### Instruction:
CREATE TABLE table_34889 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Record has an Attendance of 24,597?
### Response:
|
SELECT "Record" FROM table_34889 WHERE "Attendance" = '24,597'
|
### Instruction:
CREATE TABLE table_name_75 (
position INTEGER,
wins VARCHAR,
points VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest position of club lietava-2 jonava, which has more than 12 points and more than 7 wins?
### Response:
|
SELECT MAX(position) FROM table_name_75 WHERE points > 12 AND club = "lietava-2 jonava" AND wins > 7
|
### Instruction:
CREATE TABLE table_72953 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times did Robin Hayes run?
### Response:
|
SELECT COUNT("Candidates") FROM table_72953 WHERE "Incumbent" = 'Robin Hayes'
|
### Instruction:
CREATE TABLE table_62020 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Week was the Attendance 17,737?
### Response:
|
SELECT COUNT("Week") FROM table_62020 WHERE "Attendance" = '17,737'
|
### Instruction:
CREATE TABLE table_204_85 (
id number,
"dates" text,
"tournament" text,
"host country" text,
"winner" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the country listed the first time there was a new tournament ?
### Response:
|
SELECT "host country" FROM table_204_85 WHERE "notes" = 'new tournament' ORDER BY id LIMIT 1
|
### Instruction:
CREATE TABLE table_61092 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place did the player that took won $350 finish in?
### Response:
|
SELECT "Place" FROM table_61092 WHERE "Money ( $ )" = '350'
|
### Instruction:
CREATE TABLE table_26391 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power kW" text,
"Coverage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many power kw have a frequency of 93.7 mhz?
### Response:
|
SELECT COUNT("Power kW") FROM table_26391 WHERE "Frequency" = '93.7 MHz'
|
### Instruction:
CREATE TABLE table_74731 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" text,
"Laps" real,
"Winnings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average car number of all the drivers with 109 points?
### Response:
|
SELECT AVG("Car #") FROM table_74731 WHERE "Points" = '109'
|
### Instruction:
CREATE TABLE table_65131 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's Spain's lane with a heat less than 4?
### Response:
|
SELECT AVG("Lane") FROM table_65131 WHERE "Nationality" = 'spain' AND "Heat" < '4'
|
### Instruction:
CREATE TABLE table_75763 (
"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 Date has a Runner(s)-up of fred funk?
### Response:
|
SELECT "Date" FROM table_75763 WHERE "Runner(s)-up" = 'fred funk'
|
### Instruction:
CREATE TABLE table_204_383 (
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.
-- number of nations that earned no bronze medals
### Response:
|
SELECT COUNT("nation") FROM table_204_383 WHERE "bronze" = 0
|
### Instruction:
CREATE TABLE table_204_772 (
id number,
"team" text,
"county" text,
"wins" number,
"years won" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ballymore eustace is from the same county as what team that won in 2009 ?
### Response:
|
SELECT "team" FROM table_204_772 WHERE "years won" = 2009
|
### Instruction:
CREATE TABLE table_name_54 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What 2008 has 1r as a 2010, A as the 2007, and 1r as the 2009?
### Response:
|
SELECT 2008 FROM table_name_54 WHERE 2010 = "1r" AND 2007 = "a" AND 2009 = "1r"
|
### Instruction:
CREATE TABLE table_78352 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has the low lap total in a maserati with grid 2?
### Response:
|
SELECT MIN("Laps") FROM table_78352 WHERE "Constructor" = 'maserati' AND "Grid" = '2'
|
### Instruction:
CREATE TABLE table_19265 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did Albert Herrnstein make?
### Response:
|
SELECT "Points" FROM table_19265 WHERE "Player" = 'Albert Herrnstein'
|
### Instruction:
CREATE TABLE table_66120 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Venue of the King's Cup 1998?
### Response:
|
SELECT "Venue" FROM table_66120 WHERE "Competition" = 'king''s cup 1998'
|
### Instruction:
CREATE TABLE table_204_48 (
id number,
"date" text,
"race name" text,
"location" text,
"uci rating" text,
"winner" text,
"team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- is the us average uci rating above or below 2 ?
### Response:
|
SELECT (SELECT AVG("uci rating") FROM table_204_48) > 2
|
### Instruction:
CREATE TABLE table_203_113 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country earned the most gold medals ?
### Response:
|
SELECT "nation" FROM table_203_113 ORDER BY "gold" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_2468961_2 (
no_in_series INTEGER,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What episode number in the series originally aired on February 28, 1992?
### Response:
|
SELECT MIN(no_in_series) FROM table_2468961_2 WHERE original_air_date = "February 28, 1992"
|
### Instruction:
CREATE TABLE table_52738 (
"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 scory when calgary was visiting?
### Response:
|
SELECT "Score" FROM table_52738 WHERE "Visitor" = 'calgary'
|
### Instruction:
CREATE TABLE table_203_607 (
id number,
"catalogue number" text,
"artist" text,
"release title" text,
"format" text,
"release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the only release title for the artist black sun productions ?
### Response:
|
SELECT "release title" FROM table_203_607 WHERE "artist" = 'black sun productions'
|
### Instruction:
CREATE TABLE table_27361 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the all the players whose position is guard in college Clemson?
### Response:
|
SELECT "Player" FROM table_27361 WHERE "College" = 'Clemson' AND "Position" = 'Guard'
|
### Instruction:
CREATE TABLE table_12998 (
"Club" text,
"City" text,
"Stadium" text,
"2006\u201307 result" text,
"Capacity" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total capacity for the city of Trogir?
### Response:
|
SELECT SUM("Capacity") FROM table_12998 WHERE "City" = 'trogir'
|
### Instruction:
CREATE TABLE table_57418 (
"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 team plays their home games in Victoria Park?
### Response:
|
SELECT "Home team" FROM table_57418 WHERE "Venue" = 'victoria park'
|
### Instruction:
CREATE TABLE table_31954 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the latest week that the Tampa Bay Buccaneers were an opponent?
### Response:
|
SELECT MAX("Week") FROM table_31954 WHERE "Opponent" = 'tampa bay buccaneers'
|
### Instruction:
CREATE TABLE table_47870 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT SCORE HAD A LOSS AND RECORD OF 1-1?
### Response:
|
SELECT "Score" FROM table_47870 WHERE "Result" = 'loss' AND "Record" = '1-1'
|
### Instruction:
CREATE TABLE table_59252 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 1997, what was the final total?
### Response:
|
SELECT "Total" FROM table_59252 WHERE "Year(s) won" = '1997'
|
### Instruction:
CREATE TABLE table_204_15 (
id number,
"year" number,
"date" text,
"venue" text,
"city" text,
"country" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- is the usa on the chart more or less than 7 times ?
### Response:
|
SELECT (SELECT COUNT(*) FROM table_204_15 WHERE "country" = 'usa') > 7
|
### Instruction:
CREATE TABLE table_54590 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the school of the player from Dallas, TX?
### Response:
|
SELECT "School" FROM table_54590 WHERE "Hometown" = 'dallas, tx'
|
### Instruction:
CREATE TABLE table_51779 (
"Name" text,
"Years" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Years that has the Name of arapohue school?
### Response:
|
SELECT "Years" FROM table_51779 WHERE "Name" = 'arapohue school'
|
### Instruction:
CREATE TABLE table_451 (
"Character(s)" text,
"First Appearance" text,
"Cover Date" text,
"Publisher" text,
"Estimated Value" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the estimated value where cover date is august 1962
### Response:
|
SELECT "Estimated Value" FROM table_451 WHERE "Cover Date" = 'August 1962'
|
### Instruction:
CREATE TABLE table_56318 (
"Episode" text,
"Title" text,
"Date of emission" text,
"Audience" text,
"Share" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which title had an audience of 4.629.000?
### Response:
|
SELECT "Title" FROM table_56318 WHERE "Audience" = '4.629.000'
|
### Instruction:
CREATE TABLE table_name_61 (
capacity INTEGER,
class VARCHAR,
vehicle VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Capacity has a Class of cm22, and a Vehicle of 1999 subaru impreza wrx sti?
### Response:
|
SELECT MIN(capacity) FROM table_name_61 WHERE class = "cm22" AND vehicle = "1999 subaru impreza wrx sti"
|
### Instruction:
CREATE TABLE table_18369 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What candidates ran in the election with don fuqua?
### Response:
|
SELECT "Candidates" FROM table_18369 WHERE "Incumbent" = 'Don Fuqua'
|
### Instruction:
CREATE TABLE table_25920 (
"Episode" text,
"First broadcast" text,
"Seans team" text,
"Jons team" text,
"Scores" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the first broadcast for tina malone and joe wilkinson
### Response:
|
SELECT "First broadcast" FROM table_25920 WHERE "Seans team" = 'Tina Malone and Joe Wilkinson'
|
### Instruction:
CREATE TABLE table_203_607 (
id number,
"catalogue number" text,
"artist" text,
"release title" text,
"format" text,
"release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which artists had more then 6 release titles
### Response:
|
SELECT "artist" FROM table_203_607 GROUP BY "artist" HAVING COUNT("release title") > 6
|
### Instruction:
CREATE TABLE table_10236830_1 (
actors_name VARCHAR,
film_name VARCHAR,
nomination VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the actors name for fuchzhou and nomination was best non-professional actor?
### Response:
|
SELECT actors_name FROM table_10236830_1 WHERE film_name = "Fuchzhou" AND nomination = "Best Non-Professional Actor"
|
### Instruction:
CREATE TABLE table_45311 (
"Season" real,
"Team 1" text,
"Score" text,
"Team 2" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Season that has the Team 2 of hanoi acb?
### Response:
|
SELECT "Season" FROM table_45311 WHERE "Team 2" = 'hanoi acb'
|
### Instruction:
CREATE TABLE table_79071 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Total of australia and a To par smaller than 7?
### Response:
|
SELECT MIN("Total") FROM table_79071 WHERE "Country" = 'australia' AND "To par" < '7'
|
### Instruction:
CREATE TABLE table_37777 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of game had a 0:0 result?
### Response:
|
SELECT "Type of game" FROM table_37777 WHERE "Results\u00b9" = '0:0'
|
### Instruction:
CREATE TABLE table_67823 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the laps for qual of 144.665
### Response:
|
SELECT SUM("Laps") FROM table_67823 WHERE "Qual" = '144.665'
|
### Instruction:
CREATE TABLE table_name_55 (
appointed_by VARCHAR,
title VARCHAR,
representative VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Appointed by that has the Title of Ambassador Extraordinary and Plenipotentiary and has a Representative of Spruille Braden?
### Response:
|
SELECT appointed_by FROM table_name_55 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "spruille braden"
|
### Instruction:
CREATE TABLE table_26385848_1 (
main_language_s_ VARCHAR,
year__ceremony_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the year (ceremony) 1998 (71st), what are all the main languages?
### Response:
|
SELECT main_language_s_ FROM table_26385848_1 WHERE year__ceremony_ = "1998 (71st)"
|
### Instruction:
CREATE TABLE table_67063 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Johnnie Parsons rank when he completed over 200 laps?
### Response:
|
SELECT "Rank" FROM table_67063 WHERE "Laps" > '200'
|
### Instruction:
CREATE TABLE table_50240 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the name listed for the royal house of jiang and a title of duke?
### Response:
|
SELECT "Name" FROM table_50240 WHERE "Title" = 'duke' AND "Royal house" = 'jiang'
|
### Instruction:
CREATE TABLE table_30484 (
"Parent unit" text,
"Geschwader Base" text,
"Unit (Gruppe/Staffel)" text,
"Aircraft Type" text,
"Commanding Officer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the parent unit for josef priller
### Response:
|
SELECT "Parent unit" FROM table_30484 WHERE "Commanding Officer" = 'Josef Priller'
|
### Instruction:
CREATE TABLE table_12464 (
"College or Campus Name" text,
"Location" text,
"District" text,
"Affiliation" text,
"Estd" real,
"Weblink" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which district was established in 1942?
### Response:
|
SELECT "District" FROM table_12464 WHERE "Estd" = '1942'
|
### Instruction:
CREATE TABLE table_69255 (
"Week" real,
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home stadium of the Tennessee Titans?
### Response:
|
SELECT "Stadium" FROM table_69255 WHERE "Host Team" = 'tennessee titans'
|
### Instruction:
CREATE TABLE table_16670746_2 (
fastest_lap VARCHAR,
winning_team VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the fastest lap in the race won by Team Impul at the Twin Ring Motegi circuit?
### Response:
|
SELECT fastest_lap FROM table_16670746_2 WHERE winning_team = "Team Impul" AND circuit = "Twin Ring Motegi"
|
### Instruction:
CREATE TABLE table_name_8 (
draws INTEGER,
goal_difference VARCHAR,
points VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest draws that have 31 for points, wins greater than 12, with a goal difference less than 11?
### Response:
|
SELECT MAX(draws) FROM table_name_8 WHERE points = 31 AND wins > 12 AND goal_difference < 11
|
### Instruction:
CREATE TABLE table_203_370 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the total number of times the position of 1st place was earned ?
### Response:
|
SELECT COUNT(*) FROM table_203_370 WHERE "position" = 1
|
### Instruction:
CREATE TABLE table_58749 (
"South West DFL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many byes has a draw larger than 0?
### Response:
|
SELECT COUNT("Byes") FROM table_58749 WHERE "Draws" > '0'
|
### Instruction:
CREATE TABLE table_49932 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the To par of the player with a t14 Finish?
### Response:
|
SELECT "To par" FROM table_49932 WHERE "Finish" = 't14'
|
### Instruction:
CREATE TABLE table_name_94 (
prize_money___$__ VARCHAR,
country VARCHAR,
rank VARCHAR,
events VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What amount of prize money was there when the rank was less than 7, there were more than 6 events, and the country was Fiji?
### Response:
|
SELECT prize_money___$__ FROM table_name_94 WHERE rank < 7 AND events > 6 AND country = "fiji"
|
### Instruction:
CREATE TABLE table_203_375 (
id number,
"name" text,
"year built" text,
"country" text,
"town" text,
"height" text,
"remarks" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many pylons are at least 80 meters tall ?
### Response:
|
SELECT COUNT("name") FROM table_203_375 WHERE "height" >= 80
|
### Instruction:
CREATE TABLE table_24222929_3 (
original_airdate VARCHAR,
live VARCHAR,
sd_total_viewers VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the episode that had 5.09 million total viewers (both Live and SD types) first air?
### Response:
|
SELECT original_airdate FROM table_24222929_3 WHERE live + sd_total_viewers = "5.09 million"
|
### Instruction:
CREATE TABLE table_4849 (
"Player" text,
"Nationality" text,
"Position" text,
"From" real,
"School/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality with a forward position from a year after 2005?
### Response:
|
SELECT "Nationality" FROM table_4849 WHERE "Position" = 'forward' AND "From" > '2005'
|
### Instruction:
CREATE TABLE table_18785 (
"City of license/Market" text,
"Station" text,
"Channel TV ( DT )" text,
"Years owned" text,
"Current Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What TV channel had a license from Boston?
### Response:
|
SELECT "Channel TV ( DT )" FROM table_18785 WHERE "City of license/Market" = 'Boston'
|
### Instruction:
CREATE TABLE table_name_57 (
nationality VARCHAR,
player VARCHAR,
years_in_orlando VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Nationality has a Player of keith bogans, and a Years in Orlando of 2006 2009?
### Response:
|
SELECT nationality FROM table_name_57 WHERE player = "keith bogans" AND years_in_orlando = "2006–2009"
|
### Instruction:
CREATE TABLE table_24393 (
"City & Nation" text,
"First Place" real,
"Second Place" real,
"Third Place" real,
"Total Top 3 Placements" real,
"First Place Winning Year(s) (if applicable)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest third place finish?
### Response:
|
SELECT MIN("Third Place") FROM table_24393
|
### Instruction:
CREATE TABLE table_55024 (
"Peak" text,
"Height (m)" real,
"Prom. (m)" real,
"Class" text,
"Parent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of Prom in M for Peak great knoutberry hill?
### Response:
|
SELECT SUM("Prom. (m)") FROM table_55024 WHERE "Peak" = 'great knoutberry hill'
|
### Instruction:
CREATE TABLE table_75083 (
"Outcome" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score for the match with a partnering of Tessa Price?
### Response:
|
SELECT "Score in the final" FROM table_75083 WHERE "Partnering" = 'tessa price'
|
### Instruction:
CREATE TABLE table_2969 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record if the location is Clarke Stadium?
### Response:
|
SELECT "Record" FROM table_2969 WHERE "Location" = 'Clarke Stadium'
|
### Instruction:
CREATE TABLE table_6051 (
"Tone" text,
"Standard Thai" text,
"Phonemic" text,
"Phonetic" text,
"Example meaning in English" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the example in English for a tone of mid rising-falling?
### Response:
|
SELECT "Example meaning in English" FROM table_6051 WHERE "Tone" = 'mid rising-falling'
|
### Instruction:
CREATE TABLE table_name_88 (
total INTEGER,
play_offs VARCHAR,
league VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What mean total had a league number of 18, Richard Logan as a player, and a play-offs number smaller than 1?
### Response:
|
SELECT AVG(total) FROM table_name_88 WHERE league = 18 AND player = "richard logan" AND play_offs < 1
|
### Instruction:
CREATE TABLE table_204_969 (
id number,
"composer" text,
"title" text,
"genre" text,
"date" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what work was written after henry hadley had seen an oscar wilde play ?
### Response:
|
SELECT "title" FROM table_204_969 WHERE "composer" = 'henry hadley'
|
### Instruction:
CREATE TABLE table_204_324 (
id number,
"team 1" text,
"agg." text,
"team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- are there at least 4 teams in the column of team 2 ?
### Response:
|
SELECT (SELECT COUNT("team 2") FROM table_204_324) > 4
|
### Instruction:
CREATE TABLE table_56599 (
"Season" real,
"Driver" text,
"Co-Driver" text,
"Team" text,
"Tuner" text,
"Governing Body" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest season with driver Farad Bathena?
### Response:
|
SELECT MIN("Season") FROM table_56599 WHERE "Driver" = 'farad bathena'
|
### Instruction:
CREATE TABLE table_55524 (
"Country" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country of the contestant with a swimsuit of 9.46?
### Response:
|
SELECT "Country" FROM table_55524 WHERE "Swimsuit" = '9.46'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.