Ver originalSELECT R.id, count(*) as AFROM restaurante RINNER JOIN presta P ONR.id = P.servicio_idWHERE P.servicio_id IN (1,2,3)GROUP BY R.idHAVING A = 3