A Linguistic Framework for Querying Dimensional Data