optionally read schema from sql from clause