which distilled spirit type uses barley and is fermented up to 12 years?
Entity Entity Entity Entity
m.01k5lq m.0j28bnr m.01p5b6 m.017ctv
Single malt whisky Single pot still whiskey Rye whiskey Single malt Scotch whisky
class entity class literal
distilled_spirits.distilled_spirit_type m.09gtx distilled_spirits.distilled_spirit 12^^http://www.w3.org/2001/XMLSchema#integer
distilled_spirits.distilled_spirit_type distilled_spirits.fermentation_base distilled_spirits.distilled_spirit type.int
Distilled spirit type Barley Distilled spirit 12
none none none <=
distilled_spirits.distilled_spirit_type.fermentation_base distilled_spirits.distilled_spirit_type.spirits distilled_spirits.distilled_spirit.age
Fermentation base Spirits of this type Age statement
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 } 
?x2 :type.object.type :distilled_spirits.distilled_spirit . 
FILTER (?x3 <= "12"^^<http://www.w3.org/2001/XMLSchema#integer>)
?x0 :distilled_spirits.distilled_spirit_type.fermentation_base ?x1 . 
?x0 :distilled_spirits.distilled_spirit_type.spirits ?x2 . 
?x2 :distilled_spirits.distilled_spirit.age ?x3 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(AND distilled_spirits.distilled_spirit_type (AND (JOIN distilled_spirits.distilled_spirit_type.fermentation_base m.09gtx) (JOIN distilled_spirits.distilled_spirit_type.spirits (le distilled_spirits.distilled_spirit.age 12^^http://www.w3.org/2001/XMLSchema#integer))))