Factored out a fn for constructing SQL to use as utility
Mainly added ImpalaContext and rudimentary join functionality