#275 work on nested query implementation for crunch