Examples
This diagram shows how to calculate the p-value for comparing two proportions for a few examples. It also gives an interpretation of the p-values.
The tests are a mixture of one-tailed and two-tailed ones.
The data sets are described in the questions.