food_type(cheddar, cheese).
food_type(ritz, cracker).
food_type(ham, meat).
food_type(sausage, meat).
food_type(l_and_p, soft_drink).
food_type(v, energy_drink).
food_type(red_bull, energy_drink).
food_type(ice_cream, dessert).

flavor(sweet, dessert).
flavor(sweet, energy_drink).
flavor(sweet, soft_drink).
flavor(savory, meat).
flavor(savory, cheese).


food_flavor(X, Y) :- food_type(X, Z), flavor(Y, Z).
