SELECT ?count ?property ?propertyLabel
WITH {
SELECT ?direct_property (COUNT(*) AS ?count) WHERE {
[] ontolex:sense ?sense .
?sense ?direct_property [] .
}
GROUP BY ?direct_property
} AS %results
WHERE {
INCLUDE %results
?property wikibase:directClaim ?direct_property .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?count)
New version