SQL4NN: Validation and expressive querying of models as data