american pale ale beer is produced by which beer brands?
Entity Entity Entity Entity
m.03cx92 m.07c9yv m.062blj m.0f5h4z
Anchor Brewing Company Stone Brewing Co. D. L. Geary Brewing Company Sly Fox Brewery
class class entity
food.brewery_brand_of_beer food.beer m.0v3gs4f
food.brewery_brand_of_beer food.beer food.beer_style
Brewery / Brand of beer Beer American Pale Ale
none none none
food.brewery_brand_of_beer.beers_produced food.beer.beer_style
Beers Produced Beer style
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.brewery_brand_of_beer . 
?x1 :type.object.type :food.beer . 
VALUES ?x2 { :m.0v3gs4f } 
?x0 :food.brewery_brand_of_beer.beers_produced ?x1 . 
?x1 :food.beer.beer_style ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND food.brewery_brand_of_beer (JOIN food.brewery_brand_of_beer.beers_produced (JOIN food.beer.beer_style m.0v3gs4f)))