return dependencies for all items in a sequence expression, not the last one