My data is like shown in column "Original data". I would like to get results as shown in column "Result". Is there any way to do this with Oracle SQL fun