dataview now allows to customize queries using the keyword dataviewjs.
Here is how I filter for uncompleted tasks in notes that have a date in the past in their title. In the second part I filter for uncompleted tasks in notes without a date. Those two lists could be combined.
```dataviewjs
dv.header(1, "Open Tasks");
dv.header(2, "Of Past Days");
var now = new Date();
var today = now.setHours(0,0,0,0);
dv.taskList(dv.pages().file
.where(f => (f.day < today))
.sort(f => f.day)
.tasks.where(t => !t.completed), true);
dv.header(2, "In Undated Notes");
dv.taskList(dv.pages().file
.where(f => !f.day)
.tasks.where(t => !t.completed), true);
```