Failed to evaluate queries and expressions: failed to execute conditions: input data must be a wide series but got type long (input refid)

I was trying to set an alert on the basis of high execution time of slow query.

But getting this error “Failed to evaluate queries and expressions: failed to execute conditions: input data must be a wide series but got type long (input refid)”

But the same query is working on “Execute”

But the same query is showing the above ERROR while setting alert.

Can Anyone help me to resolve this issue?