Sunoco Interview Question

SOQL? SOLID? asked about Database relationships