code: private final String createNativeSqlEventSelect(final StreamId streamId,
              final List<NativeSqlCondition> conditions) {
  
          final StringBuilder sb = new StringBuilder("SELECT " + JPA_EVENT_PREFIX + ".* FROM "
                  + JpaEvent.TABLE_NAME + " " + JPA_EVENT_PREFIX + ", " + nativeEventsTableName(streamId) + " "
                  + JPA_STREAM_EVENT_PREFIX + " WHERE " + JPA_EVENT_PREFIX + "." + JpaEvent.COLUMN_ID + "="
                  + JPA_STREAM_EVENT_PREFIX + "." + JpaStreamEvent.COLUMN_EVENTS_ID);
          for (final NativeSqlCondition condition : conditions) {
              sb.append(" AND ");
              sb.append(condition.asWhereConditionWithParam());
          }
          return sb.toString();
      }
docs: Creates a native SQL select using the parameters from the stream
  identifier and optional other arguments.
  
  @param streamId
  Unique stream identifier that has the parameter values.
  @param additionalParams
  Parameters to add in addition to the ones from the stream
  identifier.
  
  @return JPQL for selecting the events.