Database: wedding
Question: How many churches opened before 1850 are there?
SQL:
SELECT count(*) FROM Church WHERE Open_Date  <  1850