Thanks Nikola! We've made some updates to the documentation over the past two weeks, including the SQL you mentioned. Are you planning to use the OI codebase on a project? If so, we'd love to hear about it.