query-f7c8eea620ac0b63337ccf55bd74817c
languages where some lexemes have more than one grammatical gender SELECT ?language ?languageLabel (COUNT(?lexeme) AS ?count) WITH { SELECT ?lexeme WHERE { ?lexeme p:P5185 ?genderStatement. } GROUP BY ?lexeme HAVING(COUNT(?genderStatement) > 1) } AS %lexemesWithMultipleGenders WHERE { INCLUDE %lexemesWithMultipleGenders. ?lexeme dct:language ?language. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?language ?languageLabel ORDER BY DESC(?count)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# languages where some lexemes have more than one grammatical gender
SELECT ?language ?languageLabel (COUNT(?lexeme) AS ?count)
WHERE {
{
SELECT ?lexeme WHERE {
?lexeme p:P5185 ?genderStatement.
}
GROUP BY ?lexeme
HAVING(COUNT(?genderStatement) > 1)
}
?lexeme dct:language ?language.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?language ?languageLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?_anon_42b5416610844a34809f33a099ae9de154138")
v6("?count")
v3("?genderStatement")
v5("?language"):::projected
v2("?lexeme"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[[" > '1^^xsd:integer'"]]
f0 --> a1
v2 --"p:P5185"--> v3
bind2[/"count(?genderStatement)"/]
v3 --o bind2
bind2 --as--o v4
v2 --"dct:language"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind4[/"count(?lexeme)"/]
v2 --o bind4
bind4 --as--o v6