got wine query working