The correct option is A III>II>I
Since in (III) lone pair is only involved in delocalisation, in (II) nitrogen is attached to the carbonyl (withdrawing group) and one alkyne group (donating group+I effect) which have the more basic character them the (I) in which (N) is attached to the two group i.e benzene and carbonyl.