Write the following queries in Datalog and SQL3 syntax:
1. Find the flno of all flights that depart from Madison.
2. Find the flno of all flights that leave Chicago after Flight 101 arrives in Chicago and nolater than one hour after.
3. Find the flno of all flights that do not depart from Madison.
4. Find all cities reachable from Madison through a series of one or more connecting flights.
5. Find all cities reachable from Madison through a chain of one or more connecting flights,with no more than one hour spent on any connection. (That is, every connecting flightmust depart within an hour of the arrival of the previous flight in the chain.)
6. Find the shortest time to fly from Madison to Madras, using a chain of one or moreconnecting flights.
7. Find the flno of all flights that do not depart from Madison or a city that is reachable