1. A method comprising: receiving, by a computer system, a query expressed in an event processing language, the query including a reference to a complex type implemented in another language distinct from the event processing language; and compiling, by the computer system, the query by: retrieving metadata pertaining to the complex type from information stored in a data cartridge for the complex type; and generating, based on the metadata, executable instructions for executing the query.