Implemented required queries in VoteAnalysisImpl.