instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: which kitty wells album had the most singles released ? ### Response:
SELECT "album" FROM table_204_500 GROUP BY "album" ORDER BY COUNT("title") DESC LIMIT 1
### Instruction: how many circuits have at least 2,000 screens ? ### Response:
SELECT COUNT("circuit") FROM table_203_752 WHERE "screens" >= 2000
### Instruction: What is the Quantity of Type 2-4-2t? ### Response:
SELECT SUM("Quantity") FROM table_56482 WHERE "Type" = '2-4-2t'
### Instruction: What is the Location of the Competition with a Rank-Final of 10? ### Response:
SELECT "Location" FROM table_64140 WHERE "Rank-Final" = '10'
### Instruction: What season episode is directed by Skipp Sudduth? ### Response:
SELECT season__number FROM table_17356205_1 WHERE directed_by = "Skipp Sudduth"
### Instruction: what is the ingesting method of methimazole? ### Response:
SELECT DISTINCT prescriptions.route FROM prescriptions WHERE prescriptions.drug = 'methimazole'
### Instruction: What was the position of the team that used an oldsmobile engine and DNQ? ### Response:
SELECT finish FROM table_name_10 WHERE engine = "oldsmobile" AND start = "dnq"
### Instruction: What is the brand name associated with a model name e4xxx? ### Response:
SELECT brand_name FROM table_24099628_1 WHERE model__list_ = "E4xxx"
### Instruction: When was successor David Atwood (R) seated? ### Response:
SELECT date_successor_seated FROM table_2417345_4 WHERE successor = "David Atwood (R)"
### Instruction: What date has uefa euro 2008 qualification as the competition? ### Response:
SELECT date FROM table_name_55 WHERE competition = "uefa euro 2008 qualification"
### Instruction: What was the smallest crowd size for the home team at St Kilda? ### Response:
SELECT MIN("Crowd") FROM table_10105 WHERE "Home team" = 'st kilda'
### Instruction: Name the total number of trofeo fast team of stage 16 ### Response:
SELECT COUNT("Trofeo Fast Team") FROM table_17569 WHERE "Stage" = '16'
### Instruction: Can you tell me the Mascot that has the School of rosedale? ### Response:
SELECT "Mascot" FROM table_63677 WHERE "School" = 'rosedale'
### Instruction: Name the proto oceanic for *fafine ### Response:
SELECT proto_oceanic FROM table_15568886_14 WHERE proto_polynesian = "*fafine"
### Instruction: Create a bar chart showing the total number across city code, and list from high to low by the total number. ### Response:
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY COUNT(*) DESC
### Instruction: What was the date for the game that had an attendance of 10,101? ### Response:
SELECT date FROM table_name_45 WHERE attendance = "10,101"
### Instruction: When the # is 9 what is the U.S original airdate? ### Response:
SELECT us_original_airdate FROM table_29475589_5 WHERE _number = 9
### Instruction: Tell me the year built for number built of 10 ### Response:
SELECT year_built__converted * _ FROM table_name_14 WHERE no_built__converted * _ = "10"
### Instruction: how many high assits have a date of february 5? ### Response:
SELECT high_assists FROM table_30054758_5 WHERE date = "February 5"
### Instruction: Which Tonnage is on 25 july 1942? ### Response:
SELECT tonnage FROM table_name_66 WHERE date = "25 july 1942"
### Instruction: what is the money ($) for player justin leonard? ### Response:
SELECT "Money ( $ )" FROM table_46190 WHERE "Player" = 'justin leonard'
### Instruction: What was the home teams score when North Melbourne played as the away team? ### Response:
SELECT "Home team score" FROM table_51910 WHERE "Away team" = 'north melbourne'
### Instruction: What is the defective year for the eighth numbered month? ### Response:
SELECT defective_year FROM table_28985631_1 WHERE numbered_month = "Eighth"
### Instruction: Name the most ceiling temperature for very extra high ### Response:
SELECT "Maximum Ceiling Temperature" FROM table_1240 WHERE "Temperature Classification" = 'Very Extra High'
### Instruction: What is the Engine with 3 as the start in the year of 2007? ### Response:
SELECT engine FROM table_name_8 WHERE start = "3" AND year = 2007
### Instruction: What is williow canyon of Roberta Lockhart? ### Response:
SELECT "Willow Canyon" FROM table_181 WHERE "Dysart" = 'Roberta Lockhart'
### Instruction: Who is the player from the 1971 draft with a pick greater than 7? ### Response:
SELECT player FROM table_name_15 WHERE draft = 1971 AND pick > 7
### Instruction: select * from Posts where Tags LIKE '%unit-testing%';. ### Response:
SELECT * FROM Posts WHERE Tags LIKE '%unit-testing%' AND (Tags LIKE '%java%' OR Tags LIKE '%android%')
### Instruction: What is the nationality of the player picked to go to Washington Capitals? ### Response:
SELECT "Nationality" FROM table_74348 WHERE "NHL team" = 'Washington Capitals'
### Instruction: What is the team 2 with a team 1 us gor e? ### Response:
SELECT "Team 2" FROM table_6139 WHERE "Team 1" = 'us gorée'
### Instruction: What is the name of the vacator for district Louisiana 1st? ### Response:
SELECT "Vacator" FROM table_15969 WHERE "District" = 'Louisiana 1st'
### Instruction: Designation of pc800 has which highest Bus width (bits)? ### Response:
SELECT MAX("Bus width (bits)") FROM table_6237 WHERE "Designation" = 'pc800'
### Instruction: How many partys have a candidate first elected in 1923? ### Response:
SELECT COUNT("Party") FROM table_18598 WHERE "First elected" = '1923'
### Instruction: What special notes are included for the windfarm with a capacity (MW) of 343? ### Response:
SELECT notes FROM table_name_86 WHERE capacity__mw_ = 343
### Instruction: Who was the incumbent in the Illinois 17 district? ### Response:
SELECT "Incumbent" FROM table_18545 WHERE "District" = 'Illinois 17'
### Instruction: What was the fastest lap for Grand Prix dutch tt? ### Response:
SELECT "Fastest Lap" FROM table_61285 WHERE "Grand Prix" = 'dutch tt'
### Instruction: What is the age of the celebrity who had a 402 aggregate? ### Response:
SELECT MAX(age) FROM table_25931938_1 WHERE aggregate = 402
### Instruction: What cuts made has a wins less than 3 and 23 for the events? ### Response:
SELECT cuts_made FROM table_name_43 WHERE wins < 3 AND events = 23
### Instruction: What is withdrawn with a GSR Class of 296? ### Response:
SELECT "Withdrawn" FROM table_56550 WHERE "GSR Class" = '296'
### Instruction: Who was Manuela Maleeva opponent when she played a match partnered with michelle strebel? ### Response:
SELECT opponents FROM table_name_81 WHERE partner = "michelle strebel"
### Instruction: Name the region for automatic washing machine being 60.9% ### Response:
SELECT "Region" FROM table_27323 WHERE "Automatic washing machine" = '60.9%'
### Instruction: What is the date for the tournament McDonald's wpga championship? ### Response:
SELECT date FROM table_2167226_3 WHERE tournament = "McDonald's WPGA Championship"
### Instruction: Name the broadcast date for 7.4 viewers ### Response:
SELECT broadcast_date FROM table_2102782_1 WHERE viewers__in_millions_ = "7.4"
### Instruction: what is gender and language of subject name gwendolyn hager? ### Response:
SELECT demographic.gender, demographic.language FROM demographic WHERE demographic.name = "Gwendolyn Hager"
### Instruction: What is the time associated with August 16, 2008? ### Response:
SELECT time FROM table_name_12 WHERE date = "august 16, 2008"
### Instruction: What is the league of the third baseman player before 1973? ### Response:
SELECT league FROM table_name_79 WHERE year < 1973 AND position = "third baseman"
### Instruction: What was the 3rd Party in the Election of 1922? ### Response:
SELECT 3 AS rd_party FROM table_name_35 WHERE election = "1922"
### Instruction: If the Venue is brunswick street oval, what date was the game played ? ### Response:
SELECT date FROM table_name_81 WHERE venue = "brunswick street oval"
### Instruction: When richmond was the Away team what was the score of the home team? ### Response:
SELECT "Home team score" FROM table_33531 WHERE "Away team" = 'richmond'
### Instruction: Who was the home team with a result of 105-99? ### Response:
SELECT "Home Team" FROM table_5052 WHERE "Result" = '105-99'
### Instruction: Name the candidates for ellsworth b. buck ### Response:
SELECT "Candidates" FROM table_18574 WHERE "Incumbent" = 'Ellsworth B. Buck'
### Instruction: What is Moving To, when Name is 'Leon Andreasen'? ### Response:
SELECT "Moving To" FROM table_49815 WHERE "Name" = 'leon andreasen'
### Instruction: What are the names of wines produced before any wine from the Brander winery? ### Response:
SELECT name FROM wine WHERE year < (SELECT MIN(year) FROM wine WHERE winery = "Brander")
### Instruction: With a tonnage of 225 what is the ship type? ### Response:
SELECT "Ship Type" FROM table_78962 WHERE "Tonnage" = '225'
### Instruction: Name the country for sky primafila 7 hd ### Response:
SELECT country FROM table_15887683_6 WHERE television_service = "Sky Primafila 7 HD"
### Instruction: For the game played on November 29, who had the highest rebounds? ### Response:
SELECT "High rebounds" FROM table_7864 WHERE "Date" = 'november 29'
### Instruction: what's the thursday time with location being hawthorne ### Response:
SELECT "Thursday" FROM table_16424 WHERE "Location" = 'Hawthorne'
### Instruction: How many production codes are there for episode 10 in the season? ### Response:
SELECT COUNT(production_code) FROM table_24425976_2 WHERE season = "10"
### Instruction: What is 2007, when Tournament is 'Madrid'? ### Response:
SELECT "2007" FROM table_78685 WHERE "Tournament" = 'madrid'
### Instruction: Plot how many name by grouped by name as a bar graph, and sort by the total number in descending. ### Response:
SELECT name, COUNT(name) FROM train GROUP BY name ORDER BY COUNT(name) DESC
### Instruction: What 7:00 has 7:30 movies? ### Response:
SELECT "7:00" FROM table_67381 WHERE "7:30" = 'movies'
### Instruction: Which team 1 had a team 2 of Asante Kotoko? ### Response:
SELECT "Team 1" FROM table_14795 WHERE "Team 2" = 'asante kotoko'
### Instruction: Which Home team scored 6.11 (47)? ### Response:
SELECT "Away team" FROM table_4703 WHERE "Home team score" = '6.11 (47)'
### Instruction: What is the per capita income for Fayette County? ### Response:
SELECT per_capita_income FROM table_1447085_1 WHERE county = "Fayette county"
### Instruction: which state has the largest amount of judges to serve ? ### Response:
SELECT "state" FROM table_203_563 GROUP BY "state" ORDER BY COUNT("judge") DESC LIMIT 1
### Instruction: Name the game for l 111 126 ### Response:
SELECT game FROM table_30049462_8 WHERE score = "L 111–126"
### Instruction: Show the relation between school id and all_games_percent for each Team_Name using a scatter chart ### Response:
SELECT School_ID, All_Games_Percent FROM basketball_match GROUP BY Team_Name
### Instruction: What is the average Area (in km ), when Markatal is less than 0? ### Response:
SELECT AVG(area__in_km²_) FROM table_name_81 WHERE markatal < 0
### Instruction: When 1999 is the year how many tournaments are there? ### Response:
SELECT COUNT("Tournament") FROM table_73624 WHERE "Year" = '1999'
### Instruction: What was the home for season 1949-50? ### Response:
SELECT "Home" FROM table_59796 WHERE "Season" = '1949-50'
### Instruction: what is date of birth and gender of subject name jerry deberry? ### Response:
SELECT demographic.dob, demographic.gender FROM demographic WHERE demographic.name = "Jerry Deberry"
### Instruction: how many years was the gross domestic product above 6,000 ? ### Response:
SELECT COUNT("year") FROM table_201_7 WHERE "gross domestic product" > 6000
### Instruction: When did the player from Hawaii play for Toronto? ### Response:
SELECT "Years in Toronto" FROM table_15867 WHERE "School/Club Team" = 'Hawaii'
### Instruction: What was the population of Puerto Rico in 2010? ### Response:
SELECT MAX(population___2010__) FROM table_name_22 WHERE territory = "puerto rico"
### Instruction: Who wrote the episode with production code 57376? ### Response:
SELECT written_by FROM table_29583441_1 WHERE production_code = 57376
### Instruction: how many times was the score 1-0 in the 1st leg ? ### Response:
SELECT COUNT(*) FROM table_203_350 WHERE "1st leg" = '1-0'
### Instruction: In what Week was the Attendance 43,430? ### Response:
SELECT MAX("Week") FROM table_48584 WHERE "Attendance" = '43,430'
### Instruction: Which IHSAA Class has a Mascot of tigers? ### Response:
SELECT "IHSAA Class" FROM table_66610 WHERE "Mascot" = 'tigers'
### Instruction: What is Ryan McCay's speed that has a rank better than 8? ### Response:
SELECT speed FROM table_name_65 WHERE rank > 8 AND rider = "ryan mccay"
### Instruction: Which opponent has a Date of 16 february 2003? ### Response:
SELECT opponent FROM table_name_83 WHERE date = "16 february 2003"
### Instruction: who is the opponent when played in trieste before 2007? ### Response:
SELECT opponent FROM table_name_90 WHERE year < 2007 AND town = "trieste"
### Instruction: in which race did nathan brown receive his victory during 2013 ? ### Response:
SELECT "race name" FROM table_204_48 WHERE "winner" = 'nathan brown'
### Instruction: What is the former school of the player from Detroit, MI? ### Response:
SELECT "Former school" FROM table_31126 WHERE "Hometown" = 'Detroit, MI'
### Instruction: Which wheel arrangement had a Specification of dl-700? ### Response:
SELECT "Wheel arrangement" FROM table_70792 WHERE "Specification" = 'dl-700'
### Instruction: When the venue was lake oval what did the home team score? ### Response:
SELECT "Home team score" FROM table_77774 WHERE "Venue" = 'lake oval'
### Instruction: What school took 4th place in 2002? ### Response:
SELECT 4 AS th_place FROM table_11577996_1 WHERE year = 2002
### Instruction: What is the average rank of the airport with a 9.3% annual change? ### Response:
SELECT AVG(rank) FROM table_name_59 WHERE annual_change = "9.3%"
### Instruction: Find the number of people who is under 40 for each gender, list bar in desc order please. ### Response:
SELECT gender, COUNT(*) FROM Person WHERE age < 40 GROUP BY gender ORDER BY gender DESC
### Instruction: What is the 2011 when the Tournament was the grand slam tournaments? ### Response:
SELECT 2011 FROM table_name_63 WHERE tournament = "grand slam tournaments"
### Instruction: Which party had a member on August 26, 2008? ### Response:
SELECT party FROM table_name_95 WHERE date = "august 26, 2008"
### Instruction: Find the names of the products with length smaller than 3 or height greater than 5. ### Response:
SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5
### Instruction: With a club that has 400 Points against, what are the points? ### Response:
SELECT "Points for" FROM table_14451 WHERE "Points against" = '400'
### Instruction: what is the most time where exhibitions is 1701 ### Response:
SELECT MAX("Year") FROM table_29720 WHERE "Exhibitors (total)" = '1701'
### Instruction: What type of wheels did the locomotive have that was built by Baldwin Locomotive Works? ### Response:
SELECT wheels FROM table_name_99 WHERE builder = "baldwin locomotive works"
### Instruction: What is the number of Independents elected in the year Labour won 26 (+3) seats? ### Response:
SELECT independents FROM table_name_73 WHERE labour_party = "26 (+3)"
### Instruction: Who is week 2 if week 3 is Sara Stokes? ### Response:
SELECT "Week 2" FROM table_61294 WHERE "Week 3" = 'sara stokes'
### Instruction: If the second leg is 1-1, what is the first leg? ### Response:
SELECT "1st Leg" FROM table_22045 WHERE "2nd leg" = '1-1'
### Instruction: What is the class of the Charlotte Camel gt 500 race? ### Response:
SELECT class FROM table_name_64 WHERE race = "charlotte camel gt 500"
### Instruction: Which Week 3 has a Week 9 of ejected (day 3)? ### Response:
SELECT week_3 FROM table_name_2 WHERE week_9 = "ejected (day 3)"
### Instruction: How many times was the rank (night) 11? ### Response:
SELECT COUNT("Viewers (millions)") FROM table_16581 WHERE "Rank (night)" = '11'