Staten Island is surprisingly rural in parts. I was there once and saw literal farmlands right near a subway. This was a while ago, not sure if it's a lot more developed now.
The NYC Subway doesn't go to Staten Island. They do have the Staten Island Railway, which I assume is what you're talking about. Perhaps things get a bit less dense out by Tottenville, but I think it's still pretty suburban.
I'd be very surprised if there were any farms on Staten Island nowadays. In the 80s, sure. Back then there were still some farms in the inner NJ suburbs, too, that just hadn't sold to developers over the past few decades. Don't see any on satellite maps, either. There's a lot of marshy undeveloped land along the South Shore, though, and some SIR stops are in pretty remote spots that don't have a lot of development around them (thinking of Richmond Valley in particular). Most of it is undeveloped because it's a major flood risk (emphasized and exacerbated by Hurricane Sandy), though, not for any other reason.