which distilled spirit type has the fermentation base of barley?
Entity Entity Entity Entity Entity
m.01p5b6 m.0j28bnr m.01k5lq m.017ctv m.08yfpj
Rye whiskey Single pot still whiskey Single malt whisky Single malt Scotch whisky Poitín
class entity
distilled_spirits.distilled_spirit_type m.09gtx
distilled_spirits.distilled_spirit_type distilled_spirits.fermentation_base
Distilled spirit type Barley
none none
distilled_spirits.distilled_spirit_type.fermentation_base
Fermentation base
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 . 
VALUES ?x1 { :m.09gtx } 
?x0 :distilled_spirits.distilled_spirit_type.fermentation_base ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND distilled_spirits.distilled_spirit_type (JOIN distilled_spirits.distilled_spirit_type.fermentation_base m.09gtx))