Keyword query to graph query