Please read Query a document with nested subdocuments - #2 by steevej Formatting code and log snippets in posts and then update your post accordingly.
Please mark my answer Query a document with nested subdocuments - #2 by steevej as the solution in your previous thread.