Truncated the SQL text to speed up query