Use of KsqlDB on topics with multiple types of events

Hello
Is there a way we can use Ksql to consume events from a topic where multiple types of events are published?
The schema for the events follows a common set of fields with the exception of 1 field called “payload” of type record which is different for different event types.

Thanks

found this, trying
https://github.com/confluentinc/kafka-tutorials/issues/624#issuecomment-784152741