Sometimes you might want to test a slow-running query by executing it directly from the command line. And surprisingly, now that the query is executed directly on the database, it has a much better runtime. How can that be? Since this is a question t...