instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
What is the sum of the bronze medals of the nation with less than 0 silvers?
### Response:
| SELECT SUM("Bronze") FROM table_79666 WHERE "Silver" < '0' |
### Instruction:
How many districts does john j. douglass represent?
### Response:
| SELECT COUNT(district) FROM table_1342379_20 WHERE incumbent = "John J. Douglass" |
### Instruction:
Which Group's Equity Shareholding has a Company of epcor?
### Response:
| SELECT "Group's Equity Shareholding" FROM table_47147 WHERE "Company" = 'epcor' |
### Instruction:
List the description of all aircrafts, and count them by a bar chart, and I want to display in descending by the names.
### Response:
| SELECT Description, COUNT(Description) FROM aircraft GROUP BY Description ORDER BY Description DESC |
### Instruction:
when the nickname halley is used, what are the date completed
### Response:
| SELECT "DATE COMPLETED" FROM table_19848 WHERE "NICKNAME" = 'Halley' |
### Instruction:
What team were the bills playing where their first down was 23?
### Response:
| SELECT opponent FROM table_16677887_2 WHERE bills_first_downs = 23 |
### Instruction:
What date were the runner ups pat hurst juli inkster?
### Response:
| SELECT date FROM table_1121352_2 WHERE runner_s__up = "Pat Hurst Juli Inkster" |
### Instruction:
How many years was Audi Sport Team Joest in 3rd position?
### Response:
| SELECT COUNT(year) FROM table_name_8 WHERE team = "audi sport team joest" AND pos = "3rd" |
### Instruction:
What college did the player with a school of huntsville high school go to?
### Response:
| SELECT "College" FROM table_10729 WHERE "School" = 'huntsville high school' |
### Instruction:
What day did they record a score of 1-2 in 1994?
### Response:
| SELECT date FROM table_name_55 WHERE score = "1-2" AND year = 1994 |
### Instruction:
Display the first and last name, and salary for those employees whose first name is ending with the letter m.
### Response:
| SELECT first_name, last_name, salary FROM employees WHERE first_name LIKE '%m' |
### Instruction:
Draw a bar chart for what are the different classes of races, and how many races correspond to each?, and show in asc by the total number.
### Response:
| SELECT Class, COUNT(*) FROM race GROUP BY Class ORDER BY COUNT(*) |
### Instruction:
What is Timo Lehkonen's highest pick number?
### Response:
| SELECT MAX(pick__number) FROM table_2850912_5 WHERE player = "Timo Lehkonen" |
### Instruction:
When north melbourne played as the home team, what was the away team score?
### Response:
| SELECT "Away team score" FROM table_54664 WHERE "Home team" = 'north melbourne' |
### Instruction:
What are the average points with a Chassis of zakspeed 881?
### Response:
| SELECT AVG(points) FROM table_name_40 WHERE chassis = "zakspeed 881" |
### Instruction:
What is the location/ attendance for a 35-28 record?
### Response:
| SELECT "Location/Attendance" FROM table_63634 WHERE "Record" = '35-28' |
### Instruction:
What was the nationality of five-eighth player Darren Lockyer?
### Response:
| SELECT nationality FROM table_name_96 WHERE player = "darren lockyer" AND position = "five-eighth" |
### Instruction:
What was the date of the game when the opponent was the Miami Dolphins?
### Response:
| SELECT date FROM table_17782308_1 WHERE opponent = "Miami Dolphins" |
### Instruction:
In the game where the home team is collingwood, what is the score of the away team?
### Response:
| SELECT away_team AS score FROM table_name_70 WHERE home_team = "collingwood" |
### Instruction:
What was the score when 50,514 people were in attendance?
### Response:
| SELECT "Result" FROM table_14457 WHERE "Attendance" = '50,514' |
### Instruction:
What is the urban population for the city of Fuzhou?
### Response:
| SELECT AVG("Urban Population (2010)") FROM table_8970 WHERE "City" = 'fuzhou' |
### Instruction:
What is the final score when 22210 is the attendance?
### Response:
| SELECT "Final Score" FROM table_26187 WHERE "Attendance" = '22210' |
### Instruction:
What is shintaro ishiwatari's time?
### Response:
| SELECT "Time" FROM table_57680 WHERE "Opponent" = 'shintaro ishiwatari' |
### Instruction:
What are the dates with a maximum temperature higher than 85, and count them by a line chart
### Response:
| SELECT date, COUNT(date) FROM weather WHERE max_temperature_f > 85 GROUP BY date |
### Instruction:
What was the result of the game after week 6 against the cleveland browns?
### Response:
| SELECT result FROM table_name_41 WHERE week < 6 AND opponent = "cleveland browns" |
### Instruction:
when svein tuft is the winner how many stages are there?
### Response:
| SELECT COUNT(stage) FROM table_28298471_14 WHERE winner = "Svein Tuft" |
### Instruction:
Who's the Socialist ticket with a Republican ticket of john a. may?
### Response:
| SELECT socialist_ticket FROM table_name_2 WHERE republican_ticket = "john a. may" |
### Instruction:
Who was the first team when the second team was Kalise Gran Canaria?
### Response:
| SELECT "Team #1" FROM table_48965 WHERE "Team #2" = 'kalise gran canaria' |
### Instruction:
What is the party of the election in which Robert Bauman is the incumbent?
### Response:
| SELECT party FROM table_1341690_20 WHERE incumbent = "Robert Bauman" |
### Instruction:
List the number of ramsan-720 hard drives?
### Response:
| SELECT COUNT("Storage Medium") FROM table_74153 WHERE "Product Name" = 'RamSan-720' |
### Instruction:
How many years as tallest building was the Tenth Presbyterian Church?
### Response:
| SELECT years_as_tallest FROM table_name_78 WHERE name = "tenth presbyterian church" |
### Instruction:
When 1462/63 was the elected what was the no.?
### Response:
| SELECT no FROM table_1827690_4 WHERE elected = "1462/63" |
### Instruction:
What date was the result 3-1 in Hague?
### Response:
| SELECT "Date" FROM table_65434 WHERE "Result" = '3-1' AND "Location" = 'hague' |
### Instruction:
Name the goals for mauricio pochettino
### Response:
| SELECT "Goals\u00b9" FROM table_26958 WHERE "Name" = 'Mauricio Pochettino' |
### Instruction:
give the 1st leg score against ilisiakos
### Response:
| SELECT 1 AS st_leg FROM table_21434618_1 WHERE team__number2 = "Ilisiakos" |
### Instruction:
What are the interview scores for contestants whose average is 9.090?
### Response:
| SELECT "Interview" FROM table_20760 WHERE "Average" = '9.090' |
### Instruction:
What is the car with the lowest extinct year that has a NBR class of 32?
### Response:
| SELECT MIN(extinct) FROM table_name_21 WHERE nbr_class = 32 |
### Instruction:
What is the Frequency MHz of Trinidad, Colorado?
### Response:
| SELECT "Frequency MHz" FROM table_39209 WHERE "City of license" = 'trinidad, colorado' |
### Instruction:
Find the email and phone number of the customers who have never filed a complaint before.
### Response:
| SELECT email_address, phone_number FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM complaints) |
### Instruction:
Find the captain rank that has no captain in Third-rate ship of the line class.
### Response:
| SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line' |
### Instruction:
What is the summary for the episode with a coach named Rebecca Star?
### Response:
| SELECT "Episode Summary" FROM table_24328 WHERE "Coach" = 'Rebecca Star' |
### Instruction:
I want the years for marathon distance and wins of 3
### Response:
| SELECT "Years" FROM table_57663 WHERE "Distance" = 'marathon' AND "Wins" = '3' |
### Instruction:
What was the score of the game whose first star was O. Pavelec?
### Response:
| SELECT "Score" FROM table_29600 WHERE "First Star" = 'O. Pavelec' |
### Instruction:
what is the total number of communities with a target date of 2015 ?
### Response:
| SELECT COUNT("community") FROM table_204_321 WHERE "target date" = 2015 |
### Instruction:
What nation started in lane 3 of heat 2?
### Response:
| SELECT "Nationality" FROM table_14826 WHERE "Heat" = '2' AND "Lane" = '3' |
### Instruction:
What place did jacky cupit take when his To par was under 13?
### Response:
| SELECT place FROM table_name_67 WHERE to_par < 13 AND player = "jacky cupit" |
### Instruction:
Which Historical Photos were taken at prospect 43 prospect ave?
### Response:
| SELECT "Historical Photos" FROM table_38398 WHERE "Location" = 'prospect 43 prospect ave' |
### Instruction:
What is the Name with an overall of less than 123 for the Detroit Lions?
### Response:
| SELECT name FROM table_name_3 WHERE overall < 123 AND team = "detroit lions" |
### Instruction:
BURN WITH FIRE ALL STUPID UNICORN COMMENTS. They are just stupid noise.
### Response:
| SELECT PostId AS "post_link", Text FROM Comments WHERE Text LIKE '%unicorn%' |
### Instruction:
who is the author when featuring is leela, the master, kraals?
### Response:
| SELECT "Author" FROM table_49869 WHERE "Featuring" = 'leela, the master, kraals' |
### Instruction:
What is the greatest Goals with a Name of samuel eto'o?
### Response:
| SELECT MAX("Goals") FROM table_12516 WHERE "Name" = 'samuel eto''o' |
### Instruction:
What is the maximum t20 on green lane?
### Response:
| SELECT MAX(t20_matches) FROM table_1176371_1 WHERE name_of_ground = "Green Lane" |
### Instruction:
When was Elaine Powell (g) of the United states picked?
### Response:
| SELECT pick FROM table_name_17 WHERE nationality = "united states" AND player = "elaine powell (g)" |
### Instruction:
what is admission type and primary disease of subject name dawn cooper?
### Response:
| SELECT demographic.admission_type, demographic.diagnosis FROM demographic WHERE demographic.name = "Dawn Cooper" |
### Instruction:
Which Series 2 has a Series 3 of deborah meaden?
### Response:
| SELECT "Series 2" FROM table_78694 WHERE "Series 3" = 'deborah meaden' |
### Instruction:
In how many different years did schools located in Logan Township, Pennsylvania join the Conference?
### Response:
| SELECT COUNT("Joined") FROM table_23184 WHERE "Location" = 'Logan Township, Pennsylvania' |
### Instruction:
What is the release date for the Chinese title ?
### Response:
| SELECT released_date FROM table_name_46 WHERE chinese_title = "摸摸瓦力欧制造" |
### Instruction:
how many channels were gained in 1997
### Response:
| SELECT COUNT(other_programming_sources) FROM table_1397655_1 WHERE year_acquired = 1997 |
### Instruction:
When the ability to compromise is 13, what is background?
### Response:
| SELECT MAX(background) FROM table_1855342_5 WHERE ability_to_compromise = 13 |
### Instruction:
What tournament has yvonne vermaak as the opponent?
### Response:
| SELECT "Tournament" FROM table_37114 WHERE "Opponent" = 'yvonne vermaak' |
### Instruction:
What is the home team score at brunswick street oval?
### Response:
| SELECT "Home team score" FROM table_4664 WHERE "Venue" = 'brunswick street oval' |
### Instruction:
How many goals occurred for Stein Huysegems when the caps value is more than 8?
### Response:
| SELECT goals FROM table_name_13 WHERE caps > 8 AND player = "stein huysegems" |
### Instruction:
which animal type has the most pillow pals ?
### Response:
| SELECT "animal type" FROM table_204_111 GROUP BY "animal type" ORDER BY COUNT("name") DESC LIMIT 1 |
### Instruction:
How many points were scored when the record was 6-8-6?
### Response:
| SELECT COUNT(points) FROM table_17360840_5 WHERE record = "6-8-6" |
### Instruction:
What is in the ninth position where the tenth position is rabat ajax?
### Response:
| SELECT "9th Position" FROM table_33623 WHERE "10th Position" = 'rabat ajax' |
### Instruction:
When the others had a value of 7%, what was the Polling organisation/client?
### Response:
| SELECT "Polling organisation/client" FROM table_45115 WHERE "Others" = '7%' |
### Instruction:
List the population density per kilometer for the city of calintaan?
### Response:
| SELECT pop_density__per_km²_ FROM table_261951_1 WHERE municipality = "Calintaan" |
### Instruction:
What is No. 8, when No. 10 is Hunter?
### Response:
| SELECT "No. 8" FROM table_49613 WHERE "No. 10" = 'hunter' |
### Instruction:
What is Country of Origin, when Year of Intro is 1977?
### Response:
| SELECT "Country of origin" FROM table_7702 WHERE "Year of intro" = '1977' |
### Instruction:
When 1.12 is the production code what is the original title?
### Response:
| SELECT original_title FROM table_20124413_1 WHERE prod_code = "1.12" |
### Instruction:
When 4 is the v-band what is the overall amount of ka-bands?
### Response:
| SELECT COUNT("Ka-band") FROM table_1941 WHERE "V-band" = '4' |
### Instruction:
what is drug route of drug name heparin (preservative free)?
### Response:
| SELECT prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Heparin (Preservative Free)" |
### Instruction:
Date of september 25, 1983 is what game site?
### Response:
| SELECT game_site FROM table_name_68 WHERE date = "september 25, 1983" |
### Instruction:
What position did Tara Palmer-Tomkinson finish?
### Response:
| SELECT "Finished" FROM table_19290 WHERE "Celebrity" = 'Tara Palmer-Tomkinson' |
### Instruction:
How many airports haven't the pilot 'Thompson' driven an aircraft?
### Response:
| SELECT COUNT(*) FROM airport WHERE NOT id IN (SELECT airport_id FROM flight WHERE pilot = 'Thompson') |
### Instruction:
On what date did the game end with the result w 43-14?
### Response:
| SELECT "Date" FROM table_18025 WHERE "Result" = 'W 43-14' |
### Instruction:
What was the time for the G2 group at the Hobartville Stakes?
### Response:
| SELECT time FROM table_name_62 WHERE group = "g2" AND race = "hobartville stakes" |
### Instruction:
What is the Margin of victory at the Bob Hope Desert Classic Tournament?
### Response:
| SELECT "Margin of victory" FROM table_7641 WHERE "Tournament" = 'bob hope desert classic' |
### Instruction:
Show me how many in each class of all races using a bar chart, show in descending by the Y-axis.
### Response:
| SELECT Class, COUNT(Class) FROM race GROUP BY Class ORDER BY COUNT(Class) DESC |
### Instruction:
Who is the candidate in Race for State representative, hd18?
### Response:
| SELECT "Candidate" FROM table_51555 WHERE "Race" = 'state representative, hd18' |
### Instruction:
What is the lowest attendance of a game that has the result of 2-0?
### Response:
| SELECT MIN("Attendance") FROM table_38002 WHERE "Result" = '2-0' |
### Instruction:
Name the average total medals with ensemble of goshen hs
### Response:
| SELECT AVG("Total Medals") FROM table_15552 WHERE "Ensemble" = 'goshen hs' |
### Instruction:
When less than 30 games have been played what is the average goals scored?
### Response:
| SELECT AVG("Goals scored") FROM table_62696 WHERE "Games played" < '30' |
### Instruction:
What was their record when the attendance at the game was 14489?
### Response:
| SELECT "Record" FROM table_21905 WHERE "Attendance" = '14489' |
### Instruction:
What trips are operated by Atlantic coast charters?
### Response:
| SELECT "Total trips (AM/PM)" FROM table_38719 WHERE "Operated by" = 'atlantic coast charters' |
### Instruction:
What was the date of appointment for paco chaparro's replacement?
### Response:
| SELECT date_of_appointment FROM table_name_12 WHERE outgoing_manager = "paco chaparro" |
### Instruction:
What is the total number of names of products?, and show in ascending by the x axis.
### Response:
| SELECT Product_Name, COUNT(Product_Name) FROM Products GROUP BY Product_Name ORDER BY Product_Name |
### Instruction:
What is Opponent, when Result is Win, and when Date is Aug 7?
### Response:
| SELECT opponent FROM table_name_67 WHERE result = "win" AND date = "aug 7" |
### Instruction:
which reps were only appointed by franklin pierce ?
### Response:
| SELECT "representative" FROM table_203_778 WHERE "appointed by" = 'franklin pierce' |
### Instruction:
What is the 1998 value with 2r in 2003?
### Response:
| SELECT 1998 FROM table_name_60 WHERE 2003 = "2r" |
### Instruction:
What is Result, when Opponent is 'Rochester Royals'?
### Response:
| SELECT "Result" FROM table_59292 WHERE "Opponent" = 'rochester royals' |
### Instruction:
Where's the location for the opponent James Zikic and 3 rounds?
### Response:
| SELECT location FROM table_name_99 WHERE round = 3 AND opponent = "james zikic" |
### Instruction:
What was the total number of weeks where the game played Ivor Wynne Stadium?
### Response:
| SELECT COUNT("Week") FROM table_24604 WHERE "Location" = 'Ivor Wynne Stadium' |
### Instruction:
what is the award for the 2009 songwriter of the year?
### Response:
| SELECT award FROM table_name_24 WHERE year = 2009 AND category = "songwriter of the year" |
### Instruction:
Can you tell me the Competing entities that has the First held smaller than 1970?
### Response:
| SELECT competing_entities FROM table_name_4 WHERE first_held < 1970 |
### Instruction:
Which producer worked with Robert Sproul-cran as writer?
### Response:
| SELECT "Producer(s)" FROM table_69172 WHERE "Writer(s)" = 'robert sproul-cran' |
### Instruction:
Name the mandate for list pct 12.39%
### Response:
| SELECT mandate FROM table_14834801_1 WHERE list_pct = "12.39%" |
### Instruction:
Create a bar chart showing how many arrival across arrival, list by the the number of arrival in ascending.
### Response:
| SELECT Arrival, COUNT(Arrival) FROM train GROUP BY Arrival ORDER BY COUNT(Arrival) |
### Instruction:
How many points did Bob Gerard Racing have in 1965?
### Response:
| SELECT points FROM table_name_37 WHERE entrant = "bob gerard racing" AND year = 1965 |
### Instruction:
What district re-elected a Republican?
### Response:
| SELECT "District" FROM table_59879 WHERE "Party" = 'republican' AND "Results" = 're-elected' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.