SELECT
  *
FROM (
  SELECT
    "t12"."supp_nation",
    "t12"."cust_nation",
    "t12"."l_year",
    SUM("t12"."volume") AS "revenue"
  FROM (
    SELECT
      "t12"."l_shipdate",
      "t12"."l_extendedprice",
      "t12"."l_discount",
      "t12"."volume",
      "t12"."supp_nation",
      "t12"."cust_nation",
      "t12"."l_year"
    FROM (
      SELECT
        *
      FROM (
        SELECT
          "t9"."n_name" AS "supp_nation",
          "t10"."n_name" AS "cust_nation",
          "t6"."l_shipdate",
          "t6"."l_extendedprice",
          "t6"."l_discount",
          DATE_PART('year', "t6"."l_shipdate") AS "l_year",
          "t6"."l_extendedprice" * (
            1 - "t6"."l_discount"
          ) AS "volume"
        FROM "supplier" AS "t5"
        INNER JOIN "lineitem" AS "t6"
          ON "t5"."s_suppkey" = "t6"."l_suppkey"
        INNER JOIN "orders" AS "t7"
          ON "t7"."o_orderkey" = "t6"."l_orderkey"
        INNER JOIN "customer" AS "t8"
          ON "t8"."c_custkey" = "t7"."o_custkey"
        INNER JOIN "nation" AS "t9"
          ON "t5"."s_nationkey" = "t9"."n_nationkey"
        INNER JOIN "nation" AS "t10"
          ON "t8"."c_nationkey" = "t10"."n_nationkey"
      ) AS "t11"
      WHERE
        (
          (
            (
              "t11"."cust_nation" = 'FRANCE'
            ) AND (
              "t11"."supp_nation" = 'GERMANY'
            )
          )
          OR (
            (
              "t11"."cust_nation" = 'GERMANY'
            ) AND (
              "t11"."supp_nation" = 'FRANCE'
            )
          )
        )
        AND "t11"."l_shipdate" BETWEEN DATE_TRUNC('DAY', '1995-01-01') AND DATE_TRUNC('DAY', '1996-12-31')
    ) AS "t12"
  ) AS t12
  GROUP BY
    "t12"."supp_nation",
    "t12"."cust_nation",
    "t12"."l_year"
) AS "t13"
ORDER BY
  "t13"."supp_nation" ASC,
  "t13"."cust_nation" ASC,
  "t13"."l_year" ASC