optimized queries
Sorting arrays and filtering activities by stays