Bristlecone Interview Question

inheritance, joins in sql, one simple logical program