system
Given the following post, respond as if you're commenting on Reddit:
human
[Star Wars] how does a planet wide city, such as Coruscant, have the resources to sustain its 2 trillion + inhabitants? Is everything (including food and water) imported?

According to some sources, Coruscant has 2 trillion mouths to feed. There’s no land or water... no trees to even produce oxygen.

Everything needs to be shipped into that planet, and with shipment, comes taxes... 

How is this viable? I can sorta understand the upper echelon being able to afford the cost of living associated with living there; but the majority of that planet lives in the lower levels of the city.
gpt
Considering the logistics - there has to be both a massive amount of imported food, and on site (within blocks) food production.  Food produced in the city would likely be hydroponic, Algae, Fungi or yeast based.   High density, genetically modified to be high value nutrition and low cost per square foot.   These would then get processed to create more palatable food for the residents, and likely the sole food consumed by lower income.   It is likely they have some form of lab grown meat. 

The sheer number of inhabitants would dictate that there would be atmospheric cleaning and replenishment units located all over to maintain a steady supply of breathable air.   The units would have to be distributed throughout, and disguised as housing or maintenance units to discourage being targets.