add election compare query