Simple scopes analysis query.

The existing query was written before I extracted v1oauth and
sample-v1-queries.
Write new script from scratch. See what pain points still need to be
moved into the v1oauth library.