It is a little bit complicated. I think you need to create your custom query and use this plugin to run it in SuiteCRM
Thanks,
AlxGr