Add support for inner join query, fixes #8.