Those polled were white non-Hispanic Catholics, white Evangelicals, and white mainline Protestants. A majority (54 percent) of those who attend church regularly said torture could be “justified,” while a majority of those not attending church regularly responded that torture was rarely or never justified.
Here's the Pew page on the study.