Analyze SQL