I agree with the first set. For the second I'd say:
d>b>c>a
The primary aliphatic amine is obviously the most basic. Then pyridine, since the sp2 lone pair is not involved in aromaticity and therefore relatively un-stabilized; in pyrrole, protonation requires loss of aromaticity, so it's definitely less basic than pyridine. Finally the amide, since the carbonyl is a very effective electron-withdrawing group, so the nitrogen lone pair isn't really available for protonation (in fact protonation occurs on oxygen, but only at very acidic pH).