Automatically join query with arrays

@wijet Do you see any issue by doing this?