37. Consider the three tables below and formulate the following query in SQL: List the capital cities and populations of countries whose GDP exceeds one trillion dollars (3pt).
38. Consider the three tables below and formulate the following query in SQL: For each continent, find the average GDP (3pt).
39. Consider the three tables below and formulate the following query in SQL: For each country in which at least two rivers originate, find the length of the smallest river (3pt).
40. Suppose that you have the following table. Specify a query that return all rows in which the field ‘death’ has the value NULL. (2pt)
+----------+--------+---------+------+------------+------------+
| name | owner | species | sex | birth | death |
+----------+--------+---------+------+------------+------------+
| Puffball | Fluffy |Claws
| Buffy
| Diane | hamster |f | Harold | cat |f |Gwen |cat |m | Harold | dog |f
| XXXXXXXXXX | NULL | | XXXXXXXXXX | NULL | | XXXXXXXXXX|NULL | | XXXXXXXXXX | NULL |
| Bowser | Diane | dog | m | XXXXXXXXXX | XXXXXXXXXX | +—————+————+---------+------+------------+------------+

41. Suppose that you have a table of the structure below. Specify the following query: List animal names and birthdays, sorted by date (2pt)