select ID_osoby from co_si_pucil where (ID_polozky,druh) in ((11043,'kniha'),(9443,'film')) group by ID_osoby having count(distinct ID_polozky, druh) = 2 -- pocet hledanych kombinaci