instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_36980 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest round of the player with a pick number lower than 34?
### Response:
|
SELECT MAX("Round") FROM table_36980 WHERE "Pick #" > '34'
|
### Instruction:
CREATE TABLE table_65116 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue listed is dated February 22, 2003?
### Response:
|
SELECT "Venue" FROM table_65116 WHERE "Date" = 'february 22, 2003'
|
### Instruction:
CREATE TABLE table_36390 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Attendances on may 24?
### Response:
|
SELECT MIN("Attendance") FROM table_36390 WHERE "Date" = 'may 24'
|
### Instruction:
CREATE TABLE table_69280 (
"Year" real,
"Class" text,
"Tyres" text,
"Team" text,
"Co-Drivers" text,
"Laps" real,
"Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Are there any Teams after 1997?
### Response:
|
SELECT "Team" FROM table_69280 WHERE "Year" > '1997'
|
### Instruction:
CREATE TABLE table_29668 (
"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.
-- Which song was picked that was originally performed by Marisa Monte?
### Response:
|
SELECT "Song Choice" FROM table_29668 WHERE "Original Artist" = 'Marisa Monte'
|
### Instruction:
CREATE TABLE table_67049 (
"Quarter" text,
"Score" text,
"Club" text,
"Opponent" text,
"Year" text,
"Round" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year has a Round of 17?
### Response:
|
SELECT "Year" FROM table_67049 WHERE "Round" = '17'
|
### Instruction:
CREATE TABLE table_47989 (
"Year" real,
"Round" real,
"Pick" real,
"Player" text,
"NBA Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pick number for Danny Green in a round less than 2?
### Response:
|
SELECT COUNT("Pick") FROM table_47989 WHERE "Player" = 'danny green' AND "Round" < '2'
|
### Instruction:
CREATE TABLE table_777 (
"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 winners were there in the race of 1922
### Response:
|
SELECT COUNT("Incumbent") FROM table_777 WHERE "First elected" = '1922'
|
### Instruction:
CREATE TABLE table_2031 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what season did the team get in the conference finals of the playoffs?
### Response:
|
SELECT "Regular Season" FROM table_2031 WHERE "Playoffs" = 'Conference Finals'
|
### Instruction:
CREATE TABLE table_42494 (
"Ballarat FL" 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 losses have byes greater than 2?
### Response:
|
SELECT COUNT("Losses") FROM table_42494 WHERE "Byes" > '2'
|
### Instruction:
CREATE TABLE table_78334 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the combined attendance of all games that had a result of w 35-14?
### Response:
|
SELECT SUM("Attendance") FROM table_78334 WHERE "Result" = 'w 35-14'
|
### Instruction:
CREATE TABLE table_43430 (
"Year" text,
"Award" text,
"Production" text,
"Role" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which award was given for the role of Elphaba in 2009?
### Response:
|
SELECT "Award" FROM table_43430 WHERE "Role" = 'elphaba' AND "Year" = '2009'
|
### Instruction:
CREATE TABLE table_12911 (
"Elector" text,
"Nationality" text,
"Order" text,
"Title" text,
"Elevated" text,
"Elevator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Elevator has a Title of bishop of palestrina?
### Response:
|
SELECT "Elevator" FROM table_12911 WHERE "Title" = 'bishop of palestrina'
|
### Instruction:
CREATE TABLE table_14524 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which venue did the competition on 11 October 2008 take place?
### Response:
|
SELECT "Venue" FROM table_14524 WHERE "Date" = '11 october 2008'
|
### Instruction:
CREATE TABLE table_name_76 (
accolade VARCHAR,
rank VARCHAR,
year VARCHAR,
publication VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Accolade, when Year is less than 2002, when Publication is 'Rolling Stone', and when Rank is '48'?
### Response:
|
SELECT accolade FROM table_name_76 WHERE year < 2002 AND publication = "rolling stone" AND rank = 48
|
### Instruction:
CREATE TABLE table_1262 (
"Name" text,
"Position" text,
"Number" real,
"School/Club Team" text,
"Season" text,
"Acquisition via" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Nametheh school team for norman gonzales
### Response:
|
SELECT "School/Club Team" FROM table_1262 WHERE "Name" = 'Norman Gonzales'
|
### Instruction:
CREATE TABLE table_203_247 (
id number,
"district" text,
"counties represented" text,
"delegate" text,
"party" text,
"first elected" number,
"committee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many delegates represented allegany ?
### Response:
|
SELECT COUNT("delegate") FROM table_203_247 WHERE "counties represented" = 'allegany'
|
### Instruction:
CREATE TABLE table_12982 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Week 4 has a Week 2 of samantha speer?
### Response:
|
SELECT "Week 4" FROM table_12982 WHERE "Week 2" = 'samantha speer'
|
### Instruction:
CREATE TABLE table_56464 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On February 26, who was the leading scorer?
### Response:
|
SELECT "Leading scorer" FROM table_56464 WHERE "Date" = 'february 26'
|
### Instruction:
CREATE TABLE table_4855 (
"Week" real,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Attenmdance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance at war memorial stadium?
### Response:
|
SELECT "Attenmdance" FROM table_4855 WHERE "Stadium" = 'war memorial stadium'
|
### Instruction:
CREATE TABLE table_59428 (
"Classification" text,
"% of all" text,
"John Kerry" text,
"John Edwards" text,
"Dennis Kucinich" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Dennis Kucinich, when Classification is 'Democrat'?
### Response:
|
SELECT "Dennis Kucinich" FROM table_59428 WHERE "Classification" = 'democrat'
|
### Instruction:
CREATE TABLE table_71693 (
"Year" real,
"Class" text,
"Vehicle" text,
"Position" text,
"Stages won" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did the BMW vehicle made in 2006 hold?
### Response:
|
SELECT "Position" FROM table_71693 WHERE "Vehicle" = 'bmw' AND "Year" = '2006'
|
### Instruction:
CREATE TABLE table_9325 (
"Articulatory class" text,
"Non- stop" text,
"Plain stop" text,
"Aspirated stop" text,
"\"Muddy\" voice" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the Plain stop is , what is the Non- stop?
### Response:
|
SELECT "Non- stop" FROM table_9325 WHERE "Plain stop" = 'ㄷ'
|
### Instruction:
CREATE TABLE table_19089 (
"Code" real,
"County" text,
"Former Province" text,
"Area (km 2 )" text,
"Population Census 2009" real,
"Capital" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the county with code being 2
### Response:
|
SELECT "County" FROM table_19089 WHERE "Code" = '2'
|
### Instruction:
CREATE TABLE table_75276 (
"Surname" text,
"First" text,
"D.O.B." text,
"Uni#" real,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player has a last name of baron?
### Response:
|
SELECT "Bats" FROM table_75276 WHERE "Surname" = 'baron'
|
### Instruction:
CREATE TABLE table_8384 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years did Real Colorado Foxes make it to the Open Cup 1st Round?
### Response:
|
SELECT COUNT("Year") FROM table_8384 WHERE "Open Cup" = '1st round'
|
### Instruction:
CREATE TABLE table_39003 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest round with a guard position and an overall greater than 71?
### Response:
|
SELECT MAX("Round") FROM table_39003 WHERE "Position" = 'guard' AND "Overall" > '71'
|
### Instruction:
CREATE TABLE table_71822 (
"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.
-- Which visiting team wound up with a final score of 18-40?
### Response:
|
SELECT "Visiting Team" FROM table_71822 WHERE "Final Score" = '18-40'
|
### Instruction:
CREATE TABLE table_name_6 (
week_12_nov_16 VARCHAR,
week_3_sept_14 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the week 12 opponent for the year that had a week 3 opponent of South Florida (3-0)?
### Response:
|
SELECT week_12_nov_16 FROM table_name_6 WHERE week_3_sept_14 = "south florida (3-0)"
|
### Instruction:
CREATE TABLE table_933 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the minimum attendance with record being 4 6
### Response:
|
SELECT MIN("Attendance") FROM table_933 WHERE "Record" = '4–6'
|
### Instruction:
CREATE TABLE ROLES (
role_description VARCHAR,
role_code VARCHAR
)
CREATE TABLE Employees (
role_code VARCHAR,
employee_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the role of the employee named Koby?
### Response:
|
SELECT T1.role_description FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = "Koby"
|
### Instruction:
CREATE TABLE table_name_89 (
loser VARCHAR,
date VARCHAR,
location VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who lost at schaefer stadium when the Winner was new england patriots, and a Date of october 18?
### Response:
|
SELECT loser FROM table_name_89 WHERE location = "schaefer stadium" AND winner = "new england patriots" AND date = "october 18"
|
### Instruction:
CREATE TABLE table_52716 (
"Name" text,
"Took Office" text,
"Left Office" text,
"Party" text,
"District Residence" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has Took Office of march 4, 1875?
### Response:
|
SELECT "Name" FROM table_52716 WHERE "Took Office" = 'march 4, 1875'
|
### Instruction:
CREATE TABLE table_name_1 (
tournament VARCHAR,
margin_of_victory VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tournament had a victory of a 1 stroke margin and the final winning score 69-75-71-70?
### Response:
|
SELECT tournament FROM table_name_1 WHERE margin_of_victory = "1 stroke" AND winning_score = "69-75-71-70"
|
### Instruction:
CREATE TABLE table_204_804 (
id number,
"version" text,
"length" text,
"album" text,
"remixed by" text,
"year" number,
"comment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many songs were remixed by garraund ?
### Response:
|
SELECT COUNT(*) FROM table_204_804 WHERE "remixed by" = 'joachim garraud'
|
### Instruction:
CREATE TABLE table_79469 (
"Event" text,
"Class" text,
"Gold" text,
"Silver" text,
"Bronze" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the event when gold is darren kenny great britain (gbr)?
### Response:
|
SELECT "Event" FROM table_79469 WHERE "Gold" = 'darren kenny great britain (gbr)'
|
### Instruction:
CREATE TABLE table_204_775 (
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.
-- what is the only nation to receive three gold medals ?
### Response:
|
SELECT "nation" FROM table_204_775 WHERE "gold" = 3
|
### Instruction:
CREATE TABLE table_name_18 (
score VARCHAR,
record VARCHAR,
game VARCHAR,
decision VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the score for a game over 56 with a record of 29-24-7 with a lundqvist decision?
### Response:
|
SELECT score FROM table_name_18 WHERE game > 56 AND decision = "lundqvist" AND record = "29-24-7"
|
### Instruction:
CREATE TABLE table_name_97 (
winner VARCHAR,
country VARCHAR,
fis_nordic_world_ski_championships VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Winner has a Country of norway, and a FIS Nordic World Ski Championships of 1924?
### Response:
|
SELECT winner FROM table_name_97 WHERE country = "norway" AND fis_nordic_world_ski_championships = "1924"
|
### Instruction:
CREATE TABLE table_204_310 (
id number,
"month" text,
"year" number,
"player" text,
"county" text,
"club" text,
"position" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players won at least later than 2010 ?
### Response:
|
SELECT COUNT("player") FROM table_204_310 WHERE "year" > 2010
|
### Instruction:
CREATE TABLE table_name_54 (
name VARCHAR,
length_meters VARCHAR,
km_from_kingston VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Name, when Length Meters is greater than 66.4, and when Km From Kingston is 138.8?
### Response:
|
SELECT name FROM table_name_54 WHERE length_meters > 66.4 AND km_from_kingston = 138.8
|
### Instruction:
CREATE TABLE table_204_261 (
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 medals did france get in total ?
### Response:
|
SELECT "total" FROM table_204_261 WHERE "nation" = 'france'
|
### Instruction:
CREATE TABLE table_50829 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which class has *alanaz as Part 4?
### Response:
|
SELECT "Class" FROM table_50829 WHERE "Part 4" = '*alanaz'
|
### Instruction:
CREATE TABLE table_203_611 (
id number,
"player" text,
"hr" number,
"date reached 500 hr" text,
"team" text,
"seasons played" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which member of the 500 club has the least amount of home runs ?
### Response:
|
SELECT "player" FROM table_203_611 ORDER BY "hr" LIMIT 1
|
### Instruction:
CREATE TABLE table_name_99 (
average VARCHAR,
wickets VARCHAR,
matches VARCHAR,
runs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of average for wickets less than 265, runs less than 4564 and matches less than 52
### Response:
|
SELECT COUNT(average) FROM table_name_99 WHERE matches < 52 AND runs < 4564 AND wickets < 265
|
### Instruction:
CREATE TABLE table_17685 (
"Track Name" text,
"Location" text,
"Length" text,
"Seating" real,
"Year Opened" real,
"Year Acquired [A ]" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the track that opened in 1995?
### Response:
|
SELECT "Location" FROM table_17685 WHERE "Year Opened" = '1995'
|
### Instruction:
CREATE TABLE table_35735 (
"Word" text,
"Pronunciation a" text,
"Meaning a" text,
"Pronunciation b" text,
"Meaning b" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the word with pronunciation b of *s ks
### Response:
|
SELECT "Word" FROM table_35735 WHERE "Pronunciation b" = '*sɨks'
|
### Instruction:
CREATE TABLE table_66431 (
"Millewa" text,
"Wins" real,
"Forfeits" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Losses have Draws larger than 0?
### Response:
|
SELECT MAX("Losses") FROM table_66431 WHERE "Draws" > '0'
|
### Instruction:
CREATE TABLE table_66656 (
"Wimmera FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Losses have Draws smaller than 0?
### Response:
|
SELECT MAX("Losses") FROM table_66656 WHERE "Draws" < '0'
|
### Instruction:
CREATE TABLE table_78906 (
"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 average total in 1969?
### Response:
|
SELECT AVG("Total") FROM table_78906 WHERE "Year(s) won" = '1969'
|
### Instruction:
CREATE TABLE table_35213 (
"Year" real,
"Group" text,
"Award" text,
"Film" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Film has a Result of nominated, and a Year of 2001?
### Response:
|
SELECT "Film" FROM table_35213 WHERE "Result" = 'nominated' AND "Year" = '2001'
|
### Instruction:
CREATE TABLE table_51136 (
"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 Country, when Score is 71-71-69=211?
### Response:
|
SELECT "Country" FROM table_51136 WHERE "Score" = '71-71-69=211'
|
### Instruction:
CREATE TABLE table_57602 (
"Index" text,
"Organization" text,
"Year" text,
"Rank" real,
"Out of" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the year for rank more than 35 and out of 167
### Response:
|
SELECT "Year" FROM table_57602 WHERE "Rank" > '35' AND "Out of" = '167'
|
### Instruction:
CREATE TABLE table_49191 (
"Event" text,
"Time" text,
"Name" text,
"Nation" text,
"Games" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was a record set in the team pursuit (8 laps) event?
### Response:
|
SELECT "Date" FROM table_49191 WHERE "Event" = 'team pursuit (8 laps)'
|
### Instruction:
CREATE TABLE table_38154 (
"Date" text,
"Venue" text,
"Result" text,
"Goals" real,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was a friendly match held at Auckland?
### Response:
|
SELECT "Date" FROM table_38154 WHERE "Competition" = 'friendly match' AND "Venue" = 'auckland'
|
### Instruction:
CREATE TABLE table_27615445_1 (
audition_city VARCHAR,
episode_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many audition city's are there with an episode air date of June 24, 2010?
### Response:
|
SELECT COUNT(audition_city) FROM table_27615445_1 WHERE episode_air_date = "June 24, 2010"
|
### Instruction:
CREATE TABLE table_59892 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the UEFA Cup, against Palermo?
### Response:
|
SELECT "Result" FROM table_59892 WHERE "Competition" = 'uefa cup' AND "Opponent" = 'palermo'
|
### Instruction:
CREATE TABLE table_14903627_1 (
year VARCHAR,
mens_doubles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- HOW MANY YEARS DID MENS DOUBLES PLAYER HEIKI SORGE MEELIS MAISTE PLAY?
### Response:
|
SELECT COUNT(year) FROM table_14903627_1 WHERE mens_doubles = "Heiki Sorge Meelis Maiste"
|
### Instruction:
CREATE TABLE table_60674 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a To par of 1, what is Player Henrik Stenson's Score?
### Response:
|
SELECT "Score" FROM table_60674 WHERE "To par" = '–1' AND "Player" = 'henrik stenson'
|
### Instruction:
CREATE TABLE table_75870 (
"Rank" text,
"Nation" 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 number of medals when there are 18 gold medals?
### Response:
|
SELECT SUM("Total") FROM table_75870 WHERE "Gold" = '18'
|
### Instruction:
CREATE TABLE table_name_30 (
week INTEGER,
date VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many weeks have a Date of december 4, 1976, and an Attendance larger than 57,366?
### Response:
|
SELECT SUM(week) FROM table_name_30 WHERE date = "december 4, 1976" AND attendance > 57 OFFSET 366
|
### Instruction:
CREATE TABLE table_203_707 (
id number,
"rank" number,
"npc" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what country won the least amount of gold medals ?
### Response:
|
SELECT "npc" FROM table_203_707 ORDER BY "gold" LIMIT 1
|
### Instruction:
CREATE TABLE table_78578 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time of Troy Bayliss with less than 8 grids?
### Response:
|
SELECT "Time" FROM table_78578 WHERE "Grid" < '8' AND "Rider" = 'troy bayliss'
|
### Instruction:
CREATE TABLE table_name_77 (
object_type VARCHAR,
right_ascension___j2000__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the object type when the right ascension (j2000) is 11h10m42.8s?
### Response:
|
SELECT object_type FROM table_name_77 WHERE right_ascension___j2000__ = "11h10m42.8s"
|
### Instruction:
CREATE TABLE table_14392 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is the lane less than 5 and is named gnes kov cs?
### Response:
|
SELECT "Time" FROM table_14392 WHERE "Lane" < '5' AND "Name" = 'ágnes kovács'
|
### Instruction:
CREATE TABLE table_60858 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest number of gold medals a country with 7 medals has?
### Response:
|
SELECT MIN("Gold") FROM table_60858 WHERE "Total" = '7'
|
### Instruction:
CREATE TABLE table_2651755_1 (
independent_regional_force VARCHAR,
democratic_coalition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the independent regional force when democratic coalition is (r) jorge tarud ( ppd )?
### Response:
|
SELECT independent_regional_force FROM table_2651755_1 WHERE democratic_coalition = "(R) Jorge Tarud ( PPD )"
|
### Instruction:
CREATE TABLE table_name_18 (
social_software VARCHAR,
charting VARCHAR,
discussion VARCHAR,
time_tracking VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE SOCIAL SOFTWARE WITH NO DISCUSSION, NO TIME TRACKING, AND NO CHARTING?
### Response:
|
SELECT social_software FROM table_name_18 WHERE discussion = "no" AND time_tracking = "no" AND charting = "no"
|
### Instruction:
CREATE TABLE table_724 (
"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 is the incumbent where the district is florida 9?
### Response:
|
SELECT "Incumbent" FROM table_724 WHERE "District" = 'Florida 9'
|
### Instruction:
CREATE TABLE table_name_66 (
interview INTEGER,
swimsuit VARCHAR,
average VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097?
### Response:
|
SELECT MAX(interview) FROM table_name_66 WHERE swimsuit = 8.857 AND average > 9.097
|
### Instruction:
CREATE TABLE table_25751 (
"Position" real,
"Driver" text,
"Points" real,
"Starts" real,
"Wins" real,
"Top 5s" real,
"Top 10s" real,
"Winnings ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many starts are there?
### Response:
|
SELECT MIN("Starts") FROM table_25751
|
### Instruction:
CREATE TABLE table_11413 (
"Name" text,
"Builder" text,
"Type" text,
"Date" real,
"Works number" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total work number of Gowrie after 1875?
### Response:
|
SELECT SUM("Works number") FROM table_11413 WHERE "Date" > '1875' AND "Name" = 'gowrie'
|
### Instruction:
CREATE TABLE table_76288 (
"Year" real,
"Category" text,
"President" text,
"Nominee" text,
"Film or Television Series or Miniseries" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of Frank Langella?
### Response:
|
SELECT "Result" FROM table_76288 WHERE "Nominee" = 'frank langella'
|
### Instruction:
CREATE TABLE table_203_629 (
id number,
"year" number,
"title" text,
"lead vocalist" text,
"aria chart position" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the lead vocalist in sweat it out ?
### Response:
|
SELECT "lead vocalist" FROM table_203_629 WHERE "title" = '"sweat it out"'
|
### Instruction:
CREATE TABLE table_15352 (
"Media market name" text,
"Callsign" text,
"Analog" text,
"Digital" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the analog type for cw on digital 26?
### Response:
|
SELECT "Analog" FROM table_15352 WHERE "Affiliation" = 'cw' AND "Digital" = '26'
|
### Instruction:
CREATE TABLE table_203_358 (
id number,
"pos." number,
"athlete" text,
"run 1" number,
"run 2" number,
"total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long did it take for jan urfer to complete run 2 ?
### Response:
|
SELECT "run 2" FROM table_203_358 WHERE "athlete" = 'jan urfer'
|
### Instruction:
CREATE TABLE table_name_23 (
to_par INTEGER,
country VARCHAR,
year_s__won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of To Par, when Country is 'United States', and when Year(s) Won is '1973'?
### Response:
|
SELECT SUM(to_par) FROM table_name_23 WHERE country = "united states" AND year_s__won = "1973"
|
### Instruction:
CREATE TABLE table_42209 (
"Record" text,
"Athlete" text,
"Nation" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record with a Date that is may 20, 1961?
### Response:
|
SELECT "Record" FROM table_42209 WHERE "Date" = 'may 20, 1961'
|
### Instruction:
CREATE TABLE table_36730 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Incumbent that has a District of ohio 13 in Democratic Party?
### Response:
|
SELECT "Incumbent" FROM table_36730 WHERE "District" = 'ohio 13'
|
### Instruction:
CREATE TABLE table_20549371_3 (
vehicle VARCHAR,
epa_rated_highway_fuel_economy VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What vehicle has an epa highway fuel economy of 109 mpg-e?
### Response:
|
SELECT vehicle FROM table_20549371_3 WHERE epa_rated_highway_fuel_economy = "109 mpg-e"
|
### Instruction:
CREATE TABLE table_203_5 (
id number,
"season" text,
"competition" text,
"round" text,
"opponent" text,
"home" text,
"away" text,
"aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many home games did st. gallen win ?
### Response:
|
SELECT COUNT(*) FROM table_203_5 WHERE "home" > "home"
|
### Instruction:
CREATE TABLE table_36526 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Record of 11 12 involved what average attendance figures?
### Response:
|
SELECT AVG("Attendance") FROM table_36526 WHERE "Record" = '11–12'
|
### 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 top listed venue in the table ?
### Response:
|
SELECT "venue" FROM table_204_913 WHERE id = 1
|
### Instruction:
CREATE TABLE table_9992 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Player, when Round is less than 6, and when Pick is '69'?
### Response:
|
SELECT "Player" FROM table_9992 WHERE "Round" < '6' AND "Pick" = '69'
|
### Instruction:
CREATE TABLE table_45247 (
"Name" text,
"Pinnacle height" text,
"Structure type" text,
"Main use" text,
"Country" text,
"Town" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country has the SBA Towers Tower Hayneville?
### Response:
|
SELECT "Country" FROM table_45247 WHERE "Name" = 'sba towers tower hayneville'
|
### Instruction:
CREATE TABLE table_57513 (
"Date of Issue" text,
"Theme" text,
"Design" text,
"Illustration" text,
"Paper Type" text,
"First Day Cover Cancellation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of Issue with a Theme with mental health?
### Response:
|
SELECT "Date of Issue" FROM table_57513 WHERE "Theme" = 'mental health'
|
### Instruction:
CREATE TABLE table_name_83 (
consistency_ VARCHAR,
_participation VARCHAR,
pareto_efficiency VARCHAR,
condorcet VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the consistency & participation when pareto efficiency is yes and condorcet is no?
### Response:
|
SELECT consistency_ & _participation FROM table_name_83 WHERE pareto_efficiency = "yes" AND condorcet = "no"
|
### Instruction:
CREATE TABLE table_18330 (
"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 is the district that has Bob Wilson as an incumbent?
### Response:
|
SELECT "District" FROM table_18330 WHERE "Incumbent" = 'Bob Wilson'
|
### Instruction:
CREATE TABLE table_58745 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name The Score of Player of seve ballesteros?
### Response:
|
SELECT "Score" FROM table_58745 WHERE "Player" = 'seve ballesteros'
|
### Instruction:
CREATE TABLE table_42384 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent for the game with 37,845 people in attendance?
### Response:
|
SELECT "Opponent" FROM table_42384 WHERE "Attendance" = '37,845'
|
### Instruction:
CREATE TABLE table_2116 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year did the Lions join?
### Response:
|
SELECT MIN("Joined") FROM table_2116 WHERE "Nickname" = 'Lions'
|
### Instruction:
CREATE TABLE table_36235 (
"Frequency" real,
"Callsign" text,
"Brand" text,
"City of License" text,
"Website" text,
"Webcast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The KTRH.com website includes which type of webcast?
### Response:
|
SELECT "Webcast" FROM table_36235 WHERE "Website" = 'ktrh.com'
|
### Instruction:
CREATE TABLE table_name_44 (
tickets_sold___available VARCHAR,
gross_revenue__2011_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many tickets were sold/available when the gross revenue (2011) was $366,916?
### Response:
|
SELECT tickets_sold___available FROM table_name_44 WHERE gross_revenue__2011_ = "$366,916"
|
### Instruction:
CREATE TABLE table_27330 (
"Region" text,
"Public network" text,
"Own/community generator" text,
"Solar panel" text,
"Other source" text,
"None" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many regions have 0.5% solar panels?
### Response:
|
SELECT COUNT("Public network") FROM table_27330 WHERE "Solar panel" = '0.5%'
|
### Instruction:
CREATE TABLE table_23329 (
"(Virtual)" text,
"Callsign" text,
"Affiliation" text,
"Branding" text,
"Channel" text,
"Programming" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the virtual callsign if is wnet
### Response:
|
SELECT "(Virtual)" FROM table_23329 WHERE "Callsign" = 'WNET'
|
### Instruction:
CREATE TABLE table_name_62 (
bronze INTEGER,
total VARCHAR,
gold VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are smaller than 1, and the total is smaller than 1?
### Response:
|
SELECT SUM(bronze) FROM table_name_62 WHERE gold > 0 AND silver < 1 AND total < 1
|
### Instruction:
CREATE TABLE table_3477 (
"District" real,
"Representative" text,
"Party" text,
"Residence" text,
"First Elected" text,
"Term Limited" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times was Scott Oelslager a representative?
### Response:
|
SELECT COUNT("Residence") FROM table_3477 WHERE "Representative" = 'Scott Oelslager'
|
### Instruction:
CREATE TABLE table_47826 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest To Par, when Score is '72-73=145'?
### Response:
|
SELECT MAX("To par") FROM table_47826 WHERE "Score" = '72-73=145'
|
### Instruction:
CREATE TABLE table_204_839 (
id number,
"et" text,
"days available" text,
"program" text,
"host(s)" text,
"description" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many days is fbn live available each week ?
### Response:
|
SELECT "days available" - "days available" + 1 FROM table_204_839 WHERE "program" = 'fbn live'
|
### Instruction:
CREATE TABLE table_3695 (
"District" text,
"Counties Represented" text,
"Delegate" text,
"Party" text,
"First Elected" real,
"Committee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What committees do the district 46 members serve on?
### Response:
|
SELECT "Committee" FROM table_3695 WHERE "District" = '46'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.