instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: tell me the number with a fab of 500 nm . ### Response:
SELECT COUNT(*) FROM table_204_582 WHERE "fab (nm)" = 500
### Instruction: What was the margin of victory at the LPGA Championship? ### Response:
SELECT "Margin of victory" FROM table_45348 WHERE "Tournament" = 'lpga championship'
### Instruction: What is the average Year, when Outcome is 'Winner'? ### Response:
SELECT AVG("Year") FROM table_49079 WHERE "Outcome" = 'winner'
### Instruction: What kind of Chassis supports an Equipe Gordini Entrant? ### Response:
SELECT chassis FROM table_name_82 WHERE entrant = "equipe gordini"
### Instruction: What is the record when the game was at the San Diego Stadium? ### Response:
SELECT record FROM table_17848578_1 WHERE game_site = "San Diego Stadium"
### Instruction: How many branches where have more than average number of memberships are there? ### Response:
SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch)
### Instruction: What high definition television options are available for Italia 1? ### Response:
SELECT hdtv FROM table_15887683_1 WHERE television_service = "Italia 1"
### Instruction: What is the total Crowd with a Home team of collingwood? ### Response:
SELECT SUM(crowd) FROM table_name_98 WHERE home_team = "collingwood"
### Instruction: How many blocks did the player who had 59 rebounds have? ### Response:
SELECT "Blocks" FROM table_27144 WHERE "Rebounds" = '59'
### Instruction: Where is riverfront stadium the game site for the week? ### Response:
SELECT MIN("Week") FROM table_22051 WHERE "Game site" = 'Riverfront Stadium'
### Instruction: What were the final time for the swimmer on lane 4? ### Response:
SELECT "FINAL" FROM table_57148 WHERE "LANE" = '4'
### Instruction: What was the main date of the round with 20 fixtures? ### Response:
SELECT main_date FROM table_name_81 WHERE number_of_fixtures = 20
### Instruction: For all storms with at least 1 death, compare the number of deaths by name. ### Response:
SELECT Name, Number_Deaths FROM storm WHERE Number_Deaths >= 1
### Instruction: What venue is located in Indiana and hosted at Purdue University? ### Response:
SELECT venue FROM table_name_54 WHERE state = "indiana" AND host = "purdue university"
### Instruction: which club is listed when bonus points is bonus points ### Response:
SELECT club FROM table_20396710_1 WHERE "bonus_points" = "bonus_points"
### Instruction: What was the callback venue for the Phoenix, Arizona auditions? ### Response:
SELECT callback_venue FROM table_name_15 WHERE audition_city = "phoenix, arizona"
### Instruction: Name the city for enrollment being 19900 ### Response:
SELECT "City" FROM table_3757 WHERE "Enrollment" = '19900'
### Instruction: What is Package/Option, when Television Service is Sky Inside? ### Response:
SELECT "Package/Option" FROM table_40715 WHERE "Television service" = 'sky inside'
### Instruction: What year did the King team have fewer than 10 points? ### Response:
SELECT AVG(year) FROM table_name_66 WHERE team = "king" AND points < 10
### Instruction: What are the names of instructors who didn't teach courses in the Spring? ### Response:
SELECT name FROM instructor WHERE NOT id IN (SELECT id FROM teaches WHERE semester = 'Spring')
### Instruction: How many numbers have the product code of 2.6? ### Response:
SELECT _number FROM table_20124413_2 WHERE prod_code = "2.6"
### Instruction: Name the award for nominated result and year after 2011 ### Response:
SELECT award FROM table_name_38 WHERE result = "nominated" AND year > 2011
### Instruction: What score has 15.0% as the 2012? ### Response:
SELECT score FROM table_name_16 WHERE 2012 = "15.0%"
### Instruction: Which Pick has the College named Far Eastern / PSBA? ### Response:
SELECT "Pick" FROM table_11604 WHERE "College" = 'far eastern / psba'
### Instruction: What is the greatest number of bills sponsored in any year? ### Response:
SELECT MAX(all_bills_sponsored) FROM table_18852984_2
### Instruction: What is the second way of writting . ### Response:
SELECT "Settlement" FROM table_73814 WHERE "Cyrillic Name Other Names" = 'Плавна'
### Instruction: Who was the runner-up in the Memorial Tournament? ### Response:
SELECT "Runner(s)-up" FROM table_20496 WHERE "Tournament" = 'Memorial Tournament'
### Instruction: What are the ids of all students along with how many sports and games did they play? ### Response:
SELECT stuid, COUNT(*), SUM(gamesplayed) FROM sportsinfo GROUP BY stuid
### Instruction: Which City has a School of indianapolis brebeuf? ### Response:
SELECT "City" FROM table_64062 WHERE "School" = 'indianapolis brebeuf'
### Instruction: Who was the opponent at the game when the record was 28 45? ### Response:
SELECT opponent FROM table_name_66 WHERE record = "28–45"
### Instruction: What is the largest drawn that has a played less than 38? ### Response:
SELECT MAX("Drawn") FROM table_37473 WHERE "Played" < '38'
### Instruction: How many different types are allocated to the institution in Bridgewater, Massachusetts? ### Response:
SELECT COUNT("Type") FROM table_3495 WHERE "Location" = 'Bridgewater, Massachusetts'
### Instruction: When did the loan that Ended on 15 January Start? ### Response:
SELECT "Started" FROM table_14704 WHERE "Ended" = '15 january'
### Instruction: Which Position has a DOB of 13 may 1987? ### Response:
SELECT position FROM table_name_21 WHERE dob = "13 may 1987"
### Instruction: What is the position of the pittsburgh steelers? ### Response:
SELECT "Position" FROM table_59757 WHERE "NFL Club" = 'pittsburgh steelers'
### Instruction: What is the home team when the visiting team is the Mavericks? ### Response:
SELECT "Home" FROM table_52609 WHERE "Visitor" = 'mavericks'
### Instruction: What is the title of the episode with production code 102? ### Response:
SELECT title FROM table_27547668_2 WHERE prod_code = 102
### Instruction: Name the number of song for julia bermejo ### Response:
SELECT COUNT(song) FROM table_19763199_5 WHERE artist = "Julia Bermejo"
### Instruction: During what period was the career average 44.10? ### Response:
SELECT "Period" FROM table_24133 WHERE "Average" = '44.10'
### Instruction: Which Ofsted has a Capacity of 1677? ### Response:
SELECT "Ofsted" FROM table_76733 WHERE "Capacity" = '1677'
### Instruction: What type is locomotive number CTN 46? ### Response:
SELECT "Type" FROM table_43435 WHERE "Locomotive number" = 'ctn 46'
### Instruction: What is the minimum number of the bmw championship tournament. ### Response:
SELECT MIN("No.") FROM table_23108 WHERE "Tournament" = 'BMW Championship'
### Instruction: What is the total number of Year, when Winner is 'Johnathan Gray'? ### Response:
SELECT COUNT(year) FROM table_name_81 WHERE winner = "johnathan gray"
### Instruction: Top users by reputation from Romania. ### Response:
SELECT Reputation, DisplayName, Location FROM Users WHERE Location LIKE '%Romania%' AND Reputation > 101 ORDER BY Reputation DESC
### Instruction: What was the location and attendance at the game when the record was 9-6? ### Response:
SELECT location_attendance FROM table_name_54 WHERE record = "9-6"
### Instruction: What clubs are in the evgrapi shevardnadze stadium? ### Response:
SELECT clubs FROM table_name_17 WHERE stadium = "evgrapi shevardnadze stadium"
### Instruction: How many Indians were admitted in 2001? ### Response:
SELECT indians_admitted FROM table_1717824_3 WHERE year = 2001
### Instruction: Construction start of 1 december 1984 is what unit? ### Response:
SELECT unit FROM table_name_75 WHERE construction_start = "1 december 1984"
### Instruction: When st kilda played as the away team, what date was that? ### Response:
SELECT "Date" FROM table_54830 WHERE "Away team" = 'st kilda'
### Instruction: What was the percentage in 1980 in Brooklyn? ### Response:
SELECT MIN(1980) FROM table_name_70 WHERE borough = "brooklyn"
### Instruction: how many languages has he been in that are in the telugu language ? ### Response:
SELECT COUNT(*) FROM table_204_647 WHERE "language" = 'telugu'
### Instruction: What away team has wrexham as the home team? ### Response:
SELECT "Away team" FROM table_13316 WHERE "Home team" = 'wrexham'
### Instruction: What county had a bridge biult in 1884? ### Response:
SELECT "County" FROM table_43874 WHERE "Built" = '1884'
### Instruction: Name who directed the production code 1l10 ### Response:
SELECT directed_by FROM table_25604014_9 WHERE production_code = "1L10"
### Instruction: What was the loss from the coyotes as opponents? ### Response:
SELECT "Loss" FROM table_57474 WHERE "Opponent" = 'coyotes'
### Instruction: What is the total of all to par with player Bob Rosburg? ### Response:
SELECT SUM("To par") FROM table_76229 WHERE "Player" = 'bob rosburg'
### Instruction: Which institution's nickname is the Polar Bears? ### Response:
SELECT "Institution" FROM table_28401 WHERE "Nickname" = 'Polar Bears'
### Instruction: List all country and league names. ### Response:
SELECT T1.name, T2.name FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id
### Instruction: What is the average high position for the album unwritten? ### Response:
SELECT AVG("Highest Position") FROM table_54995 WHERE "Album Title" = 'unwritten'
### Instruction: Who was the leading scorer on February 9? ### Response:
SELECT "Leading scorer" FROM table_56467 WHERE "Date" = 'february 9'
### Instruction: which tournament this year had the highest purse reward offered ? ### Response:
SELECT "tournament" FROM table_204_865 ORDER BY "purse ($)" DESC LIMIT 1
### Instruction: Which Game is the highest one that has a February of 25? ### Response:
SELECT MAX("Game") FROM table_35371 WHERE "February" = '25'
### Instruction: What is Richmond's away team score versus Geelong? ### Response:
SELECT "Away team score" FROM table_10157 WHERE "Away team" = 'richmond'
### Instruction: what's the position where player is anthony blaylock ### Response:
SELECT position FROM table_10650711_1 WHERE player = "Anthony Blaylock"
### Instruction: What is the pick of player ian schultz from Canada? ### Response:
SELECT pick FROM table_name_8 WHERE nationality = "canada" AND player = "ian schultz"
### Instruction: What district is incumbent jack hightower from? ### Response:
SELECT "District" FROM table_18284 WHERE "Incumbent" = 'Jack Hightower'
### Instruction: Liverpool as a home team as listed what in the Tie no column? ### Response:
SELECT "Tie no" FROM table_44231 WHERE "Home team" = 'liverpool'
### Instruction: How many goals against when the draws are fewer than 3? ### Response:
SELECT MAX("Goals Against") FROM table_45084 WHERE "Drawn" < '3'
### Instruction: how many times is the model ge40lfr? ### Response:
SELECT COUNT("Manufacturer") FROM table_15848 WHERE "Model" = 'GE40LFR'
### Instruction: What is the attendance on 24 December 1898? ### Response:
SELECT attendance FROM table_name_23 WHERE date = "24 december 1898"
### Instruction: what is the public vote on graeme & kristina ### Response:
SELECT "Public vote" FROM table_2135 WHERE "Couple" = 'Graeme & Kristina'
### Instruction: What is the 1st leg of cs sfaxien? ### Response:
SELECT "1st leg" FROM table_6194 WHERE "Team 2" = 'cs sfaxien'
### Instruction: If the height is 181cm, what was the position? ### Response:
SELECT position FROM table_22344463_2 WHERE height = "181cm"
### Instruction: How many people watch Essendon as an away team? ### Response:
SELECT SUM("Crowd") FROM table_32313 WHERE "Away team" = 'essendon'
### Instruction: Draw a bar chart of sex versus mean height, and rank mean height in ascending order. ### Response:
SELECT Sex, AVG(Height) FROM people GROUP BY Sex ORDER BY AVG(Height)
### Instruction: When did Fejzi Bej Alizoti's term start? ### Response:
SELECT term_start FROM table_name_38 WHERE name = "fejzi bej alizoti"
### Instruction: What did the home team score when Carlton played as the Away team? ### Response:
SELECT home_team AS score FROM table_name_30 WHERE away_team = "carlton"
### Instruction: How many locomotives have a livery that is highland railway green ### Response:
SELECT COUNT("Name") FROM table_20331 WHERE "Livery" = 'Highland Railway green'
### Instruction: In which municipality is Barangay Poblacion? ### Response:
SELECT "Municipality" FROM table_51393 WHERE "Barangay" = 'poblacion'
### Instruction: Visualize a bar chart for how many students play each sport?, and show Y in descending order. ### Response:
SELECT SportName, COUNT(*) FROM SportsInfo GROUP BY SportName ORDER BY COUNT(*) DESC
### Instruction: What is the largest crowd when north melbourne is the home side? ### Response:
SELECT MAX(crowd) FROM table_name_94 WHERE home_team = "north melbourne"
### Instruction: Name the total number of points for 800 reset ### Response:
SELECT COUNT(points) FROM table_24108789_6 WHERE reset_points = 800
### Instruction: Name the original air date for prod code 201 ### Response:
SELECT "Original air dates" FROM table_25747 WHERE "Prod. code" = '201'
### Instruction: give the 1st leg score against ilisiakos ### Response:
SELECT "1st leg" FROM table_24345 WHERE "Team #2" = 'Ilisiakos'
### Instruction: What is the game number that was on November 27? ### Response:
SELECT _number FROM table_22871239_5 WHERE date = "November 27"
### Instruction: Who won the event against U.S.A.? ### Response:
SELECT "Status" FROM table_61612 WHERE "Opposing Teams" = 'u.s.a.'
### Instruction: What is the background of the person fired in week 5? ### Response:
SELECT background FROM table_24501530_1 WHERE result = "Fired in week 5"
### Instruction: Which location has a capacity that has a rank of 23? ### Response:
SELECT "Capacity in use" FROM table_75978 WHERE "Rank" = '23'
### Instruction: How many tries for does the team with 263 points against have? ### Response:
SELECT tries_for FROM table_name_13 WHERE points_against = "263"
### Instruction: Which result has adelaide oval as the venue? ### Response:
SELECT "Result" FROM table_66994 WHERE "Venue" = 'adelaide oval'
### Instruction: Who was the player for Japan when the to par was smaller than 7? ### Response:
SELECT player FROM table_name_57 WHERE to_par < 7 AND country = "japan"
### Instruction: how long did karin enke took to finish the race ? ### Response:
SELECT "time" FROM table_204_556 WHERE "athlete" = 'karin enke'
### Instruction: Who was the game on July 12 played against? ### Response:
SELECT "Opponent" FROM table_23324 WHERE "Date" = 'July 12'
### Instruction: Which lineup has a Location of usa virginia beach? ### Response:
SELECT "Lineup" FROM table_70078 WHERE "Location" = 'usa virginia beach'
### Instruction: Who had the fastest lap at the German Grand Prix? ### Response:
SELECT "Fastest Lap" FROM table_56350 WHERE "Race" = 'german grand prix'
### Instruction: Which lane is Goksu Bicer in? ### Response:
SELECT "Lane" FROM table_32121 WHERE "Swimmer" = 'goksu bicer'
### Instruction: When the a o was 2012, who was the county? ### Response:
SELECT country FROM table_27501971_2 WHERE año = 2012
### Instruction: If the episode title is Pressures, what are the names of the cast? ### Response:
SELECT cast FROM table_2570269_2 WHERE episode_title = "Pressures"
### Instruction: which country has the most bronze medals ? ### Response:
SELECT "bronze" FROM table_204_75 GROUP BY "bronze" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: Which Laps has a Year of 2007? ### Response:
SELECT AVG("Laps") FROM table_47416 WHERE "Year" = '2007'