If you want the ability to sort or filter the SHOW FULL PROCESSLIST command, here’s the SQL equivalent:

SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST