I am trying to build a query that will search for amenities (like libraries for example) within a congressional district boundary relation in Openstreetmap (https://www.openstreetmap.org/relation/18869972).
I can draw the outline of the district with the query below, but cannot figure out how to use that as a bounding box for an amenity search. Can the relation be used to define an area for search?
[out:json][timeout:25];
nwr["boundary"="political"]["name"="New York State Congressional District 23"];
out geom;