I am working in Tableau but need to create this using a custom SQl. So for example, we have the following string as ENTITY_ID, DATE, CONTEXT_ID, CONTEXT_DESCR (text, null):