Try to auto-detect some simple-type query functions.