query-98c42dd44482530bb02eadf006ccfd97

rq turtle/ttl

For Queen and Cookies.

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT distinct ?frau ?frauLabel ?count ?frauDescription Where {
  {
    SELECT distinct ?frau (COUNT (DISTINCT ?articles) as ?count) WHERE {
      # Suche nach:
      ?frau wdt:P31 wd:Q5.          # Menschen mit
      ?frau wdt:P21 wd:Q6581072.    # Geschlecht weiblich
      ?frau wdt:P106 wd:Q33999      # die als Schauspieler arbeiten
      Minus {                       # aber nicht als Porno-Darstellerin
        ?frau wdt:P106 wd:Q488111
        }
      Filter Not Exists {           # ohne Artikel in der deutschen Wikipedia
        ?dearticle schema:about ?frau.
        ?dearticle schema:inLanguage "de" 
        }

      ?articles schema:about ?frau. # sortiere nach Anzahl der existierenden Wikipedia-Artikel

    } group by ?frau order by desc(?count)
    Limit 100                       # Beschränke auf maximal 100 Ergebnisse 
  }.

  SERVICE wikibase:label {
     bd:serviceParam wikibase:language "de,en,es,fr" .
  }
} order by desc(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?articles") v5("?count"):::projected v2("?dearticle") v3("?frau"):::projected c3(["de"]):::literal c14(["de,en,es,fr"]):::literal c7(["wd:Q6581072"]):::iri c12(["bd:serviceParam"]):::iri c10(["wd:Q488111"]):::iri c5(["wd:Q5"]):::iri c9(["wd:Q33999"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"schema:about"--> e0v2 e0v1 --"schema:inLanguage"--> e0c3 e0v1("?dearticle"):::projected e0v2("?frau"):::projected e0c3(["de"]):::literal end f0--EXISTS--> f0e0 f0 --> v2 f0 --> c1 f0 --> v3 f0 --> c2 f0 --> c3 v2 --"schema:about"--> v3 v2 --"schema:inLanguage"--> c3 v3 --"wdt:P31"--> c5 v3 --"wdt:P21"--> c7 v3 --"wdt:P106"--> c9 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P106"--> c10 end v4 --"schema:about"--> v3 bind3[/"count(?articles)"/] v4 --o bind3 bind3 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end