moat: ditch dug as a fortification and usually filled with water
trench: a ditch dug as a fortification having a parapet of the excavated earth
census taker: someone who collects census data by visiting individual homes