Made distribution.query a record, not a class