Fix query (#1623)
See https://github.com/bazelbuild/continuous-integration/blob/master/buildkite/README.md