which beer is from palisade brewery farmers friend and has ibu scale less than 40.0?
Entity Entity Entity Entity
m.02hypvw m.01jp3 m.02hypr9 m.02hypv0
Alaskan Stout Budweiser Alaskan Amber Alaskan Pale
class class literal entity
food.beer food.beer_country_region 40.0^^http://www.w3.org/2001/XMLSchema#float m.04dqbz1
food.beer food.beer_country_region type.float food.beer
Beer Beer country / region 40.0 Palisade Brewery Farmers Friend
none none < none
food.beer_country_region.beers_from_here food.beer.ibu_scale food.beer_country_region.beers_from_here
Beers from here IBU scale Beers from here
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 :food.beer . 
?x1 :type.object.type :food.beer_country_region . 
FILTER (?x2 < "40.0"^^<http://www.w3.org/2001/XMLSchema#float>)
VALUES ?x3 { :m.04dqbz1 } 
?x1 :food.beer_country_region.beers_from_here ?x0 . 
?x0 :food.beer.ibu_scale ?x2 . 
?x1 :food.beer_country_region.beers_from_here ?x3 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(AND food.beer (AND (JOIN (R food.beer_country_region.beers_from_here) (JOIN food.beer_country_region.beers_from_here m.04dqbz1)) (lt food.beer.ibu_scale 40.0^^http://www.w3.org/2001/XMLSchema#float)))