Fixing query command.

Bugs closed: AURORA-301

Reviewed at https://reviews.apache.org/r/22242/