Search for pages with empty property in logseq-db

I want to search for tasks without an assigned project, but when trying to create the query I only get the option to choose either ALL or one of the #Project pages. But, how do I make it query the tasks without a project?

A solution is to make the query just task: TODO, and then filter the results