A new study has revealed a range of factors that cause a variation in predation by magpies on farmland songbirds.