Fixed query3 to show DISTINCT brands