Write SQL query to solve given problem: How many products with the id "989" were sold in August 2013?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT SUM(Quantity) FROM TransactionHistory WHERE TransactionDate LIKE '2013-08%' AND TransactionType = 'S' AND ProductID = 989