expand tutorial: queries, topic models, chains