query-8331fa75e32da512e2e1a7575b36e05c
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?lang ?langLabel ?speakers {
?lang wdt:P279*/wdt:P31 wd:Q315 .
FILTER NOT EXISTS { [] (wdt:P1412|wdt:P103) ?lang } .
OPTIONAL { ?lang wdt:P1098 ?speakers } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
} ORDER BY DESC(?speakers)
Query found at
- https://www.wikidata.org/wiki/User:Infovarius/Queries
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2017/01
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?lang"):::projected
v1("?speakers"):::projected
a1((" "))
a2((" "))
c8(["bd:serviceParam"]):::iri
c5(["wd:Q315"]):::iri
c10(["en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
subgraph unione00[" Union "]
subgraph unione00l[" "]
style unione00l fill:#abf,stroke-dasharray: 3 3;
e0a1 --"wdt:P103"--> e0v1
end
subgraph unione00r[" "]
style unione00r fill:#abf,stroke-dasharray: 3 3;
e0a1 --"wdt:P1412"--> e0v1
end
unione00r <== or ==> unione00l
end
e0v1("?lang"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> a1
f0 --> c1
f0 --> v2
f0 --> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P103"--> v2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P1412"--> v2
end
union0r <== or ==> union0l
end
v2 --"wdt:P279"--> a2
a2 --"wdt:P31"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1098".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end