I have facts :
studies(it, da). // IT branch studies the module DA
studies(it, pm).
studies(ie, pm).
studies(it, plc).
studies(it, se).
studies(cs, plc).
studies(cs, da).
studies(cs, se).
I need to write queries for:
How many subjects do cs students study?
Which branch studies the subjects pm and plc?