13. The method of claim 11 , further comprising calling a function from a library via the structured query.
11. A method, implemented at a cluster computer system that includes one or more processors, for creating a structured query, the method comprising: creating a structured query according to a structured query language, the structured query being created for execution in parallel across the cluster computer system; receiving functions specified in specified in code defined by a programming language, the functions associated with a statement of a structured query language; inserting the received programming language into the structured query of the structured query language such that a resulting query includes a structured query language statement in combination with programming language code that specifies both an aggregation and an operation; inserting a keyword into the resulting query that defines an object type in the programming language code; compiling the programming language code, wherein compiling the programming language code is performed based on the object type defined by the inserted keyword; and executing the resulting query, including both the structured query language and the programming language code, in a distributed manner across the cluster computer system.