impl queryVoted , add testcase
queryVoted cache created sql