SELECT * FROM events WHERE devicetype=12 AND ((LOWER("Process Path") LIKE '%\chisel.exe' OR LOWER("Process Name") LIKE '%\chisel.exe') OR ((LOWER(Command) LIKE '%exe client %' OR LOWER(Command) LIKE '%exe server %') AND (LOWER(Command) LIKE '%-socks5%' OR LOWER(Command) LIKE '%-reverse%' OR LOWER(Command) LIKE '% r:%' OR LOWER(Command) LIKE '%:127.0.0.1:%' OR LOWER(Command) LIKE '%-tls-skip-verify %' OR LOWER(Command) LIKE '%:socks%')))