Calculate user sessions & stats on top of them for imaginary ecom site using Spark sql & aggregations