OpenStreetmap area query

Hi,

I have set up a OSM overpass server and tried to query the data using “foreach” for loop like the one below, but i am not getting any results. However the overpass-api.de server returns results. Does anyone know where the issue could be? Has this something to do with the area creation? Hosm3s_v0.7.54_areas and osm3s_v0.7.54_areas files? Are they specific for each country map?

[out:csv(postal_code, Pharmacy)];
area[name=“Frankfurt am Main”][boundary=administrative][admin_level=6];
rel(area)[“boundary”=“postal_code”];
map_to_area;
foreach->.a(
(
nodeamenity=pharmacy;
);
make result postal_code = a.set(t[“postal_code”]),
Pharmacy = count(nodes) + count(ways) + count(relations);

out;
);

Yes, exactly, you need to create areas via an area creation job to run this query on your server. The installation documentation has more info on this topic.

It turned out that it is bug in the system and was reported to the developers.
Thanks.