Where does “상고(詳考)” come from?

Words derived from “상고(詳考)