Generate helpers to create basic queries