query-7d2502a6e158d6b421a653eb914784a5
TODO
Use at
- https://query.wikidata.org/sparql
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. }
?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_42b5416610844a34809f33a099ae9de1136392")
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
v3 --"wikibase:rank"--> v2