query-9b057b5f8afca51af0926d290d9cc9c1
Indians without first name, 41932 items@27 JUL 2020 SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q5. ?item wdt:P27 wd:Q668 . FILTER NOT EXISTS { ?item wdt:P735 [] } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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#>
# Indians without first name, 41932 items@27 JUL 2020
SELECT ?item ?itemLabel WHERE {
?item wdt:P31 wd:Q5.
?item wdt:P27 wd:Q668 .
FILTER NOT EXISTS { ?item wdt:P735 [] }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
a1((" "))
c7(["bd:serviceParam"]):::iri
c5(["wd:Q668"]):::iri
c3(["wd:Q5"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P735"--> e0a1
e0v1("?item"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"wdt:P735"--> a1
v1 --"wdt:P31"--> c3
v1 --"wdt:P27"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end