https://docs.google.com/spreadsheets/d/1HeldkN3k1H-WfyCusjOj4gocBtSeHkwKhDbNYDyYr5I/edit?usp=sharing
Appending the two queries in S2 does not work as shown in this answer.
={QUERY(C2:J, "SELECT D, I WHERE C <= date '"&TEXT(N1,"yyyy-mm-dd")&"'",0);QUERY(C2:J, "SELECT E, J WHERE C <= date '"&TEXT(N1,"yyyy-mm-dd")&"'",0)}