Parses SQL statements.