What is this Query? and why its taking too much time? Any way to optimize it?

What is this Query? and why its taking too much time? Any way to optimize it?

tech