how many cheeses are the cheeses of cows?
Value
315
class entity
food.cheese m.01xq0k1
food.cheese food.cheese_milk_source
Cheese cows
count none
food.cheese_milk_source.cheeses
Cheeses
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 :food.cheese . 
VALUES ?x1 { :m.01xq0k1 } 
?x1 :food.cheese_milk_source.cheeses ?x0 . 
FILTER ( ?x0 != ?x1  )
}
}
(COUNT (AND food.cheese (JOIN (R food.cheese_milk_source.cheeses) m.01xq0k1)))