can generate sql for some operations