How to create a search box for "query" feature in rr-tw5 (roam like TW instance)

Mohammad had listed the query macros from rr-tw5 in this post

It would be interesting to incorporate these query macros into a searchable UI.

Here is an example of advanced queries in an app called remnote.