http://overpass-turbo.eu/s/rjM has an example of query that is using tag counting. It will find poorly tagged object - with only tourism=attraction or tourism attraction + name tag in Poland,
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“addr:housenumber=* and name=* and type:node and aeroway!=* and amenity!=* and craft!=* and historic!=* and leisure!=* and man_made!=* and office!=* and power!=* and railway!=* and shop!=* and tourism!=* in Polska”
*/
[out:xml]/*fixed by auto repair*/[timeout:2500];
// fetch area “Polska” to search in
{{geocodeArea:Polska}}->.searchArea;
// gather results
(
// query part for: “"addr:housenumber"=* and name=* and aeroway!=* and amenity!=* and craft!=* and historic!=* and leisure!=* and man_made!=* and office!=* and power!=* and railway!=* and shop!=* and tourism!=*”
node[tourism=attraction](if:count_tags()==1)(area.searchArea);
node[tourism=attraction][name](if:count_tags()==2)(area.searchArea);
);
// print results
out meta;/*fixed by auto repair*/
>;
out meta qt;/*fixed by auto repair*/
query was provided by wmyrda, RicoElectrico, thanks! (source: https://forum.openstreetmap.org/viewtopic.php?pid=661285#p661285)https://forum.openstreetmap.org/viewtopic.php?pid=661266#p661266)