I have got a sample query with the output in the screenshot below.
Sample Query and its Output enter image description here
But I am supposed to get the same ouput with the query written in a single line using "Like" condition. I have tried my best and also attached what I have tried below:
Screenshot of Query Tried