code: public Query[] buildQueries(final TSDB tsdb) {
      try {
        return buildQueriesAsync(tsdb).joinUninterruptibly();
      } catch (final Exception e) {
        throw new RuntimeException("Unexpected exception", e);
      }
    }
docs: Compiles the TSQuery into an array of Query objects for execution.
  If the user has not set a down sampler explicitly, and they don't want
  millisecond resolution, then we set the down sampler to 1 second to handle
  situations where storage may have multiple data points per second.
  @param tsdb The tsdb to use for {@link TSDB#newQuery}
  @return An array of queries