Instruction: Given a query and a list of products denoted as A, B, C, ... with their titles, rank the products according to their relevance to the query. Output only a ranked list in which the most relevant product is at the top of the list.

Input:
Query: two tier hamster cage
Product list:
A: Ferplast Duna Fun Hamster Cage | Multi-Tier Hamster Cage Includes All Accessories | 21.65L x 18.5W x 14.76H Inches
B: 3-Tier Portable Travel Cage for Small Animals, Dwarf Hamster Travel Carrier with Carry Handle Exercise Wheel Kettle Food Dish, 10.6 x 8.2 x 17.7 Inch (Blue)
Answer: B,A