Find all values for a variable in a query.
List of values bound to the variable across all solutions
The Prolog query containing the variable
The variable to extract (e.g., "X")