The problem is the condition [resource.name like ''UAT"]. The LIKE operator matches the same text between quotes in non-sensitive case. If you want that it matches UAT and something else, you must use asterik '*' after UAT text.
It would be: [resource.name like "UAT*"]
Here, you have the link to documentation
I hope this help you