Instruction: Evaluate each product title in the given list, assess its relevance to the given query, and then arrange the products in descending order of relevance, with the most relevant product at the top of the ranked list.

Input:
Query: halloween books for kids 3-5
Product list:
A: The Last Kids on Earth and the Midnight Blade
B: Where did all the pumpkins go?: Halloween-themed cozy mysteries book with small moral stories about friendship and kindness for kids.
Answer: B,A