Might want to check out this thread where I did something similar for someone else:
Hopefully this can help you along. Let me know for any customization you may require / issues you run into.
Another option could be to add the additional things as properties with a result-transform and use the default table output.
If you’re interested in that I’ll see if I can dig up an example.
Edit: would be customizing something like this example:
https://siferiax.github.io/#/page/logseq%2Fquery%20tests/block/✅%20table%20with%20block%2C%20scheduled%20and%20deadline%20(updated!%203%2Foct%2F23)