Fixing legacy query type and adding temporary query types for "sql" and "mdx".