Complex sentence: He was the head of cabinet and was elected as well as depended on parliament, thus closer to a PM, although had some responsibilities of a president as well.
Split into simpler sentences: He was the head of the cabinet and was elected by parliament as well as depending on it. Thus he was closer to a PM, although he had some responsibilities of a president as well.