User:Robin van der Vliet/Esperanto/Edziĝoj

SELECT ?item1 ?item1Label ?country1 ?country1Label ?item2 ?item2Label ?country2 ?country2Label ?place ?placeLabel ?startDate ?endDate WHERE {
  ?item1 wdt:P1412 wd:Q143.
  ?item1 p:P26 ?statement.
  ?statement ps:P26 ?item2.
  ?item2 wdt:P1412 wd:Q143.
  OPTIONAL { ?statement pq:P580 ?startDate. }
  OPTIONAL { ?statement pq:P582 ?endDate. }
  OPTIONAL { ?statement pq:P2842 ?place. }
  OPTIONAL { ?item1 wdt:P27 ?country1. }
  OPTIONAL { ?item2 wdt:P27 ?country2. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "eo". }
  FILTER((STR(?item1)) < (STR(?item2)))
}
Try it!