Get the original query in ResultSet