query-cecdd5f9fdadc4189cbdbd35ce1da6f7
) user:Tagishsimon(Thanks to Women screenwriters in Anime News Network:
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#>
SELECT ?item ?itemLabel ?dateofbirth ?dateofdeath (URI(CONCAT("https://www.animenewsnetwork.com/encyclopedia/people.php?id=",?ANNid)) AS ?ANN)
WHERE {
?item wdt:P31 wd:Q5 .
?item wdt:P21 wd:Q6581072 .
?item wdt:P1982 ?ANNid .
?item wdt:P106 wd:Q28389 .
#exclude Americans and Canadians
MINUS { ?item wdt:P27 wd:Q30 }
MINUS { ?item wdt:P27 wd:Q16 }
OPTIONAL { ?item wdt:P569 ?dateofbirth . }
OPTIONAL { ?item wdt:P570 ?dateofdeath . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,ja" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?ANN")
v2("?ANNid"):::projected
v3("?dateofbirth"):::projected
v4("?dateofdeath"):::projected
v1("?item"):::projected
c7(["wd:Q28389"]):::iri
c9(["wd:Q30"]):::iri
c4(["wd:Q6581072"]):::iri
c10(["wd:Q16"]):::iri
c14(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c16(["en,ja"]):::literal
v1 --"wdt:P31"--> c2
v1 --"wdt:P21"--> c4
v1 --"wdt:P1982"--> v2
v1 --"wdt:P106"--> c7
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P27"--> c9
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P27"--> c10
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P569".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P570".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end
bind2[/"concat('https://www.animenewsnetwork.com/encyclopedia/people.php?id=',?ANNid)"/]
v2 --o bind2
bind2 --as--o v5