Joins are one of the most powerful features relational databases offer––but optimal executions are NP-hard to find.