i wanna ask a question about returning a list... Facts:
TEAM(TEAMNAME,DIRECTOR,NATIOANALITY,OVERALLGOAL)
team (milan,allegri,italy, 8.5). team (int
To extract a list of items satisfying a predicate from a database of clauses, one should use findall predicate. For example, your code could be rewritten as follows:
findall
find(T, N, G) :- findall(X, (team(X, _, N, G0), G0 > G), T).