Basic model for query plan