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: spray foam
Product list:
A: Great Stuff 99108824 Smart Dispenser Gaps & Cracks, Cream
B: Foam Gun, Preciva Professional Foaming Gun Heavy Duty PU Expanding Foam Gun Caulking Gun Spray Application Applicator for Caulking, Filling, Sealing, Home and Office Use
Answer: A,B