which airport has the terminal london heathrow terminal 1
Entity
m.03jn4
London Heathrow Airport
class entity
aviation.airport m.057xmnp
aviation.airport aviation.airport_terminal
Airport London Heathrow Terminal 1
none none
aviation.airport.terminals
Terminals
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 :aviation.airport . 
VALUES ?x1 { :m.057xmnp } 
?x0 :aviation.airport.terminals ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND aviation.airport (JOIN aviation.airport.terminals m.057xmnp))