query-698102fa6175f6911f115d0c82b354ad
PropertiesCommons Creator page (P1472)Commons category (P373)date of birth (P569)date of death (P570)instance of (P31)
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 DISTINCT ?item1 ?item1Label ?dob1 ?dod1 ?item2 ?item2Label ?dob2 ?dod2 ?value
{
?item1 wdt:P1472 [] .
?item1 wdt:P373 ?value .
?item2 wdt:P373 ?value .
OPTIONAL {?item1 wdt:P569 ?dob1} .
OPTIONAL {?item1 wdt:P570 ?dod1} .
OPTIONAL {?item2 wdt:P569 ?dob2} .
OPTIONAL {?item2 wdt:P570 ?dod2} .
FILTER(?item1 != ?item2) .
MINUS{ ?item2 wdt:P31 wd:Q4167836 . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en" } .
} LIMIT 500
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?dob1"):::projected
v6("?dob2"):::projected
v5("?dod1"):::projected
v7("?dod2"):::projected
v1("?item1"):::projected
v2("?item2"):::projected
v3("?value"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c6(["wd:Q4167836"]):::iri
c10(["en,en"]):::literal
f0[["?item1 != ?item2"]]
f0 --> v1
f0 --> v2
v1 --"wdt:P1472"--> a1
v1 --"wdt:P373"--> v3
v2 --"wdt:P373"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P569".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P570".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P570".-> v7
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P31"--> c6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end