INT Q1 and profile view query for SQL