instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: What is the total national rank of Canada with lanes larger than 3? ### Response:
SELECT SUM(rank) FROM table_name_72 WHERE nationality = "canada" AND lane > 3
### Instruction: What was the result on February 18, 2003? ### Response:
SELECT result FROM table_name_61 WHERE date = "february 18, 2003"
### Instruction: tell me the number of points the blackhawks had on march 4 . ### Response:
SELECT "pts" FROM table_204_388 WHERE "date" = 'march 4'
### Instruction: What number from the total number of episodes is the episode written by Julian Unthank? ### Response:
SELECT "Series#" FROM table_1000 WHERE "Writer" = 'Julian Unthank'
### Instruction: How many items were listed under world rank under the nation of Nigeria? ### Response:
SELECT COUNT(world_rank) FROM table_2248991_2 WHERE nation = "Nigeria"
### Instruction: What score has january 3, 2005 as the date? ### Response:
SELECT score FROM table_name_98 WHERE date = "january 3, 2005"
### Instruction: How many millions of people viewed 'Father's Day'? ### Response:
SELECT "Viewers (in millions)" FROM table_73451 WHERE "Title" = 'Father''s Day'
### Instruction: What is the name of the School of the Sussex Tech's Team? ### Response:
SELECT "Team" FROM table_71583 WHERE "School" = 'sussex tech'
### Instruction: What is the latest year that Cicely Tyson is the Golden Globe Award actor? ### Response:
SELECT MAX(year) FROM table_name_76 WHERE actor = "cicely tyson"
### Instruction: Who is the written by when mark worthington is the director? ### Response:
SELECT written_by FROM table_22570439_1 WHERE directed_by = "Mark Worthington"
### Instruction: Record of 11 12 involved what average attendance figures? ### Response:
SELECT AVG("Attendance") FROM table_36526 WHERE "Record" = '11–12'
### Instruction: Who was the director of the episode with series number 116? ### Response:
SELECT "Directed by" FROM table_30409 WHERE "No. in series" = '116'
### Instruction: What is the enrollment of the school whose mascot is hot dogs? ### Response:
SELECT SUM("Enrollment") FROM table_13447 WHERE "Mascot" = 'hot dogs'
### Instruction: What is the total number of Lost, when Played is less than 34? ### Response:
SELECT COUNT("Lost") FROM table_60510 WHERE "Played" < '34'
### Instruction: When was 10 (10) bought? ### Response:
SELECT owned_since FROM table_1353096_1 WHERE channel_tv___dt__ = "10 (10)"
### Instruction: Which civil parish is for the townland clooncugger? ### Response:
SELECT civil_parish FROM table_30121096_1 WHERE townland = "Clooncugger"
### Instruction: How many accelerators are not compatible with the browsers listed ? ### Response:
SELECT COUNT(*) FROM web_client_accelerator WHERE NOT id IN (SELECT accelerator_id FROM accelerator_compatible_browser)
### Instruction: What is the lowest overall number for 09-10 oi 2nd? ### Response:
SELECT MIN("09-10 OI 2nd") FROM table_27251
### Instruction: For each bed type, find the average room price Show bar chart, rank bar in desc order. ### Response:
SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType ORDER BY bedType DESC
### Instruction: What was the date of the Mariners game that had an attendance of 6,707? ### Response:
SELECT date FROM table_name_8 WHERE attendance = "6,707"
### Instruction: what is subject name and language of subject id 2560? ### Response:
SELECT demographic.name, demographic.language FROM demographic WHERE demographic.subject_id = "2560"
### Instruction: Name the least runners with dist of 10.5 ### Response:
SELECT MIN("Runners") FROM table_80448 WHERE "Dist (f)" = '10.5'
### Instruction: Bin the installation date into the day of week interval, and then you can draw a bar chart to tell me how many stations each year. ### Response:
SELECT installation_date, COUNT(installation_date) FROM station
### Instruction: Who was the jockey that had post time odds of 34-1? ### Response:
SELECT jockey FROM table_name_59 WHERE post_time_odds = "34-1"
### Instruction: What sport was played on February 25, 2011? ### Response:
SELECT sport FROM table_name_21 WHERE date = "february 25, 2011"
### Instruction: What is the Netflix where Segment C is car washes? ### Response:
SELECT "Netflix" FROM table_19881 WHERE "Segment C" = 'Car Washes'
### Instruction: What pick in round 5 did the 49ers pick Jim Pilot? ### Response:
SELECT SUM(pick) FROM table_name_69 WHERE player = "jim pilot" AND round > 5
### Instruction: Which school or club team has a pick of 139? ### Response:
SELECT "School/Club Team" FROM table_35168 WHERE "Pick" = '139'
### Instruction: how many times is the date (to) 1919? ### Response:
SELECT COUNT("Notes") FROM table_17713 WHERE "Date (To)" = '1919'
### Instruction: Show names and phones of customers who do not have address information. ### Response:
SELECT customer_name, customer_phone FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM customer_address_history)
### Instruction: How many Total medals did the Nation the got 0 Bronze medals receive? ### Response:
SELECT AVG("Total") FROM table_50460 WHERE "Bronze" < '0'
### Instruction: What is the largest vote result for the Huddersfield constituency? ### Response:
SELECT MAX("Result - votes") FROM table_73866 WHERE "Constituency" = 'Huddersfield'
### Instruction: What district is incumbent albert w. johnson from? ### Response:
SELECT district FROM table_1341865_40 WHERE incumbent = "Albert W. Johnson"
### Instruction: When bbc two is the new channel what is the date of return? ### Response:
SELECT "Date of return" FROM table_22820 WHERE "New channel(s)" = 'BBC Two'
### Instruction: What incumbent won the district of texas 22? ### Response:
SELECT "Incumbent" FROM table_18286 WHERE "District" = 'Texas 22'
### Instruction: Who wrote the teleplay for the episode directed by Tim Robbins? ### Response:
SELECT "Teleplay by" FROM table_3673 WHERE "Directed by" = 'Tim Robbins'
### Instruction: What was the top scorer in the 1890-91 season? ### Response:
SELECT top_scorer FROM table_name_31 WHERE season = "1890-91"
### Instruction: What is the part 3 entry that has a part 4 entry of giboran? ### Response:
SELECT part_3 FROM table_name_31 WHERE part_4 = "giboran"
### Instruction: Which Supplier has a Year of 2006-2008? ### Response:
SELECT supplier FROM table_name_83 WHERE year = "2006-2008"
### Instruction: What is the hometown for the player that went to the college of washington ### Response:
SELECT "Hometown" FROM table_57885 WHERE "College" = 'washington'
### Instruction: What is the average new council number when the election result is smaller than 0? ### Response:
SELECT AVG("New council") FROM table_49064 WHERE "Election result" < '0'
### Instruction: Who was the winner of the tre valli varesine race? ### Response:
SELECT "Winner" FROM table_37561 WHERE "Race Name" = 'tre valli varesine'
### Instruction: What is the highest year for the title, 'loves lost and found'? ### Response:
SELECT MAX("Year") FROM table_79637 WHERE "Title" = 'loves lost and found'
### Instruction: male or female > 60 years of age. ### Response:
SELECT * FROM table_train_165 WHERE (gender = 'male' OR gender = 'female') AND age > 60
### Instruction: How many imr* have tfr* 5.35? ### Response:
SELECT COUNT("IMR*") FROM table_26071 WHERE "TFR*" = '5.35'
### Instruction: How many rounds have a Surface of wintry asphalt? ### Response:
SELECT COUNT("Round") FROM table_13648 WHERE "Surface" = 'wintry asphalt'
### Instruction: When did nswrfl has a score of 8-21? ### Response:
SELECT year FROM table_name_34 WHERE competition = "nswrfl" AND score = "8-21"
### Instruction: how many consecutive players were released on july 9 ? ### Response:
SELECT COUNT("player") FROM table_204_968 WHERE "date" = '9 july 2012'
### Instruction: What date has Liga 3rd of Dynamo Dresden? ### Response:
SELECT "Date" FROM table_39643 WHERE "3rd Liga 3rd" = 'dynamo dresden'
### Instruction: Which 2012 tournament had 2r in 2010? ### Response:
SELECT 2012 FROM table_name_43 WHERE 2010 = "2r"
### Instruction: translate the following into english : 'n bietjie . ### Response:
SELECT "english" FROM table_200_7 WHERE "afrikaans" = "'n bietjie"
### Instruction: How many points did he win in the race with more than 1.0 poles? ### Response:
SELECT "Points" FROM table_73206 WHERE "Poles" > '1.0'
### Instruction: If the night rank is 9, what is the total share number? ### Response:
SELECT COUNT(share) FROM table_19805130_3 WHERE rank__night_ = "9"
### Instruction: How many people attended the game when the game was won 4-2? ### Response:
SELECT COUNT("Attendance") FROM table_49590 WHERE "Result" = 'won 4-2'
### Instruction: What is the most recent year with a time of 10.56? ### Response:
SELECT MAX("Year") FROM table_60101 WHERE "Time" = '10.56'
### Instruction: How many captains with younger than 50 are in each rank, display y axis in asc order. ### Response:
SELECT Rank, COUNT(*) FROM captain WHERE age < 50 GROUP BY Rank ORDER BY COUNT(*)
### Instruction: Who was the opponent on april 24, 1999? ### Response:
SELECT opponent FROM table_name_8 WHERE date = "april 24, 1999"
### Instruction: What is Race 2, when Race 4 is 28? ### Response:
SELECT "Race 2" FROM table_49954 WHERE "Race 4" = '28'
### Instruction: Which High rebounds have High points of chris bosh (18)? ### Response:
SELECT high_rebounds FROM table_name_50 WHERE high_points = "chris bosh (18)"
### Instruction: How many locations have the call signs dxjp-fm? ### Response:
SELECT COUNT(location) FROM table_17487395_1 WHERE callsign = "DXJP-FM"
### Instruction: which city was champion in 1957 , monterrey or el campo ? ### Response:
SELECT "city" FROM table_204_110 WHERE "year" = 1957
### Instruction: What are the numbers for lc models built in 2009? ### Response:
SELECT numbers FROM table_name_34 WHERE model = "lc" AND year_built = 2009
### Instruction: which is the only defendant who was tried and found not guilty ? ### Response:
SELECT "defendant" FROM table_204_479 WHERE "result" = 'tried, found not guilty'
### Instruction: What ws the method of resolution for the fight against joe kielur? ### Response:
SELECT "Method" FROM table_9453 WHERE "Opponent" = 'joe kielur'
### Instruction: What is the 4wi when the economy is 7.82? ### Response:
SELECT "4wi" FROM table_29384 WHERE "Economy" = '7.82'
### Instruction: What is the total teams during the 2012-13 season? ### Response:
SELECT SUM(teams) FROM table_name_19 WHERE season = "2012-13"
### Instruction: What is the Stadium that hosts the team Jacksonville Jaguars? ### Response:
SELECT "Stadium" FROM table_68706 WHERE "Host team" = 'jacksonville jaguars'
### Instruction: what is the date of birth and admission type of James Sloan? ### Response:
SELECT demographic.dob, demographic.admission_type FROM demographic WHERE demographic.name = "James Sloan"
### Instruction: What is the total number of teams founded that were left in 1976? ### Response:
SELECT SUM("Founded") FROM table_6785 WHERE "Left" = '1976'
### Instruction: Which nominating festival did Bosnia and Herzegovina enter? ### Response:
SELECT "Nominating Festival" FROM table_15367 WHERE "Country" = 'bosnia and herzegovina'
### Instruction: What is Esperance pipeline co total diameter? ### Response:
SELECT maximum_diameter FROM table_17918238_1 WHERE owner_operator = "Esperance Pipeline Co"
### Instruction: what is the diagnosis of icd9 code 7885? ### Response:
SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.icd9_code = "7885"
### Instruction: Who was the candidate when the incumbent was Richard C. White? ### Response:
SELECT candidates FROM table_1341843_44 WHERE incumbent = "Richard C. White"
### Instruction: What opponent has December 6, 1964 as the date? ### Response:
SELECT opponent FROM table_name_40 WHERE date = "december 6, 1964"
### Instruction: single antigen b ( sab ) normalized value > 1500 ### Response:
SELECT * FROM table_train_218 WHERE single_antigen_b_sab > 1500
### Instruction: What was the population in North Jeolla? ### Response:
SELECT "Population (2010)" FROM table_43975 WHERE "Province" = 'north jeolla'
### Instruction: what's the years for rockets where position is guard / forward ### Response:
SELECT "Years for Rockets" FROM table_17150 WHERE "Position" = 'Guard / Forward'
### Instruction: Which School/Club Team has a Round larger than 16? ### Response:
SELECT "School/Club Team" FROM table_36563 WHERE "Round" > '16'
### Instruction: Which Notes has a Venue of barcelona, spain? ### Response:
SELECT "Notes" FROM table_42875 WHERE "Venue" = 'barcelona, spain'
### Instruction: What is Glider, when Speed is '147.3km/h'? ### Response:
SELECT glider FROM table_name_40 WHERE speed = "147.3km/h"
### Instruction: On what date was the score 6 4, 7 5? ### Response:
SELECT "Date" FROM table_5736 WHERE "Score" = '6–4, 7–5'
### Instruction: Which home team scored 7.10 (52)? ### Response:
SELECT "Home team" FROM table_33030 WHERE "Home team score" = '7.10 (52)'
### Instruction: how many mission failures were there for the cosmos 305 ? ### Response:
SELECT COUNT(*) FROM table_204_633 WHERE "name" = 'cosmos 305'
### Instruction: What was the film that vadim ilyenko directed? ### Response:
SELECT "Film Name" FROM table_16009 WHERE "Director" = 'Vadim Ilyenko'
### Instruction: last home opponent of the season ### Response:
SELECT "opponent" FROM table_204_207 WHERE "opponent" = 'home' ORDER BY "week" DESC LIMIT 1
### Instruction: What is the lowest number of bronze medals received by a nation with fewer than 0 gold medals? ### Response:
SELECT MIN(bronze) FROM table_name_68 WHERE gold < 0
### Instruction: What is the total number of games at Toronto with less than 31 points? ### Response:
SELECT COUNT(game) FROM table_name_87 WHERE location = "toronto" AND points < 31
### Instruction: How many seasons took place in santiago de chile, chile? ### Response:
SELECT COUNT(season) FROM table_name_19 WHERE place = "santiago de chile, chile"
### Instruction: What was the date of the Women's Individual Class 3? ### Response:
SELECT "Date" FROM table_66508 WHERE "Event" = 'women''s individual class 3'
### Instruction: Which Entrepreneur(s) have mixalbum? ### Response:
SELECT "Entrepreneur(s)" FROM table_67639 WHERE "Company or product name" = 'mixalbum'
### Instruction: How many bonus points did the club who had 379 points for have? ### Response:
SELECT "Bonus points" FROM table_3735 WHERE "Points for" = '379'
### Instruction: what rank has years until mandatory retirement of 6 years? ### Response:
SELECT "Rank" FROM table_51685 WHERE "Years until mandatory retirement" = '6 years'
### Instruction: What is the % Change at London Heathrow airport? ### Response:
SELECT "% Change" FROM table_35253 WHERE "Airport" = 'london heathrow airport'
### Instruction: What is the episode number of the episode titled 'Threshold of Pain'? ### Response:
SELECT "Episode #" FROM table_11011 WHERE "Title" = 'threshold of pain'
### Instruction: How many directors were there in total for the episode with series #62? ### Response:
SELECT COUNT("Directed by") FROM table_20859 WHERE "Series #" = '62'
### Instruction: What episode was written by Bobby Bell and Bill Lee? ### Response:
SELECT MAX("No. in season") FROM table_17552 WHERE "Written by" = 'Bobby Bell and Bill Lee'
### Instruction: What was the arrival for Wansford, Peterborough East? ### Response:
SELECT arrival FROM table_18332845_2 WHERE calling_at = "Wansford, Peterborough East"
### Instruction: age: over 18 or 18 years old, less than 75 years old; ### Response:
SELECT * FROM table_test_19 WHERE age >= 18 AND age < 75
### Instruction: What internet explorer has 29.07% for the chrome? ### Response:
SELECT "Internet Explorer" FROM table_64267 WHERE "Chrome" = '29.07%'
### Instruction: what is the only film for which seth was director and screenwriter ? ### Response:
SELECT "title" FROM table_204_228 WHERE "credit" = 'director and screenwriter'