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: jeans american eagle for men
Product list:
A: OuBER Men's Gym Jogger Pants Slim Fit Workout Running Sweatpants with Zipper Pockets Grey,M
B: Levi's Men's 517 Boot Cut Jean, Rinse, 29x30
Answer: B,A