(a) Lemon juice contains citric acid (Table 2.3 of the book).
Increasing order of pH:
1 M HCl<lemon juice<tap water<1 M NaOH
1 M hydrochloric acid and lemon juice are acidic (pH below 7), tap water is close to neutral (about 7), and 1 M sodium hydroxide is strongly basic (pH far above 7).
Hydrochloric acid is a strong acid: it gives a large amount of H+(aq) ions, so its pH is very low. Citric acid is a weak acid: it gives far fewer H+(aq) ions, and lemon juice is also mostly water. With a lower hydrogen ion concentration, lemon juice has a higher pH than 1 M hydrochloric acid, even though both are acidic.
(b) A nettle leaf has stinging hairs that inject methanoic acid, which causes a burning pain.
The traditional remedy is to rub the area with the leaf of the dock plant, which often grows beside the nettle in the wild. The dock leaf is basic in nature, so it neutralises the methanoic acid and the pain eases.

The pH scale in colour, with the indicator ranges and where familiar substances sit.