Deductions & credits

Per Form 8833 instructions
 
Dual-resident taxpayer. An alien individual is a dual-resident taxpayer if that individual is considered to be a resident of both the United States and another country under each country’s tax laws. 
 
If the income tax treaty between the United States and the other country contains a provision for resolution of conflicting claims of residence by the United States and its treaty partner, and the individual determines that under those provisions he or she is a resident of the foreign country for treaty purposes, the individual may claim treaty benefits as a resident of that foreign country, provided that he or she complies with the instructions below. 
 
If you are an individual who is a dual-resident taxpayer and you choose to claim treaty benefits as a resident of the foreign country, you are treated as a nonresident alien in figuring your U.S. income tax liability for the part of the tax year you are considered a dual-resident taxpayer. If you are eligible to be treated as a resident of the foreign country pursuant to the applicable income tax treaty and you choose to claim benefits as a resident of such foreign country, attach Form 8833 to Form 1040NR, U.S. Nonresident Alien Income Tax Return, or Form 1040NR-EZ, U.S. Income Tax Return for Certain Nonresident Aliens With No Dependents.  Please note it is NR return.
 
In order to be treated as a resident of the foreign country, you must timely file (including extensions) Form 1040NR or Form 1040NR-EZ with the Form 8833 attached. If you choose to be treated as a resident of a foreign country under an income tax treaty, you are still treated as a U.S. resident for purposes other than figuring your U.S. income tax liability (see Regulations section 301.7701(b)-7(a)(3)). 
 
US resident election for tax purposes are WORLDWIDE income.  
Taxable Income
A U.S. resident alien's income is generally subject to tax in the same manner as a U.S. citizen. If you are a U.S. resident alien, you must report all interest, dividends, wages, or other compensation for services, income from rental property or royalties, and other types of income on your U.S. tax return. You must report these amounts whether they are earned within or outside the United States.