N1QL query Filtering data within an array

@vsr1 The query above produces the desired result but it is taking too long to process. Around a minute when I have around 40,000 docs in the bucket.