which drink has barley as an ingredient and is fermented less than 10?
Entity Entity Entity Entity Entity Entity
m.0gndmy m.046gsrg m.02pm79r m.046d644 m.046qx_j m.046qxzf
Glen Breton Rare Booker's Green Spot Balvenie Founder’s Reserve Isle of Jura 10 year old Speyburn 10 year old
class literal entity
distilled_spirits.distilled_spirit 10^^http://www.w3.org/2001/XMLSchema#integer m.09gtx
distilled_spirits.distilled_spirit type.int distilled_spirits.fermentation_base
Distilled spirit 10 Barley
none <= none
distilled_spirits.distilled_spirit.age distilled_spirits.distilled_spirit.fermentation_base
Age statement 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 . 
FILTER (?x1 <= "10"^^<http://www.w3.org/2001/XMLSchema#integer>)
VALUES ?x2 { :m.09gtx } 
?x0 :distilled_spirits.distilled_spirit.age ?x1 . 
?x0 :distilled_spirits.distilled_spirit.fermentation_base ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND distilled_spirits.distilled_spirit (AND (le distilled_spirits.distilled_spirit.age 10^^http://www.w3.org/2001/XMLSchema#integer) (JOIN distilled_spirits.distilled_spirit.fermentation_base m.09gtx)))