prefix : select ?AN ?CN ?X ?Y from where {{?A a :Adult; :name ?AN} UNION {?C a :Child; :name ?CN} UNION {?X :age ?Y}}