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: 9 ft baby gate with door
Product list:
A: GMI Keepsafe 108" Wood Expansion Gate-Made in USA! Collapses to 25.5"!
B: Costzon Baby Safety Gate, 115 Inch Length 5 Panel Adjustable Wide Fireplace Fence, BBQ Metal Fire Gate, Pet Isolation Fence with Walk-Through Door, Freestanding Hearth Gate (Black, Small)
Answer: A,B