I found something strange: Suppose $Q(z)$ is a complex polynomial with distinct $n$-roots on $\Bbb C\setminus\Bbb R$ where $n\geq 2$. Let $\{z_1,...,z_n\}$ be a set of roots of $f$ and assume $\{z_1,...,z_m\}\in\Bbb H^+$ and $\{z_{m+1},...,z_{n}\}\in\Bbb H^-$ then by the Residue theorem,
$$\int_{-\infty}^\infty {1\over Q(x)}\ dx = 2\pi i\sum_{j=1}^m{1\over Q_j(z_j)}$$
where $Q_j = {1\over (z-z_j)}Q(z)$ if we take the upper half circle as a contour and
$$\int_{-\infty}^\infty{1\over Q(x)}\ dx = 2\pi i\sum_{j=m+1}^n{1\over Q_j(z_j)}$$