what are the military ranks of those service members who served until apr. the 17th, 1858?
(AND military.rank (JOIN military.rank.used_by_services (ge military.military_service.to_date 1858-04-17^^http://www.w3.org/2001/XMLSchema#date)))