Instruction: Evaluate the relevance of each product title in the input to the given query, and then sort the products in descending order of relevance, placing the most relevant product at the top of the ranked list.

Input:
Query: lego mystery bags complete set
Product list:
A: LEGO Series 20 Complete Set of 16 Minifigures 71027
B: LEGO Marvel Spider-Man: Spider-Man vs. Doc Ock 76148 Superhero Playset with 3 Minifigures, Great Toy Gift for Kids, New 2020 (234 Pieces)
Answer: B,A