shaula ab is part of which star system?
Entity
m.04rspj
Lambda Scorpii
class entity
astronomy.star_system m.0x1g7_g
astronomy.star_system astronomy.star
Star System Shaula Ab
none none
astronomy.star_system.stars
Stars
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :astronomy.star_system . 
VALUES ?x1 { :m.0x1g7_g } 
?x0 :astronomy.star_system.stars ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND astronomy.star_system (JOIN astronomy.star_system.stars m.0x1g7_g))