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: glass pipes for tobacco
Product list:
A: Smart Stash Premium Case with Built-in Combination Lock, Waterproof Zippers and Removable Dividers (Black, 8x4.25x3 Inches)
B: Scotte Tobacco Pipe Handmade Ebony Wood Root Smoking Pipe Gift Box and Accessories
Answer: B,A