some things that must be done:

1) the KILL QUERY_ID 1,2,3,4,5 don't work, that's my first patch with sql_yacc.yy maybe i done something wrong since %expect changed +8 numbers

2) the QUERY_ID isn't what i want but well worked hehehehe, maybe change the syntax and make it more beautiful

3) there's some warnings in gcc that must be checked (signed compare with unsigned), and others case) that don't use the right flag (i add a bit = 16 for KILL_QUERY command)

4) the KILL QUERY_ID <non exists query id>, return a error something like "thread id not found", must be "query id not found"

5) i don't remember if have other problem...