Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Business Law

Authors: Jeffrey F. Beatty, Susan S. Samuelson

5th edition

128586039X, 978-1305445840, 1305445848, 978-1285860398

More Books

Students also viewed these Programming questions

Question

If ([x +])2 = 25, what are the possible inputs for x?

Answered: 1 week ago

Question

Was Orange County really bankrupt? LO6

Answered: 1 week ago