query-9b3991da0ad21cf85bacf7de64dd22d2

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?gender ?genderLabel
WHERE {
  ?item wdt:P31 wd:Q5 .
  ?item wdt:P27 wd:Q28 .
  MINUS { ?item wdt:P21 wd:Q6581097 } .
  OPTIONAL { ?item wdt:P21 ?gender } . 
  FILTER NOT EXISTS { [] schema:about ?item; schema:isPartOf <https://hu.wikipedia.org/> } .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],hu,en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?gender"):::projected v1("?item"):::projected a1((" ")) c9(["wd:Q6581097"]):::iri c13(["#91;AUTO_LANGUAGE#93;,hu,en"]):::literal c7(["wd:Q28"]):::iri c3([https://hu.wikipedia.org/]):::iri c11(["bd:serviceParam"]):::iri c5(["wd:Q5"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0a1 --"schema:about"--> e0v1 e0a1 --"schema:isPartOf"--> e0c3 e0v1("?item"):::projected e0a1((" ")):::projected e0c3([https://hu.wikipedia.org/]):::iri end f0--EXISTS--> f0e0 f0 --> a1 f0 --> c1 f0 --> v1 f0 --> c2 f0 --> c3 a1 --"schema:about"--> v1 a1 --"schema:isPartOf"--> c3 v1 --"wdt:P31"--> c5 v1 --"wdt:P27"--> c7 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P21"--> c9 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P21".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end