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: thomas friends puzzle
Product list:
A: Puzzles for Kids Ages 4-8 60 Pieces Jigsaw Puzzles for Boys and Girls Educational Learning Puzzles in Metal Box(Thomas)
B: Thomas the Train Coloring and Activity Book Set with over 90 Stickers (2 Books, 4 Sticker Sheets)
Answer: A,B