which theater character has a romantic involvement with lady guinevere?
Entity Entity
m.01438z m.04904
Lancelot Arthur
class class entity
theater.theater_character fictional_universe.romantic_involvement m.0psrm
theater.theater_character fictional_universe.romantic_involvement opera.opera_character
Theater Character Romantic involvement lady guinevere
none none none
fictional_universe.romantic_involvement.partner fictional_universe.romantic_involvement.partner
Partner Partner
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 :theater.theater_character . 
?x1 :type.object.type :fictional_universe.romantic_involvement . 
VALUES ?x2 { :m.0psrm } 
?x1 :fictional_universe.romantic_involvement.partner ?x0 . 
?x1 :fictional_universe.romantic_involvement.partner ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND theater.theater_character (JOIN (R fictional_universe.romantic_involvement.partner) (JOIN fictional_universe.romantic_involvement.partner m.0psrm)))