name the transport operator of the transportation that has terminus at rail station.
Entity Entity Entity Entity Entity
m.01t_4s m.01vhz5 m.0303gp m.04_r1 m.0gg9s9v
Staten Island Railway Pennsylvania Railroad Indian Railways Massachusetts Bay Transportation Authority TrainOSE
class class entity
travel.transport_operator travel.transportation m.0py27
travel.transport_operator travel.transportation travel.transport_terminus
Transport operator Transportation rail station
none none none
travel.transport_operator.travel_destinations_served travel.transportation.transport_terminus
Travel destinations served Transport terminus
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 :travel.transport_operator . 
?x1 :type.object.type :travel.transportation . 
VALUES ?x2 { :m.0py27 } 
?x0 :travel.transport_operator.travel_destinations_served ?x1 . 
?x1 :travel.transportation.transport_terminus ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND travel.transport_operator (JOIN travel.transport_operator.travel_destinations_served (JOIN travel.transportation.transport_terminus m.0py27)))