You should be able to run a query from the SLM portlet the same way you run against DB but that's not really a good idea.
Better option would be to create and run the Alarm reports from CABI/Jasper (provided you are using it), you don't really have a simple way to extracting the Alarm Reports from UMP