Initial query from Robert's cyan

I will be updating this as I reformat query.py.