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: bestway sand filter pumps for above ground pools
Product list:
A: Bestway Flowclear 800 gal Pump w/GFCI Plug | 800 Gallon/Hour Flow Rate | Cleans Water for Above Ground Pools Sand Filter, White/Gray
B: Rx Clear Patriot Sand Filter System | for Above Ground Swimming Pools Up to 6,000 Gallons | 8 Inch Filter | 1/2 HP Niagara Pool Pump
Answer: A,B