Application with Spark SQL JOINs