Enable using subqueries in joins, a better way to fix #309
Remove things should be placed into Polyamorous.