which distilled spirit has type rye whisky?
Entity Entity Entity Entity Entity Entity Entity Entity
m.052k5l3 m.02qf378 m.046gmy5 m.052k5l0 m.052k5l6 m.052k5l9 m.052k5ld m.0n1ptss
Old Potrero Single Malt Straight Rye Whiskey 19th Century Style Old Overholt Black Maple Hill 23yr Rye (ri)1 Old Potrero Single Malt Straight Rye Whiskey 18th Century Style Old Potrero Single Malt Hotaling's Whiskey Black Maple Hill 18yr Rye New Holland Walleye Rye
class entity
distilled_spirits.distilled_spirit m.01p5b6
distilled_spirits.distilled_spirit distilled_spirits.distilled_spirit_type
Distilled spirit rye whisky
none none
distilled_spirits.distilled_spirit.spirit_type
Spirit type
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 :distilled_spirits.distilled_spirit . 
VALUES ?x1 { :m.01p5b6 } 
?x0 :distilled_spirits.distilled_spirit.spirit_type ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND distilled_spirits.distilled_spirit (JOIN distilled_spirits.distilled_spirit.spirit_type m.01p5b6))