Instruction: Rank the products A, B, C, ... based on their relevance to the provided query, and produce a ranked list with the most relevant product positioned at the top of the list.

Input:
Query: pirate hat for women
Product list:
A: Rubie's womens Queen of the Sea Pirate Hat Party Supplies, Multicolor, One Size US
B: Women Gothic Victorian Steampunk Skirt Bustle Style Renaissance Costume XL Wine
Answer: A,B