Creating a native query