I'm using the queries on repository methods with SDN, so it's something like this:
@Query(value = "start poi=node:locations({0}) WHERE ANY(x IN {1} WHERE x in poi.seasons) WITH poi, length (poi-[:UPVOTED]-()) as upvotes," +
"length (poi-[:DOWNVOTED]-()) as downvotes return poi ORDER BY (upvotes - downvotes) DESC",
countQuery = "start poi=node:locations({0}) WHERE ANY(x IN {1} WHERE x in poi.seasons) return count(poi)")
Page<Poi> findInBoxPageableWithSeasons(String query, Season[] seasons, Pageable pageable);
where query is a box query [bbox[...]]
I'm making another post with some more questions that gives some context on this query thogh
Alessandro