1. A non-transitory computer-usable storage media having machine-readable instructions stored thereon to cause a processor to perform a method, the method comprising: generating a concatenated set of input relations, comprising: sorting each input relation of a set of input relations in order from a first input relation of the set of input relations to a last input relation of the set of input relations, wherein each input relation of the set of input relations comprises a group of tuples; and concatenating the input relations of the set of input relations such that all of the tuples of a second input relation of the set of input relations follow all of the tuples of the first input relation in the concatenated set of input relations, and all of the tuples of each subsequent input relation follow all of the tuples of all preceding input relations in the concatenated set of input relations; and querying the concatenated set of input relations, comprising: performing a query operation on the first input relation of the set of input relations; storing data of the first input relation in the query operation; resetting the query operation; and performing a second query operation on the second input relation of the set of input relations.