what beer brands make beer of type summer ale?
Entity
m.03cdttk
Hydes
class class entity
food.brewery_brand_of_beer food.beer m.075_wb
food.brewery_brand_of_beer food.beer food.beer_style
Brewery / Brand of beer Beer Summer 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.075_wb } 
?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.075_wb)))