user: ### NOW ANSWER:
Question: What's the total enrollment of public schools located in buffalo, new york that were founded after 1846?
Columns: ['Institution', 'Location', 'Founded', 'Affiliation', 'Enrollment', 'Team Nickname', 'Primary conference']
Types: ['text', 'text', 'real', 'text', 'real', 'text', 'text']
Sample row: ['University at Buffalo', 'Buffalo, New York', 1846.0, 'Public', 28192.0, 'Bulls', 'Mid-American Conference ( D-I )']
SQL:

assistant: SELECT SUM("Enrollment") FROM "Table" WHERE "Location" = 'buffalo, new york' AND "Affiliation" = 'public' AND "Founded" > 1846.0;