query-2afbda08600fe52d7d87128b149a9a12
HAVING
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?human (COUNT(?eyeColor) AS ?eyeColorCount) WHERE {
?human wdt:P31 wd:Q5;
wdt:P1340 ?eyeColor.
}
GROUP BY ?human
HAVING(?eyeColorCount > 1)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?eyeColor"):::projected
v4("?eyeColorCount")
v2("?human"):::projected
c3(["wd:Q5"]):::iri
f0[["?eyeColorCount > '1^^xsd:integer'"]]
f0 --> v4
v2 --"wdt:P31"--> c3
v2 --"wdt:P1340"--> v3
bind2[/"count(?eyeColor)"/]
v3 --o bind2
bind2 --as--o v4