Conversation so far:
who is pete maravich?
CANNOTANSWER.
when did he die?
On January 5, 1988.
where did he die?
at First Church of the Nazarene in Pasadena, California.
how did he die?
collapsed and died of heart failure at age 40.

Question: what was he doing when he died?
Self-contained rewrite: What was Pete Maravich doing when he died of heart failure?