[SPARK-3906][SQL] Adds multiple join support for SQLContext