How to automatically hide sub-blocks in query results

thank you so much, in fact i’d like to use the parent blocks to summarize, so i can find it directly in query.