query-fec2c48f47dce4323372aa90bcb2fc15
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?count ?sample1 ?sample2
WHERE
{
{
SELECT ?item (COUNT(?value) AS ?count) (MIN(?value) AS ?sample1) (MAX(?value) AS ?sample2) {
?item wdt:P106 wd:Q10873124 .
?item p:P570 ?stat .
?stat ps:P570 ?value .
?stat a wikibase:BestRank .
} GROUP BY ?item HAVING ( ?count > 1 )
} .
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" } .
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count"):::projected
v2("?item"):::projected
v5("?sample1"):::projected
v6("?sample2"):::projected
v3("?stat")
v4("?value")
c9(["bd:serviceParam"]):::iri
c3(["wd:Q10873124"]):::iri
c7(["wikibase:BestRank"]):::iri
c11(["de,en"]):::literal
f0[["?count > '1^^xsd:integer'"]]
f0 --> v5
v2 --"p:direct/P106"--> c3
v2 --"p:P570"--> v3
v3 --"p:statement/P570"--> v4
v3 --"a"--> c7
bind4[/"count(?value)"/]
v4 --o bind4
bind4 --as--o v5
bind5[/"min(?value)"/]
v4 --o bind5
bind5 --as--o v5
bind6[/"max(?value)"/]
v4 --o bind6
bind6 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end