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: the amazon nightgown dress
Product list:
A: Amazon Essentials Women's Short Sleeve Scoopneck A-line Shirt Dress, Tossed Tulip Navy, XL
B: Avidlove Sleepwear for Women Modal Nightgown Babydoll Nightie Full Slip Lingerie Dress (Navy Blue, L)
Answer: B,A