instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: What event did the shooter, who had 10 score points, compete in? ### Response:
SELECT "Event" FROM table_13117 WHERE "Score points" = '10'
### Instruction: Who won the regular season when Maryland won the tournament? ### Response:
SELECT "Regular Season Winner" FROM table_73438 WHERE "Tournament Winner" = 'Maryland'
### Instruction: What was the production code for the episode titled 'Misery date'? ### Response:
SELECT "Production code" FROM table_29269 WHERE "Title" = 'Misery Date'
### Instruction: Who was the home team at the game played at Kardinia Park? ### Response:
SELECT "Home team" FROM table_32748 WHERE "Venue" = 'kardinia park'
### Instruction: What was the earliest game with a record of 23 6 4? ### Response:
SELECT MIN(game) FROM table_name_48 WHERE record = "23–6–4"
### Instruction: If the winner is Rui Costa, who made the mountains classification? ### Response:
SELECT mountains_classification FROM table_27573848_18 WHERE winner = "Rui Costa"
### Instruction: What was the result of the game at the Riverfront Stadium after week 8? ### Response:
SELECT result FROM table_name_77 WHERE location = "riverfront stadium" AND week = "8"
### Instruction: What is the location of the Moorabbin Oval stadium? ### Response:
SELECT "Location" FROM table_4134 WHERE "Stadium" = 'Moorabbin Oval'
### Instruction: How many games had they won or lost in a row on May 9? ### Response:
SELECT streak FROM table_30047613_13 WHERE date = "May 9"
### Instruction: Average Age of Users with Pic and Python. ### Response:
SELECT AVG(Age) FROM Users WHERE (AboutMe LIKE '%python%' OR AboutMe LIKE '%Python%') AND NOT ProfileImageUrl IS NULL
### Instruction: How many debut albums did mike mohede have? ### Response:
SELECT COUNT(debut_album) FROM table_1646960_3 WHERE winner = "Mike Mohede"
### Instruction: Which ship had a tonnage over 8,782? ### Response:
SELECT name_of_ship FROM table_name_8 WHERE tonnage > 8 OFFSET 782
### Instruction: What 2009 has lq as the 2011? ### Response:
SELECT 2009 FROM table_name_58 WHERE 2011 = "lq"
### Instruction: What is the home team's score at kardinia park? ### Response:
SELECT "Home team score" FROM table_32192 WHERE "Venue" = 'kardinia park'
### Instruction: How many simplified names are there for xin county? ### Response:
SELECT COUNT(simplified) FROM table_2847477_2 WHERE english_name = "Xin County"
### Instruction: When danilo di luca is the winner who is the general classification? ### Response:
SELECT "General classification" FROM table_73048 WHERE "Winner" = 'Danilo Di Luca'
### Instruction: What is the name of the movie produced after 2000 and directed by James Cameron? ### Response:
SELECT title FROM movie WHERE director = 'James Cameron' AND year > 2000
### Instruction: On what date was Anniston Army Depot (SE Industrial Area) deleted? ### Response:
SELECT deleted FROM table_name_8 WHERE name = "anniston army depot (se industrial area)"
### Instruction: Which tournament was held on July 13, 2008? ### Response:
SELECT tournament FROM table_name_20 WHERE date = "july 13, 2008"
### Instruction: How many won the Men's Open if the players are from Sweden? ### Response:
SELECT COUNT(mens_open) FROM table_182298_5 WHERE country = "Sweden"
### Instruction: What is the power stage wins total number if the wins is 10? ### Response:
SELECT COUNT("Power stage wins") FROM table_26008 WHERE "Wins" = '10'
### Instruction: What Londongborough has a Dialcode of 01992? ### Response:
SELECT londonborough FROM table_name_15 WHERE dialcode = "01992"
### Instruction: What is the sum of Events played when the cuts made is less than 0? ### Response:
SELECT SUM(events_played) FROM table_name_82 WHERE cuts_made < 0
### Instruction: How long did the game go that was played with the Houston Oilers at home? ### Response:
SELECT length_of_game FROM table_name_31 WHERE home_team = "houston oilers"
### Instruction: In what division will you find the team nicknamed the Silver Eagles ### Response:
SELECT division FROM table_15475116_1 WHERE nickname = "Silver Eagles"
### Instruction: what's the evening gown where state is south dakota ### Response:
SELECT evening_gown FROM table_12094609_1 WHERE state = "South Dakota"
### Instruction: Find meter_600 and ID , and visualize them by a bar chart, sort Y from low to high order please. ### Response:
SELECT meter_600, ID FROM swimmer ORDER BY ID
### Instruction: What was the nationality of all players from the year 1976? ### Response:
SELECT "Nationality" FROM table_74682 WHERE "From" = '1976'
### Instruction: in 2013 , how many films did domingo appear in ? ### Response:
SELECT COUNT("title") FROM table_203_797 WHERE "year" = 2013
### Instruction: Who is the trophy presentation in the year 1987? ### Response:
SELECT trophy_presentation FROM table_22514845_4 WHERE year = 1987
### Instruction: Who had the high points on the date February 10? ### Response:
SELECT high_points FROM table_17323092_7 WHERE date = "February 10"
### Instruction: Who constructed Mike Sparken's car with a tyre of E? ### Response:
SELECT constructor FROM table_name_79 WHERE tyre = "e" AND driver = "mike sparken"
### Instruction: What is every entry for assists if the player is Lynn Pride? ### Response:
SELECT "Assists" FROM table_27582 WHERE "Player" = 'Lynn Pride'
### Instruction: How many tenants are there in the city of Samsun? ### Response:
SELECT COUNT(tenant) FROM table_10601843_2 WHERE city = "Samsun"
### Instruction: what is the Europe number for the league cup of 36 (0)? ### Response:
SELECT "Europe" FROM table_19727 WHERE "League Cup" = '36 (0)'
### Instruction: what is the number of people served by the rolla station ? ### Response:
SELECT "population served" FROM table_204_863 WHERE "city/county" = 'rolla'
### Instruction: What part number(s) has a frequency of 2.4 ghz? ### Response:
SELECT part_number_s_ FROM table_name_20 WHERE frequency = "2.4 ghz"
### Instruction: Which Label was cataloged as alca-9013? ### Response:
SELECT "Label" FROM table_80054 WHERE "Catalog" = 'alca-9013'
### Instruction: Return a bar chart showing the total number of ships' nationalities, and order Nationality in asc order. ### Response:
SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality ORDER BY Nationality
### Instruction: How many points did the bills score when their opponent had 14 ### Response:
SELECT bills_points FROM table_16028459_2 WHERE opponents = 14
### Instruction: what is the only album to come out in the year 2001 ? ### Response:
SELECT "title" FROM table_203_325 WHERE "year" = 2001
### Instruction: What is the market value of every comapny in the banking industry? Return a pie chart. ### Response:
SELECT Company, Market_Value FROM company WHERE Main_Industry = 'Banking'
### Instruction: What Inchicore Class has a GSR Class of 235? ### Response:
SELECT inchicore_class FROM table_name_4 WHERE gsr_class = "235"
### Instruction: When 1984 is the first elected who are the candidates? ### Response:
SELECT "Candidates" FROM table_23286 WHERE "First elected" = '1984'
### Instruction: What was the attendance and location on December 15? ### Response:
SELECT location_attendance FROM table_17326036_6 WHERE date = "December 15"
### Instruction: In what Season were then less than 3 Races with less than 1 Win? ### Response:
SELECT AVG(season) FROM table_name_51 WHERE races < 3 AND wins < 1
### Instruction: What is Finish, when Year(s) Won is '1991'? ### Response:
SELECT finish FROM table_name_6 WHERE year_s__won = "1991"
### Instruction: If skeletal system is the subject when was it first aired? ### Response:
SELECT first_aired FROM table_191105_3 WHERE subject = "Skeletal system"
### Instruction: What is the batting partners with runs of 226? ### Response:
SELECT batting_partners FROM table_11303072_5 WHERE runs = "226"
### Instruction: What is the name of the 375 crest length? ### Response:
SELECT "Name" FROM table_15895 WHERE "Crest length (meters)" = '375'
### Instruction: Which away game was played on 2008-07-18? ### Response:
SELECT away FROM table_name_5 WHERE date = "2008-07-18"
### Instruction: what's the economics score with justice being 90.8 ### Response:
SELECT "Economics" FROM table_72570 WHERE "Justice" = '90.8'
### Instruction: What is the sum of the prominence in m of slovakia? ### Response:
SELECT SUM(prominence__m_) FROM table_name_39 WHERE country = "slovakia"
### Instruction: What is the record for the game with an attendance of 11,141? ### Response:
SELECT record FROM table_name_26 WHERE attendance = "11,141"
### Instruction: What was the score of the game at the Broadmoor Arena? ### Response:
SELECT "Score" FROM table_64555 WHERE "Arena" = 'broadmoor arena'
### Instruction: what is the highest gold when silver is 1 and bronze is less than 0? ### Response:
SELECT MAX(gold) FROM table_name_63 WHERE silver = 1 AND bronze < 0
### Instruction: What is the length for iin range 51-55? ### Response:
SELECT "Length" FROM table_20425 WHERE "IIN ranges" = '51-55'
### Instruction: Name the most kirdistan list for diyala ### Response:
SELECT MAX("Total Kurdistan List") FROM table_26848 WHERE "Governorate" = 'Diyala'
### Instruction: what is diagnoses long title of subject id 18372? ### Response:
SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.subject_id = "18372"
### Instruction: When 2005 is the season how many drivers are there? ### Response:
SELECT COUNT(driver) FROM table_1771753_3 WHERE season = "2005"
### Instruction: What is the talent of the contestant from Lexington, SC? ### Response:
SELECT "Talent" FROM table_36047 WHERE "Hometown" = 'lexington, sc'
### Instruction: how many years was gordon larsen convicted to ? ### Response:
SELECT "sentence" FROM table_204_479 WHERE "defendant" = 'gordon larsen'
### Instruction: Name the circuit for france and portugal ### Response:
SELECT "Circuit" FROM table_3065 WHERE "Main Winner" = 'France' AND "Country" = 'Portugal'
### Instruction: What was the score for the away team when the home team was richmond? ### Response:
SELECT "Away team score" FROM table_33353 WHERE "Home team" = 'richmond'
### Instruction: What is the region containing the Constitutional Province of Callao? ### Response:
SELECT region FROM table_1672804_2 WHERE province = "Constitutional province of Callao"
### Instruction: What was the score of the game when Sheffield Wednesday was the home team? ### Response:
SELECT score FROM table_name_32 WHERE home_team = "sheffield wednesday"
### Instruction: what year did north carolina institution join the acc? ### Response:
SELECT MAX(joined_acc) FROM table_28744929_1 WHERE institution = "North Carolina"
### Instruction: how many treaties had been introduced by 1986 ? ### Response:
SELECT COUNT("treaty") FROM table_203_109 WHERE "ratified" >= 1986
### Instruction: which year was try not to think and bleach released ? ### Response:
SELECT "release date" FROM table_203_545 WHERE "single/ep" = '"try not to think"'
### Instruction: how many bulldog drummond books did gerard fairlie write ? ### Response:
SELECT COUNT("title") FROM table_203_394 WHERE "author" = 'gerard fairlie'
### Instruction: Plot how many booking start date by grouped by booking start date as a bar graph ### Response:
SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings
### Instruction: what's the winner with tournament value of kroger senior classic ### Response:
SELECT "Winner" FROM table_16935 WHERE "Tournament" = 'Kroger Senior Classic'
### Instruction: What Stadium had a Result of w 20 16? ### Response:
SELECT "Stadium" FROM table_8908 WHERE "Result" = 'w 20–16'
### Instruction: which polling firm was the only poll done in 2008 ? ### Response:
SELECT "polling firm" FROM table_203_43 WHERE "month" = 2008
### Instruction: Name the US R&B for 1981 ### Response:
SELECT "U.S. R&B" FROM table_70903 WHERE "Year" = '1981'
### Instruction: What team does the player who went to Nebraska play for? ### Response:
SELECT cfl_team FROM table_21321804_3 WHERE college = "Nebraska"
### Instruction: What is the average number in attendance on September 16? ### Response:
SELECT AVG("Attendance") FROM table_52847 WHERE "Date" = 'september 16'
### Instruction: Name the scores for michael buerk and russell howard ### Response:
SELECT "Scores" FROM table_2904 WHERE "Lees team" = 'Michael Buerk and Russell Howard'
### Instruction: A bar chart for what are the number of the names of all products?, and list by the X-axis in asc. ### Response:
SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY Name
### Instruction: What was the result of the player from Maylands, Western Australia? ### Response:
SELECT result FROM table_24501530_1 WHERE hometown = "Maylands, Western Australia"
### Instruction: What is the Power (kW) for the station located in Cebu? ### Response:
SELECT "Power (kW)" FROM table_47023 WHERE "Location" = 'cebu'
### Instruction: What is 2009, when Tournament is 'Year-End Ranking'? ### Response:
SELECT 2009 FROM table_name_77 WHERE tournament = "year-end ranking"
### Instruction: What's the title of the episode written by Harry Winkler? ### Response:
SELECT title FROM table_2342078_5 WHERE written_by = "Harry Winkler"
### Instruction: What is the agg for a team second leg of 1-3? ### Response:
SELECT "Agg." FROM table_15430 WHERE "2nd leg" = '1-3'
### Instruction: how many iops can the ocz vertex 3 handle at most ? ### Response:
SELECT "iops" FROM table_204_152 WHERE "device" = 'ocz vertex 3'
### Instruction: Who was the director when the writer was John Sullivan? ### Response:
SELECT directed_by FROM table_17641206_4 WHERE written_by = "John Sullivan"
### Instruction: What is the greatest capacity for rooms in each building? Draw a bar chart, list bar in desc order please. ### Response:
SELECT building, MAX(capacity) FROM classroom GROUP BY building ORDER BY building DESC
### Instruction: how many number of riders rode motorcycles by honda ? ### Response:
SELECT COUNT("rider") FROM table_203_244 WHERE "manufacturer" = 'honda'
### Instruction: Show the ids of all the faculty members who participate in an activity and advise a student. ### Response:
SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student
### Instruction: which train ran for the longest time ? ### Response:
SELECT "named trains" FROM table_204_336 ORDER BY "year discontinued" - "year begun" DESC LIMIT 1
### Instruction: how many districts are large than 50 square kilometers ? ### Response:
SELECT COUNT("district") FROM table_203_212 WHERE "land area (km2)" > 50
### Instruction: What is the title of season 3 ep# 12? ### Response:
SELECT title FROM table_12451376_3 WHERE season_3_ep__number = 12
### Instruction: What record label corresponds to the single 'I can't stay'? ### Response:
SELECT "Record label" FROM table_22556 WHERE "Single" = 'I Can''t Stay'
### Instruction: how many processors have an integrated monochrome display ? ### Response:
SELECT COUNT("processor") FROM table_203_136 WHERE "case" = 'desktop with integrated monochrome display'
### Instruction: What was the winning percent of Notre Dame in 1905? ### Response:
SELECT "Pct." FROM table_67706 WHERE "Years" = '1905'
### Instruction: what is the total number of games that started at 7:00 ? ### Response:
SELECT COUNT(*) FROM table_204_459 WHERE "time" = '7:00 pm'
### Instruction: What was the attendance of the game played in the Georgia Dome? ### Response:
SELECT "Attendance" FROM table_33141 WHERE "Game site" = 'georgia dome'
### Instruction: What is the method against Bj rn Bregy? ### Response:
SELECT "Method" FROM table_54175 WHERE "Opponent" = 'björn bregy'
### Instruction: What is Trial Start Date, when Candidate Name is PBT2? ### Response:
SELECT trial_start_date FROM table_name_89 WHERE candidate_name = "pbt2"
### Instruction: What is the national share of Guizhou's administrative division? ### Response:
SELECT "National Share (%)" FROM table_1632 WHERE "Administrative Division" = 'Guizhou'