SQL Queries for Analysis 2