@EricGT
So the classification is
team(east,bucks).
team(east,raptors).
team(east,philadelphia).
team(east,celtics).
team(east,pacers).
team(east,nets).
team(east,magic).
team(east,pistons).
team(east,hornets).
team(east,heat).
team(east,wizards).
team(east,hawks).
team(east,bulls).
team(east,cavaliers).
team(east,knicks).
team(west,warriors).
team(west,nuggets).
team(west,blazers).
team(west,rockets).
team(west,utah).
team(west,thunder).
team(west,spurs).
team(west,clippers).
team(west,sacramento).
team(west,lakers).
team(west,timberwolves).
team(west,grizzlies).
team(west,pelicans).
team(west,mavericks).
team(west,suns).
and I want a procedure to return the first 8 of each one so it would be:
team(east,bucks).
team(east,raptors).
team(east,philadelphia).
team(east,celtics).
team(east,pacers).
team(east,nets).
team(east,magic).
team(east,pistons).
team(west,warriors).
team(west,nuggets).
team(west,blazers).
team(west,rockets).
team(west,utah).
team(west,thunder).
team(west,spurs).
team(west,clippers).
Edit: Idk why but I am having a hard time using the spoiler thing of prolog here
Edit2: also, this is my last question, then my project is done