Advanced query to find tasks based on namespaces and properties

If I understand it correctly, the simplest approach based on what you describe would be to change your instances of area:: work to area:: [[work]] or area:: #work
Then, a query for every task within the namespace work should give you what you need: Advanced Query that pulls all reference AND recursive name spaces - Customization / Look what I built - Logseq