I try to find all hotels in my area with more than X rooms.
This is my attempt:
[out:json][timeout:25];
// gather results
nwr["tourism"="hotel"]({{bbox}});
(
way["building"]({{bbox}});
way["building:shape"!="square"]({{bbox}});
)->.all_buildings;
// filter hotels without square shape
way.all_buildings["tourism"="hotel"]["rooms" > 2];
out geom;
Error:
An error occurred while executing the Overpass Query! The Overpass API returned the following message:
Error: line 11: parse error: '!', '~', '=', '!=', or ']' expected - '>' found.