private static String constructDeadBlobsQuery(String fieldName) {
    StringBuilder builder = new StringBuilder("SELECT TOP " + LIMIT_PARAM + " * FROM c WHERE c.").append(fieldName)
        .append(" BETWEEN " + START_TIME_PARAM + " AND " + END_TIME_PARAM)
        .append(" ORDER BY c.")
        .append(fieldName)
        .append(" ASC");
    return builder.toString();
  }
Returns a query like:
SELECT TOP 500 * FROM c WHERE c.deletionTime BETWEEN 1 AND <7 days ago> ORDER BY c.deletionTime ASC
@param fieldName the field to use in the filter condition.  Must be deletionTime or expirationTime.
@return the query text.
ambry-cloud/src/main/java/com/github/ambry/cloud/azure/CosmosDataAccessor.java