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: spy books non fuction
Product list:
A: The Wolves at the Door: The True Story of America's Greatest Female Spy
B: Catch and Kill: Lies, Spies, and a Conspiracy to Protect Predators
Answer: A,B