<<< Large or big countries >>>
Scenario world
f35f7fece0cf0019765619c477c900ddd8131dbc27b32e9261f4ab7cdc49773c
See details on the model
In this scenario, we have a single table world in which each row describes a country. The table contains the following attributes:
- name of type VARCHAR(50) NOT NULL, the name of the country (e.g. France)
- continent of type VARCHAR(60), in which continent is the country in (e.g. Europe)
- area of time DECIMAL(10) the area of the country in square kilometer
- population of type DECIMAL(11) the number of inhabitants
- gdp of type DECIMAL(14) the Gross Domestic Product
- capital of type VARCHAR(60) the name of the capital city
- tld of type VARCHAR(5) the Top Level Domain of the country (the last part of the domain names of the country, e.g. .fr for France)
- flag of type VARCHAR(255) an url of the flag of the country
Question
Write a query selecting the name, population, and area of all countries that
have at least 100 million inhabitants or have an area of at least 3 million
square kilometers (or both)
{"rows":[["Australia","23545500","7692024"],["Bangladesh","156557000","147570"],["Brazil","202794000","8515767"],["Canada","35427524","9984670"],["China","1365370000","9596961"],["India","1246160000","3166414"],["Indonesia","252164800","1904569"],["Japan","127090000","377930"],["Mexico","119713203","1964375"],["Nigeria","178517000","923768"],["Pakistan","188020000","881912"],["Russia","146000000","17125242"],["United States","318320000","9826675"]],"fields":[{"name":"name","dataTypeID":1043},{"name":"population","dataTypeID":1700},{"name":"area","dataTypeID":1700}],"affectedRows":0}
False
False