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