what beer styles are used in a beer hop that originated in the hallertau?
Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.04lc4 m.05z8r m.0143t3 m.017blf m.02hypv8 m.01_n3r m.02hv1zp m.02hv2vy m.03dvbb m.0dkfpt4
Lager Pilsner Pale ale Wheat beer Golden ale Märzen Weizenbock Strong Ale Altbier Light ale
class class entity
base.lightweight.beer_style base.lightweight.beer_hop m.020wnl
base.lightweight.beer_style base.lightweight.beer_hop base.lightweight.beer_hop_origin
Beer style Beer hop Hallertau
none none none
base.lightweight.beer_hop.beer_styles_used_in base.lightweight.beer_hop.origin
Beer styles used in Origin
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 :base.lightweight.beer_style . 
?x1 :type.object.type :base.lightweight.beer_hop . 
VALUES ?x2 { :m.020wnl } 
?x1 :base.lightweight.beer_hop.beer_styles_used_in ?x0 . 
?x1 :base.lightweight.beer_hop.origin ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND base.lightweight.beer_style (JOIN (R base.lightweight.beer_hop.beer_styles_used_in) (JOIN base.lightweight.beer_hop.origin m.020wnl)))