Datomic query assignments