How to format string and perform select operation on formated string in single N1Ql query

Please go through this link you can find every details