[WIP] Ideas for query builder join

This isn't even a WIP, but just a bunch of ideas for implementing joins.