In addition to the query builder provided by the database framework there are some specializations for persistence data.
For example, the following db find condition would find all vehicles in the database that have their engine turned on.
EDF_DbFindCondition condition = EPF_DbFind.Component(EPF_VehicleControllerSaveData).Any().Field("m_bEngineOn").Equals(true);