instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: How many episodes had a production code of 5m13? ### Response:
SELECT COUNT(ep) FROM table_20967430_4 WHERE prod_code = "5M13"
### Instruction: What track did they race on at the Fountain of Youth Stakes? ### Response:
SELECT "Track" FROM table_10483 WHERE "Race" = 'fountain of youth stakes'
### Instruction: Which recording has a Track larger than 2, and a Translation of the last meal? ### Response:
SELECT recorded FROM table_name_31 WHERE track > 2 AND translation = "the last meal"
### Instruction: Which players scored the most points when the opposing team was Seattle and how many points did they score? ### Response:
SELECT "High points" FROM table_18883 WHERE "Team" = 'Seattle'
### Instruction: Bar chart of mean age from each city code, could you display bars from high to low order? ### Response:
SELECT city_code, AVG(Age) FROM Student GROUP BY city_code ORDER BY city_code DESC
### Instruction: how many times is the fuel propulsion is cng? ### Response:
SELECT COUNT("Fleet Series (Quantity)") FROM table_15845 WHERE "Fuel Propulsion" = 'CNG'
### Instruction: What is Prize, when Name is 'Valdemar Kwaysser'? ### Response:
SELECT "Prize" FROM table_43940 WHERE "Name" = 'valdemar kwaysser'
### Instruction: How many laps have a time/retired of +23.080? ### Response:
SELECT laps FROM table_name_51 WHERE time_retired = "+23.080"
### Instruction: What is the career caps for half-back, when tests is more than 3? ### Response:
SELECT career_caps FROM table_name_73 WHERE position = "half-back" AND tests > 3
### Instruction: How much Rank has a 1st (m) of 127? ### Response:
SELECT COUNT("Rank") FROM table_5027 WHERE "1st (m)" = '127'
### Instruction: What is solidv4 when sequencer is data output per run? ### Response:
SELECT "SOLiDv4" FROM table_17776 WHERE "Sequencer" = 'Data output per run'
### Instruction: What venue does the soccer team Pennsylvania Stoners play in? ### Response:
SELECT venue FROM table_name_55 WHERE sport = "soccer" AND club = "pennsylvania stoners"
### Instruction: Who was the Independent Socialist candidate for the office of comptroller? ### Response:
SELECT "Independent-Socialist ticket" FROM table_34814 WHERE "Office" = 'comptroller'
### Instruction: How many home games were there with the road win pct was .167? ### Response:
SELECT "HOME games" FROM table_923 WHERE "Road Win Pct." = '.167'
### Instruction: Who won the tournament when Idaho State won the regular season? ### Response:
SELECT conference AS Tournament FROM table_22779004_1 WHERE regular_season_winner = "Idaho State"
### Instruction: Who is the Opponent on December 7, 2003? ### Response:
SELECT opponent FROM table_name_22 WHERE date = "december 7, 2003"
### Instruction: what was the total population of all 6 counties combined in 2009 ? ### Response:
SELECT SUM("population\ncensus 2009") FROM table_204_778
### Instruction: in how many tournaments did the team play , at most , 9 games ? ### Response:
SELECT COUNT("tournament") FROM table_203_527 WHERE "games played" <= 9
### Instruction: What is the rank for the nation with 0 silver medals and a total larger than 2? ### Response:
SELECT SUM(rank) FROM table_name_86 WHERE silver = 0 AND total > 2
### Instruction: When the away team was geelong, what was the away team score? ### Response:
SELECT "Away team score" FROM table_10951 WHERE "Away team" = 'geelong'
### Instruction: How many status' are there with a population of 90565? ### Response:
SELECT COUNT("Status") FROM table_73446 WHERE "Population" = '90565'
### Instruction: Show me about the correlation between Team_ID and School_ID , and group by attribute Team_Name in a scatter chart. ### Response:
SELECT Team_ID, School_ID FROM basketball_match GROUP BY Team_Name
### Instruction: What is the tournament with greg rusedski as the opponent? ### Response:
SELECT "Tournament" FROM table_44481 WHERE "Opponent" = 'greg rusedski'
### Instruction: How many platinum points were awarded for 5th place? ### Response:
SELECT MAX("Points awarded (Platinum)") FROM table_16592 WHERE "Finishing position" = '5th'
### Instruction: How many children did Dennis Hawley have at his time of death? ### Response:
SELECT "Children Together" FROM table_26625 WHERE "Deceased Spouse" = 'Dennis Hawley'
### Instruction: Who was the partner that played against Serena Williams Venus Williams? ### Response:
SELECT partner FROM table_name_94 WHERE opponents_in_the_final = "serena williams venus williams"
### Instruction: What is the smallest crowd that Footscray had as the away team? ### Response:
SELECT MIN("Crowd") FROM table_33005 WHERE "Away team" = 'footscray'
### Instruction: What is the Away Team Score of the Hawthorn Home Team? ### Response:
SELECT "Away team score" FROM table_52065 WHERE "Home team" = 'hawthorn'
### Instruction: How many times is the vessel operator canadian coast guard? ### Response:
SELECT COUNT("No. in series") FROM table_28362 WHERE "Vessel Operator" = 'Canadian Coast Guard'
### Instruction: who is the only country to win only golds ? ### Response:
SELECT "nation" FROM table_204_211 WHERE "silver" = 0 AND "bronze" = 0
### Instruction: Which operating system has 1GB (mobile ddr) memory (RAM)? ### Response:
SELECT operating_system_version FROM table_name_27 WHERE memory___ram__ = "1gb (mobile ddr)"
### Instruction: Which value for Apps is associated with the all-time rank of 53? ### Response:
SELECT "Apps" FROM table_32214 WHERE "All-time Rank" = '53'
### Instruction: In which District(s) has a Democrat held office since 1998? ### Response:
SELECT district FROM table_name_12 WHERE party = "democrat" AND elected > 1998
### Instruction: If the Home team of collingwood was playing, what was the Away team? ### Response:
SELECT "Away team" FROM table_10501 WHERE "Home team" = 'collingwood'
### Instruction: Tell me the dates conducted for plaid cymru of 19% ### Response:
SELECT date_s__conducted FROM table_name_69 WHERE plaid_cymru = "19%"
### Instruction: Which city is listed first when Okinawa is listed as the second city? ### Response:
SELECT city_1 FROM table_16066063_1 WHERE city_2 = "Okinawa"
### Instruction: What is the sanskrit word if the transcription is wan athit? ### Response:
SELECT "Sanskrit word" FROM table_22146 WHERE "Transcription" = 'wan athit'
### Instruction: What is the rank for Mar 17 when the April 21 rank is 10? ### Response:
SELECT mar_17 FROM table_name_96 WHERE april_21 = "10"
### Instruction: What is the largest number of consecutive starts for jason gildon? ### Response:
SELECT MAX("Consecutive starts") FROM table_30622 WHERE "Player" = 'Jason Gildon'
### Instruction: What County has an Opposition of Antrim and the Player Bernie Forde? ### Response:
SELECT county FROM table_name_53 WHERE opposition = "antrim" AND player = "bernie forde"
### Instruction: Who was the home team that scored 8.7 (55)? ### Response:
SELECT "Home team" FROM table_33631 WHERE "Home team score" = '8.7 (55)'
### Instruction: The director of the episode with the title 'The Sky is Falling' is who? ### Response:
SELECT "Director" FROM table_29096 WHERE "Title" = 'The Sky is Falling'
### Instruction: count the number of patients who were discharged at home. ### Response:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME"
### Instruction: Which Round has an Opponent of ryan bixler? ### Response:
SELECT "Round" FROM table_48087 WHERE "Opponent" = 'ryan bixler'
### Instruction: What number in the season was 'Burning Down the House'? ### Response:
SELECT MAX("No. in season") FROM table_3906 WHERE "Title" = 'Burning Down the House'
### Instruction: What is the largest amount of top division titles featuring the tammeka club? ### Response:
SELECT MAX(top_division_titles) FROM table_name_56 WHERE club = "tammeka"
### Instruction: Which opponent played in 2001/02? ### Response:
SELECT "Opponent" FROM table_9251 WHERE "Season" = '2001/02'
### Instruction: What is the away team of the game with an attendance of 117? ### Response:
SELECT "Away team" FROM table_59690 WHERE "Attendance" = '117'
### Instruction: obese patients ( bmi greater than 35 ) . ### Response:
SELECT * FROM table_train_262 WHERE obesity = 1 OR body_mass_index_bmi > 35
### Instruction: What is the outcome of the match with Roger Federer as the opponent? ### Response:
SELECT "Outcome" FROM table_75928 WHERE "Opponent" = 'roger federer'
### Instruction: What is the sum of FA Cup goals when there are 19 league goals? ### Response:
SELECT SUM("FA Cup goals") FROM table_49596 WHERE "League goals" = '19'
### Instruction: What's the meaning of the verb whose part 1 is slapen? ### Response:
SELECT verb_meaning FROM table_1745843_7 WHERE part_1 = "slapen"
### Instruction: Who was the opponent on april 26, 2003? ### Response:
SELECT opponent FROM table_name_25 WHERE date = "april 26, 2003"
### Instruction: what's the number of times vitamin b complex w/c is prescribed? ### Response:
SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'vitamin b complex w/c'
### Instruction: What is the production code of the episode titled, 'But there's Clay'? ### Response:
SELECT MAX("Production Code") FROM table_516 WHERE "Title" = 'But There''s Clay'
### Instruction: how many clubs were runner ups after the year 2000 ? ### Response:
SELECT COUNT("club") FROM table_203_125 WHERE "runner-up years" > 2000
### Instruction: What is the Call Sign of the Frequency by Owner CKUA Radio Foundation? ### Response:
SELECT "Call sign" FROM table_65963 WHERE "Owner" = 'ckua radio foundation'
### Instruction: Date of wed. nov. 13 had how many number of games? ### Response:
SELECT COUNT("Game") FROM table_37367 WHERE "Date" = 'wed. nov. 13'
### Instruction: Which candidate won 61.47% of the votes? ### Response:
SELECT "Candidate" FROM table_58017 WHERE "Share of votes" = '61.47%'
### Instruction: What is the Score of Golden Point(s) scorer Adam Reynolds? ### Response:
SELECT score FROM table_name_29 WHERE golden_point_s__scorer = "adam reynolds"
### Instruction: Which 2005 has a 2004 of 3 2? ### Response:
SELECT 2005 FROM table_name_3 WHERE 2004 = "3–2"
### Instruction: What were his winnings when he had 14 top 10s? ### Response:
SELECT "Winnings" FROM table_2481 WHERE "Top 10" = '14'
### Instruction: What are the years of participation for pickerington north? ### Response:
SELECT years_of_participation FROM table_17429402_7 WHERE school = "Pickerington North"
### Instruction: Name the total number of step 6 for 11 gs grade ### Response:
SELECT COUNT(step_6) FROM table_2319437_1 WHERE gs_grade = 11
### Instruction: What is the home team score that played the away team of north melbourne? ### Response:
SELECT "Home team score" FROM table_55055 WHERE "Away team" = 'north melbourne'
### Instruction: What is the original air date of the episode written by Liz Feldman? ### Response:
SELECT "Original air date" FROM table_31395 WHERE "Written by" = 'Liz Feldman'
### Instruction: What are the assets for company who's headquarters are located in Brazil? ### Response:
SELECT assets__billion_$_ FROM table_1682026_2 WHERE headquarters = "Brazil"
### Instruction: In what year did Yvette Porteous play women's singles? ### Response:
SELECT "Year" FROM table_5348 WHERE "Women's singles" = 'yvette porteous'
### Instruction: The tournament with the opponent of Kelly De Beer Eva Pera was played on what date? ### Response:
SELECT date FROM table_name_5 WHERE opponents = "kelly de beer eva pera"
### Instruction: List the grape, appelation and name of wines whose score is higher than 93 ordered by Name. ### Response:
SELECT grape, appelation, name FROM wine WHERE score > 93 ORDER BY name
### Instruction: For the film with director listed as 1998, what was the gross in Singapore? ### Response:
SELECT singapore_gross FROM table_name_64 WHERE director = "1998"
### Instruction: How many races is different distances does Rosehill Guineas compete in? ### Response:
SELECT COUNT("Distance") FROM table_17843 WHERE "Race" = 'Rosehill Guineas'
### Instruction: What is the date where the attendance was 31,220? ### Response:
SELECT "Date" FROM table_56421 WHERE "Attendance" = '31,220'
### Instruction: Driver at larger than 10 with a Q1 of 18. ### Response:
SELECT driver FROM table_name_28 WHERE q1_order > 10 AND q1_pos = 18
### Instruction: What is the fate for 11 april 1944? ### Response:
SELECT "Fate" FROM table_464 WHERE "Commissioned" = '11 April 1944'
### Instruction: How many schools are named otafuku tholi? ### Response:
SELECT COUNT(year_named) FROM table_16799784_4 WHERE name = "Otafuku Tholi"
### Instruction: What is the grid total for jean-pierre beltoise? ### Response:
SELECT COUNT("Grid") FROM table_53144 WHERE "Driver" = 'jean-pierre beltoise'
### Instruction: What were the reasons that venues closed in the 1990s? ### Response:
SELECT "Reason" FROM table_43486 WHERE "Closed" = '1990s'
### Instruction: What Assembled has a 1st member of william boteler? ### Response:
SELECT "Assembled" FROM table_13113 WHERE "1st member" = 'william boteler'
### Instruction: What is John Shadegg's First Elected date? ### Response:
SELECT AVG("First elected") FROM table_60095 WHERE "Incumbent" = 'john shadegg'
### Instruction: Im the match where the home team is Melbourne Victory, what was the crowd attendance? ### Response:
SELECT COUNT(crowd) FROM table_name_97 WHERE home_team = "melbourne victory"
### Instruction: Name the first elected for lost renomination democratic loss ### Response:
SELECT first_elected FROM table_1342249_32 WHERE result = "Lost renomination Democratic loss"
### Instruction: what is the number of parties that had more than 3 candidates in their party ? ### Response:
SELECT COUNT("party") FROM table_203_354 WHERE "candidate(s)" > 3
### Instruction: What was the winning score of the Greater Vancouver Open tournament? ### Response:
SELECT "Winning score" FROM table_42330 WHERE "Tournament" = 'greater vancouver open'
### Instruction: Find the list of attribute data types possessed by more than 3 attribute definitions. ### Response:
SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING COUNT(*) > 3
### Instruction: What is the 2009 estimate population of the Northeast? ### Response:
SELECT "Population (2009 estimate)" FROM table_70869 WHERE "Name" = 'northeast'
### Instruction: What is the 1st leg when club is a.c. libertas? ### Response:
SELECT "1st leg" FROM table_500 WHERE "Club" = 'A.C. Libertas'
### Instruction: How many values of hosted have a highest value of 42659? ### Response:
SELECT COUNT("Hosted") FROM table_3117 WHERE "Highest" = '42659'
### Instruction: how many date of birts are if the previous club is chelsea ### Response:
SELECT COUNT("Date of Birth") FROM table_74223 WHERE "Previous Club" = 'Chelsea'
### Instruction: Who won a prize pool of $61,100? ### Response:
SELECT "Winner" FROM table_24745 WHERE "Prize Pool" = '$61,100'
### Instruction: What is the netflow version when vendor and type is pc and servers? ### Response:
SELECT "NetFlow Version" FROM table_17405 WHERE "Vendor and type" = 'PC and Servers'
### Instruction: Name the area for administrative county being flintshire ### Response:
SELECT "Area 1891 (Statute acres)" FROM table_1130 WHERE "Administrative county" = 'Flintshire'
### Instruction: what is the maximum bush# with others% being 1.57% ### Response:
SELECT MAX("Bush#") FROM table_18861 WHERE "Others%" = '1.57%'
### Instruction: What was the first year that had a prize of 50,000? ### Response:
SELECT first_year_aired FROM table_name_28 WHERE prize = "50,000"
### Instruction: Which Year has a Venue of atlanta, united states? ### Response:
SELECT "Year" FROM table_42874 WHERE "Venue" = 'atlanta, united states'
### Instruction: How many verbs mean to grow, to produce ### Response:
SELECT COUNT(part_1) FROM table_1745843_10 WHERE verb_meaning = "to grow, to produce"
### Instruction: What is the total for Canada during round 2? ### Response:
SELECT "Overall" FROM table_53788 WHERE "Nationality" = 'canada' AND "Round" = '2'
### Instruction: A bar chart for listing the number of the name of products in ascending order of price. ### Response:
SELECT Product_Name, COUNT(Product_Name) FROM Products GROUP BY Product_Name ORDER BY Product_Price
### Instruction: What surface was the April 24, 2003 match played on? ### Response:
SELECT surface FROM table_name_88 WHERE date = "april 24, 2003"
### Instruction: In episode Top 16 (8 Men), what are the themes? ### Response:
SELECT "Theme" FROM table_73926 WHERE "Episode" = 'Top 16 (8 Men)'