I have been given a station in london - warren street station, euston, and i have to return the stations which have the same bike availability as warren street station and at least as many empty docs. I have written a small query to return warren street station and its availability but how to I return a list of all other stations that have the same availability/ as many empty docks as my warren street station?
<results>{ for $b in doc("http://tinyurl.com/TFLStationsXMLFile")
/stations/station
where $b/name = "Warren Street Station, Euston"
order by $b
return
<result>
{ $b/name }
{ $b/nb_bikes }
{ $b/nb_empty_docks }
</result>}
</results>