equals in ResolvedStatement