which theater character is the plays the gig appears in?
Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.0112nbff m.0112mvf3 m.0112mxlc m.0112mstt m.0112mvb7 m.0112mt2n m.0112mt4n m.0112msk_ m.0112mtfm m.0112mvvc m.0112mv_5
Vince Jack Miss Ricki Valentine Marty Gil Marshall Lucy Abe Mitgang Arthur Aaron Georgie
class entity
theater.theater_character m.0112m37j
theater.theater_character theater.play
Theater Character The Gig
none none
theater.theater_character.plays_appears_in
Plays Appears In
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 . 
VALUES ?x1 { :m.0112m37j } 
?x0 :theater.theater_character.plays_appears_in ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND theater.theater_character (JOIN theater.theater_character.plays_appears_in m.0112m37j))