Besides the fact that there is xss, the whole concept of this site is a wtf.
Reading the site it looks like it was built to allow users to basically query the website themselves using syntax similar to sql.
The users are supposed to look at the table structure and view pages with their own query if they wanted too.
I think this is just a lazy and overly complicated way to design a webpage and impliment a search engine in a site.