WIP on inner join, fiddling with types