query-e7826fa22d4919e72df574c534a639dc
Dominica vs Dominican Republic or viceversa. See the query: (Q786)Dominican Republic set to somewhere in (P19)place of birth and (Q784)Dominica set to (P27)country of citizenship There are 346 items about humans with
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item WHERE {
?item wdt:P31 wd:Q5.
VALUES ?countryCitizenship {
wd:Q784
wd:Q786
}
VALUES ?countryBirth {
wd:Q784
wd:Q786
}
?item wdt:P27 ?countryCitizenship.
{
{ ?item (wdt:P19/wdt:P17) ?countryBirth. }
UNION
{ ?item wdt:P19 ?countryBirth. }
}
FILTER(?countryCitizenship != ?countryBirth)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?countryBirth")
v4("?countryCitizenship")
v3("?item"):::projected
a1((" "))
c2(["wd:Q5"]):::iri
f0[["?countryCitizenship != ?countryBirth"]]
f0 --> v4
f0 --> v4
v3 --"wdt:P31"--> c2
bind1[/VALUES ?countryCitizenship/]
bind1-->v4
bind10(["wd:Q784"])
bind10 --> bind1
bind11(["wd:Q786"])
bind11 --> bind1
bind2[/VALUES ?countryBirth/]
bind2-->v4
bind20(["wd:Q784"])
bind20 --> bind2
bind21(["wd:Q786"])
bind21 --> bind2
v3 --"wdt:P27"--> v4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P19"--> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P19"--> a1
a1 --"wdt:P17"--> v4
end
union0r <== or ==> union0l
end