of tropical cyclones that affected bahamas, which are in the same category with hurricane gloria?
Entity Entity Entity
m.01vnsr m.02cz3m m.04jnnpy
1900 Galveston hurricane Hurricane Hazel Hurricane Ike
class class entity entity
meteorology.tropical_cyclone meteorology.tropical_cyclone_category m.03wcnw m.0160w
meteorology.tropical_cyclone meteorology.tropical_cyclone_category meteorology.tropical_cyclone meteorology.cyclone_affected_area
Tropical Cyclone Tropical cyclone category Hurricane Gloria Bahamas
none none none none
meteorology.tropical_cyclone_category.tropical_cyclones meteorology.tropical_cyclone.category meteorology.tropical_cyclone.affected_areas
Tropical cyclones Category Affected areas
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 :meteorology.tropical_cyclone . 
?x1 :type.object.type :meteorology.tropical_cyclone_category . 
VALUES ?x2 { :m.03wcnw } 
VALUES ?x3 { :m.0160w } 
?x1 :meteorology.tropical_cyclone_category.tropical_cyclones ?x0 . 
?x2 :meteorology.tropical_cyclone.category ?x1 . 
?x0 :meteorology.tropical_cyclone.affected_areas ?x3 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(AND meteorology.tropical_cyclone (AND (JOIN (R meteorology.tropical_cyclone_category.tropical_cyclones) (JOIN (R meteorology.tropical_cyclone.category) m.03wcnw)) (JOIN meteorology.tropical_cyclone.affected_areas m.0160w)))