more flexible year query