The passage on Socrates draws on several Platonic dialogues, and notably the Apology. There is also a reference to Aristophanes on the midges' humming (Clouds, 146 and 157).