add query sum pmi
update query_sum_pmi (currect)