Question: What is the name of product purchased with transaction type P?
SQL: SELECT ProductID FROM Product WHERE ProductID IN ( SELECT ProductID FROM TransactionHistory WHERE TransactionType = 'P' )