Interpretable by Design: Learning Predictors by Composing Interpretable Queries