query-c79a7d79545a3e33d050636bcb569b93
Lister des pays où sont nés 5 chats ou plus
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 ?paysLabel (COUNT(?item) as ?total)
WHERE
{
?item wdt:P31 wd:Q146.
?item wdt:P19 ?naissance.
?naissance wdt:P17 ?pays.
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en". }
}
GROUP BY ?paysLabel
HAVING (?total >=5)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?naissance")
v4("?pays")
v5("?total")
c3(["wd:Q146"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["fr,en"]):::literal
f0[["?total >= '5^^xsd:integer'"]]
f0 --> v5
v2 --"wdt:P31"--> c3
v2 --"wdt:P19"--> v3
v3 --"wdt:P17"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind2[/"count(?item)"/]
v2 --o bind2
bind2 --as--o v5