query-b9aee81e8ba49ea6bc7b2bc00f1b1fdf
TODO
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?property ?propertyLabel ?count WHERE
{
{
SELECT ?property (count(distinct ?item) as ?count) WHERE {
{
?item p:P361 ?statement0.
?statement0 (ps:P361/(wdt:P279*)) wd:Q242345.
}
?item ?predicate ?value .
?property wikibase:directClaim ?predicate .
} group by ?property } SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
} order by desc(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?count"):::projected
v2("?item")
v4("?predicate")
v6("?property"):::projected
v3("?statement0")
v5("?value")
a1((" "))
c7(["bd:serviceParam"]):::iri
c4(["wd:Q242345"]):::iri
c9(["en"]):::literal
v2 --"p:P361"--> v3
v3 --"p:statement/P361"--> a1
a1 --"p:direct/P279"--> c4
v2 -->v4--> v5
v6 --"wikibase:directClaim"--> v4
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end