Cosmos event: modify SQL query