1. A method comprising: receiving, by a database server from a remote application server, a query associated with a calculation scenario that defines a data flow model that includes one or more nodes that each define one or more operations for execution by a calculation engine on the database server; instantiating, by the database server, a runtime model of the calculation scenario based on the nodes of the calculation scenario; optimizing the instantiated calculation scenario by identifying one or more of the nodes as being convertible into a relational database format and adding the identified nodes to form a container node; building an execution plan of the runtime model of the calculation scenario based on operations defined by the nodes of the instantiated scenario including the container node; executing, by the database server, the operations defined by the execution plan to result in a data set; and providing, by the database server to the application server, the data set.