in reply to search data structures using SQL

Sure, you copy paste what DBD::CSV and/or DBM::Deep are doing :)