query-8477d1a0b3748e7454187259927b023f

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT * WHERE { {
  SELECT ?item WHERE { ?item p:P964 ?GKZStmt. }
GROUP BY ?item
HAVING ((COUNT(?GKZStmt)) > 1 ) 

         }  ?item p:P964 ?GKZStmt.
       ?GKZStmt ps:P964 ?GKZ.
       OPTIONAL { ?GKZStmt pq:P580 ?startTime. }
       OPTIONAL { ?GKZStmt pq:P582 ?endTime. }
       ?GKZStmt wikibase:rank ?rank
  }
ORDER BY ?item ?rank

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?GKZ"):::projected v3("?GKZStmt"):::projected v4("?_anon_42b5416610844a34809f33a099ae9de174530") v7("?endTime"):::projected v1("?item"):::projected v2("?rank"):::projected v6("?startTime"):::projected a1((" ")) f0[[" > '1^^xsd:integer'"]] f0 --> a1 v1 --"p:P964"--> v3 bind2[/"count(?GKZStmt)"/] v3 --o bind2 bind2 --as--o v4 v1 --"p:P964"--> v3 v3 --"p:statement/P964"--> v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:qualifier/P580".-> v6 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:qualifier/P582".-> v7 end v3 --"wikibase:rank"--> v2