We should check for the `query` key in the command and return an appropriate failure response if it isn't there.