what celebrity. is in a romantic relationship involving lola falana?
Entity
m.01bmlb
Sammy Davis, Jr.
class class entity
celebrities.celebrity celebrities.romantic_relationship m.05wcvl
celebrities.celebrity celebrities.romantic_relationship celebrities.celebrity
Celebrity Romantic relationship Lola Falana
none none none
celebrities.romantic_relationship.celebrity celebrities.romantic_relationship.celebrity
Celebrity Celebrity
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 :celebrities.celebrity . 
?x1 :type.object.type :celebrities.romantic_relationship . 
VALUES ?x2 { :m.05wcvl } 
?x1 :celebrities.romantic_relationship.celebrity ?x0 . 
?x1 :celebrities.romantic_relationship.celebrity ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND celebrities.celebrity (JOIN (R celebrities.romantic_relationship.celebrity) (JOIN celebrities.romantic_relationship.celebrity m.05wcvl)))