Added exclude-parent-accounts-where-child-has-same-amount to query.
Renamed some functions in query.