query-d7c3fc673ab2014f372e081488c95d89
Propertiesinstance of (P31)located in the administrative territorial entity (P131)subclass of (P279)
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 ?itemDescription (COUNT(?item) AS ?count)
WHERE {
?item wdt:P31 wd:Q17343829 .
?item wdt:P131* ?county .
?county wdt:P31/wdt:P279* wd:Q47168 .
?item wdt:P131* ?state .
?state wdt:P31 wd:Q35657 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" }
} GROUP BY ?itemDescription ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count")
v3("?county")
v2("?item"):::projected
v4("?state")
a1((" "))
c8(["bd:serviceParam"]):::iri
c2(["wd:Q17343829"]):::iri
c5(["wd:Q47168"]):::iri
c10(["fr"]):::literal
c6(["wd:Q35657"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P131"--> v3
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v2 --"wdt:P131"--> v4
v4 --"wdt:P31"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v5