PREFIX dt: PREFIX : # FROM # or my copy: # FROM SELECT ?object WHERE { # Find alice in ?alice ?alice dt:perlClassName "Person" ; dt:attr [ dt:name "name"; dt:value "Alice" ] . # Find the list alice is in ?team ?team ?li_prop1 ?alice . # Find all the other members of the list in ?object ?team ?li_prop2 ?object . # Check we just get the ?object that are dt:Object ?object a dt:Object . }