you tell IMS how to traverse the hierarchy, one segment at a time, unlike SQL where you describe what you want and the optimizer figures out how.