Pacific Heights might works or if you are willing to go on Southern part of the city. Forest Hills and Saint Francis Wood can be an option.
It takes about 20-25 minutes driving in normal traffic from Southern Part to SOMA. Here is a listing that I recommend for you.
Please check the listing on 3242 Washington St,San Francisco, CA 94115-1622
It might works with you.
It is possible to live near to SoMa, it really depends on what is "near" to you: by car, bike, walk, bus, and/or so on. What is important to you: go to your favorite restaurant on foot or take a short driving? Would you rather walk, bike or drive to your work? How about parks,schools, entertainments? Please, contact me and let's talk about what attracts you to San Francisco and how i could assist you in finding your gorgeous home!
Congrats on your upcoming move to SF!
You can absolutely find a property with a yard that size in the city, although finding one in or very close to SOMA is very unlikely.
I'd suggest looking in presidio heights, Lake District, Forest Hill, Clarendon Heights, and Windsor Terrace.
I'd be happy to help you in your hunt for a new home, so feel free to contact me directly at any time.
It is possible to get a property close to that sq. footage. There is one in a St. Francis Wood-a highly sought after neighborhood in SF. Please contact me at the below for further details.
McGuire Real Estate
I know a few agents in the San Francisco area. Please contact me and I will give you there information and they can better help you out. My information is below.