Adding foundation for WHERE EXISTS