update query condition