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: headless horseman
Product list:
A: Tree Buddees Headless Horseman with Pumpkin Halloween/Christmas Ornaments
B: Headless Horseman
Answer: A,B