>[!info] **Updated:** `$= dv.current().file.mtime` (**Created:** `$= dv.current().file.ctime`)
# Queries
>[!check]- inline tasks
>
>>[!check]- on this note
>>Use this in meeting notes to triage inline tasks from the current note by urgency without showing the full task tree.
>>```tasks
>>not done
>>path includes {{query.file.path}}
>>tags do not include #process
>>sort by urgency
>>show urgency
>>show backlink
>>short mode
>>limit to 50 tasks
>>```
>
>>[!check]- on this note (tree)
>>Use this on durable context notes when parent-child task context is useful; urgency sorting applies to matched tasks, while child items stay under their parent.
>>```tasks
>>not done
>>path includes {{query.file.path}}
>>tags do not include #process
>>sort by urgency
>>show urgency
>>show backlink
>>show tree
>>short mode
>>limit to 50 tasks
>>```
>
>>[!check]- ⚠️ (dataview) - from directly related notes
>>Use this on durable context notes to find open tasks from linked, backlinking, and context-related notes while excluding tasks already on the current note.
>>```dataview
>>TASK
>>WHERE !completed AND status != "-"
>>AND path != this.file.path
>>AND (
>> contains(this.file.outlinks, file.link)
>> OR contains(this.file.inlinks, file.link)
>>)
>>FLATTEN min(nonnull(list(choice(contains(text, "📅"), due, null), choice(contains(text, "⏳"), scheduled, null)))) AS actionDate
>>FLATTEN choice(!actionDate, 3, choice(actionDate >= date(today), 0, choice(actionDate >= date(today) - dur(30 days), 1, 2))) AS dateRank
>>SORT dateRank ASC, choice(actionDate >= date(today), actionDate, null) ASC, choice(actionDate < date(today), actionDate, null) DESC, text ASC
>>LIMIT 50
>>```
>
>>[!check]- (dataview) - explicitly linking to this note
>> ```dataview
>> TASK
>> WHERE !completed AND status != "-"
>> AND path != this.file.path
>> AND contains(outlinks, this.file.link)
>> FLATTEN min(nonnull(list(choice(contains(text, "📅"), due, null), choice(contains(text, "⏳"), scheduled, null)))) AS actionDate
>> FLATTEN choice(!actionDate, 3, choice( actionDate >= date(today), 0, choice(actionDate >= date(today) - dur(30 days), 1, 2)) ) AS dateRank
>> SORT dateRank ASC,
>> choice(actionDate >= date(today), actionDate, null) ASC,
>> choice(actionDate < date(today), actionDate, null) DESC,
>> text ASC
>> LIMIT 50
>> ```
>[!example]- bases
>![[base testing.base]]
# Class Notes
- [[2026-07-13 driver's ed]]
- [[2026-07-14 driver's ed]]
- [[2026-07-15 driver's ed]]
- [[2026-07-16 driver's ed]]
- [[2026-07-17 driver's ed]]