The Google app has been getting smarter and smarter as time goes by. First it started with the Knowledge Graph, which provided information on single entities. Then it became more advanced, recognizing facts about those entities and answering simple questions.
Now, Google will be able to answer more complex questions. Questions with multiple factors to them (as shown above) can now be answered by breaking down each part of the question behind the scenes. Google’s goal was to understand the intent of the question based on the various parts.
Hit the source link for more detailed information about this change. It’s always interesting to read what Google has to say about these things.