query: #defaultView:Graph
  SELECT ?item1 ?image1 ?item1Label ?item2 ?image2 ?item2Label ?edgeLabel 
  WITH {
    SELECT ?item1 WHERE {
      VALUES ?item1 { wd:Q28537550 wd:Q430682 wd:Q69562155 wd:Q69561988 wd:Q571 wd:Q155626 wd:Q2664039 wd:Q3560705 wd:Q160236 wd:Q4010432 wd:Q382307 wd:Q42745 wd:Q65966004 wd:Q15221656 wd:Q17494007 wd:Q23402 wd:Q65966300 wd:Q49135}
    }
  } AS %item1
  WITH {
    SELECT (?item1 AS ?item2) WHERE {
      INCLUDE %item1.
    }
  } AS %item2
  WHERE {
    INCLUDE %item1.
    INCLUDE %item2.
    ?item1 ?wdt ?item2.
    ?edge wikibase:directClaim ?wdt;
          a wikibase:Property.
    OPTIONAL { ?item1 wdt:P18 ?image1. }
    OPTIONAL { ?item2 wdt:P18 ?image2. }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  }