query-4e13e747fd20f018616733cdefe8a05d

rq turtle/ttl

results containing english sitelinkGot a query set up for people whose place of birth is within a country (Australia as an example) and who lack a gender P21] (Australia as an example, borrowed from Tagishsimon)

Use at

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 ?item ?itemLabel WHERE {
  ?item wdt:P19 ?place.
  ?place wdt:P17 wd:Q408.
  ?item wdt:P31 wd:Q5.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  FILTER(NOT EXISTS { ?item wdt:P21 _:b1. })
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?place") a1((" ")) c8(["bd:serviceParam"]):::iri c6(["wd:Q5"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q408"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P21"--> e0a1 e0v1("?item"):::projected e0a1((" ")):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> a1 v1 --"wdt:P21"--> a1 v1 --"wdt:P19"--> v2 v2 --"wdt:P17"--> c4 v1 --"wdt:P31"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end