query-3606473b80bd60a23080181948104953
languages qualifier Hungarian-style transcription (P2719) is used with by number of statements, identified by their Hungarian labels SELECT ?lang (COUNT(?v) AS ?num) WHERE { [] #wikibase:propertyType wikibase:Monolingualtext; wikibase:statementProperty ?ps . ?v pq:P2719 ?trans; ?ps ?text . BIND (lang(?text) AS ?wmlc) . OPTIONAL { [] wdt:P424 ?wmlc; wdt:P31 wd:Q34770; rdfs:label ?lang . FILTER (lang(?lang) = "hu") . } } GROUP BY ?lang ORDER BY DESC(?num)
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#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
# languages qualifier Hungarian-style transcription (P2719) is used with by number of statements, identified by their Hungarian labels
SELECT ?lang (COUNT(?v) AS ?num)
WHERE {
[] #wikibase:propertyType wikibase:Monolingualtext;
wikibase:statementProperty ?ps .
?v pq:P2719 ?trans; ?ps ?text .
BIND (lang(?text) AS ?wmlc) .
OPTIONAL { [] wdt:P424 ?wmlc; wdt:P31 wd:Q34770; rdfs:label ?lang .
FILTER (lang(?lang) = "hu") . }
} GROUP BY ?lang ORDER BY DESC(?num)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?lang"):::projected
v8("?num")
v3("?ps")
v6("?text")
v5("?trans")
v4("?v"):::projected
v7("?wmlc")
a1((" "))
a2((" "))
c6(["wd:Q34770"]):::iri
a1 --"wikibase:statementProperty"--> v3
v4 --"pq:P2719"--> v5
v4 -->v3--> v6
bind0[/"?text"/]
v6 --o bind0
bind0 --as--o v7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a2 -."wdt:P424".-> v7
a2 --"wdt:P31"--> c6
a2 --"rdfs:label"--> v2
end
bind2[/"count(?v)"/]
v4 --o bind2
bind2 --as--o v8