Activity.query_by specs in place.