find how many kinds of grapes are permissible in vin doux naturel.
Value
2
class entity
wine.grape_variety m.02qkqj_
wine.grape_variety food.wine_style
Grape Variety Vin doux naturel
count none
food.wine_style.grape_varieties
Grape varieties
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 :wine.grape_variety . 
VALUES ?x1 { :m.02qkqj_ } 
?x1 :food.wine_style.grape_varieties ?x0 . 
FILTER ( ?x0 != ?x1  )
}
}
(COUNT (AND wine.grape_variety (JOIN (R food.wine_style.grape_varieties) m.02qkqj_)))