select sql statement based on polygon column type

identical to the categorical method, if slc id column type is
string/unicode then select quoted sql statement.