sparksql: expand to binary operators and joins