Merge pull request #4 from ebarendt/master

Correct placement of nested query
new version
Fixes nested filters.