instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: On what date did the United Kingdom have a catalog of FT 507? ### Response:
SELECT date FROM table_name_86 WHERE region = "united kingdom" AND catalog = "ft 507"
### Instruction: what is the minimum days of hospital stay of patients whose insurance is medicaid? ### Response:
SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.insurance = "Medicaid"
### Instruction: During what year was Representative Spencer Bachus first elected? ### Response:
SELECT COUNT(first_elected) FROM table_1805191_2 WHERE incumbent = "Spencer Bachus"
### Instruction: What year had Nintendo EAD, Monolith Soft as developers? ### Response:
SELECT SUM(year) FROM table_name_36 WHERE developer_s_ = "nintendo ead, monolith soft"
### Instruction: Search for specific term(s) in user profiles. ### Response:
SELECT Id AS "user_link" FROM Users WHERE AboutMe LIKE '%' + '##search:string?senior##' + '%' ORDER BY DisplayName
### Instruction: Who is the Skip when Alasdair Guthrie is the third? ### Response:
SELECT "Skip" FROM table_39121 WHERE "Third" = 'alasdair guthrie'
### Instruction: Which Doctor Who episode has a Original airdate (UK) of dvd only? ### Response:
SELECT "Doctor Who episode" FROM table_9770 WHERE "Original airdate (UK)" = 'dvd only'
### Instruction: what is age and death status of subject id 4589? ### Response:
SELECT demographic.age, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "4589"
### Instruction: How many highest figures for the team with lowest of 16415? ### Response:
SELECT COUNT("Highest") FROM table_27071 WHERE "Lowest" = '16415'
### Instruction: Name the pinyin for ci - ng-g ing ### Response:
SELECT pinyin FROM table_2013618_1 WHERE foochow = "Ciá-ìng-gâing"
### Instruction: What are the most likely outcome of the police investigation if the crime happen on 'street'? ### Response:
SELECT outcome FROM greatermanchestercrime WHERE location LIKE "%Street%" GROUP BY outcome ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: What's the Date of Issue for Design of Katalin Kovats? ### Response:
SELECT "Date of Issue" FROM table_54130 WHERE "Design" = 'katalin kovats'
### Instruction: What is the highest number of viewers for a rating greater than 9.4? ### Response:
SELECT MAX("Viewers (m)") FROM table_51415 WHERE "Rating" > '9.4'
### Instruction: What is the attendance number when the result is l 41-37? ### Response:
SELECT "Attendance" FROM table_66376 WHERE "Result" = 'l 41-37'
### Instruction: look for the long title of diagnoses for diagnoses icd9 code 920. ### Response:
SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "920"
### Instruction: In the race involving Billy Lee Evans as the seated Representative, was he elected again? ### Response:
SELECT result FROM table_1341663_11 WHERE incumbent = "Billy Lee Evans"
### Instruction: What construction completed is named nelson tunnel/commodore waste rock? ### Response:
SELECT "Construction completed" FROM table_51656 WHERE "Name" = 'nelson tunnel/commodore waste rock'
### Instruction: who is the athlete with the time 6:02.46? ### Response:
SELECT "Athlete" FROM table_66135 WHERE "Time" = '6:02.46'
### Instruction: What is the party when the constituency is 1. Chennai North? ### Response:
SELECT "Party" FROM table_25286 WHERE "Constituency" = '1. Chennai North'
### Instruction: Which Notre Dame position has a pick lower than 5 and round 7? ### Response:
SELECT position FROM table_name_88 WHERE pick < 5 AND college = "notre dame" AND round = 7
### Instruction: what is the least yards when the average is 7 and the long is less than 7? ### Response:
SELECT MIN(yards) FROM table_name_30 WHERE avg = 7 AND long < 7
### Instruction: What is the date of the game with 40,005 in attendance? ### Response:
SELECT "Date" FROM table_36150 WHERE "Attendance" = '40,005'
### Instruction: What is the Set 3 with a Set 2 with 15 6? ### Response:
SELECT "Set 3" FROM table_52876 WHERE "Set 2" = '15–6'
### Instruction: What is the episode number where the English title is Pilot? ### Response:
SELECT number_of_episode FROM table_1481865_1 WHERE title__english_ = "Pilot"
### Instruction: What's the D 42 when D 43 is r 5? ### Response:
SELECT d_42_√ FROM table_name_13 WHERE d_43_√ = "r 5"
### Instruction: When was the status test match with an opposing team of south africa? ### Response:
SELECT date FROM table_name_77 WHERE status = "test match" AND opposing_teams = "south africa"
### Instruction: How many winner's shares have ai miyazato as the champion? ### Response:
SELECT SUM("Winner's share") FROM table_7040 WHERE "Champion" = 'ai miyazato'
### Instruction: where was the abbas family and the pickering family located ### Response:
SELECT "Location(s)" FROM table_23405 WHERE "Family/families" = 'The Abbas Family and The Pickering Family'
### Instruction: Which position was active in Jazz in 2002-03? ### Response:
SELECT "Position" FROM table_57081 WHERE "Years for Jazz" = '2002-03'
### Instruction: Which Reference has a Release date of 1996/10/10? ### Response:
SELECT reference FROM table_name_92 WHERE release_date = "1996/10/10"
### Instruction: How many picks are there for defensive back for rounds larger than 11? ### Response:
SELECT COUNT(pick) FROM table_name_23 WHERE position = "defensive back" AND round > 11
### Instruction: What is the Hanja for McCune-Reischauer of ch n? ### Response:
SELECT "Hanja" FROM table_42575 WHERE "McCune-Reischauer" = 'chŏn'
### Instruction: When Star Zemba was featured in Week 3, who was the cyber girl for Week 2? ### Response:
SELECT week_2 FROM table_name_11 WHERE week_3 = "star zemba"
### Instruction: Name the commander of 167 off 2348 men ### Response:
SELECT commander FROM table_11793221_4 WHERE complement = "167 off 2348 men"
### Instruction: Which Run 4 has Athletes of hubert stevens & curtis stevens? ### Response:
SELECT run_4 FROM table_name_46 WHERE athletes = "hubert stevens & curtis stevens"
### Instruction: What is the Branding of the Frequency owned by Sound of Faith Broadcasting Group? ### Response:
SELECT "Branding" FROM table_8645 WHERE "Owner" = 'sound of faith broadcasting group'
### Instruction: What pick number was from the college of maryland and was picked in a round larger than 7? ### Response:
SELECT pick__number FROM table_name_65 WHERE round > 7 AND college = "maryland"
### Instruction: Count number of answer posted in a given year from a user. ### Response:
SELECT COUNT(*) FROM Posts WHERE OwnerUserId = @UserId AND CreationDate >= '2018/01/01'
### Instruction: what's the maximum position with winnings $50,000 ### Response:
SELECT MAX("Position") FROM table_15998 WHERE "Winnings" = '$50,000'
### Instruction: Where is the train going to when departing at 20.35? ### Response:
SELECT "Going to" FROM table_22271 WHERE "Departure" = '20.35'
### Instruction: how many patients belong to greek orthodox religion? ### Response:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "GREEK ORTHODOX"
### Instruction: Who were the builders of the boat designed by Botin Carkeek? ### Response:
SELECT builder FROM table_19872699_1 WHERE design_firm = "Botin Carkeek"
### Instruction: Find the names of the artists who are from UK and have produced English songs. ### Response:
SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT artist_name FROM song WHERE languages = "english"
### Instruction: Visualize a bar chart, count and group by nationality from the journalist table, list X in descending order please. ### Response:
SELECT Nationality, COUNT(Nationality) FROM journalist GROUP BY Nationality ORDER BY Nationality DESC
### Instruction: How many institutions are shown for the football stadium of mosaic stadium? ### Response:
SELECT COUNT("Institution") FROM table_74146 WHERE "Football stadium" = 'Mosaic Stadium'
### Instruction: Which team appointed a person on 23 December 2008? ### Response:
SELECT "Team" FROM table_22600 WHERE "Date of appointment" = '23 December 2008'
### Instruction: What is the highest bronze number when silver is 0, and the total is smaller than 1? ### Response:
SELECT MAX(bronze) FROM table_name_92 WHERE silver = 0 AND total < 1
### Instruction: Name the date with a hard surface and tournament of usa f5, brownsville ### Response:
SELECT date FROM table_name_83 WHERE surface = "hard" AND tournament = "usa f5, brownsville"
### Instruction: What is the percentage of Glendale when Pasadena is 14%? ### Response:
SELECT "Glendale" FROM table_74690 WHERE "Pasadena" = '14%'
### Instruction: What is the weight for the 2008 club Dynamo Moscow? ### Response:
SELECT "Weight" FROM table_65651 WHERE "2008 club" = 'dynamo moscow'
### Instruction: how many high assists with record being 15-11 ### Response:
SELECT COUNT(high_assists) FROM table_13762472_4 WHERE record = "15-11"
### Instruction: Where was the game played that was on Sunday, May 27? ### Response:
SELECT game_site FROM table_24786958_2 WHERE date = "Sunday, May 27"
### Instruction: How many gas station are opened between 2000 and 2005? ### Response:
SELECT COUNT(*) FROM gas_station WHERE open_year BETWEEN 2000 AND 2005
### Instruction: When was the tournament that was won with a score of 204 (-6) played? ### Response:
SELECT date FROM table_11622924_1 WHERE score = "204 (-6)"
### Instruction: How many draws were there when the conceded goals was numbered at 45? ### Response:
SELECT COUNT("Draws") FROM table_22073 WHERE "Goals conceded" = '45'
### Instruction: how many stamp sets were released in the year 1975 ? ### Response:
SELECT COUNT("stamp set") FROM table_203_153 WHERE "stamp issue date" = 1975
### Instruction: Who is in November after 1988 when Prinzzess is in October? ### Response:
SELECT november FROM table_name_52 WHERE year > 1988 AND october = "prinzzess"
### Instruction: How many times did they play the pittsburgh penguins? ### Response:
SELECT COUNT("March") FROM table_29570 WHERE "Opponent" = 'Pittsburgh Penguins'
### Instruction: Name the average zone for waddon railway station and has more than 2 platforms ### Response:
SELECT AVG(zone) FROM table_name_54 WHERE stations = "waddon railway station" AND platforms > 2
### Instruction: What office was law preservation ticket holder William E. Barron running for? ### Response:
SELECT "Office" FROM table_41826 WHERE "Law Preservation ticket" = 'william e. barron'
### Instruction: What is the home score with marek dupnitsa as opponent? ### Response:
SELECT "Home" FROM table_75922 WHERE "Opponent" = 'marek dupnitsa'
### Instruction: Give me a bar chart for the total number of each product type code, order by the Y in asc. ### Response:
SELECT Product_Type_Code, COUNT(*) FROM Products GROUP BY Product_Type_Code ORDER BY COUNT(*)
### Instruction: Who made the highest assist in the game that scored 79-88? ### Response:
SELECT high_assists FROM table_17103645_9 WHERE score = "79-88"
### Instruction: What is the enrollment for the Redhawks? ### Response:
SELECT COUNT(enrollment) FROM table_27361255_1 WHERE team_nickname = "RedHawks"
### Instruction: What is the venue where Argentina was the opposing team in a test match? ### Response:
SELECT venue FROM table_name_26 WHERE opposing_teams = "argentina" AND status = "test match"
### Instruction: What is the new classification for the University of Arizona Western in the Collegiate Lacrosse League? ### Response:
SELECT "New Classification" FROM table_19749 WHERE "Institution" = 'University of Arizona'
### Instruction: the auckland aces and yorkshire carnegie qualified on what date ? ### Response:
SELECT "qualified" FROM table_204_642 WHERE "team" = 'auckland aces'
### Instruction: What was the score versus Michaela Pochabov ? ### Response:
SELECT "Score" FROM table_71018 WHERE "Opponent in the final" = 'michaela pochabová'
### Instruction: Who was the ran as an incumbent leader first in 1818? ### Response:
SELECT "Incumbent" FROM table_28872 WHERE "First elected" = '1818'
### Instruction: Name the 1821 with 1861 of 3733 ### Response:
SELECT 1821 FROM table_name_30 WHERE 1861 = "3733"
### Instruction: Name the number of party with the incubent james william trimble ### Response:
SELECT COUNT(party) FROM table_1341930_5 WHERE incumbent = "James William Trimble"
### Instruction: Who was playing when the score was 5 7, 5 7? ### Response:
SELECT opponents FROM table_2186447_1 WHERE score = "5–7, 5–7"
### Instruction: What is the average rating for a Flyde that has a Burnley less than 0? ### Response:
SELECT AVG("Fylde") FROM table_65030 WHERE "Burnley" < '0'
### Instruction: What episode number had 14.41 million viewers? ### Response:
SELECT MAX("Episodes") FROM table_29640 WHERE "Viewers (in millions)" = '14.41'
### Instruction: What's the total number of league cup apps when the league goals were less than 0? ### Response:
SELECT COUNT(league_cup_apps) FROM table_name_15 WHERE league_goals < 0
### Instruction: Name the position that has baltimore bullets and college of texas tech ### Response:
SELECT position FROM table_name_86 WHERE team = "baltimore bullets" AND college = "texas tech"
### Instruction: What was the result of the open cup when they finished 4th in the regular season? ### Response:
SELECT open_cup FROM table_12002388_1 WHERE reg_season = "4th"
### Instruction: Show different nationalities along with the number of hosts of each nationality in a bar chart, and could you sort by the X in asc? ### Response:
SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality ORDER BY Nationality
### Instruction: What identities do the genus/species arabidopsis thaliana have? ### Response:
SELECT identity FROM table_15417439_1 WHERE genus_species = "Arabidopsis thaliana"
### Instruction: What date did the Green-Communists receive 5.7%? ### Response:
SELECT date_released FROM table_1881642_1 WHERE green_communist = "5.7%"
### Instruction: What pick was mario williams before 2006? ### Response:
SELECT SUM(pick) FROM table_name_72 WHERE player_name = "mario williams" AND year < 2006
### Instruction: What is the Date when the high points went to Dell Curry (17)? ### Response:
SELECT "Date" FROM table_42105 WHERE "High points" = 'dell curry (17)'
### Instruction: What is Name, when Overall is greater than 132, and when Round is 12? ### Response:
SELECT name FROM table_name_59 WHERE overall > 132 AND round = 12
### Instruction: Which average attendance has stoneman (0-2) as the loss? ### Response:
SELECT AVG("Attendance") FROM table_6233 WHERE "Loss" = 'stoneman (0-2)'
### Instruction: What class had 1 made and fleet number of 406? ### Response:
SELECT class FROM table_name_36 WHERE quantity_made = "1" AND fleet_number_s_ = "406"
### Instruction: What is the place of the player witha 69-69=138 score? ### Response:
SELECT place FROM table_name_45 WHERE score = 69 - 69 = 138
### Instruction: Which Set 3 has a Set 1 of 25 20? ### Response:
SELECT "Set 3" FROM table_71103 WHERE "Set 1" = '25–20'
### Instruction: How many vacators were in the Pennsylvania 33rd district? ### Response:
SELECT COUNT("Vacator") FROM table_73389 WHERE "District" = 'Pennsylvania 33rd'
### Instruction: what is the record when the method is submission (armbar) and the round is less than 3? ### Response:
SELECT record FROM table_name_8 WHERE method = "submission (armbar)" AND round < 3
### Instruction: What is the total number of people that attended the glenferrie oval venue? ### Response:
SELECT SUM(crowd) FROM table_name_39 WHERE venue = "glenferrie oval"
### Instruction: Which team has an agg., that has a 1st leg of 1-2? ### Response:
SELECT "Agg." FROM table_66943 WHERE "1st leg" = '1-2'
### Instruction: Who was in the election that was for incumbent bud shuster's seat? ### Response:
SELECT opponent FROM table_1341522_41 WHERE incumbent = "Bud Shuster"
### Instruction: What is the exit date for the Dutch Albums Top 100 Chart? ### Response:
SELECT "Date of Exit" FROM table_72201 WHERE "Chart" = 'Dutch Albums Top 100'
### Instruction: How many Points has a Game of 82 and a April larger than 10? ### Response:
SELECT AVG(points) FROM table_name_11 WHERE game = 82 AND april > 10
### Instruction: how many broadcaste dates features the overtones ### Response:
SELECT COUNT(broadcast_date) FROM table_29135051_3 WHERE singer_s_ = "The Overtones"
### Instruction: In what place did Adam Scott, who had a to par score of +1, finish? ### Response:
SELECT place FROM table_name_17 WHERE to_par = "+1" AND player = "adam scott"
### Instruction: How long is the song 'Maduraikku Pogathadee'? ### Response:
SELECT "Length" FROM table_53989 WHERE "Song" = 'maduraikku pogathadee'
### Instruction: what is the compression ratio whre the torque is 208? ### Response:
SELECT "Compression ratio" FROM table_26302 WHERE "Torque (N m)" = '208'
### Instruction: What is the latest episode in the season directed by Chris Long? ### Response:
SELECT MAX(no_in_season) FROM table_21312845_1 WHERE directed_by = "Chris Long"
### Instruction: What venue did the game on september 5, 1998 take place at? ### Response:
SELECT venue FROM table_name_71 WHERE date = "september 5, 1998"