This question could be rephrased to, \"Using a programmatically generated range in FILTER()\" depending on the approach one takes to answer it.
EDIT- It seems that I ina
once again, maybe this is what you want:
=FILTER('Data Import'!1:100000, INDIRECT("'Data Import'!"& ADDRESS(1, MATCH("student.grade", 'Data Import'!1:1, 0), 4)&":"& ADDRESS(1000000, MATCH("student.grade", 'Data Import'!1:1, 0), 4)) < 12)