This was a short story which included a competition, in which the participants had to use an online database to find the answer to a complex question. It was something like "What was the stock price on the day when the temperature reached its highest in the city where..."
It was definitely pre-Google and I read it in the eighties, though the story (I think) may well have been older.
The story was set on Earth but at the time I read it, the idea of a searchable World Wide repository of all knowledge was Science Fiction.
I was interested to read it again because that concept is now a reality.