@export<EOL>def execute(cur, sql):
command, verbose, arg = parse_special_command(sql)<EOL>if (command not in COMMANDS) and (command.lower() not in COMMANDS):<EOL><INDENT>raise CommandNotFound<EOL><DEDENT>try:<EOL><INDENT>special_cmd = COMMANDS[command]<EOL><DEDENT>except KeyError:<EOL><INDENT>special_cmd = COMMANDS[command.lower()]<EOL>if special_cmd.case_sensitive:<EOL><INDENT>raise CommandNotFound('<STR_LIT>' % command)<EOL><DEDENT><DEDENT>if command == '<STR_LIT>' and arg:<EOL><INDENT>return show_keyword_help(cur=cur, arg=arg)<EOL><DEDENT>if special_cmd.arg_type == NO_QUERY:<EOL><INDENT>return special_cmd.handler()<EOL><DEDENT>elif special_cmd.arg_type == PARSED_QUERY:<EOL><INDENT>return special_cmd.handler(cur=cur, arg=arg, verbose=verbose)<EOL><DEDENT>elif special_cmd.arg_type == RAW_QUERY:<EOL><INDENT>return special_cmd.handler(cur=cur, query=sql)<EOL><DEDENT>
Execute a special command and return the results. If the special command
    is not supported a KeyError will be raised.