How to write Where condition on arrays using INDEX

Try

SELECT * FROM mybucket WHERE ANY val IN varArray SATISFIES val=5 END