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: richard wagner shirt
Product list:
A: One Legging it Around got Siegfrie? - Men's Funny Soft Adult Tee T-Shirt, Black, Small
B: Richard Wagner Conductor Director Musician Retro T shirt T-Shirt
Answer: B,A