Capitalize SQL operators.
Add missing parent calls and fix coding standards errors.