term_t handle to the first argument of the main 
goal of the query qid. This allows for enumerating a query 
and acting on the binding of one of the arguments without additional 
context. Note that the returned term_t is not the 
same handle that was used in PL_open_query() 
to pass the arguments. The content of the returned vector, however, is 
the same.