prefix owl: prefix : select ?A ?B ?C ?D ?E from where {{?A owl:sameAs :one} UNION {?B owl:sameAs :two} UNION {?C owl:sameAs :three} UNION {?D owl:sameAs :four } UNION {?E owl:sameAs :five }}