Task: Table-QA (source dataset: FinQA)

Task: 
You are given a table containing structured data and a natural language question referring to the table. Your goal is to analyze the table and provide an accurate and concise answer based on the given data.

Instructions:
1. Understand the Table: Examine the structure, headers, and data in the table. Identify relevant columns and rows related to the question.
2. Interpret the Question: Determine whether the question requires direct retrieval, aggregation, comparison, sorting, filtering, or inference.
3. Extract the Answer: Use logical reasoning and numerical operations (if necessary) to derive the correct response from the table.
4. Format the Answer: No explanation, return the answer in a structured JSON format: {"answer": <answer>}. If the question cannot be answered due to missing or ambiguous data, return a JSON response with {"answer": null}.

Table:
| in millions of dollars          | 2018   | 2017   | 2016   |
|:--------------------------------|:-------|:-------|:-------|
| interest rate risks ( 1 )       | $ 5186 | $ 5301 | $ 4229 |
| foreign exchange risks ( 2 )    | 1423   | 2435   | 1699   |
| equity risks ( 3 )              | 1346   | 525    | 330    |
| commodity and other risks ( 4 ) | 662    | 425    | 899    |
| credit products and risks ( 5 ) | 445    | 789    | 700    |
| total                           | $ 9062 | $ 9475 | $ 7857 |

Question:
what was the percent of the principal transactions revenue associated with foreign exchange risks in 2017


pre_text: 6 .
principal transactions citi 2019s principal transactions revenue consists of realized and unrealized gains and losses from trading activities .
trading activities include revenues from fixed income , equities , credit and commodities products and foreign exchange transactions that are managed on a portfolio basis characterized by primary risk .
not included in the table below is the impact of net interest revenue related to trading activities , which is an integral part of trading activities 2019 profitability .
for additional information regarding principal transactions revenue , see note a04 to the consolidated financial statements for information about net interest revenue related to trading activities .
principal transactions include cva ( credit valuation adjustments on derivatives ) and fva ( funding valuation adjustments ) on over-the-counter derivatives .
these adjustments are discussed further in note 24 to the consolidated financial statements .
the following table presents principal transactions revenue: .
post_text: ( 1 ) includes revenues from government securities and corporate debt , municipal securities , mortgage securities and other debt instruments .
also includes spot and forward trading of currencies and exchange-traded and over-the-counter ( otc ) currency options , options on fixed income securities , interest rate swaps , currency swaps , swap options , caps and floors , financial futures , otc options and forward contracts on fixed income securities .
( 2 ) includes revenues from foreign exchange spot , forward , option and swap contracts , as well as foreign currency translation ( fx translation ) gains and losses .
( 3 ) includes revenues from common , preferred and convertible preferred stock , convertible corporate debt , equity-linked notes and exchange-traded and otc equity options and warrants .
( 4 ) primarily includes revenues from crude oil , refined oil products , natural gas and other commodities trades .
( 5 ) includes revenues from structured credit products. .
label: 0.25699
qa: answer: 25.7%
explanation: the principal transactions revenue associated with foreign exchange risks in 2017 was 25.7%
ann_table_rows: 2
6
steps: op: divide2-1
arg1: 2435
arg2: 9475
res: 25.7%
program: divide(2435, 9475)
gold_inds: table_2: in millions of dollars the foreign exchange risks ( 2 ) of 2018 is 1423 ; the foreign exchange risks ( 2 ) of 2017 is 2435 ; the foreign exchange risks ( 2 ) of 2016 is 1699 ;
table_6: in millions of dollars the total of 2018 is $ 9062 ; the total of 2017 is $ 9475 ; the total of 2016 is $ 7857 ;
exe_ans: 0.25699
tfidftopn: text_7: the following table presents principal transactions revenue: .
program_re: divide(2435, 9475)
model_input: table_1
in millions of dollars the interest rate risks ( 1 ) of 2018 is $ 5186 ; the interest rate risks ( 1 ) of 2017 is $ 5301 ; the interest rate risks ( 1 ) of 2016 is $ 4229 ;
table_2
in millions of dollars the foreign exchange risks ( 2 ) of 2018 is 1423 ; the foreign exchange risks ( 2 ) of 2017 is 2435 ; the foreign exchange risks ( 2 ) of 2016 is 1699 ;
table_6
in millions of dollars the total of 2018 is $ 9062 ; the total of 2017 is $ 9475 ; the total of 2016 is $ 7857 ;