Instruction: Rank the products A, B, C, ... based on their relevance to the provided query, and produce a ranked list with the most relevant product positioned at the top of the list.

Input:
Query: melissa and doug train sets
Product list:
A: Wooden Train Track 52 Piece Set - 18 Feet Of Track Expansion And 5 Distinct Pieces - 100% Compatible with All Major Brands Including Thomas Wooden Railway System - by Right Track Toys
B: Orbrium Toys 52 Pcs Deluxe Wooden Train Set with 3 Destinations Fits Thomas, Brio, Chuggington, Melissa and Doug, Imaginarium Wooden Train
Answer: B,A