Query is taking too long to execute

I am facing this error of 'Query is taking too long to execute'. Please help me with this.

Any help would be much appreciated.

Thanks

Hi @Srishti_27
Post "Diagnostic Info" from Admin > Troubleshooting.
And the full stacktrace error from Admin > Troubleshooting > Logs.