The definition of the analytical query is outdated in this tutorial. Instead of "define view entity", it must use "define transient view entity" and the "provider contract analytical_query". This ...