e/i -> elem/idx
query -> suggest, val -> query