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: comfy pants women
Product list:
A: AMiERY Pajamas for Women Women's High Waist Casual Floral Print Drawstring Wide Leg Palazzo Pants Lounge Pajama Pants(Tag M (US 6), Black)
B: Hanes Women's Petite-Length Middle Rise Sweatpants - X-Large - Ebony
Answer: A,B