presence was produced by what theater private company limited by shares?
Entity
m.0y4ydgy
Royal Court Theatre
class entity entity
theater.theater_company m.0262dl9 m.0y8d9z_
theater.theater_company business.company_type theater.theater_production
Theater Company Private company limited by shares Presence
none none none
organization.organization.legal_structure theater.theater_production.producing_company
Legal structure Producing Company
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_company . 
VALUES ?x1 { :m.0262dl9 } 
VALUES ?x2 { :m.0y8d9z_ } 
?x0 :organization.organization.legal_structure ?x1 . 
?x2 :theater.theater_production.producing_company ?x0 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND theater.theater_company (AND (JOIN organization.organization.legal_structure m.0262dl9) (JOIN (R theater.theater_production.producing_company) m.0y8d9z_)))