Rewrites selections around join operators
Merge pull request #3690 from systay/join-selection-rewriting

Rewrites filtering around join operators