As I understood it ...
If you start with the AQL like
SELECT sourceIP , destinationIP, username, count(*) as "COUNT" FROM events GROUP BY sourceIP Last 5 MINUTES
and then right-click some sourceIP you are interested in, you should get the option "Filter on sourceIP"; this will add automatically (to) the WHERE line in your AQL statement something like WHERE sourceIP = 'XX.XX.XXX.XXX' and maintain the column selection in the same view.
If on the right-click menu you select "More options > Information > Search events" you are invoking the standard search workflow and it will use the column layout you have selected for your default search.