more legible SQL
todo - probably remove map algebra section