query-f1ce7f1f35fc1caf5dbe9a6c3712b681
P485 SELECT ?item ?itemLabel (COUNT(?value) AS ?count ) WHERE { ?item p:P485 ?property. ?property ps:P485 ?value. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?item ?itemLabel HAVING (?count > 1)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#P485
SELECT ?item ?itemLabel (COUNT(?value) AS ?count )
WHERE
{
?item p:P485 ?property.
?property ps:P485 ?value.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel
HAVING (?count > 1)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count")
v2("?item"):::projected
v3("?property")
v4("?value"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?count > '1^^xsd:integer'"]]
f0 --> v5
v2 --"p:P485"--> v3
v3 --"p:statement/P485"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"count(?value)"/]
v4 --o bind2
bind2 --as--o v5