query: SELECT ?prop ?propLabel ?icon
  WHERE 
  {
    ?prop a wikibase:Property.
    ?prop wikibase:propertyType wikibase:ExternalId.
    OPTIONAL { ?prop wdt:P2910 ?icon. }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  }