Wrote selections for queries 2-9.
TODO: add/insert/delete for all entities.