query-2dcb3de0b293fc2de9f2998f535d0d64

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel (COUNT(?dob) AS ?cnt) ?qualifierpropertyLabel WHERE {
   {
  SELECT ?item WHERE {
    ?item wdt:P569 ?dob .
  } GROUP BY ?item HAVING(COUNT(?dob) > 1)
}.
  ?item wdt:P31 wd:Q5 .
  ?item wdt:P569 ?dob .

  OPTIONAL { 
    ?item p:P569 ?statement .
    ?statement ?qualifier ?dobqualifier .
    ?qualifierproperty wikibase:qualifier ?qualifier
  }

  SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
} GROUP BY ?item ?itemLabel ?qualifierpropertyLabel ORDER BY DESC(?cnt)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?_anon_d00291b7e9a143df8ec0be8c8ebd714c41216") v9("?cnt") v3("?dob"):::projected v7("?dobqualifier") v2("?item"):::projected v6("?qualifier") v8("?qualifierproperty") v5("?statement") a1((" ")) c8(["bd:serviceParam"]):::iri c4(["wd:Q5"]):::iri c10(["en"]):::literal f0[[" > '1^^xsd:integer'"]] f0 --> a1 v2 --"p:direct/P569"--> v3 bind2[/"count(?dob)"/] v3 --o bind2 bind2 --as--o v4 v2 --"p:direct/P31"--> c4 v2 --"p:direct/P569"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:P569".-> v5 v5 -->v6--> v7 v8 --"wikibase:qualifier"--> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind4[/"count(?dob)"/] v3 --o bind4 bind4 --as--o v9