As before we have created a VagrantFile for you on [gradescope](https://www.gradescope.com/courses/535193/assignments/2852208). The main differences here are that we have loaded a skewed database (`flightsskewed`), and also installed Java. Start by doing `vagrant up` and `vagrant ssh` as usual.
Ensure that the Vagrantfile has loaded
the `flightsskewed` database, together with tables populated from `large-skewed.sql`. Use
`flightsskewed` for all parts of this assignment.
## Part 1: Query Construction (2 pts)
Consider the following query which finds the number of flights
taken by users whose name starts with 'William'.
```
select c.customerid, c.name, count(*)
from customers c join flewon f on (c.customerid = f.customerid and c.name like 'William%')
group by c.customerid, c.name
order by c.customerid;
```
The result however does not contain the users whose name contains 'William' but who did
not fly at all (e.g., `cust733`). So we may consider
modifying this query to use a left outer join instead, so we get those users as well:
```
select c.customerid, c.name, count(*)
from customers c left outer join flewon f on (c.customerid = f.customerid and c.name like 'William%')
group by c.customerid, c.name
order by c.customerid;
```
Briefly explain why this query does not return the expected answer (as below), and rewrite the query so that it does.