which airport terminals are at heathrow airport?
Entity Entity Entity Entity
m.0411nkg m.0ndhhhh m.057xmp1 m.057xmnp
London Heathrow Terminal 5 London Heathrow Terminal 3 London Heathrow Terminal 4 London Heathrow Terminal 1
class entity
aviation.airport_terminal m.03jn4
aviation.airport_terminal aviation.airport
Airport terminal heathrow airport
none none
aviation.airport_terminal.airport
Airport
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_terminal . 
VALUES ?x1 { :m.03jn4 } 
?x0 :aviation.airport_terminal.airport ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND aviation.airport_terminal (JOIN aviation.airport_terminal.airport m.03jn4))