query-8703e203b82672212fa4129dfdf72225
Most common properties for government agencies worldwide
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 ?property ?propertyLabel ?count WHERE {
{
SELECT ?property (COUNT(DISTINCT ?statement) AS ?count) WHERE {
?item wdt:P31/wdt:P279* wd:Q327333;
?p ?statement.
?property a wikibase:Property;
wikibase:claim ?p.
FILTER(?property != wd:P31)
}
GROUP BY ?property
ORDER BY DESC(?count)
LIMIT 100
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de-CH,en,fr-CH,it-CH,en-US,en". }
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?count"):::projected
v3("?item")
v4("?p")
v2("?property"):::projected
v5("?statement")
a1((" "))
c11(["de-CH,en,fr-CH,it-CH,en-US,en"]):::literal
c9(["bd:serviceParam"]):::iri
c4(["wd:Q327333"]):::iri
c6(["wikibase:Property"]):::iri
f0[["?property != 'wd:P31'"]]
f0 --> v2
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v3 -->v4--> v5
v2 --"a"--> c6
v2 --"wikibase:claim"--> v4
bind2[/"count(?statement)"/]
v5 --o bind2
bind2 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end