Implement ends with cps path query to support multiple attributes with 'and' condition