Sitecore: 9.0.2 + SXA 1.7.1
On the page 'Locations', i have used the rendering 'Page Content'. There I am trying to write a query to read all children under 'Locations', segregated based upon the value selected for 'Location Category'. (Idea source)
What is my problem: I tried to write the query in the powershell and was able to succesfully list the children but was not able to segregate on the basis of the selected value, as can be seen below. The first query is success while the second query is giving an error.
What I am looking for: 1. What I am doing wrong? Is using xPath along with query a bad idea?
How it is different: The words 'contact' or 'us' are not in the reserved keywords. And this particular combination is getting executed succesfully in the first query. Similarly 'location', 'category' and 'work' are not in the list of reserved keywords.
Please help me to find out if I missing something silly.