Original: Its main functions are to settle legal disputes submitted to it by states and to give advisory opinions on legal questions submitted to it by duly authorized international organs , agencies , and the UN General Assembly .
Simplified: But , sometimes , smaller chambers of three to five judges hear and decide a case .