area-request: adding only a single line - the whole code fails

hello dear friends

this runs well - without any issue

i wanted to add a single line - but see here

it fails

You have two errors in your query. The parenthesis starting before nwr[amenity=hospital] are not closed and nwr[amenity=amenity=nursing_home] contains the key *amenity *twice, the query below runs fine for me:


[out:csv(::id,::type,::lon,::lat,amenity,name,"addr:postcode","addr:city","addr:street","addr:housenumber","contact:website",website,"contact:email")]
[timeout:600];
rel[boundary=administrative][admin_level=6][name="München"] -> .city;
(
  nwr[amenity=hospital][name](around.city:2000);
  nwr[amenity=school][name](around.city:2000);
  nwr[amenity=childcare][name](around.city:2000);
  nwr[amenity=nursing_home][name](around.city:2000);
);
out center;

I’d suggest not to use “around” for this use case, but rather area. Otherwise your results will be incomplete.

See https://forum.openstreetmap.org/viewtopic.php?pid=828265#p828265 for an example.

@tag…There’s really no need to post your question in multiple sub-forums at the same time. One post would do as well.