Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following clauses (i.e. Facts) male(ali). male(ahmad). male(muhammad). male(faisal). male(hassan). male(khan). female(sara). female(nora). parent(ali,ahmad). parent(ali,muhammad). parent(ahmad.sara). parent(ahmad.nora). parent(ahmad, khan). parent(muhammad.faisal).. parent(faisal,hassan). 1- Write
Consider the following clauses (i.e. Facts) male(ali). male(ahmad). male(muhammad). male(faisal). male(hassan). male(khan). female(sara). female(nora). parent(ali,ahmad). parent(ali,muhammad). parent(ahmad.sara). parent(ahmad.nora). parent(ahmad, khan). parent(muhammad.faisal).. parent(faisal,hassan). 1- Write a query to show the names of all females. 2- Write a query to show if there is any male. 3- Write a query to show the grandparent of Faisal. 4- Write a query to show all daughters of Ahmad. 5- Write a query to show whether Ahmad and Muhammed have a common parent. 6- Write a query to show whether Khan is the brother of Nora.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started