<prompt> Tuseme una meza inayoitwa invoices na safu invoice_id, mteja_id, invoice_date, na kiasi. Kuandika SQL query kupata juu 5 wateja ambao wana juu wastani kiasi cha ankara, isipokuwa wateja wowote ambao wamefanya chini ya 10 ununuzi.  <response>: You can use the following SQL query to get the top 5 customers with the highest average invoice amount:SELECT customer_id, AVGamount AS avg_amountFROM invoicesGROUP BY customer_idHAVING COUNTinvoice_id 10ORDER BY avg_amount DESCLIMIT 5;This query first groups the invoices by customer, calculates the average amount for each customer, and then only includes customers who have made 10 or more purchases using the HAVING clause. The results are sorted in descending order by average amount, and only the top 5 results are returned using the LIMIT clause. 