which aviation accidents for the lockheed aircraft involved more than 40 passengers?
Entity Entity Entity Entity Entity Entity Entity
m.064qkfh m.064kwl6 m.04t3zt m.02r6rzy m.07m2dx m.065zxr m.0f76vv
TWA Flight 529 Imperial Airlines Flight 201/8 TWA Flight 903 El Al Flight 402 KLM Flight 633 Flying Tiger Line Flight 739 KLM Flight 607-E
class class literal entity
aviation.airliner_accident aviation.aviation_incident_aircraft_relationship 40^^http://www.w3.org/2001/XMLSchema#integer m.01p37h
aviation.airliner_accident aviation.aviation_incident_aircraft_relationship type.int aviation.aircraft_model
Aviation incident Aviation incident/aircraft relationship 40 lockheed
none none > none
aviation.airliner_accident.aircraft aviation.aviation_incident_aircraft_relationship.passengers aviation.aircraft_model.accidents
Aircraft Passengers Accidents
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.airliner_accident . 
?x1 :type.object.type :aviation.aviation_incident_aircraft_relationship . 
FILTER (?x2 > "40"^^<http://www.w3.org/2001/XMLSchema#integer>)
VALUES ?x3 { :m.01p37h } 
?x0 :aviation.airliner_accident.aircraft ?x1 . 
?x1 :aviation.aviation_incident_aircraft_relationship.passengers ?x2 . 
?x3 :aviation.aircraft_model.accidents ?x0 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(AND aviation.airliner_accident (AND (JOIN aviation.airliner_accident.aircraft (gt aviation.aviation_incident_aircraft_relationship.passengers 40^^http://www.w3.org/2001/XMLSchema#integer)) (JOIN (R aviation.aircraft_model.accidents) m.01p37h)))