Oracle Database 12c R2 SQL: Using Subqueries to Solve Queries