output path and query to /tmp/empty.txt for debugging purposes