1. A method for offloading multiple processing operations to an accelerator, the method comprising: receiving, by a processing device, a database query from an application; performing an analysis on the query; identifying a plurality of available accelerators; retrieving a cost information for a plurality of accelerator templates available on each of the plurality of available accelerators, wherein each of the plurality of templates is a stored processing configuration that the accelerator is capable of executing; determining a query execution plan based on the cost information and the analysis on the query, wherein the determination includes selecting an accelerator template from the plurality of accelerator templates available on at least one of the plurality of available accelerators; and offloading one or more query operations to at least one of the plurality of accelerators based on the query execution plan.