Refer to the sample tables and sample data below. Tables:adu…

Refer to the sample tables and sample data below. Tables:adult (id(pk), name) child (id(pk), name)parent_child (parent(pk, fk), child (pk, fk)) — foreign key (parent) references adult(id) — foreign key (child) references child(id)mysql> SELECT * FROM adult;+—-+——————+| id | name |+—-+——————+| 1 | Homer Simpson || 2 | Marge Simpson || 3 | Fred Flintstone || 4 | Wilma Flintstone || 5 | George Jetson || 6 | Jane Jetson || 7 | Patty Bouvier || 8 | Selma Bouvier |+—-+——————+8 rows in setmysql> SELECT * FROM child;+—-+———+| id | name |+—-+———+| 11 | Bart || 12 | Lisa || 13 | Maggie || 14 | Pebbles || 15 | Judy || 16 | Elroy || 17 | Ling |+—-+———+7 rows in setmysql> SELECT * FROM parent_child;+——–+——-+| parent | child |+——–+——-+| 1 | 11 || 2 | 11 || 1 | 12 || 2 | 12 || 1 | 13 || 2 | 13 || 3 | 14 || 4 | 14 || 5 | 15 || 6 | 15 || 5 | 16 || 6 | 16 || 8 | 17 |+——–+——-+13 rows in set (a) How many rows will be returned by the following command? [a] SELECT DISTINCT a.name FROM adult a RIGHT JOIN parent_child pc ON a.id = pc.parent RIGHT JOIN child c ON pc.child = c.id; (b) How many rows will be returned by the following command? [b] SELECT a.name FROM adult a LEFT JOIN parent_child pc ON a.id = pc.parentLEFT JOIN child c ON pc.child = c.id;  (c) How many rows will be returned by the following command? [c] SELECT a.name FROM adult a RIGHT JOIN parent_child pc ON a.id = pc.parent RIGHT JOIN child c ON pc.child = c.id;

Tables:people (id(pk), firstname, lastname, zip(fk)) — fore…

Tables:people (id(pk), firstname, lastname, zip(fk)) — foreign key references zip_code(zip)zip_code (zip(pk), city, state)– id and zip are INT. firstname, lastname, city, and state are VARCHAR.mysql> select * from people;+—-+———–+———-+——-+| id | firstname | lastname | zip |+—-+———–+———-+——-+| 1 | Marty | McFly | 45001 || 2 | Jennifer | Parker | 33647 || 3 | Lorraine | McFly | 33647 || 4 | Biff | Tannen | 33647 || 5 | George | McFly | 08648 |+—-+———–+———-+——-+5 rows in set (0.01 sec)mysql> select * from zip_code;+——-+————+——-+| zip | city | state |+——-+————+——-+| 45001 | New York | NY || 08648 | Trenton | NJ || 33647 | Tampa | FL || 33765 | Clearwater | FL |+——-+————+——-+4 rows in set (0.01 sec) How many rows are returned by each of the following commands?  a) SELECT firstname, city FROM people JOIN zip_code; [a] b) SELECT firstname, city FROM people JOIN zip_code WHERE zip_code.state = ‘NY’; [b] c) SELECT firstname, city FROM people JOIN zip_code WHERE people.zip = zip_code.state; [c]