Filter main query based on results of nested query

Say, I have “posts” and “comments”.
Thanks to the Nested Queries now I can get all posts and all of comments for each post in one query. I can even filter “comments” query however I want.

But what if I also want to filter posts by the presence of specific comments? For example, get all posts that have comments that were made today.
Basically, I just need to exclude all the posts in the query that didn’t get any comments.

Community Page
Last updated: