Create queries.py

Initial version with stubs for the four main queries.