Worth saying before you build a lot of this: keep the queries simple enough that the note is still readable without the plugin.
The appeal of plain-text notes is that they are plain text. A vault where the important content is generated by queries is a vault that becomes a directory of empty pages the day the plugin stops being maintained, or the day you want to read your notes on a device that does not run it.
My rule: queries are for views — dashboards, indexes, task roundups — and never for content. The actual information lives written out in the note. Then a query breaking is an inconvenience rather than a loss.
It also makes the export question much less frightening, which matters more than it seems until the day you want to leave.