making it automatically loop and display an query in a query yml