Load TestDatabase1500000.mdb into MS Access (or import .csv)
Create New Query, use the query from SQL MS Access Code for 1500000.txt
Run the Query - This will filter the table as requested.
Export XML/HTML or any other formats via Access Output Options