\textbf{Feature:} This query is used to display the top-10 highest rated products. \\
\textbf{Location:} In function \texttt{search()} in \texttt{front-end/\_\_init\_\_.py}

\begin{lstlisting}
SELECT p.productID, p.name, p.price, AVG(pr.rating) AS avg_rating
FROM product_review pr, product p
WHERE p.productID = pr.productID
GROUP BY p.productID
ORDER BY avg_rating DESC
LIMIT 10;
\end{lstlisting}