Exson - Remove duplicated criteria in sql