prefix : select ?N ?N2 from where {{?N a :Cyclic} UNION {:a a :Cyclic} UNION {?N :to ?N2}}