User:TweetsFactsAndQueries/Queries/non-twin siblings born one day apart

Originally posted on Twitter and on Mastodon.

SELECT ?sibling1 ?sibling1Label ?birth1 ?sibling2 ?sibling2Label ?birth2 WHERE {
  ?sibling1 wdt:P31 wd:Q5;
         wdt:P569 ?birth1;
         p:P3373 ?siblingStatement.
  ?siblingStatement ps:P3373 ?sibling2.
  MINUS { ?siblingStatement pq:P1039/wdt:P279* wd:Q14756018. }
  ?sibling2 wdt:P31 wd:Q5;
         wdt:P569 ?birth2.
  FILTER(ABS(?birth2 - ?birth1) = 1)
  FILTER(STR(?sibling1) < STR(?sibling2))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Try it!