Query JSON document based on multiple keys

I have following sample JSON.
{
“City”: {
“Type”: “PRIME”,
“areas”: [“A”, “B”]
},
“X1”: “3700”,
“X2”: “3800”,
“Cat”: “VIP”
}

I want to retrieve all documents having area = A, Priority between X1 and X2 and Cat = “VIP”.
How to do that using couchbase node js client?
This is quite straight forward in CouchDb, looks complex in Couchbase.

Thanks,
Mangesh Sawant.

SELECT ...
FROM default
WHERE Cat = "VIP" AND ANY v IN areas SATISFIES v  = "A" END AND  3750  >= X1 AND 3750 <= X2;