MB-12601: Get query from couchbaselabs

Change-Id: Id9fa9a33d63a8dfffbd3968c604434bb6082098c
Reviewed-on: http://review.couchbase.org/43168
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Tested-by: Chris Hillery <ceej@couchbase.com>