If you were to create a table from a class called Book, the following SQL statement lists all books.
SELECT * FROM Book
If Book has subclasses Fiction and Nonfiction, and these are included in your view, the following SQL statement lists all fiction books.
SELECT * FROM Fiction