name the distilled spirit type produced by the same fermentation base as rye.
Entity Entity Entity Entity Entity Entity
m.041j_x m.0j28bnr m.0c59y m.01k5lq m.017ctv m.08yfpj
Grain whisky Single pot still whiskey Bourbon whiskey Single malt whisky Single malt Scotch whisky Poitín
class class entity
distilled_spirits.distilled_spirit_type distilled_spirits.fermentation_base m.01p5b6
distilled_spirits.distilled_spirit_type distilled_spirits.fermentation_base distilled_spirits.distilled_spirit_type
Distilled spirit type Fermentation base rye
none none none
distilled_spirits.fermentation_base.spirit_products distilled_spirits.fermentation_base.spirit_products
Spirit products Spirit products
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 :distilled_spirits.distilled_spirit_type . 
?x1 :type.object.type :distilled_spirits.fermentation_base . 
VALUES ?x2 { :m.01p5b6 } 
?x1 :distilled_spirits.fermentation_base.spirit_products ?x0 . 
?x1 :distilled_spirits.fermentation_base.spirit_products ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND distilled_spirits.distilled_spirit_type (JOIN (R distilled_spirits.fermentation_base.spirit_products) (JOIN distilled_spirits.fermentation_base.spirit_products m.01p5b6)))