implemented comparision query