=COUNTA(IFERROR(QUERY(IMPORTRANGE("Sheet1","QC sheet!A792:B10000"), "Select Col2, Col4 where Col2 contains '"&B$1&"' and Col4 contains '"&C1&"' and date "&TEXT(G1,"'YYY-MM-DD'")&"<=Col1 and date "&TEXT(H1,"'YYY-MM-DD'")&">=Col1" ,0)))
Using above formula to count data with 2 containing conditions along with start and end date does not work.