I realize that LMDB is very different from your typical SQL database, but is there a query language, or scripting language interface, that can be used to query the blockchain's database?
I am aware of this question on displaying the output histogram via a feature of monerod. Although, when trying that my daemon crashed. I would like to do something similar from a script.