Patent ID: 8275731

Claim:
A computer-implemented method of compiling a query operation, comprising: using a compiler that interacts with a processor of a computing system to: initiate a compile process on a query; infer a composite data type from one or more expressions in the query; convert the inferred composite data type into a statically typed query that is a structurally compatible nominal type, wherein the statically typed query is a static type and includes a nominal type; test for type compatibility of the nominal type and a non-denotable anonymous type of the query, wherein testing for compatibility is performed based at least in part on a relationship between the non-denotable anonymous type and a member of the nominal type; and convert an unrealized structural type to a synthesized nominal type, wherein the synthesized nominal type is generated by creating a normal class definition comprising at least one of a field associated with a member of one or more members of the non-denotable anonymous type or a property associated with the member of the one or more members of the non-denotable anonymous type.