So I am using a query function with importrange and just recently got back error "Result Too Large". The data im importing from the original sheet has more than 10500 rows of data.
=QUERY(IMPORTRANGE("sheet_name", "Social media posts!A:AS"),"SELECT Col1, Col43, Col23, Col16, Col12, Col44, Col45, Col2, Col3 WHERE Col2='instagram'", 1)