select distinct question,eTime from AIArchInstaPollHistory
where (etime <= '#endTime#' or eTime >='#startTime#') order by eTime desc
SELECT instaValue as instaValue,endCnt,question,instaNum as abbr,
count(instaValue) as total
FROM AIArchInstaPollHistory
where question='#get_XXIPoll.question[pollINDx]#'
GROUP BY instaValue,endCnt,question,instaNum
order by question, total desc
SELECT SUM(total) as gTotal from PollResult