APEX Relationship for SubTables

Discussion created by deefarvin on Jul 19, 2018

I need to use APEX to define this relationship.  

Example Query: SELECT Id, Name, (SELECT Id,Name FROM Contacts) FROM Account WHERE Name = 'Test'


What is the best way to achieve this results? 
How to define the relationship in the desribeobject method and query ?