instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
List phone number and email address of customer with more than 2000 outstanding balance.
### Response:
| SELECT phone_number, email_address FROM Customers WHERE amount_outstanding > 2000 |
### Instruction:
How many pick # are there for the goaltender position?
### Response:
| SELECT MIN(pick__number) FROM table_22402438_7 WHERE position = "Goaltender" |
### Instruction:
What team was the opponent when the score was 25-0?
### Response:
| SELECT "Opponent" FROM table_14423 WHERE "Score" = '25-0' |
### Instruction:
How many purses were there for the mar 16?
### Response:
| SELECT COUNT("Purse( $ )") FROM table_16962 WHERE "Date" = 'Mar 16' |
### Instruction:
What is the score of the game with an 11-32-11 record?
### Response:
| SELECT score FROM table_name_40 WHERE record = "11-32-11" |
### Instruction:
Which team had a manager replaced by Ebrahim Talebi?
### Response:
| SELECT team FROM table_22297140_3 WHERE replaced_by = "Ebrahim Talebi" |
### Instruction:
A bar chart for listing the number of the phone numbers of all employees, list by the total number in desc.
### Response:
| SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone ORDER BY COUNT(Phone) DESC |
### Instruction:
What is the power in kW corresponding to the station that covers General Santos?
### Response:
| SELECT "Power (kW)" FROM table_40151 WHERE "Coverage" = 'general santos' |
### Instruction:
Which is my most upvoted comment?.
### Response:
| SELECT * FROM Comments WHERE UserId = @UserId AND Score = (SELECT MAX(Score) FROM Comments WHERE UserId = @UserId) |
### Instruction:
When @ new orleans is the team who has the highest amount of rebounds?
### Response:
| SELECT high_rebounds FROM table_17288825_6 WHERE team = "@ New Orleans" |
### Instruction:
What is the average number of games associated with 6 points and under 2 losses?
### Response:
| SELECT AVG(games) FROM table_name_80 WHERE points = 6 AND lost < 2 |
### Instruction:
How far did p. carbery run to get 2nd?
### Response:
| SELECT distance FROM table_name_67 WHERE jockey = "p. carbery" AND result = "2nd" |
### Instruction:
Which IHSAA Class has a Mascot of bulldogs?
### Response:
| SELECT "IHSAA Class" FROM table_64979 WHERE "Mascot" = 'bulldogs' |
### Instruction:
What is the origin of the constellation that can be abbreviated to tele?
### Response:
| SELECT origin FROM table_287159_1 WHERE other_abbreviation = "Tele" |
### Instruction:
Where was the game played when the team's record was 1-3?
### Response:
| SELECT game_site FROM table_11452830_2 WHERE record = "1-3" |
### Instruction:
What was the score at Tiger Stadium on October 12?
### Response:
| SELECT score FROM table_name_14 WHERE location = "tiger stadium" AND date = "october 12" |
### Instruction:
Who was the girl on week 1 that was previous to week 3's Ava Hart?
### Response:
| SELECT week_1 FROM table_name_23 WHERE week_3 = "ava hart" |
### Instruction:
What is the win percentage for the 2012 of olympic games?
### Response:
| SELECT win__percentage FROM table_name_19 WHERE 2012 = "olympic games" |
### Instruction:
What is the smallest pick for the player, brett lindros?
### Response:
| SELECT MIN(pick) FROM table_1013129_1 WHERE player = "Brett Lindros" |
### Instruction:
What is the total capacity (MW) of the farm that is noted as being under construction?
### Response:
| SELECT COUNT(capacity__mw_) FROM table_name_17 WHERE notes = "under construction" |
### Instruction:
Does hal perkins have any papers published ?
### Response:
| SELECT DISTINCT writes.paperid FROM author, writes WHERE author.authorname = 'hal perkins' AND writes.authorid = author.authorid |
### Instruction:
which format was used the most according to this chart ?
### Response:
| SELECT "format(s)" FROM table_203_545 GROUP BY "format(s)" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
What was the qualifying 1 time for Rusport and Justin Wilson?
### Response:
| SELECT qual_1 FROM table_name_27 WHERE team = "rusport" AND name = "justin wilson" |
### Instruction:
Name the song for safe result #8.
### Response:
| SELECT "Song Choice" FROM table_26369 WHERE "Result" = 'Safe' AND "Order #" = '8' |
### Instruction:
How many silver for the team with more than 2 bronze and more than 7 gold?
### Response:
| SELECT COUNT(silver) FROM table_name_53 WHERE bronze > 2 AND gold > 7 |
### Instruction:
When was ron-robert zieler loaned out until ?
### Response:
| SELECT "Date To" FROM table_62207 WHERE "Name" = 'ron-robert zieler' |
### Instruction:
What was the Attendance of the game against the Los Angeles Raiders?
### Response:
| SELECT "Attendance" FROM table_9879 WHERE "Opponent" = 'los angeles raiders' |
### Instruction:
With a time of 53.33, who ranked the highest?
### Response:
| SELECT MAX("Rank") FROM table_14355 WHERE "Time" = '53.33' |
### Instruction:
Which Year has a Purse of $83,925?
### Response:
| SELECT "Year" FROM table_54047 WHERE "Purse" = '$83,925' |
### Instruction:
How many hours do the students spend studying in each department. Plot them as bar chart.
### Response:
| SELECT DEPT_CODE, SUM(STU_HRS) FROM STUDENT GROUP BY DEPT_CODE |
### Instruction:
Where was the game played when the record was 16 11?
### Response:
| SELECT "Location Attendance" FROM table_29847 WHERE "Record" = '16–11' |
### Instruction:
where title is beginning callanetics , what is the total of format ?
### Response:
| SELECT COUNT("Format") FROM table_16541 WHERE "Title" = 'Beginning Callanetics' |
### Instruction:
What is Liscumb when Haydon is 1632?
### Response:
| SELECT "Liscumb" FROM table_16795 WHERE "Haydon" = '1632' |
### Instruction:
What kind of Rarotongan has a Tahitian of /metua/?
### Response:
| SELECT rarotongan FROM table_name_15 WHERE tahitian = "/metua/" |
### Instruction:
What catalogue is the song It's Now or Never?
### Response:
| SELECT "Catalogue" FROM table_80296 WHERE "Song Title" = 'it''s now or never' |
### Instruction:
How many Silver medals did the Nation with a Rank of less than 1 receive?
### Response:
| SELECT AVG("Silver") FROM table_43388 WHERE "Rank" < '1' |
### Instruction:
Draw a bar chart about the distribution of meter_700 and ID , and order in asc by the names.
### Response:
| SELECT meter_700, ID FROM swimmer ORDER BY meter_700 |
### Instruction:
Which wind farm is in the USA and is noted as having multiple farms?
### Response:
| SELECT wind_farm FROM table_name_58 WHERE country = "usa" AND notes = "multiple farms" |
### Instruction:
Name the role for mono studio and title of paradise canyon
### Response:
| SELECT role FROM table_name_62 WHERE studio = "mono" AND title = "paradise canyon" |
### Instruction:
What was the total fertility rate that had a death rate larger than 7.8?
### Response:
| SELECT total_fertility_rate FROM table_name_60 WHERE deaths > 7.8 |
### Instruction:
How many professors are teaching class with code ACCT-211?
### Response:
| SELECT COUNT(DISTINCT prof_num) FROM class WHERE crs_code = "ACCT-211" |
### Instruction:
What is Replaced By, when Outgoing Manager is ' nal Karaman'?
### Response:
| SELECT replaced_by FROM table_name_66 WHERE outgoing_manager = "ünal karaman" |
### Instruction:
How many times was Robert Gesink a winner?
### Response:
| SELECT COUNT(mountains_classification) FROM table_27573848_18 WHERE winner = "Robert Gesink" |
### Instruction:
What is the result where the original artist is Prince and the Revolution?
### Response:
| SELECT result FROM table_25374338_1 WHERE original_artist = "Prince and The Revolution" |
### Instruction:
What was the us airdate for 'Bear Breasts'?
### Response:
| SELECT "U.S. airdate" FROM table_24040 WHERE "Title" = 'Bear Breasts' |
### Instruction:
Name the name of administrative unit for 3464 people
### Response:
| SELECT "Name of administrative unit" FROM table_19362 WHERE "Population (people)" = '3464' |
### Instruction:
How many people are listed for high rebounds on game 30?
### Response:
| SELECT COUNT(high_rebounds) FROM table_27723228_8 WHERE game = 30 |
### Instruction:
Who is every stage winner at the distance of 162.5?
### Response:
| SELECT "Stage winner" FROM table_3792 WHERE "Distance (km)" = '162.5' |
### Instruction:
how many students are in each department?, and display X from high to low order.
### Response:
| SELECT DEPT_CODE, COUNT(*) FROM STUDENT GROUP BY DEPT_CODE ORDER BY DEPT_CODE DESC |
### Instruction:
What is the 2-person dive that has 2 as the surface?
### Response:
| SELECT "2-person dive" FROM table_70260 WHERE "Surface" = '2' |
### Instruction:
Who won the gold when Kim Hyang-Mi won the bronze?
### Response:
| SELECT "Gold" FROM table_35917 WHERE "Bronze" = 'kim hyang-mi' |
### Instruction:
How many wins or losses were there when the record was 3-0?
### Response:
| SELECT COUNT(result) FROM table_20850527_1 WHERE record = "3-0" |
### Instruction:
What is the highest earnings for the golfer who has more than 37 wins?
### Response:
| SELECT MAX(earnings___) AS $__ FROM table_name_90 WHERE wins > 37 |
### Instruction:
What is Olivier Jacque's Time/Retired?
### Response:
| SELECT "Time/Retired" FROM table_45524 WHERE "Rider" = 'olivier jacque' |
### Instruction:
Create a bar chart showing the total number across denomination, and rank by the Denomination in asc.
### Response:
| SELECT Denomination, COUNT(*) FROM school GROUP BY Denomination ORDER BY Denomination |
### Instruction:
What was the result in 2009 for the US Open Tournament?
### Response:
| SELECT "2009" FROM table_12133 WHERE "Tournament" = 'us open' |
### Instruction:
Name the mixed doubles when tour is hong kong super series
### Response:
| SELECT mixed_doubles FROM table_14496232_2 WHERE tour = "Hong Kong Super Series" |
### Instruction:
When did the Club of western new york flash begin to play?
### Response:
| SELECT "Began play" FROM table_69158 WHERE "Club" = 'western new york flash' |
### Instruction:
Which Week has a Result of w 20-13?
### Response:
| SELECT AVG("Week") FROM table_45718 WHERE "Result" = 'w 20-13' |
### Instruction:
which year did he play the roles of gary ellis and vincent boyd ?
### Response:
| SELECT "year" FROM table_201_21 WHERE "role" = 'gary ellis' |
### Instruction:
What year was owner Michael E. Pegram's last win?
### Response:
| SELECT MAX("Year") FROM table_71916 WHERE "Owner" = 'michael e. pegram' |
### Instruction:
What date of segment description red line mos-2 north open?
### Response:
| SELECT "Date opened" FROM table_72974 WHERE "Segment description" = 'Red Line MOS-2 North' |
### Instruction:
When 1.67 is the height how many contestants are there?
### Response:
| SELECT COUNT("Contestant") FROM table_22507 WHERE "Height" = '1.67' |
### Instruction:
What was the score of the game when the record was 28 19?
### Response:
| SELECT "Score" FROM table_67318 WHERE "Record" = '28–19' |
### Instruction:
What's the show that has 60 minutes as the news freq?
### Response:
| SELECT "Show Name" FROM table_13892 WHERE "News Freq" = '60 minutes' |
### Instruction:
Who was the runner-up in 1887 competition for 'Articles with HCards'?
### Response:
| SELECT runner_up FROM table_name_39 WHERE year = 1887 |
### Instruction:
What is the score of the game where the record was 22-55?
### Response:
| SELECT "Score" FROM table_49544 WHERE "Record" = '22-55' |
### Instruction:
With a method of tko (kick) what is the record of the match?
### Response:
| SELECT "Record" FROM table_49967 WHERE "Method" = 'tko (kick)' |
### Instruction:
How many division title teams were in the division championships 9 times?
### Response:
| SELECT COUNT("Teams With Division Titles") FROM table_2062 WHERE "Division Championships" = '9' |
### Instruction:
Find the name of companies whose revenue is greater than the average revenue of all companies.
### Response:
| SELECT name FROM manufacturers WHERE revenue > (SELECT AVG(revenue) FROM manufacturers) |
### Instruction:
What was the rank by Weekly Rank Sky1 for title number 97?
### Response:
| SELECT MIN("Weekly Rank Sky1") FROM table_3667 WHERE "#" = '97' |
### Instruction:
What kind of vehicle is the agra 1050?
### Response:
| SELECT vehicle_category FROM table_19787093_1 WHERE till_agra = 1050 |
### Instruction:
Find users in a given location.
### Response:
| SELECT Id AS "user_link", Location, Reputation FROM Users WHERE UPPER(Location) LIKE UPPER('%##location##%') ORDER BY Reputation DESC |
### Instruction:
WHAT IS THE AVERAGE POLES WITH POINTS N/A?
### Response:
| SELECT AVG("Poles") FROM table_44250 WHERE "Points" = 'n/a' |
### Instruction:
which party had the most candidates win in this election ?
### Response:
| SELECT "party" FROM table_204_683 GROUP BY "party" ORDER BY COUNT("winner candidate") DESC LIMIT 1 |
### Instruction:
What is who-two when you two is ngipelngu?
### Response:
| SELECT "who-two" FROM table_15994 WHERE "you two" = 'ngipelngu' |
### Instruction:
Tell me the post-season record for kansas city
### Response:
| SELECT "Post-season record [e ]" FROM table_31575 WHERE "MLB affiliate" = 'kansas city' |
### Instruction:
What is the smallest number of cuts when there were more than 0 wins?
### Response:
| SELECT MIN("Cuts made") FROM table_43326 WHERE "Wins" > '0' |
### Instruction:
What is the number of finishes associated with an elimination of Adriana?
### Response:
| SELECT COUNT("Finish") FROM table_3000 WHERE "Eliminated" = 'Adriana' |
### Instruction:
What was the Against when the Opposing Team was sheffield wednesday?
### Response:
| SELECT against FROM table_name_24 WHERE opposing_team = "sheffield wednesday" |
### Instruction:
Name the total number of length minutes for number in series for 17
### Response:
| SELECT COUNT("Length (minutes)") FROM table_1252 WHERE "No. in series" = '17' |
### Instruction:
SELECT Body FROM Posts where Posts.Id=4983476.
### Response:
| SELECT Body, Title, Tags FROM Posts WHERE Posts.Id = 4983476 |
### Instruction:
What is the interface of the product xerox travel scanner 100?
### Response:
| SELECT interface FROM table_name_58 WHERE product = "xerox travel scanner 100" |
### Instruction:
what is 2012 when the tournament is cincinnati masters?
### Response:
| SELECT 2012 FROM table_name_66 WHERE tournament = "cincinnati masters" |
### Instruction:
What is the target with an approval date of 2006?
### Response:
| SELECT "Target" FROM table_20931 WHERE "Approval date" = '2006' |
### Instruction:
What was the attendance when the VFL played Junction Oval?
### Response:
| SELECT COUNT("Crowd") FROM table_4741 WHERE "Venue" = 'junction oval' |
### Instruction:
What are the names of customers with credit score less than the average credit score across customers?
### Response:
| SELECT cust_name FROM customer WHERE credit_score < (SELECT AVG(credit_score) FROM customer) |
### Instruction:
Which Lost has Points of 28 and a Drawn smaller than 8?
### Response:
| SELECT AVG(lost) FROM table_name_47 WHERE points = 28 AND drawn < 8 |
### Instruction:
What is the nationality of the event with a 1:51.51 time?
### Response:
| SELECT nationality FROM table_name_66 WHERE time = "1:51.51" |
### Instruction:
the number of credits returned for a one credit bet on a royal flush are .
### Response:
| SELECT "1 credit" FROM table_203_564 WHERE "hand" = 'royal flush' |
### Instruction:
If second is Sergey Sirotkin, what is the third name?
### Response:
| SELECT "Third" FROM table_3301 WHERE "Second" = 'Sergey Sirotkin' |
### Instruction:
What company makes the Nokia 700?
### Response:
| SELECT "Company name" FROM table_47480 WHERE "Hardware Model" = 'nokia 700' |
### Instruction:
What is Result, when Opponent is New England Patriots?
### Response:
| SELECT "Result" FROM table_47611 WHERE "Opponent" = 'new england patriots' |
### Instruction:
what is the name of the single that was not released before 2012 ?
### Response:
| SELECT "single" FROM table_203_696 WHERE "year" >= 2012 |
### Instruction:
What is the Time/ Behind, when Jockey is 'Jose Lezcano'?
### Response:
| SELECT time__behind FROM table_name_44 WHERE jockey = "jose lezcano" |
### Instruction:
What was the Score during the Season in which the Winner was C.F. Atlante?
### Response:
| SELECT score FROM table_name_15 WHERE winner = "c.f. atlante" |
### Instruction:
Which pronoun has e biti / bi e in first person?
### Response:
| SELECT "Pronoun" FROM table_29405 WHERE "1st" = 'će biti / biće' |
### Instruction:
Name the language for el villar 1264
### Response:
| SELECT language FROM table_2509350_3 WHERE el_villar_municipality = 1264 |
### Instruction:
describe the diagnoses icd9 code 51889.
### Response:
| SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.icd9_code = "51889" |
### Instruction:
What County has a Longitude of 85 45 43 w?
### Response:
| SELECT county FROM table_name_47 WHERE longitude = "85°45′43″w" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.