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: spiderman toys
Product list:
A: LEGO Marvel Spider-Man: Spider-Man Mech 76146 Kids' Superhero Building Toy, Playset with Mech and Minifigure (152 Pieces)
B: Marvel 3.5 Inch: Spider-Man Flying Figure IR Helicopter (Marvel, Spider-Man)
C: Diluma Kids Spider Man Cartoon Falt Hat Snapback Baseball Cap (Blue)
Answer: B,A,C