The call/N family of predicates can call arbitrary Prolog goals at run time:
call/N
?- G=true, call(G). true. ?- G=(true,false), call(G). false.