query-34a259e2c38a8ba78816d13c476f865a
title: Människor utan barn (inkluderar icke-sanna värden) SELECT ?human ?humanLabel WHERE { ?human wdt:P31 wd:Q5 . #find humans ?human p:P40 ?childStatement . #with at least one P40 (child) statement ?childStatement rdf:type wdno:P40 . #where the P40 (child) statement is defined to be "no value" SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" . } }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Människor utan barn (inkluderar icke-sanna värden)
SELECT ?human ?humanLabel
WHERE
{
?human wdt:P31 wd:Q5 . #find humans
?human p:P40 ?childStatement . #with at least one P40 (child) statement
?childStatement rdf:type wdno:P40 . #where the P40 (child) statement is defined to be "no value"
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?childStatement")
v1("?human"):::projected
c7(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c5(["p:novalue/P40"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal
v1 --"p:direct/P31"--> c2
v1 --"p:P40"--> v2
v2 --"a"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end