Build an SQL query for the given filters, over the given type (using it’s name and fields). For example, for:
Quote/escape a string for WQL.