How to stop not responding query?

Primary tabs


Depends on how you call it, you can just kill that process which runs such query. If you did it in the System Management portal, wait for a connection timeout, or open a new session in another browser or in incognito mode, go to processes, discover your hanging process, and terminate there. 

Yes, I did it in System Management portal, How to find the sql query process?