How to Query ActivityHistory for a record in Salesforce?

Sample SOQL:
SELECT Id, Name, ( SELECT Id, Subject, Status FROM ActivityHistories )
FROM Account WHERE Id = '0018c000026ZmPmAAK' 

Output: