add instruction and samples for QL
move logic for listing entities into branch of logic in final state processing
add flow for listing relations