SOQL analysis