It finally works

TODO: need to add a script to clean up the output for the query