instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
Name the team nickname for enrollment more than 42,326
### Response:
| SELECT team_nickname FROM table_name_21 WHERE enrollment > 42 OFFSET 326 |
### Instruction:
What was the population in 2010 for Minane
### Response:
| SELECT MAX(population__2010_) FROM table_2144436_1 WHERE barangay = "Minane" |
### Instruction:
What was the overall pick for the player who was a guard and had a round less than 9?
### Response:
| SELECT AVG(overall) FROM table_name_4 WHERE position = "guard" AND round < 9 |
### Instruction:
what is subject name and primary disease of subject id 7578?
### Response:
| SELECT demographic.name, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "7578" |
### Instruction:
Which tournament was played on 12 February 2001?
### Response:
| SELECT "Tournament" FROM table_41301 WHERE "Date" = '12 february 2001' |
### Instruction:
What was the result of t.u.f.f. puppy?
### Response:
| SELECT "Result" FROM table_53715 WHERE "Work" = 't.u.f.f. puppy' |
### Instruction:
Which date had less than 3 goals and a result of (w) 2-0?
### Response:
| SELECT date FROM table_name_23 WHERE goals < 3 AND result = "(w) 2-0" |
### Instruction:
What was the Total the Year Yugoslavia had 0 Silver medals and 31 Competitors?
### Response:
| SELECT total FROM table_name_5 WHERE silver = "0" AND competitors = "31" |
### Instruction:
What game was before 2010 and was a role-playing game?
### Response:
| SELECT game FROM table_name_82 WHERE year < 2010 AND genre = "role-playing game" |
### Instruction:
What was the smallest production code for August 11's original episode?
### Response:
| SELECT MIN("Production code") FROM table_28007 WHERE "Original airdate" = 'August 11' |
### Instruction:
What is the name of the cornerback from Wisconsin college?
### Response:
| SELECT "Name" FROM table_62297 WHERE "Position" = 'cornerback' AND "College" = 'wisconsin' |
### Instruction:
what's the notes where withdrawn is 1956 57
### Response:
| SELECT "Notes" FROM table_346 WHERE "Withdrawn" = '1956–57' |
### Instruction:
What position is associated with the hometown of Olney, Maryland?
### Response:
| SELECT COUNT(position) FROM table_11677691_5 WHERE hometown = "Olney, Maryland" |
### Instruction:
What is top ep number for 'missile bound cat'?
### Response:
| SELECT MAX("Ep") FROM table_23364 WHERE "Pixie and Dixie" = 'Missile Bound Cat' |
### Instruction:
Tell me the highest bosniaks for year more than 2002
### Response:
| SELECT MAX("Bosniaks") FROM table_31641 WHERE "Census year" > '2002' |
### Instruction:
The Significant Relationship of Parents belongs with what Virtue?
### Response:
| SELECT "Virtues" FROM table_33615 WHERE "Significant Relationship" = 'parents' |
### Instruction:
Gold of 0, and a Bronze smaller than 0 and what is the sum of the silver?
### Response:
| SELECT SUM(silver) FROM table_name_69 WHERE gold = 0 AND bronze < 0 |
### Instruction:
What was the date of the Paco Rabanne Open de France?
### Response:
| SELECT "Date" FROM table_40009 WHERE "Tournament" = 'paco rabanne open de france' |
### Instruction:
How many tries for does waunarlwydd rfc have ?
### Response:
| SELECT "Tries for" FROM table_71635 WHERE "Club" = 'waunarlwydd rfc' |
### Instruction:
what is the attendance where the game site is kingdome?
### Response:
| SELECT MIN(attendance) FROM table_16729076_1 WHERE game_site = "Kingdome" |
### Instruction:
How many different descriptions are there for the flag that means decimal digit 2?
### Response:
| SELECT COUNT(description) FROM table_29997112_3 WHERE meaning = "Decimal Digit 2" |
### Instruction:
Which average Against has Points of 6, and a Played smaller than 9?
### Response:
| SELECT AVG(against) FROM table_name_65 WHERE points = 6 AND played < 9 |
### Instruction:
What is the name of the team that Tulip Computers NV sponsors?
### Response:
| SELECT "Team" FROM table_54327 WHERE "Shirt sponsor" = 'tulip computers nv' |
### Instruction:
What is the average amount of appearances for the Bronze Meals less than 0?
### Response:
| SELECT AVG("Appearances") FROM table_7108 WHERE "Bronze Medals" < '0' |
### Instruction:
how many times did a can i bus album reach the top 10 on the us charts ?
### Response:
| SELECT COUNT(*) FROM table_203_137 WHERE "title" = 'can-i-bus' |
### Instruction:
What is the total number of byes that has 13 losses and wins less than 5?
### Response:
| SELECT COUNT(byes) FROM table_name_41 WHERE losses = 13 AND wins < 5 |
### Instruction:
What state was the president who was elected earlier than 1848 born in?
### Response:
| SELECT "Birth State" FROM table_11584 WHERE "Election Year" < '1848' |
### Instruction:
What is Location, when Opponent is 'Jonathan Goulet'?
### Response:
| SELECT "Location" FROM table_9649 WHERE "Opponent" = 'jonathan goulet' |
### Instruction:
How few runs does the 97.00 average have?
### Response:
| SELECT MIN(runs) FROM table_27922491_11 WHERE average = "97.00" |
### Instruction:
get me the birth date and time of admission for patient travis hofman.
### Response:
| SELECT demographic.dob, demographic.admittime FROM demographic WHERE demographic.name = "Travis Hofman" |
### Instruction:
How many directors were there for the production code 1ark08?
### Response:
| SELECT COUNT("Directed by") FROM table_73450 WHERE "Production code" = '1ARK08' |
### Instruction:
What was the attendance of the Blue Jays' game when their record was 47-43?
### Response:
| SELECT SUM(attendance) FROM table_name_7 WHERE record = "47-43" |
### Instruction:
What was the maximum week that had attendance of 10738?
### Response:
| SELECT MAX(week) FROM table_24951872_2 WHERE attendance = 10738 |
### Instruction:
Where did Grzegorz Walasek place 4th?
### Response:
| SELECT "City and venue" FROM table_22949 WHERE "4th placed" = 'Grzegorz Walasek' |
### Instruction:
What's the German Pluperfect when the Macedonian is /- /- ?
### Response:
| SELECT german FROM table_name_85 WHERE macedonian = "беше слушнал/-а/-о" |
### Instruction:
How many faculty members do we have for each rank and gender? Plot them as bar chart, and list by the names in desc.
### Response:
| SELECT Rank, COUNT(*) FROM Faculty GROUP BY Sex, Rank ORDER BY Rank DESC |
### Instruction:
What is the compatibility for the Mnemonic d for 'dynamite'?
### Response:
| SELECT "compatibility" FROM table_56488 WHERE "Mnemonic" = 'd for "dynamite' |
### Instruction:
what is the pts/game for Charlotte barras and the games is 5?
### Response:
| SELECT pts_game FROM table_name_78 WHERE games = 5 AND name = "charlotte barras" |
### Instruction:
which songs are produced by pillo jamel or juju .
### Response:
| SELECT "title" FROM table_203_353 WHERE "producer(s)" IN ('pillo jamel', 'juju') |
### Instruction:
Find recent user comments with a given text.
### Response:
| SELECT CreationDate, Id AS "comment_link" FROM Comments WHERE UserId = @UserId AND Text LIKE '%##Text##%' ORDER BY CreationDate DESC |
### Instruction:
Create a bar chart showing the total number across police force, show by the names in desc.
### Response:
| SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force ORDER BY Police_force DESC |
### Instruction:
What percentage of Asians are there in the year 2009?
### Response:
| SELECT asian___percentage_ FROM table_14754471_1 WHERE year = 2009 |
### Instruction:
what is the diameter (km) of feature of latitude 40.5s
### Response:
| SELECT diameter__km_ FROM table_16799784_7 WHERE latitude = "40.5S" |
### Instruction:
What Partner has a Construction Start of 2008 january?
### Response:
| SELECT "Partner" FROM table_61604 WHERE "Construction Start" = '2008 january' |
### Instruction:
What is the language total number if the Tacachi Municipality is 3?
### Response:
| SELECT COUNT(language) FROM table_2509112_3 WHERE tacachi_municipality = 3 |
### Instruction:
What is the status for district georgia's 10th?
### Response:
| SELECT "Status" FROM table_29252 WHERE "District" = 'Georgia''s 10th' |
### Instruction:
What was the Attendance on 31 January 1987?
### Response:
| SELECT COUNT("Attendance") FROM table_6805 WHERE "Date" = '31 january 1987' |
### Instruction:
Which Opponent had a Win as Res and a Time of 1:10?
### Response:
| SELECT opponent FROM table_name_44 WHERE res = "win" AND time = "1:10" |
### Instruction:
which medication has drug code alte1/2l?
### Response:
| SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.formulary_drug_cd = "ALTE1/2I" |
### Instruction:
Which Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown
### Response:
| SELECT "Points Classification Navy Blue Jersey" FROM table_66996 WHERE "General Classification Yellow Jersey" = 'graeme brown' |
### Instruction:
What is the earliest round drafted for a University of Southern California player?
### Response:
| SELECT MIN("Round") FROM table_71194 WHERE "School" = 'university of southern california' |
### Instruction:
What was the Rebuildjahr(e) for the T2AA class?
### Response:
| SELECT "Rebuildjahr(e)" FROM table_79439 WHERE "Class" = 't2aa' |
### Instruction:
How many people were in attendance at Glenferrie Oval?
### Response:
| SELECT MIN("Crowd") FROM table_11531 WHERE "Venue" = 'glenferrie oval' |
### Instruction:
Who is the home team that scored 8.15 (63)?
### Response:
| SELECT "Home team" FROM table_32560 WHERE "Home team score" = '8.15 (63)' |
### Instruction:
what is the long title of diagnosis of icd9 code 7756?
### Response:
| SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "7756" |
### Instruction:
Name the birth of the person married 24 may 1935
### Response:
| SELECT "Birth" FROM table_68311 WHERE "Marriage" = '24 may 1935' |
### Instruction:
Smaller than 37, the highest year for Ford?
### Response:
| SELECT MAX("Year") FROM table_9101 WHERE "Manufacturer" = 'ford' AND "Finish" < '37' |
### Instruction:
what are all the overall with viewers (m) being 2.61
### Response:
| SELECT overall FROM table_13110459_2 WHERE viewers__m_ = "2.61" |
### Instruction:
Name the fate in 1832 for pembrokeshire
### Response:
| SELECT fate_in_1832 FROM table_24329520_4 WHERE county = "Pembrokeshire" |
### Instruction:
What is the average number of cuts made for events with 0 top-5s?
### Response:
| SELECT AVG("Cuts made") FROM table_79679 WHERE "Top-5" < '0' |
### Instruction:
Name the least int yards when sacks is 11.5
### Response:
| SELECT MIN(int) AS yards FROM table_15581223_8 WHERE sacks = "11.5" |
### Instruction:
What was the score of the replay game when watford was the away team?
### Response:
| SELECT score FROM table_name_84 WHERE tie_no = "replay" AND away_team = "watford" |
### Instruction:
what is admission type and primary disease of subject name james sloan?
### Response:
| SELECT demographic.admission_type, demographic.diagnosis FROM demographic WHERE demographic.name = "James Sloan" |
### Instruction:
Who had the fastest lap where Joan Lascorz was the winner?
### Response:
| SELECT "Fastest Lap" FROM table_35989 WHERE "Race Winner" = 'joan lascorz' |
### Instruction:
Who was the winner when the time was 1:24.00?
### Response:
| SELECT "Winner/2nd" FROM table_826 WHERE "Time" = '1:24.00' |
### Instruction:
type the attendance for playing with tampa bay buccaneers?
### Response:
| SELECT "Attendance" FROM table_19504 WHERE "Opponent" = 'Tampa Bay Buccaneers' |
### Instruction:
Which average Game has a High points of wilson chandler (16)?
### Response:
| SELECT AVG(game) FROM table_name_7 WHERE high_points = "wilson chandler (16)" |
### Instruction:
How much were tickets for the show in Indianapolis, Indiana?
### Response:
| SELECT "Ticket price(s)" FROM table_61778 WHERE "City, state" = 'indianapolis, indiana' |
### Instruction:
Highest voted vote different comment.
### Response:
| SELECT PostId AS "post_link", Score, Text FROM Comments WHERE Text LIKE '%faq#vote-differences%' ORDER BY Score DESC LIMIT 10 |
### Instruction:
Mike Crowley plays defense for league?
### Response:
| SELECT college_junior_club_team__league_ FROM table_name_86 WHERE position = "defense" AND player = "mike crowley" |
### Instruction:
what is age and insurance of subject id 42067?
### Response:
| SELECT demographic.age, demographic.insurance FROM demographic WHERE demographic.subject_id = "42067" |
### Instruction:
What's the release date in the 1.1.10 release?
### Response:
| SELECT release AS date FROM table_28540539_2 WHERE release = "1.1.10" |
### Instruction:
Who was the Centerfild model that used Bruce Willis as her Interview subject?
### Response:
| SELECT "Centerfold model" FROM table_41915 WHERE "Interview subject" = 'bruce willis' |
### Instruction:
What is the name of the city with a capacity of 41,311?
### Response:
| SELECT "City" FROM table_41287 WHERE "Capacity" = '41,311' |
### Instruction:
Which race 3 has points greater than 36, and 2 as the race 1?
### Response:
| SELECT race_3 FROM table_name_93 WHERE points > 36 AND race_1 = 2 |
### Instruction:
Which Game Site has a Date of october 17, 1999?
### Response:
| SELECT game_site FROM table_name_1 WHERE date = "october 17, 1999" |
### Instruction:
Who was the opponent at the League Cup competition with a score of 3-1?
### Response:
| SELECT opponents FROM table_name_91 WHERE competition = "league cup" AND score = "3-1" |
### Instruction:
WHAT YEAR WAS IT WHEN THE SCORE WAS 3 & 2?
### Response:
| SELECT "Year" FROM table_72641 WHERE "Winning score" = '3 & 2' |
### Instruction:
What is the local name for the episodes that aired in 1981?
### Response:
| SELECT "Local name" FROM table_79774 WHERE "Dates aired" = '1981' |
### Instruction:
What was the lowest pick for the RHP position and player Mike Biko?
### Response:
| SELECT MIN(pick) FROM table_name_67 WHERE position = "rhp" AND player = "mike biko" |
### Instruction:
What was the pick for the game at the College of Kentucky with the team Washington Capitols?
### Response:
| SELECT pick FROM table_name_56 WHERE college = "kentucky" AND team = "washington capitols" |
### Instruction:
What was the final score in the game in which the Detroit Lions were the home team?
### Response:
| SELECT "Final Score" FROM table_68803 WHERE "Host Team" = 'detroit lions' |
### Instruction:
Who is the player from Spain that has a +2 to par?
### Response:
| SELECT "Player" FROM table_47687 WHERE "To par" = '+2' AND "Country" = 'spain' |
### Instruction:
besides team ibv , which other team had 6 total wins ?
### Response:
| SELECT "team" FROM table_204_314 WHERE "team" <> 'ibv' AND "won" = 6 |
### Instruction:
What was the sum of the points for the song 'why did you have to go?
### Response:
| SELECT SUM("Points") FROM table_40889 WHERE "Song" = 'why did you have to go?' |
### Instruction:
That is the total year that Neal Baer is a nominee?
### Response:
| SELECT SUM("Year") FROM table_63636 WHERE "Nominee(s)" = 'neal baer' |
### Instruction:
what is the last city/town/village listed in the table ?
### Response:
| SELECT "city/town/village" FROM table_204_841 ORDER BY "no." DESC LIMIT 1 |
### Instruction:
How many total rounds have the results of win, and n/a as the method?
### Response:
| SELECT COUNT(round) FROM table_name_12 WHERE res = "win" AND method = "n/a" |
### Instruction:
Srdjan Dragojevic worked on a film which earned what nomination?
### Response:
| SELECT nomination FROM table_10236830_4 WHERE director = "Srdjan Dragojevic" |
### Instruction:
How many cuts did he make at the PGA championship in 3 events?
### Response:
| SELECT MAX(cuts_made) FROM table_name_36 WHERE tournament = "pga championship" AND events > 3 |
### Instruction:
What is the length of the film with the character type being a milkman turned prizefighter?
### Response:
| SELECT length FROM table_name_31 WHERE character_type = "milkman turned prizefighter" |
### Instruction:
Which planet has an orbital period of 11.86 years?
### Response:
| SELECT "Planet" FROM table_16378 WHERE "Orbital Period" = '11.86 years' |
### Instruction:
Who was the visiting team on 12 March 2008?
### Response:
| SELECT "Visitor" FROM table_54976 WHERE "Date" = '12 march 2008' |
### Instruction:
how long was soulima stravinsky alive ?
### Response:
| SELECT "died" - "born" FROM table_204_748 WHERE "composer" = 'soulima stravinsky' |
### Instruction:
What is the earliest year with a label-Nr of st-43?
### Response:
| SELECT MIN("Year") FROM table_66391 WHERE "Label-Nr" = 'st-43' |
### Instruction:
azteca 7 and azteca 13 are both owned by whom ?
### Response:
| SELECT "owner" FROM table_204_779 WHERE "network name" = 'azteca 7' |
### Instruction:
the next year he only had 7 punt return attempts , which year was prior to that
### Response:
| SELECT "year" - 1 FROM table_203_516 WHERE "punt return attempts" = 7 |
### Instruction:
what is the jewel power when the media debut is ep 17?
### Response:
| SELECT "Jewel Power" FROM table_28827 WHERE "Media Debut" = 'EP 17' |
### Instruction:
What was the score of the game that had a record of 52 103?
### Response:
| SELECT "Score" FROM table_69774 WHERE "Record" = '52–103' |
### Instruction:
What shows for 2005 when 2002 shows 0 1?
### Response:
| SELECT 2005 FROM table_name_16 WHERE 2002 = "0–1" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.