Update data.py

Add some docstring explaining the purpose of some_complicated_query()