select vi.versionid, vn.foldername, vi.formatid, itemid, .dbo.ve_getshortpath(itemid) location 
from vefn_getversionformatitems('') vi 
join vefn_getversionnames() vn on vn.versionid = vi.versionid
join contents cc on cc.contentid = vi.contentid
where cc.type between 10000 and 19999
and vi.formatid = 13
order by itemid
