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: game of thrones books in spanish
Product list:
A: A Knight of the Seven Kingdoms: A Song of Ice and Fire
B: Fire & Blood: 300 Years Before A Game of Thrones (A Targaryen History)
Answer: B,A