I have this SQL that I want to render in sqlalchemy:
SELECT
name,
hired_on,
(SELECT name FROM department WHERE e.department_id = id) AS department,
(SELECT name FROM roles WHERE e.role_id = role_id) AS role
FROM employee AS e
But am not sure how to go about it. Everything I've looked up talks about joins, which isn't what I want.