fix for issue 731, needs optimization on existential queries
23 files changed