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: los angeles rams hat
Product list:
A: New Era Los Angeles Rams Hat NFL Navy 9FIFTY Snapback Adjustable Cap Adult One Size
B: New Era NFL The League 9FORTY Adjustable Cap - Los Angeles Rams White/Navy One Size Fits All
C: OTS NFL Los Angeles Rams Men's Rival Tee, Team Color Legacy Logo, Small
Answer: B,A,C