User:TweetsFactsAndQueries/Queries/twins with different dates of birth
Originally posted on Twitter and on Mastodon.
SELECT ?twin1 ?birth1 ?twin2 ?birth2 ?twin1Label ?birth1Label ?twin2Label ?birth2Label WHERE {
?twin1 wdt:P31 wd:Q5;
wdt:P569 ?birth1;
p:P3373 [
ps:P3373 ?twin2;
pq:P1039/wdt:P279* wd:Q14756018
].
?twin2 wdt:P31 wd:Q5;
wdt:P569 ?birth2.
FILTER(?birth1 != ?birth2)
FILTER(STR(?twin1) < STR(?twin2))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}