Question: What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846?
SQL: SELECT SUM Enrollment FROM table WHERE Location = buffalo, new york AND Affiliation = public AND Founded > 1846