Convert to native query