The code for right_rewritten_as_left.sql is: SELECT m.member_id, m.name AS member, c.committee_id, c.name AS committee FROM committees c LEFT JOIN members m on c.name = m.name;