this sort of does the job:
TABLE file.tasks[0].text as task
FROM #your_tag
WHERE file.tasks
LIMIT 10
replace the from tag with whatever tag unifies your notes, or use some other source/add your filtering to the where block. Limit is just there in case of a mistake to prevent it blowing up, can be deleted.
One thing that occurs to me is it wouldn’t filter out completed tasks. js is probably required for a more complete solution. I might try later if I get some time.