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: battery operated outsoor lamps
Product list:
A: JHY DESIGN Metal Cage LED Lantern Battery Powered,7.3" Tall Cordless Accent Light with 20pcs Fairy Lights.Great for Weddings, Parties, Patio, Events for Indoors/Outdoors.
B: Motion Sensor Lights, Searik Battery Operated LED Night Light Safety Lamp Step Lights Under Cabinet Lights for Stair, Bathroom, Closet, Hallway, Path
Answer: A,B