semantic layer sql

Hi, I wanted to know if when using the api is it possible to get the sql that is generated by the semantic layer without running the sql.