How does it do that? Though Memento uses SQLite internally to store & manage database operands, the SQL interface is not exposed to Memento users, and the Memento JavaScript Library provides no functions to do that.
If you know JavaScript, this could become a project for you, as getting the value of each of the fields is certainly supported, you have a rich JavaScript language to use to do things like formatting numbers, dates, strings, etc, including HTML formatting. If you were energetic enough & had the time, you could develop your own report writer or even a SQL interface using the API (I think. Hmmm... 🤔). Also, there's a File object for opening, reading, writing, & closing files, Html, Email, Http, & System objects to access the world outside Memento, etc.
That's a good example. The Memento trigger (along with, reminders, actions, dates & times, etc) allows you to capture the event and perform operations. The conversation above is about accessing without triggering events. The Memento System & Intent objects allow some things you can do in Tasker.
Thank you.