@name('activityIntervals')
select
    sessionId,
    driverKey,
    intervalId,
    activityType,
    cardSlot,
    cardStatus,
    drivingStatus,
    registrationKey,
    vehicleKey,
    sourceKind,
    startedAt,
    endedAt,
    durationSeconds,
    sourceIntervalIds,
    synthetic,
    clippedToRequestedPeriod,
    level
from TachographActivityIntervalInputEvent
