SELECT
?number_of_forms
?grammatical_feature ?grammatical_featureLabel
?example_form
WITH {
SELECT
(COUNT(?form) AS ?number_of_forms)
?grammatical_feature
(SAMPLE(?form) AS ?example_form)
WHERE {
?lexeme wikibase:lexicalCategory wd:Q1084 ;
dct:language wd:Q9035 ;
ontolex:lexicalForm ?form .
?form wikibase:grammaticalFeature ?grammatical_feature .
}
GROUP BY ?grammatical_feature
} AS %grammatical_features
WHERE {
INCLUDE %grammatical_features
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
}
ORDER BY DESC(?number_of_forms)