replaced "create table ... as" with "create table ...; insert into table" to work around current spark-sql shortcomings, reformatted queries, replaced tabs with spaces so indentation looks correct across machines
replaced tabs with spaces in scripts to be consistent with the rest of the repository