If a man in a hat is riding on the seat of a leftward-facing four-wheeled wagon pulled by one small black pony.
return man ;return hat ;return #1 in  #2 ;return wagon ;return #4 that is leftward-facing ;return #5 that is four-wheeled ;return ponies ;return #7 that are small ;return #8 that are black ;return #6 pulled by #9 ;return number of  #9 for each  #10 ;return #10 where  #11 is equal to  one ;return seat of #12 ;return if  #3 is riding on #13
['select', 'select', 'filter', 'select', 'filter', 'filter', 'select', 'filter', 'filter', 'filter', 'group', 'comparative', 'project', 'boolean']