query: SELECT ?item ?idcount ?sitelinks ?paintingcount WHERE {
      ?item wdt:P106 wd:Q1028181 .
      ?item wdt:P31 wd:Q5 .
      ?item wdt:P21 wd:Q6581072 .
      ?item wikibase:identifiers ?idcount .
      ?item wikibase:sitelinks ?sitelinks . 
    { # To filter out the painting dictators
      SELECT ?item (COUNT(?item) as ?paintingcount) WHERE {
      ?painting wdt:P31 wd:Q3305213 .  
      ?painting wdt:P170 ?item . 
       } GROUP BY ?item 
        HAVING (?paintingcount > 3)
    }
        SERVICE wikibase:label {
      bd:serviceParam wikibase:language "en" .
      ?item rdfs:label ?name .
     }
    }
  ORDER BY DESC(?idcount )
  LIMIT 200