find the engine used gasoline and cng as fuels?
Entity
m.0jt2zqq
GM Small Gasoline Engine
class entity entity
automotive.engine m.05wy2 m.03jj2w
automotive.engine automotive.fuel automotive.fuel
Engine Gasoline cng
none none none
automotive.engine.fuels_used automotive.fuel.engines
Fuels Used Engines Using This Fuel
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 :automotive.engine . 
VALUES ?x1 { :m.05wy2 } 
VALUES ?x2 { :m.03jj2w } 
?x0 :automotive.engine.fuels_used ?x1 . 
?x2 :automotive.fuel.engines ?x0 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND automotive.engine (AND (JOIN automotive.engine.fuels_used m.05wy2) (JOIN (R automotive.fuel.engines) m.03jj2w)))