Basic query scaffold