It's more complicated than that. Most tickets aren't in a GDS, but only in an individual airline's CRS. And a travel agent wouldn't have broad SQL like ability to query. They would need at least 2 of name, record locator, or flight/date. And travel agents don't typically have access to every airline CRS and all GDS systems...some subset is more common.