Using context and globalMap variables in SQL queries