Pregunta de entrevista de Church's Texas Chicken

How would you write a SQL query to answer this problem