Querying Data with Multiple Temporal Dimensions