how many beer styles are used in cascade hops?
Value
9
class entity
base.lightweight.beer_style m.05q46t2
base.lightweight.beer_style base.lightweight.beer_hop
Beer style cascade hops
count none
base.lightweight.beer_hop.beer_styles_used_in
Beer styles used in
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 (COUNT(?x0) AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :base.lightweight.beer_style . 
VALUES ?x1 { :m.05q46t2 } 
?x1 :base.lightweight.beer_hop.beer_styles_used_in ?x0 . 
FILTER ( ?x0 != ?x1  )
}
}
(COUNT (AND base.lightweight.beer_style (JOIN (R base.lightweight.beer_hop.beer_styles_used_in) m.05q46t2)))