Complex sentence: He passed this exam on his third attempt, but he did not join as he was selected for an allied service instead of IAS and thus started practicing the law.
Split into simpler sentences: He passed this exam on his third attempt. But he did not join as he was selected for an allied service instead of IAS and thus started practicing the law.