Shares held directly after the transactions: 5,078,264.
Transaction types follow the SEC code table. Transactions such as A (grant from the company), F (shares withheld for taxes) and M (option exercise) are not open-market purchases or sales.
Official document
QuantumScape Corp, Form 4SEC EDGAR file no. 0001587067-26-000012