Part III-- Considering the following four tables: Farmer(TCID, name, age, sex, vname) Village(name, area, population, province) Kids(TCID, f_TCid, m_TCid, s_name) School(sname, vname, no_classes) Where: sname=school name, vname =village name, f_TCid and $\mathrm{m} \_$TCid stand for the father's and mother's TCID, respectively. Code the following queries in Tuple-Relational Calculus and Domain-Relational Calculus: a) Find TCID of farmers who have some kids going to school? b) Find name of each school attended only by kids from the same village where the school is located? c) Find the name of the most crowded village(s) (most population)? d) Find TCID numbers of farmers who have at least one kid in every school registered in the database? e) Find names of villages with no schools? f) Find the school attended by all kids of Mark? (all kids of Mark must go to school and must attend same school) g) Find names of farmers whose kids go only to schools outside the Province where the farmers live? (the farmer may have kids not going to schools at all, but if some of the kids go to schools then the schools they attend must be in other Provinces)

Public Answer

UJUPI8 The First Answerer