Fix index in query tutorial