scalar query method