Greg was riding his bike to the store.
Greg judged the chili cook-off competition.
Greg was going to the store to judge a cooking competition.
Greg was going to the store to eat at a cooking competition.