query-6e4bf6afbf09082f2abf02da256c0264
190.231.242.204
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?human ?colours WHERE {
{
SELECT ?human (COUNT(?eyeColor) as ?colours)
WHERE
{
?human wdt:P31 wd:Q5.
?human wdt:P1340 ?eyeColor.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?human ?humanLabel
}
# can further filter ?human here if needed
FILTER(?colours > 1).
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?colours"):::projected
v3("?eyeColor")
v2("?human"):::projected
c6(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?colours > '1^^xsd:integer'"]]
f0 --> v4
v2 --"wdt:P31"--> c3
v2 --"wdt:P1340"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind2[/"count(?eyeColor)"/]
v3 --o bind2
bind2 --as--o v4