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: boys halloween costumes
Product list:
A: Halloween Costumes Boys Ninja Costume Kids Toddler Ninjago 3T 4 4T 5 5T 4-6 6-8 8-10 7-8 10-12 14 Black
B: Disney Boys Star Wars The Force Awakens Kylo Ren Costume Size 5/6
Answer: A,B