Use SQL Query to get records.

But the name column in table ontologyclass is null