text: CREATE TABLE invoices (billing_country VARCHAR) -- A list of the top 5 countries by number of invoices. List country name and number of invoices. SELECT billing_country, COUNT(*) FROM invoices GROUP BY billing_country ORDER BY COUNT(*) DESC LIMIT 5 CREATE TABLE invoices (billing_country VARCHAR, total INTEGER) -- A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size. SELECT billing_country, SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8 CREATE TABLE invoices (billing_country VARCHAR, total INTEGER) -- A list of the top 10 countries by average invoice size. List country name and average invoice size. SELECT billing_country, AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10 CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR, invoice_date VARCHAR) -- Find out 5 customers who most recently purchased something. List customers' first and last name. SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5 CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR) -- Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders. SELECT T1.first_name, T1.last_name, COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10