Fixed example to use query() and all() properly