A similar tool is offered by Bellingcat, at https://osm-search.bellingcat.com/ - it allows you to select search terms and a distance between them, without the need to be proficient at coding (..>)() ;P .
That results in a map like this, with the circles being points that have a Cemetery and...