query: SELECT ?item (CONCAT("[[Wikidata:WikiProject sum of all paintings/Creator/",?name, "|list]]") AS ?listlink) (COUNT(DISTINCT ?Bildindex) AS ?Bildindexcount) ?paintingcount WHERE {
      ?item wdt:P106 wd:Q1028181 .
      ?item wdt:P31 wd:Q5 .
      ?item wdt:P21 wd:Q6581072.
      ?painting wdt:P170 ?item . 
      ?painting wdt:P31 wd:Q3305213 . 
      ?painting wdt:P2092 ?Bildindex .
    { # 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 > 2)
    }
        SERVICE wikibase:label {
      bd:serviceParam wikibase:language "en" .
      ?item rdfs:label ?name .
     }
    }
  GROUP BY ?item ?name ?listlink ?paintingcount
  HAVING (?Bildindexcount > 0)
  ORDER BY DESC(?Bildindexcount)
  LIMIT 500