added by-inning query