How did we do this?

"Tell me about any combination of media file, latitude, longitude and mailbox where there is a "locative packet" with those properties, and where the mailbox is that of the maker of the media file."

How do we express this to machines?