Laying groundwork for the base query block