You shouldn't need to conditionally omit the single quotes for numeric values. `WHERE "Score"."Count" > '4'` is valid sql.