name the distilled spirit type produced by the same fermentation base as single malt.
Entity Entity Entity Entity
m.01p5b6 m.0j28bnr m.017ctv m.08yfpj
Rye whiskey Single pot still whiskey Single malt Scotch whisky Poitín
class class entity
distilled_spirits.distilled_spirit_type distilled_spirits.fermentation_base m.01k5lq
distilled_spirits.distilled_spirit_type distilled_spirits.fermentation_base distilled_spirits.distilled_spirit_type
Distilled spirit type Fermentation base single malt
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.01k5lq } 
?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.01k5lq)))