How to get Trip data?

My api is "/api/reports/trips" and which sql and table is responsible for trip data.