Returns best-case (or best-guess) option for the SQL type of the input. Mostly used to determine quoting rules.

sql_typeof(x)