glue_get_statement function

Retrieves the statement