instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_28298589_2 (
site VARCHAR,
time VARCHAR,
visiting_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many site entries are there at 3:30pm and the visiting team is coastal carolina?
### Response:
|
SELECT COUNT(site) FROM table_28298589_2 WHERE time = "3:30pm" AND visiting_team = "Coastal Carolina"
|
### Instruction:
CREATE TABLE table_40980 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the game on October 17, 1965?
### Response:
|
SELECT "Result" FROM table_40980 WHERE "Date" = 'october 17, 1965'
|
### Instruction:
CREATE TABLE table_35136 (
"Hand" text,
"1 credit" text,
"2 credits" text,
"3 credits" text,
"4 credits" text,
"5 credits" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the listed Hand has 3 credits of 6?
### Response:
|
SELECT "Hand" FROM table_35136 WHERE "3 credits" = '6'
|
### Instruction:
CREATE TABLE table_66291 (
"Proto-Germanic" text,
"West Germanic" text,
"Old English" text,
"German" text,
"Dutch" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Proto-Germanic when the German is /t/?
### Response:
|
SELECT "Proto-Germanic" FROM table_66291 WHERE "German" = '/t/'
|
### Instruction:
CREATE TABLE table_34974 (
"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.
-- What is the attendance of the game on week 4?
### Response:
|
SELECT "Attendance" FROM table_34974 WHERE "Week" = '4'
|
### Instruction:
CREATE TABLE table_79662 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in final" text,
"Score" text,
"Prize Money" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the surface for the Volos tournament?
### Response:
|
SELECT "Surface" FROM table_79662 WHERE "Tournament" = 'volos'
|
### Instruction:
CREATE TABLE table_203_561 (
id number,
"pos" number,
"team" text,
"total" number,
"high" number,
"low" number,
"average" number,
"change" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name the only team whose percentage change was positive .
### Response:
|
SELECT "team" FROM table_203_561 WHERE "change" > 0
|
### Instruction:
CREATE TABLE table_203_724 (
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.
-- how many nations earned no bronze medals ?
### Response:
|
SELECT COUNT("nation") FROM table_203_724 WHERE "bronze" = 0
|
### Instruction:
CREATE TABLE table_39596 (
"Name" text,
"Dist. from Origin" text,
"Dist. from Terminus" text,
"Speed Limit" text,
"Location (all in Nagano )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which location includes Sakakita BS?
### Response:
|
SELECT "Location (all in Nagano )" FROM table_39596 WHERE "Name" = 'sakakita bs'
|
### Instruction:
CREATE TABLE table_50925 (
"Institution" text,
"Location" text,
"Nickname" text,
"Enrollment" real,
"Established" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the enrollment of the university established in or after 2011?
### Response:
|
SELECT "Enrollment" FROM table_50925 WHERE "Established" > '2011'
|
### Instruction:
CREATE TABLE table_19059 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the team with stadium being borough briggs
### Response:
|
SELECT "Team" FROM table_19059 WHERE "Stadium" = 'Borough Briggs'
|
### Instruction:
CREATE TABLE table_name_74 (
section VARCHAR,
season VARCHAR,
level VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season?
### Response:
|
SELECT section FROM table_name_74 WHERE level = "tier 3" AND position = "6th" AND season = "1937-38"
|
### Instruction:
CREATE TABLE table_47085 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Score that has the Opponent of at edmonton oilers?
### Response:
|
SELECT "Score" FROM table_47085 WHERE "Opponent" = 'at edmonton oilers'
|
### Instruction:
CREATE TABLE table_79493 (
"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 year is the Grim Fandango with a windows platform?
### Response:
|
SELECT "Year" FROM table_79493 WHERE "Platform(s)" = 'windows' AND "Game" = 'grim fandango'
|
### Instruction:
CREATE TABLE table_name_92 (
week INTEGER,
result VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Week is the highest one that has a Result of w 23-20, and an Attendance smaller than 34,127?
### Response:
|
SELECT MAX(week) FROM table_name_92 WHERE result = "w 23-20" AND attendance < 34 OFFSET 127
|
### Instruction:
CREATE TABLE table_72581 (
"Cardinal direction" text,
"Burmese" text,
"Sanskrit" text,
"English" text,
"Planet" text,
"Sign" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Burmese term associated with a cardinal direction of west?
### Response:
|
SELECT "Burmese" FROM table_72581 WHERE "Cardinal direction" = 'West'
|
### Instruction:
CREATE TABLE table_39269 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is it has 15,557 Attendances?
### Response:
|
SELECT "Date" FROM table_39269 WHERE "Attendance" = '15,557'
|
### Instruction:
CREATE TABLE table_11688 (
"Year" real,
"Tournament" text,
"Partner" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponent in the final for year of 1888
### Response:
|
SELECT "Opponent in the final" FROM table_11688 WHERE "Year" = '1888'
|
### Instruction:
CREATE TABLE table_28773 (
"Portuguese name" text,
"English name" text,
"Subdivides in" text,
"Equivalence in Varas" text,
"Metrical equivalence" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the equivalence for varas for geometrical pace
### Response:
|
SELECT "Equivalence in Varas" FROM table_28773 WHERE "English name" = 'Geometrical pace'
|
### Instruction:
CREATE TABLE table_77197 (
"Entered office" text,
"Left office" text,
"Party" text,
"Election" text,
"Coalition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the party elected in jun. 1959 enter office?
### Response:
|
SELECT "Entered office" FROM table_77197 WHERE "Election" = 'jun. 1959'
|
### Instruction:
CREATE TABLE table_61545 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/junior/club team (league)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Position, when Player is 'Magnus Nygren'?
### Response:
|
SELECT "Position" FROM table_61545 WHERE "Player" = 'magnus nygren'
|
### Instruction:
CREATE TABLE table_47174 (
"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 To par was won in 1982?
### Response:
|
SELECT "To par" FROM table_47174 WHERE "Year(s) won" = '1982'
|
### Instruction:
CREATE TABLE table_67890 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Try BP" text,
"Losing BP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number drawn when the try BP is 1?
### Response:
|
SELECT "Drawn" FROM table_67890 WHERE "Try BP" = '1'
|
### Instruction:
CREATE TABLE table_name_59 (
margin_of_victory VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the Winning score is 68-65-65-68=266, what is the Margin of victory?
### Response:
|
SELECT margin_of_victory FROM table_name_59 WHERE winning_score = 68 - 65 - 65 - 68 = 266
|
### Instruction:
CREATE TABLE table_name_83 (
birth_place VARCHAR,
monarchs_served VARCHAR,
entered_office VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the birth place of the prime minister who served George V and entered office on 23 October 1922?
### Response:
|
SELECT birth_place FROM table_name_83 WHERE monarchs_served = "george v" AND entered_office = "23 october 1922"
|
### Instruction:
CREATE TABLE table_name_38 (
year_started INTEGER,
current_car VARCHAR,
number_of_cars VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year started is the highest one that has a Current car of arctic sun, and a Number of cars smaller than 1?
### Response:
|
SELECT MAX(year_started) FROM table_name_38 WHERE current_car = "arctic sun" AND number_of_cars < 1
|
### Instruction:
CREATE TABLE table_53777 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What driver has BRM as a constructor and had more than 30 laps?
### Response:
|
SELECT "Driver" FROM table_53777 WHERE "Constructor" = 'brm' AND "Laps" > '30'
|
### Instruction:
CREATE TABLE table_54393 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the tyres for hans binder
### Response:
|
SELECT "Tyres" FROM table_54393 WHERE "Driver" = 'hans binder'
|
### Instruction:
CREATE TABLE table_24682 (
"No" real,
"Driver" text,
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The Maserati 4cl's minimum no was?
### Response:
|
SELECT MIN("No") FROM table_24682 WHERE "Chassis" = 'Maserati 4CL'
|
### Instruction:
CREATE TABLE table_name_59 (
career_with_the_franchise_ VARCHAR,
b_ VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Career with the franchise [b ], when Player is 'Willie Anderson Category:Articles with hCards'?
### Response:
|
SELECT career_with_the_franchise_ AS "b_" FROM table_name_59 WHERE player = "willie anderson category:articles with hcards"
|
### Instruction:
CREATE TABLE table_4420 (
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the NHL team for wade belak
### Response:
|
SELECT "NHL team" FROM table_4420 WHERE "Player" = 'wade belak'
|
### Instruction:
CREATE TABLE table_204_398 (
id number,
"title" text,
"year" number,
"publisher" text,
"developer" text,
"platforms" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of lord of the rings games released since 1982 ?
### Response:
|
SELECT COUNT("title") FROM table_204_398 WHERE "year" > 1982
|
### Instruction:
CREATE TABLE table_12406 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player with a 68-67-75=210 score?
### Response:
|
SELECT "Player" FROM table_12406 WHERE "Score" = '68-67-75=210'
|
### Instruction:
CREATE TABLE table_75031 (
"Call sign" text,
"Analog channel" text,
"Digital channel" text,
"Virtual channel" text,
"Network" text,
"Station Ownership" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Virtual channel of 16.5 has what call sign?
### Response:
|
SELECT "Call sign" FROM table_75031 WHERE "Virtual channel" = '16.5'
|
### Instruction:
CREATE TABLE table_38445 (
"Club" text,
"League" text,
"Venue" text,
"Established" real,
"Championships" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Established date of the Brian Timmis Stadium?
### Response:
|
SELECT COUNT("Established") FROM table_38445 WHERE "Venue" = 'brian timmis stadium'
|
### Instruction:
CREATE TABLE table_71484 (
"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.
-- Which 2nd leg came after a 1st leg of 0-3?
### Response:
|
SELECT "2nd leg" FROM table_71484 WHERE "1st leg" = '0-3'
|
### Instruction:
CREATE TABLE table_34265 (
"Team" text,
"Winners" text,
"Runners-Up" text,
"Third Place" text,
"Fourth Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many winners did Halcones uv xalapa have?
### Response:
|
SELECT "Winners" FROM table_34265 WHERE "Team" = 'halcones uv xalapa'
|
### Instruction:
CREATE TABLE table_17304621_14 (
bandwidth VARCHAR,
downstream VARCHAR,
price_tl VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the bandwidth for downstream of 20 mbit/s for 69 tl?
### Response:
|
SELECT bandwidth FROM table_17304621_14 WHERE downstream = "20 Mbit/s" AND price_tl = "69 TL"
|
### Instruction:
CREATE TABLE table_53374 (
"Date" text,
"Venue" text,
"Score" text,
"Competition" text,
"Turkey scorers" text,
"Match report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue had a score of 1-1?
### Response:
|
SELECT "Venue" FROM table_53374 WHERE "Score" = '1-1'
|
### Instruction:
CREATE TABLE table_23230 (
"Institution" text,
"Nickname" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the type for hobart college
### Response:
|
SELECT "Type" FROM table_23230 WHERE "Institution" = 'Hobart College'
|
### Instruction:
CREATE TABLE table_10051 (
"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 country with a 66-70-69=205 score?
### Response:
|
SELECT "Country" FROM table_10051 WHERE "Score" = '66-70-69=205'
|
### Instruction:
CREATE TABLE table_64791 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Time of the Great Britain players with Notes of SA/B?
### Response:
|
SELECT "Time" FROM table_64791 WHERE "Notes" = 'sa/b' AND "Country" = 'great britain'
|
### Instruction:
CREATE TABLE table_19502 (
"Week" real,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Type the record details if any result has L 3-6 in it?
### Response:
|
SELECT "Record" FROM table_19502 WHERE "Result" = 'L 3-6'
|
### Instruction:
CREATE TABLE table_5968 (
"Round" real,
"Club" text,
"Home" text,
"Away" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is NK Rijeka's away score in Round 2?
### Response:
|
SELECT "Away" FROM table_5968 WHERE "Round" < '2' AND "Club" = 'nk rijeka'
|
### Instruction:
CREATE TABLE table_203_405 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times were the dallas cowboys listed as an opponent ?
### Response:
|
SELECT COUNT(*) FROM table_203_405 WHERE "opponent" = 'dallas cowboys'
|
### Instruction:
CREATE TABLE table_53427 (
"Name" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of goals scored by a player in the normal league games where more than 8 total goals were scored?
### Response:
|
SELECT MIN("League") FROM table_53427 WHERE "Total" > '8'
|
### Instruction:
CREATE TABLE table_71100 (
"Language" text,
"Number" text,
"percentage (%)" text,
"males" text,
"females" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the number of males that had the number females 62 331?
### Response:
|
SELECT "males" FROM table_71100 WHERE "females" = '62 331'
|
### Instruction:
CREATE TABLE table_name_16 (
wins INTEGER,
draws VARCHAR,
scored VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest wins that has fewer than 23 goals scored, team of 2 de Mayo, and fewer than 7 draws?
### Response:
|
SELECT MIN(wins) FROM table_name_16 WHERE scored < 23 AND team = "2 de mayo" AND draws < 7
|
### Instruction:
CREATE TABLE table_56899 (
"Week" real,
"EASTERN #1" text,
"Eastern #2" text,
"WESTERN #1" text,
"Western #2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the wekk for eastern #2 of houston
### Response:
|
SELECT "Week" FROM table_56899 WHERE "Eastern #2" = 'houston'
|
### Instruction:
CREATE TABLE table_24919 (
"School" text,
"Location" text,
"Team Name" text,
"Colors" text,
"Varsity Teams" real,
"NJCAA Championships" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the varsity team is 6, what is the location?
### Response:
|
SELECT "Location" FROM table_24919 WHERE "Varsity Teams" = '6'
|
### Instruction:
CREATE TABLE table_37072 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What engine class is associated with a year after 1985 and over 0 wins?
### Response:
|
SELECT "Class" FROM table_37072 WHERE "Year" > '1985' AND "Wins" > '0'
|
### Instruction:
CREATE TABLE table_44576 (
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"City" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE CITY WITH THIRD AS LORI OLSON-JOHNS?
### Response:
|
SELECT "City" FROM table_44576 WHERE "Third" = 'lori olson-johns'
|
### Instruction:
CREATE TABLE table_72380 (
"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.
-- Name the districk for larry mcdonald
### Response:
|
SELECT "District" FROM table_72380 WHERE "Incumbent" = 'Larry McDonald'
|
### Instruction:
CREATE TABLE table_8026 (
"World Record" text,
"Press" text,
"92.5" text,
"Hans W\u00f6lpert" text,
"Mannheim ( GER )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 92.5 holds the world record?
### Response:
|
SELECT "World Record" FROM table_8026 WHERE "Press" = '92.5'
|
### Instruction:
CREATE TABLE table_203_612 (
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 has the most silver medals ?
### Response:
|
SELECT "nation" FROM table_203_612 ORDER BY "silver" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_61341 (
"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 Total for the Player with a To par of +11?
### Response:
|
SELECT MAX("Total") FROM table_61341 WHERE "To par" = '+11'
|
### Instruction:
CREATE TABLE table_34802 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the runner-up on 5 aug 1990?
### Response:
|
SELECT "Runner-up" FROM table_34802 WHERE "Date" = '5 aug 1990'
|
### Instruction:
CREATE TABLE table_2624098_1 (
english_day_name_meaning VARCHAR,
old_english_day_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the English meaning of the old English name 's turnesd g'?
### Response:
|
SELECT english_day_name_meaning FROM table_2624098_1 WHERE old_english_day_name = "Sæturnesdæg"
|
### Instruction:
CREATE TABLE table_53479 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Week has an Opponent of san francisco 49ers?
### Response:
|
SELECT MAX("Week") FROM table_53479 WHERE "Opponent" = 'san francisco 49ers'
|
### Instruction:
CREATE TABLE table_68771 (
"Estimate" text,
"Name" text,
"Nat." text,
"Ship type" text,
"Where sunk" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date that a ship sank in the South Atlantic?
### Response:
|
SELECT "Date" FROM table_68771 WHERE "Where sunk" = 'south atlantic'
|
### Instruction:
CREATE TABLE table_9841 (
"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 maximum attendance when Chicago is the visiting team?
### Response:
|
SELECT MAX("Attendance") FROM table_9841 WHERE "Visitor" = 'chicago'
|
### Instruction:
CREATE TABLE table_26998135_2 (
manner_of_departure VARCHAR,
date_of_appointment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the manner of departure for the date of appointment 24 may 2010?
### Response:
|
SELECT manner_of_departure FROM table_26998135_2 WHERE date_of_appointment = "24 May 2010"
|
### Instruction:
CREATE TABLE table_69264 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date for hard surface and tournament of fort walton beach
### Response:
|
SELECT "Date" FROM table_69264 WHERE "Surface" = 'hard' AND "Tournament" = 'fort walton beach'
|
### Instruction:
CREATE TABLE table_47673 (
"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.
-- What is 1st Leg, when 2nd Leg is 0-1?
### Response:
|
SELECT "1st leg" FROM table_47673 WHERE "2nd leg" = '0-1'
|
### Instruction:
CREATE TABLE table_80044 (
"Units" text,
"Type" text,
"Period used" text,
"Formed from" text,
"Trailers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the typed for formed from 6-pul trailer third in res unit
### Response:
|
SELECT "Type" FROM table_80044 WHERE "Formed from" = '6-pul trailer third in res unit'
|
### Instruction:
CREATE TABLE table_24420 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Lambert's song choice in the top 13?
### Response:
|
SELECT "Song choice" FROM table_24420 WHERE "Week #" = 'Top 13'
|
### Instruction:
CREATE TABLE table_14488 (
"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 game held on August 20, 2004?
### Response:
|
SELECT "Venue" FROM table_14488 WHERE "Date" = 'august 20, 2004'
|
### Instruction:
CREATE TABLE table_773 (
"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.
-- Who were the candidates when Noble Jones Gregory was incumbent?
### Response:
|
SELECT "Candidates" FROM table_773 WHERE "Incumbent" = 'Noble Jones Gregory'
|
### Instruction:
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many captains are in each rank?
### Response:
|
SELECT COUNT(*), rank FROM captain GROUP BY rank
|
### Instruction:
CREATE TABLE table_57721 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lost On August 20
### Response:
|
SELECT "Loss" FROM table_57721 WHERE "Date" = 'august 20'
|
### Instruction:
CREATE TABLE table_39573 (
"Score" text,
"Opposition" text,
"Venue" text,
"City" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue had a city of Manchester before 2003?
### Response:
|
SELECT "Venue" FROM table_39573 WHERE "City" = 'manchester' AND "Year" < '2003'
|
### Instruction:
CREATE TABLE table_name_34 (
type VARCHAR,
moving_from VARCHAR,
ends VARCHAR,
transfer_window VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type of the player who ended in 2013, had a summer transfer window, and moved from kalmar ff?
### Response:
|
SELECT type FROM table_name_34 WHERE ends = 2013 AND transfer_window = "summer" AND moving_from = "kalmar ff"
|
### Instruction:
CREATE TABLE table_name_40 (
lost INTEGER,
season VARCHAR,
avg_attend VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum number of losses that the Minnesota Kicks had after 1979 with an average attendance of 16,605?
### Response:
|
SELECT MAX(lost) FROM table_name_40 WHERE season > 1979 AND avg_attend = 16 OFFSET 605
|
### Instruction:
CREATE TABLE table_18142 (
"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.
-- What party does Bill McCollum belong to?
### Response:
|
SELECT "Party" FROM table_18142 WHERE "Incumbent" = 'Bill McCollum'
|
### Instruction:
CREATE TABLE table_28190363_1 (
network VARCHAR,
judges VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many networks are there that include the judges pete goffe-wood andrew atkinson benny masekwameng?
### Response:
|
SELECT COUNT(network) FROM table_28190363_1 WHERE judges = "Pete Goffe-Wood Andrew Atkinson Benny Masekwameng"
|
### Instruction:
CREATE TABLE table_299 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT TOWN IS WEST BROOK SENIOR HIGH SCHOOL FROM?
### Response:
|
SELECT "Hometown" FROM table_299 WHERE "School" = 'West Brook Senior High School'
|
### Instruction:
CREATE TABLE table_name_85 (
goals_for INTEGER,
wins VARCHAR,
goals_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest number of 'goals for' out of the clubs where there were 18 wins and fewer than 38 'goals against'?
### Response:
|
SELECT MIN(goals_for) FROM table_name_85 WHERE wins = 18 AND goals_against < 38
|
### Instruction:
CREATE TABLE table_2528382_2 (
co_stars VARCHAR,
music_director VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which co-stars did Kalyanji-anandji direct in 1963?
### Response:
|
SELECT co_stars FROM table_2528382_2 WHERE music_director = "Kalyanji-Anandji" AND year = "1963"
|
### Instruction:
CREATE TABLE table_44098 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Place of t1, and a Player of hubert green?
### Response:
|
SELECT AVG("Score") FROM table_44098 WHERE "Place" = 't1' AND "Player" = 'hubert green'
|
### Instruction:
CREATE TABLE table_73407 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the reason for change pennsylvania 13th
### Response:
|
SELECT "Reason for change" FROM table_73407 WHERE "District" = 'Pennsylvania 13th'
|
### Instruction:
CREATE TABLE table_30878 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the parter for w/o
### Response:
|
SELECT "Partner" FROM table_30878 WHERE "Score" = 'w/o'
|
### Instruction:
CREATE TABLE table_61396 (
"Name" text,
"Bodyweight" real,
"Snatch" real,
"Clean & Jerk" real,
"Total (kg)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Snatch has a Total (kg) smaller than 257?
### Response:
|
SELECT SUM("Snatch") FROM table_61396 WHERE "Total (kg)" < '257'
|
### Instruction:
CREATE TABLE table_1989 (
"Match no." real,
"Match Type" text,
"Team Europe" text,
"Score" text,
"Team USA" text,
"Progressive Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When paul moor is on the europe team who is on the usa team?
### Response:
|
SELECT "Team USA" FROM table_1989 WHERE "Team Europe" = 'Paul Moor'
|
### Instruction:
CREATE TABLE table_34348 (
"Date" text,
"Tournament" text,
"Location" text,
"Winner" text,
"Score" text,
"1st prize ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the winner of the tour championship tournament?
### Response:
|
SELECT "Winner" FROM table_34348 WHERE "Tournament" = 'the tour championship'
|
### Instruction:
CREATE TABLE publication (
Publication_ID int,
Book_ID int,
Publisher text,
Publication_Date text,
Price real
)
CREATE TABLE book (
Book_ID int,
Title text,
Issues real,
Writer text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show different publishers together with the number of publications they have in a pie chart.
### Response:
|
SELECT Publisher, COUNT(*) FROM publication GROUP BY Publisher
|
### Instruction:
CREATE TABLE table_7098 (
"Year" real,
"Album" text,
"U.S." text,
"U.S. Christian" text,
"U.S. Indie" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Year with an Album that is live love in London?
### Response:
|
SELECT MIN("Year") FROM table_7098 WHERE "Album" = 'live love in london'
|
### Instruction:
CREATE TABLE table_name_33 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 2001, when 1990 is A, when 1987 is NME, and when 1997 is 1R?
### Response:
|
SELECT 2001 FROM table_name_33 WHERE 1990 = "a" AND 1987 = "nme" AND 1997 = "1r"
|
### Instruction:
CREATE TABLE table_619 (
"Ensemble" text,
"Gold Medals" real,
"Silver Medals" real,
"Bronze Medals" real,
"Total Medals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many gold medals does each school who has a total of 1 medal have?
### Response:
|
SELECT "Gold Medals" FROM table_619 WHERE "Total Medals" = '1'
|
### Instruction:
CREATE TABLE table_2416 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Midshipmen points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the result for 9-1 record
### Response:
|
SELECT "Result" FROM table_2416 WHERE "Record" = '9-1'
|
### Instruction:
CREATE TABLE table_28941 (
"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.
-- Name the district for john randolph (dr)
### Response:
|
SELECT "District" FROM table_28941 WHERE "Candidates" = 'John Randolph (DR)'
|
### Instruction:
CREATE TABLE table_16655 (
"Season" text,
"Group A Winner" text,
"Group B Winner" text,
"Group C Winner" text,
"Group D Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What group a winner was for nocerina?
### Response:
|
SELECT "Group A Winner" FROM table_16655 WHERE "Group D Winner" = 'Nocerina'
|
### Instruction:
CREATE TABLE user_profiles (
uid number,
name text,
email text,
partitionid number,
followers number
)
CREATE TABLE tweets (
id number,
uid number,
text text,
createdate time
)
CREATE TABLE follows (
f1 number,
f2 number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many followers does each user have?
### Response:
|
SELECT COUNT(*) FROM follows
|
### Instruction:
CREATE TABLE table_17210 (
"Round" real,
"Overall" text,
"Player" text,
"Position" text,
"Nationality" text,
"Club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds is the player Matthew Puempel associated with?
### Response:
|
SELECT COUNT("Round") FROM table_17210 WHERE "Player" = 'Matthew Puempel'
|
### Instruction:
CREATE TABLE table_23849 (
"Parish" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What parish did McCain have 45.37% of the votes?
### Response:
|
SELECT "Parish" FROM table_23849 WHERE "McCain%" = '45.37%'
|
### Instruction:
CREATE TABLE table_38717 (
"Date" text,
"Opponent" text,
"Result" text,
"Score" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the opponent was Detroit Pistons?
### Response:
|
SELECT "Score" FROM table_38717 WHERE "Opponent" = 'detroit pistons'
|
### Instruction:
CREATE TABLE table_3806 (
"Team #1" text,
"Points" text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 2nd leg score if the team 1 is Deportivo Pasto?
### Response:
|
SELECT "2nd leg" FROM table_3806 WHERE "Team #1" = 'Deportivo Pasto'
|
### Instruction:
CREATE TABLE table_name_97 (
adelaide VARCHAR,
gold_coast VARCHAR,
auckland VARCHAR,
melbourne VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- yes or no for the adelaide with no for auckland, yes for melbourne, yes for the gold coast?
### Response:
|
SELECT adelaide FROM table_name_97 WHERE auckland = "no" AND melbourne = "yes" AND gold_coast = "yes"
|
### Instruction:
CREATE TABLE table_name_12 (
dynamo INTEGER,
draw VARCHAR,
spartak VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the least dynamo when spartak is more than 9, competition is totals and draw is more than 24?
### Response:
|
SELECT MIN(dynamo) FROM table_name_12 WHERE spartak > 9 AND competition = "totals" AND draw > 24
|
### Instruction:
CREATE TABLE table_56312 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the surface type at Takao Suzuki?
### Response:
|
SELECT "Surface" FROM table_56312 WHERE "Opponent in the final" = 'takao suzuki'
|
### Instruction:
CREATE TABLE table_203_271 (
id number,
"date" text,
"series" text,
"circuit" text,
"city / state" text,
"winner" text,
"team" text,
"car" text,
"report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total number of races ?
### Response:
|
SELECT COUNT(*) FROM table_203_271
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.