Simple Overpass command - help

Hello

I want to create a basic Overpass request but I’m stuck;
My goal is simple :
“List all territories inside a territory”

For a more precise example, let’s say I want to list all territories into “France”;

[out:csv(::type, ::id, name)]
[timeout:125];
{{geocodeArea: France}}->.searchArea;
(
  node["admin_level"="4"](area.searchArea);
);
out body;
>;

I got a list of “admin_level 4” territories;
Now I just want to get a list of “admin_level 5” territories within each of them (for example Normandy).
How can I do ?

Thanks for any help :slight_smile:

For Denmark I would enter type:relation & boundary=administrative in Denmark into Overpass Turbo’s wizard

In your code snippet, I would simply drop the =“4”:

[out:csv(::type, ::id, name)]
[timeout:125];
{{geocodeArea: France}}->.searchArea;
(
  node["admin_level"](area.searchArea);
);
out body;
>;

Not sure if looking for admin_level nodes only will return the desired result though.

Thanks for your reply.

Unfortunately, it’s not what I’m looking for;
I want to retrieve all territories of admin level 5 within one of those displayed under admin level 4 in the previous request.
For example, I want to get all territories of admin level 5 in Normandy, how can I do ?