What does Sabil-kuttab mean?

Meaning:

building, or part of a building, with a public fountain on the first floor and an elementary school on the upper floor (found mainly in Mamluk architecture).