instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: When did the episodes first air that had a production code of 107? ### Response:
SELECT original_air_date FROM table_18335117_2 WHERE production_code = 107
### Instruction: What model has both a standard byte string and floating-point? ### Response:
SELECT "Model" FROM table_70703 WHERE "Byte string" = 'standard' AND "Floating point" = 'standard'
### Instruction: how many remittances in 2010 for nigeria? ### Response:
SELECT "Remittances 2010" FROM table_31134 WHERE "Country" = 'Nigeria'
### Instruction: name of trainer of the horse that came in first in the 1997 kentucky derby ### Response:
SELECT "trainer" FROM table_204_13 WHERE "finished" = 1
### Instruction: I need the FCC info on the radio Frequency MHz 107.5? ### Response:
SELECT fcc_info FROM table_name_64 WHERE frequency_mhz = 107.5
### Instruction: What was the hometown of the player who attended Athens Drive High School? ### Response:
SELECT hometown FROM table_11677100_5 WHERE school = "Athens Drive High school"
### Instruction: When did the home team score 12.18 (90)? ### Response:
SELECT "Date" FROM table_53898 WHERE "Home team score" = '12.18 (90)'
### Instruction: What day did the home side score 14.13 (97)? ### Response:
SELECT "Date" FROM table_4631 WHERE "Home team score" = '14.13 (97)'
### Instruction: Which series number has the production code 7.07? ### Response:
SELECT COUNT(no_in_series) FROM table_2226817_8 WHERE production_code = "7.07"
### Instruction: How many laps did Innes Ireland make when he had a grid more than 15? ### Response:
SELECT laps FROM table_name_60 WHERE grid > 15 AND driver = "innes ireland"
### Instruction: Who is the winner of the prize of 93,000? ### Response:
SELECT "Winner" FROM table_68432 WHERE "Prize" = '€93,000'
### Instruction: What did the team score while away in moorabbin oval? ### Response:
SELECT "Away team score" FROM table_57439 WHERE "Venue" = 'moorabbin oval'
### Instruction: What is the average number of silver medals for countries with 0 gold and rank under 3? ### Response:
SELECT AVG(silver) FROM table_name_73 WHERE gold = 0 AND rank < 3
### Instruction: When 6 is the rank what is the time for Tuesday August 25th? ### Response:
SELECT "Tues 25 Aug" FROM table_2881 WHERE "Rank" = '6'
### Instruction: Name the bulgarian for jullie hadden gehoord ### Response:
SELECT "Bulgarian" FROM table_22307 WHERE "Dutch" = 'jullie hadden gehoord'
### Instruction: What was the total number of years than had best improved singer ( )? ### Response:
SELECT SUM("Year") FROM table_51566 WHERE "Category" = 'best improved singer (躍進歌手)'
### Instruction: find the description for the diagnosis icd9 code 80126. ### Response:
SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "80126"
### Instruction: Which 1998 tournament had a performance of 3R in 2007? ### Response:
SELECT 1998 FROM table_name_14 WHERE 2007 = "3r"
### Instruction: What is the Class of 1899 1900? ### Response:
SELECT "Class" FROM table_13540 WHERE "Year made" = '1899–1900'
### Instruction: Which Bronze has a Nation of argentina, and a Silver smaller than 0? ### Response:
SELECT AVG(bronze) FROM table_name_28 WHERE nation = "argentina" AND silver < 0
### Instruction: Name the total number of places for vicky gordon and points more than 23 ### Response:
SELECT COUNT(place) FROM table_name_72 WHERE artist = "vicky gordon" AND points > 23
### Instruction: On what Date was the 2011 LG Cup Competittion? ### Response:
SELECT "Date" FROM table_48462 WHERE "Competition" = '2011 lg cup'
### Instruction: What is the result for November 25, 2001? ### Response:
SELECT "Result" FROM table_9687 WHERE "Date" = 'november 25, 2001'
### Instruction: What is taipei's lowest 2010 population? ### Response:
SELECT MIN("Population (2010)") FROM table_9083 WHERE "City" = 'taipei'
### Instruction: What was the score when their record was 35 23 15? ### Response:
SELECT "Score" FROM table_37013 WHERE "Record" = '35–23–15'
### Instruction: What is the category number that was released in November 2007? ### Response:
SELECT "Cat. #" FROM table_33994 WHERE "Release date" = 'november 2007'
### Instruction: Who did Thomaz Bellucci play against when he became runner-up on a clay surface? ### Response:
SELECT opponent FROM table_name_73 WHERE outcome = "runner-up" AND surface = "clay"
### Instruction: Draw a bar chart of decor versus minimal baseprice, and sort Y-axis from low to high order. ### Response:
SELECT decor, MIN(basePrice) FROM Rooms GROUP BY decor ORDER BY MIN(basePrice)
### Instruction: What is the average grid for damon hill with over 74 laps? ### Response:
SELECT AVG(grid) FROM table_name_29 WHERE laps > 74 AND driver = "damon hill"
### Instruction: Tell me the sum of bronze for gold being 27 and silver more than 30 ### Response:
SELECT SUM(bronze) FROM table_name_35 WHERE gold = 27 AND silver > 30
### Instruction: Name the sum of year for swimming and first of mike ### Response:
SELECT SUM("Year") FROM table_57282 WHERE "Sport" = 'swimming' AND "First" = 'mike'
### Instruction: In what series did Charles Barkley (34) did most high points? ### Response:
SELECT "Series" FROM table_74461 WHERE "High points" = 'Charles Barkley (34)'
### Instruction: Please use a bar chart to show the average price of the rooms in a different decor, list bars in descending order please. ### Response:
SELECT decor, AVG(basePrice) FROM Rooms GROUP BY decor ORDER BY decor DESC
### Instruction: Which entrant has a Dallara F398 chassis? ### Response:
SELECT "Entrant" FROM table_7469 WHERE "Chassis" = 'dallara f398'
### Instruction: What was the Peak Position on July 11, 2001? ### Response:
SELECT peak_position FROM table_name_12 WHERE date = "july 11, 2001"
### Instruction: Which American Labor candidate ran against Republican Thomas E. Dewey? ### Response:
SELECT "American Labor ticket" FROM table_42094 WHERE "Republican ticket" = 'thomas e. dewey'
### Instruction: How many values reflect the overall record of the team coached by Frank Beamer? ### Response:
SELECT COUNT("Overall Record") FROM table_30726 WHERE "Head Coach" = 'Frank Beamer'
### Instruction: Who were the candidates in the district where Charlie Norwood is the incumbent? ### Response:
SELECT "Candidates" FROM table_18177 WHERE "Incumbent" = 'Charlie Norwood'
### Instruction: Which team had a manager who was replaced by Faraz Kamalvand? ### Response:
SELECT "Team" FROM table_24904 WHERE "Replaced by" = 'Faraz Kamalvand'
### Instruction: A score of 71-71=142 earned what place? ### Response:
SELECT "Place" FROM table_48722 WHERE "Score" = '71-71=142'
### Instruction: Which opponent has an attendance of 17,015? ### Response:
SELECT "Opponent" FROM table_38058 WHERE "Attendance" = '17,015'
### Instruction: What Week 2 has a Week 1 of crystal beddows? ### Response:
SELECT "Week 2" FROM table_12979 WHERE "Week 1" = 'crystal beddows'
### Instruction: What is the to par that has england as the country, with 66 as a score? ### Response:
SELECT to_par FROM table_name_95 WHERE country = "england" AND score = 66
### Instruction: Name the rdiers for jir team scot motogp ### Response:
SELECT riders FROM table_15327489_1 WHERE team_name = "JiR Team Scot MotoGP"
### Instruction: What venue featured a home score of 8.9 (57)? ### Response:
SELECT "Venue" FROM table_33454 WHERE "Home team score" = '8.9 (57)'
### Instruction: how long did it take michael schumacher to finish the race ? ### Response:
SELECT "time/retired" FROM table_202_143 WHERE "driver" = 'michael schumacher'
### Instruction: What is the total enrollment for the school in garden city, new york? ### Response:
SELECT enrollment FROM table_1969634_1 WHERE location = "Garden City, New York"
### Instruction: What's the zodiac sign for the month with Thai name ? ### Response:
SELECT "Zodiac sign" FROM table_2240 WHERE "Thai name" = 'มกราคม'
### Instruction: How many ages have Maureen Connolly Brinker as the player? ### Response:
SELECT COUNT("Age") FROM table_2163 WHERE "Player" = 'Maureen Connolly Brinker'
### Instruction: What is the score of the friendly competition with 1 goal? ### Response:
SELECT "Score" FROM table_10480 WHERE "Competition" = 'friendly' AND "Goal" = '1'
### Instruction: What is Metodija Gogov's Start of Reign? ### Response:
SELECT COUNT("Start of Reign") FROM table_7487 WHERE "Birth Name" = 'metodija gogov'
### Instruction: What is the losing bonus for the team with a point difference of -99? ### Response:
SELECT losing_bonus FROM table_15467476_3 WHERE points_difference = "-99"
### Instruction: name the only candidate that was first elected in 1811 . ### Response:
SELECT "incumbent" FROM table_204_109 WHERE "first\nelected" = 1811
### Instruction: How many Seasons that has Years of 1976 1977? ### Response:
SELECT COUNT(seasons) FROM table_name_1 WHERE years = "1976–1977"
### Instruction: Compare the total number of locations in each location using a bar graph, rank from high to low by the y axis please. ### Response:
SELECT Location, COUNT(Location) FROM performance GROUP BY Location ORDER BY COUNT(Location) DESC
### Instruction: What circuit was the race where Hideki Mutoh had the fastest lap? ### Response:
SELECT "Circuit" FROM table_16018 WHERE "Fastest Lap" = 'Hideki Mutoh'
### Instruction: For each payment method, return how many customers use it, and list bar in asc order. ### Response:
SELECT payment_method_code, COUNT(*) FROM Customers GROUP BY payment_method_code ORDER BY payment_method_code
### Instruction: What was the decision of the game with Washington as the visitor team on October 13? ### Response:
SELECT decision FROM table_name_96 WHERE visitor = "washington" AND date = "october 13"
### Instruction: How many episodes with different season numbers had the Jeans family in them? ### Response:
SELECT COUNT("No. in season") FROM table_23391 WHERE "Family/families" = 'The Jeans Family'
### Instruction: What are the meanings of the flag whose name transliterates to sem rka? ### Response:
SELECT "Meaning" FROM table_74440 WHERE "Transliteration" = 'semërka'
### Instruction: what is 2003 when 2005 is did not qualify? ### Response:
SELECT 2003 FROM table_name_37 WHERE 2005 = "did not qualify"
### Instruction: Name the young rider classification with laudelino cubino ### Response:
SELECT young_rider_classification FROM table_12261806_2 WHERE winner = "Laudelino Cubino"
### Instruction: What is the Equipment that has a Point bigger than 256, and a Position of 3? ### Response:
SELECT equipment FROM table_name_46 WHERE points > 256 AND position = 3
### Instruction: What was the best finish for 206 on the money list? ### Response:
SELECT best_finish FROM table_29499399_2 WHERE money_list_rank = "206"
### Instruction: How many UK events won for the contestant that won under 1 US event? ### Response:
SELECT events_won__uk_series_ FROM table_name_45 WHERE events_won__us_series_ < 1
### Instruction: What is the English title when the original title is Die Qual Der Wahl? ### Response:
SELECT title__english_ FROM table_1481865_1 WHERE title__original_ = "Die Qual der Wahl"
### Instruction: What is the sum of a rank whose nation is West Germany and has bronze larger than 0? ### Response:
SELECT SUM(rank) FROM table_name_45 WHERE nation = "west germany" AND bronze > 0
### Instruction: What is the total number of titles for the episode numbered 29 in the series? ### Response:
SELECT COUNT(title) FROM table_234886_3 WHERE no_in_series = 29
### Instruction: What are names of the movies that are either made before 1980 or directed by James Cameron? ### Response:
SELECT title FROM Movie WHERE director = "James Cameron" OR YEAR < 1980
### Instruction: What is the sum of losses for Against values over 1510? ### Response:
SELECT SUM("Losses") FROM table_79584 WHERE "Against" > '1510'
### Instruction: What is the lowest League Cup Goals, when Scorer is Denis Law? ### Response:
SELECT MIN(league_cup_goals) FROM table_name_59 WHERE scorer = "denis law"
### Instruction: What is the nickname of staff with first name as Janessa and last name as Sawayn? ### Response:
SELECT nickname FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"
### Instruction: Name the scores for chris ramsey and carol vorderman ### Response:
SELECT "Scores" FROM table_25922 WHERE "Seans team" = 'Chris Ramsey and Carol Vorderman'
### Instruction: What is the least place when the couple is Keiron & Brianne? ### Response:
SELECT MIN("Place") FROM table_28641 WHERE "Couple" = 'Keiron & Brianne'
### Instruction: What is the score for the game that has an attendance of 5,298? ### Response:
SELECT "Score" FROM table_80423 WHERE "Attendance" = '5,298'
### Instruction: On which day did the Chicago Cubs have a loss of trout (4-2)? ### Response:
SELECT "Date" FROM table_75096 WHERE "Loss" = 'trout (4-2)'
### Instruction: WHAT IS THE THIRD WITH LEAD CINDY SIMMONS? ### Response:
SELECT "Third" FROM table_44572 WHERE "Lead" = 'cindy simmons'
### Instruction: Name the total number of bids of the sun belt conference ### Response:
SELECT COUNT(_number_of_bids) FROM table_10722506_6 WHERE conference = "Sun Belt"
### Instruction: Which High rebounds have High points of chris bosh (34)? ### Response:
SELECT "High rebounds" FROM table_50276 WHERE "High points" = 'chris bosh (34)'
### Instruction: Name the total number of population 2011 for perlez ### Response:
SELECT COUNT(population__2011_) FROM table_2562572_35 WHERE settlement = "Perlez"
### Instruction: What was the highest amount of laps for class c1 and driver Derek Bell? ### Response:
SELECT MAX(laps) FROM table_name_73 WHERE class = "c1" AND driver = "derek bell"
### Instruction: What is the Distance of the 1945 Vuelta a Espana with 4A Stage? ### Response:
SELECT "Distance" FROM table_48268 WHERE "Stage" = '4a'
### Instruction: how many party with incumbent being whitmell p. martin ### Response:
SELECT COUNT("Party") FROM table_779 WHERE "Incumbent" = 'Whitmell P. Martin'
### Instruction: Name the author for peri and april 2010 ### Response:
SELECT author FROM table_1620397_2 WHERE featuring = "Peri" AND released = "April 2010"
### Instruction: Glenorchy school has a decile less than 10 and is in what area? ### Response:
SELECT area FROM table_name_11 WHERE decile < 10 AND name = "glenorchy school"
### Instruction: What year did she place 8th in the junior race? ### Response:
SELECT "Year" FROM table_31541 WHERE "Event" = 'junior race' AND "Position" = '8th'
### Instruction: What team was Tom Sneva on in rounds 1-9? ### Response:
SELECT team FROM table_name_8 WHERE driver_s_ = "tom sneva" AND rounds = "1-9"
### Instruction: What is the name of Rhode Island College's softball stadium? ### Response:
SELECT "Softball stadium" FROM table_23255 WHERE "School" = 'Rhode Island College'
### Instruction: Which Record has a Score of l 97 99 (ot)? ### Response:
SELECT "Record" FROM table_48738 WHERE "Score" = 'l 97–99 (ot)'
### Instruction: On the Date of 15 June 1992 what is the Score that is listed? ### Response:
SELECT score FROM table_name_73 WHERE date = "15 june 1992"
### Instruction: What was the BBI for the bowler whose average is 24.50? ### Response:
SELECT "BBI" FROM table_30111 WHERE "Average" = '24.50'
### Instruction: Which Parish (Prestegjeld) was built in 1907? ### Response:
SELECT parish__prestegjeld_ FROM table_name_2 WHERE year_built = "1907"
### Instruction: How many sections does each course has Visualize by bar chart, and rank y axis in descending order. ### Response:
SELECT CRS_CODE, COUNT(*) FROM CLASS GROUP BY CRS_CODE ORDER BY COUNT(*) DESC
### Instruction: What was the overall record in the game won by D. Klein (2-0)? ### Response:
SELECT "Overall Record" FROM table_3912 WHERE "Win" = 'D. Klein (2-0)'
### Instruction: How many tree species are in the kitechura reserve? ### Response:
SELECT tree_species FROM table_16577990_1 WHERE central_forest_reserve = "Kitechura"
### Instruction: How many gold medals were awarded to the team with more than 2 bronze and exactly 29 silver medals? ### Response:
SELECT gold FROM table_name_19 WHERE bronze > 2 AND silver = 29
### Instruction: provide the health insurance and patients name for patient id 2560. ### Response:
SELECT demographic.name, demographic.insurance FROM demographic WHERE demographic.subject_id = "2560"
### Instruction: What was the result of the game played in front of 65,473? ### Response:
SELECT "Result" FROM table_33042 WHERE "Attendance" = '65,473'
### Instruction: Stacked bar chart of team_id for with each ACC_Home in each acc road ### Response:
SELECT ACC_Road, Team_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road
### Instruction: Which carrier was deployed on 18 July 1968? ### Response:
SELECT "carrier" FROM table_46311 WHERE "from" = '18 july 1968'