beer query working with key