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