Add query script.

Signed-off-by: Thiago Farina <tfarina@chromium.org>