Create custom Subpanel with custom query (stored procedure)

Here is an example with direct SQL in a subpanel