EPAM Systems interview question

Retrieving all child record by querying on the master object (SOQL)