fix output
use builtin faraday build_nested_query