query: SELECT DISTINCT ?item (CONCAT("[[:Commons:Category:", ?commonscategory, "|Category:", ?commonscategory, "]]") AS ?commonslink) WHERE {
    ?item wdt:P373 ?commonscategory .
    ?item wdt:P31 wd:Q5 .
    MINUS { ?commonslink schema:about ?item . ?commonslink schema:isPartOf <https://commons.wikimedia.org/> . } 
    MINUS { ?item wdt:P910 [] } 
    FILTER NOT EXISTS { ?item2 wdt:P373 ?commonscategory . FILTER(?item!=?item2) }
    } LIMIT 10000