Pregunta de entrevista de Bristlecone

inheritance, joins in sql, one simple logical program