Singapore has some limited 'agriculture' (and a big shift to industrialised hydroponics and stuff); but most is outside the city.
It's indeed quite scary how much pesticides are currently used and how a lot of the green patches and parks have little flies, butterflies, and other insects.