query-d6e5677786fb8578d00c19e5c6cec99f

rq turtle/ttl

humans who were once falseley believed to be childless SELECT ?human ?humanName { ?human wdt:P31 wd:Q5 . ?human p:P40 ?childStatement . ?childStatement a wdno:P40 . ?childStatement wikibase:rank wikibase:DeprecatedRank . OPTIONAL { ?human rdfs:label ?humanName filter (lang(?humanName) = "en") } } LIMIT 100

Use at

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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
#humans who were once falseley believed to be childless
SELECT ?human ?humanName {
  ?human wdt:P31 wd:Q5 .
  ?human p:P40 ?childStatement .
  ?childStatement a wdno:P40 .
  ?childStatement wikibase:rank wikibase:DeprecatedRank .
  OPTIONAL { ?human rdfs:label ?humanName filter (lang(?humanName) = "en") }
} LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?childStatement") v2("?human"):::projected v1("?humanName"):::projected c3(["wd:Q5"]):::iri c8(["wikibase:DeprecatedRank"]):::iri c6(["p:novalue/P40"]):::iri v2 --"p:direct/P31"--> c3 v2 --"p:P40"--> v3 v3 --"a"--> c6 v3 --"wikibase:rank"--> c8 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."rdfs:label".-> v1 end