def is_single_statement(sql):
 return (len(sqlparse.split(sql)) <= 1)

def is_single_statement ( sql ) : return ( len ( sqlparse . split ( sql ) ) <= 1 )
returns true if received sql string contains at most one statement .