modify interface for marginal computation to accept attributes on which to condition across relations