How to query Approval Step Comment in Salesforce

Salesforce stores the comment in object called – ProcessInstanceStep. So you can query like this:

SELECT Id, Comments, StepStatus, Actor.Name FROM ProcessInstanceStep