Instruction: Analyze the query and each product title. Sort the products in descending order based on their relevance to the query. The most relevant product should be at the top of the list, and output the ranked list.

Input:
Query: children history
Product list:
A: The Book of Five Rings
B: A Kid's Guide to Native American History: More than 50 Activities (A Kid's Guide series)
Answer: B,A