A computer-implemented method, performed by a system of one or more computers, comprising: receiving a query indicating time series datasets and operations to be performed on the time series datasets; identifying nodes associated with the query, each node being associated with a time series dataset; generating, based on the query, a plurality of nodes associated with respective operations performed on the time series datasets, wherein a first node of the plurality of nodes causes interpolation of two or more of the time series datasets, wherein the two or more time series datasets store information recorded at different sampling rates, and wherein new values for at least one of the two or more time series datasets are determined to cause matching of the different sampling rates; determining, based on a generated node, that the interpolation operation is to be applied to at least two sets of nodes associated with time series datasets; identifying, based on the determination, the nodes to be included in each of the two sets, wherein the nodes included in each set are associated with same metadata, the metadata being specified in the received query; assembling each respective set of nodes into a respective query tree, wherein each query tree includes the first node, wherein parent nodes of the query tree indicate operations that are to be applied to children nodes; generating instructions associated with processing the respective query trees, and providing at least a subset of the instructions for each respective query tree to a different compute system for processing in parallel; and in response to receiving results associated with the generated instructions, presenting, in a user interface, the results. receiving a query indicating time series datasets and operations to be performed on the time series datasets; identifying nodes associated with the query, each node being associated with a time series dataset; generating, based on the query, a plurality of nodes associated with respective operations performed on the time series datasets, wherein a first node of the plurality of nodes causes interpolation of two or more of the time series datasets, wherein the two or more time series datasets store information recorded at different sampling rates, and wherein new values for at least one of the two or more time series datasets are determined to cause matching of the different sampling rates; determining, based on a generated node, that the interpolation operation is to be applied to at least two sets of nodes associated with time series datasets; identifying, based on the determination, the nodes to be included in each of the two sets, wherein the nodes included in each set are associated with same metadata, the metadata being specified in the received query; assembling each respective set of nodes into a respective query tree, wherein each query tree includes the first node, wherein parent nodes of the query tree indicate operations that are to be applied to children nodes; generating instructions associated with processing the respective query trees, and providing at least a subset of the instructions for each respective query tree to a different compute system for processing in parallel; and in response to receiving results associated with the generated instructions, presenting, in a user interface, the results.