Query for displaying tasks grouped by hashtags or parent's hashtags

Thank you for your help @mentaloid , appreciate it!
This seems like a push in the right direction, however the query does not group tasks under hashtags. The goal is to have hashtags organized as sections, where each task is shown in a list.

To better illustrate what I’m trying to achieve, let me use an example of when you click a hashtag – a new view is opened and in it, you’ll see all the blocks that reference this hashtag. Basically, I need the same functionality, except a) for a given hashtag only show blocks that contain tasks in them, b) ignore hashtags that aren’t referenced by blocks with tasks (i.e. these are non-actionable hashtags) and c) on a daily page, render actionable hashtags as sections with task blocks as lists (i.e. tasks are grouped by a hashtag they reference).

I played with your query a bit, however haven’t been able to produce anything meaningful yet.
Also, this person seems to have a similar idea in mind.

Ideally, I would see the results as something like this (based on my current tagging):

## #greece/taxes/refund
	- NOW where's my refund [[greece/taxes]] #greece/taxes/refund
		- none of the sites have any notifications...
			- ![image.png](../assets/image_1709580288068_0.png)
			- ![image.png](../assets/image_1709580294852_0.png)
		- how can i check the status ? was it even accepted
		- NOW waiting on tax accountant reply...

## #investing/portfolio
	- LATER [#A] [[investments]] #investing/portfolio
		- LATER understand whether options can be exercised without the requirement to buy stocks
		- LATER invest in chips ?

## #investing/portfolio/optimization
	- got some links from @Brad on #investing/portfolio/optimization
		- LATER review these links
			- https://...
				- https://...
				- https://...

...and so on...

A step further would be to have sub-hashtags as sub-sections.