prefix : select ?P ?N from from where {?X :name ?P . ?X :hasChild ?Y . ?Y :name ?N }