If you had a specific folder to target, you could use the following query (in this example, the query references a folder called ‘films’ only):
```dataviewjs
dv.taskList(dv.pages('"films"').file.tasks
.where(t => !t.completed))
```
And if you wanted to exclude one folder, ‘films’ again in this example, you could use:
```dataviewjs
dv.taskList(dv.pages('-"films"').file.tasks
.where(t => !t.completed))
```
Does what you need?
Angel