N1QL script for sanity checks.

Change-Id: Icddb657ded97ec11f14bbc4bf0e72231802c7c7f
Reviewed-on: http://review.couchbase.org/43527
Reviewed-by: Pratap Chakravarthy <prataprc@couchbase.com>
Tested-by: Pratap Chakravarthy <prataprc@couchbase.com>