Instruction: Evaluate each product title in the given list, assess its relevance to the given query, and then arrange the products in descending order of relevance, with the most relevant product at the top of the ranked list.

Input:
Query: thomas the train puzzle
Product list:
A: Ravensburger Thomas & Friends Night Work Glow-in-The-Dark 60 Piece Jigsaw Puzzle for Kids  Every Piece is Unique, Pieces Fit Together Perfectly
B: Melissa & Doug Train Sound Puzzle - Wooden Peg Puzzle With Sound Effects (9 pcs)
Answer: A,B