query-1c73ba4f37a7433f5e72794c6f5fb58e
Propertiesinstance of (P31)
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?p ?proplabel ?c ?classlabel (COUNT(*) AS ?count) WHERE {
?x ?prop wd:Q81068910.
?x wdt:P31 ?c.
?c rdfs:label ?classlabel.
FILTER(LANG(?classlabel)="en")
?p wikibase:directClaim ?prop.
?p rdfs:label ?proplabel.
FILTER(LANG(?proplabel)="en")
}
GROUP BY ?p ?proplabel ?c ?classlabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?c"):::projected
v3("?classlabel"):::projected
v8("?count")
v7("?p"):::projected
v5("?prop")
v2("?proplabel"):::projected
v4("?x")
c2(["wd:Q81068910"]):::iri
f0[["?proplabel = 'en'"]]
f0 --> v2
f1[["?classlabel = 'en'"]]
f1 --> v3
v4 -->v5--> c2
v4 --"wdt:P31"--> v6
v6 --"rdfs:label"--> v3
v7 --"wikibase:directClaim"--> v5
v7 --"rdfs:label"--> v2
bind3[/"count(*)"/]
bind3 --as--o v8