SQL text is a sequence of keywords, whitespaces, operators and literals. It is generally case insensitive.
More information:
Keywords
Identifiers
Literals