Resolved native SQL query