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: teacher halloween
Product list:
A: Leg Avenue Women's Roleplay Classic School Girl Costume Sexy Lingerie Set, Red, Small/Medium
B: Women's Nanny Costume X-Small
Answer: A,B