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: toy story barbie costume
Product list:
A: Disney Pixar Toy Story Epic Moves Bo Peep Action Doll
B: Barbie Disney Toy Story 2: Tour Guide Special Edition Doll (1999)
Answer: A,B