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: blue and white checkered pajama pants
Product list:
A: Gioberti Mens Yarn Dye Brushed Flannel Pajama Pants, Elastic Waist, Royal Blue/Black/White Highlight, Large
B: Dickies Hickory Striped Bib Overalls, Hickory Stripe, 36x30
Answer: A,B