Zu Befehl, Herr Oberleutnant!

How, just how are we meant to determine rank from “Sir, yes, sir!” in order to know that it means we’re talking to an Oberleutnant…