Existential questions in (relatively) hyperbolic groups {\it and} Finding relative hyperbolic structures