Well I wasn’t to sure of your answer, I use a component in the administration that are able to make queries on some table - This is a 1.5 Joomla component but I think you can find the equivalent here _>
extensions.joomla.org/extensions/core-enhancements/data-reports
I was able to easily specify some criteria in cb_profiler and get what I want in an excel file.
What do you mean by “use cb_plugin to make a query and publish the result in an article.”?