db_id
stringclasses 69
values | question
stringlengths 24
325
| evidence
stringlengths 0
673
| SQL
stringlengths 23
804
| question_id
int64 0
9.43k
| difficulty
stringclasses 1
value |
---|---|---|---|---|---|
mondial_geo
|
How many mountains are there in the United States?
|
SELECT COUNT(T1.Name) FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T4.Province = T3.Name WHERE T4.Name = 'United States'
| 8,400 | ||
mondial_geo
|
When did Equatorial Guinea become independent?
|
Equatorial Guinea is a country
|
SELECT T2.Independence FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Equatorial Guinea'
| 8,401 | |
mondial_geo
|
What is the GDP per capita in Switzerland?
|
GDP per capita = GDP / Population
|
SELECT T2.GDP / T1.Population FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Switzerland'
| 8,402 | |
mondial_geo
|
What is the GDP for Service of the country with Fuenlabrada as its city.
|
SELECT T4.Service * T4.GDP FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name INNER JOIN economy AS T4 ON T4.Country = T2.Country WHERE T3.Name = 'Fuenlabrada'
| 8,403 | ||
mondial_geo
|
How many times longer is the longest river in Tajikistan than the shortest river?
|
TJ is an abbreviated country code of Tajikistan
|
SELECT MAX(T2.Length) / MIN(T2.Length) FROM located AS T1 INNER JOIN river AS T2 ON T1.River = T2.Name WHERE T1.Country = 'TJ'
| 8,404 | |
mondial_geo
|
What is the population density of Hanoi's home country?
|
population density = Population / Area
|
SELECT T1.Population / T1.Area FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name WHERE T3.Name = 'Hanoi'
| 8,405 | |
mondial_geo
|
In countries where there is more than one ethnic group, name the ethnic group with the greatest presence in each country and the country to which it corresponds.
|
greatest presence can be represented by largest percentage.
|
SELECT Country, Name FROM ethnicGroup AS T1 WHERE Percentage < 100 AND Percentage = ( SELECT MAX(Percentage) FROM ethnicGroup AS T2 WHERE T1.Country = T2.Country )
| 8,406 | |
mondial_geo
|
How many deserts are not located in a single country? Name them.
|
SELECT Desert FROM geo_desert GROUP BY Desert HAVING COUNT(DISTINCT Country) > 1
| 8,407 | ||
mondial_geo
|
How many rivers belong to more than one country? Name the provinces where we can find them.
|
SELECT River, GROUP_CONCAT(Province) FROM geo_river GROUP BY River HAVING COUNT(DISTINCT Country) > 1
| 8,408 | ||
mondial_geo
|
What percentage of the border does Angola share with each of the countries with which it borders?
|
SELECT SUM(CASE WHEN T2.Name = 'Angola' THEN T1.Length ELSE 0 END) * 100 / SUM(T1.Length) FROM borders AS T1 LEFT JOIN country AS T2 ON T1.Country1 = T2.Code
| 8,409 | ||
mondial_geo
|
What percent of the non volcanic islands in the Lesser Antilles group of islands have an area of no more than 300 square kilometers?
|
Percent = [count(non volcanic islands Lesser Antilles area 300 or less) / count(non volcanic islands Lesser Antilles)] * 100%
|
SELECT SUM(CASE WHEN Area <= 300 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM island WHERE Islands = 'Lesser Antilles' AND (Type != 'volcanic' OR Type IS NULL)
| 8,410 | |
mondial_geo
|
Of all the countries in which English is spoken, what percentage has English as their only language?
|
Percentage = [count(countries 100% English) / count(countries English)] * 100%
|
SELECT CAST(SUM(CASE WHEN T2.Percentage = 100 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Name) FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'English'
| 8,411 | |
mondial_geo
|
Name of the capitals of the countries that have less than 99.95% less population than the country that has the most population.
|
SELECT Capital FROM country WHERE Population <= ( SELECT MAX(Population) - MAX(Population) * 0.9995 FROM country )
| 8,412 | ||
mondial_geo
|
Average length of the rivers flowing into the Donau River.
|
SELECT * FROM river WHERE Name = 'Donau'
| 8,413 | ||
mondial_geo
|
Based on the data shown at Target, what percentage of countries are non-Christian?
|
percentage of countries are non-Christian = [count(non-Christian) / count(non-Christian + Christian)] * 100%
|
SELECT 100 - (CAST(SUM(CASE WHEN Target = 'Christian' THEN 1 ELSE 0 END) AS REAL)) * 100 / COUNT(Country) FROM target
| 8,414 | |
mondial_geo
|
Which country with a city with a population between 50,000 and 300,000 inhabitants and which is a member of an organization established between 03/01/1991 and 04/30/1991 is also a member of the EBRD?
|
SELECT T2.Country FROM country AS T1 INNER JOIN isMember AS T2 ON T1.Code = T2.Country INNER JOIN organization AS T3 ON T3.Country = T2.Country INNER JOIN city AS T4 ON T4.Country = T3.Country WHERE T3.Abbreviation = 'EBRD' AND T4.Population BETWEEN 50000 AND 300000 AND T3.Established BETWEEN '1991-01-31' AND '1991-04-30'
| 8,415 | ||
mondial_geo
|
Which river with its mouth in the Donau River and a length greater than 500 km is located in Slovenia?
|
SELECT T2.River FROM country AS T1 INNER JOIN geo_river AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Slovenia' AND T2.River IN ( SELECT NAME FROM river WHERE Length > 500 AND River = 'Donau' )
| 8,416 | ||
mondial_geo
|
In which city is the sea whose depth is 4232 meters less than that of the Bay of Bengal?
|
SELECT T2.City FROM sea AS T1 INNER JOIN located AS T2 ON T1.Name = T2.Sea INNER JOIN city AS T3 ON T3.Name = T2.City WHERE ( SELECT Depth FROM sea WHERE Name LIKE '%Bengal%' ) - T1.Depth = 4235
| 8,417 | ||
mondial_geo
|
In which city is the lake located at coordinates longitude -85.35 and latitude 11.6?
|
SELECT T2.City FROM lake AS T1 INNER JOIN located AS T2 ON T1.Name = T2.Lake INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN city AS T4 ON T4.Province = T3.Name WHERE T1.Longitude = -85.35 AND T1.Latitude = 11.6
| 8,418 | ||
mondial_geo
|
On which continent is the country with the most erosion of real income?
|
highest inflation rate results in the most erosion of real income
|
SELECT T1.Name FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN economy AS T4 ON T4.Country = T3.Code ORDER BY T4.Inflation DESC LIMIT 1
| 8,419 | |
mondial_geo
|
Which two Asian countries share a border that is 1,782 kilometers long?
|
SELECT T4.Country1, T4.Country2 FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN borders AS T4 ON T4.Country1 = T3.Code WHERE T1.Name = 'Asia' AND T4.Length = 1782
| 8,420 | ||
mondial_geo
|
Of all the lakes in Bolivia, which is the deepest?
|
Bolivia is the country
|
SELECT T1.Name FROM lake AS T1 INNER JOIN geo_lake AS T2 ON T1.Name = T2.Lake INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T4.Code = T3.Country WHERE T4.Name = 'Bolivia' ORDER BY T1.Depth DESC LIMIT 1
| 8,421 | |
mondial_geo
|
In which lake flows the river that is, in turn, the mouth of the Manicouagan River?
|
SELECT NAME FROM lake WHERE river = ( SELECT river FROM river WHERE NAME = 'Manicouagan' )
| 8,422 | ||
mondial_geo
|
In which group of islands is Rinjani Mountain located?
|
SELECT T1.Islands FROM island AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Island INNER JOIN mountain AS T3 ON T3.Name = T2.Mountain WHERE T3.Name = 'Rinjani'
| 8,423 | ||
mondial_geo
|
List all the seas with which the deepest sea merges.
|
SELECT T2.Sea2 FROM sea AS T1 INNER JOIN mergesWith AS T2 ON T1.Name = T2.Sea1 WHERE T1.Name = ( SELECT Name FROM sea ORDER BY Depth DESC LIMIT 1 )
| 8,424 | ||
mondial_geo
|
Of all the countries that share territory with more than one continent, in which of them does the average population not exceed 10 inhabitants per square kilometer?
|
SELECT NAME FROM country WHERE CODE IN ( SELECT country FROM encompasses GROUP BY country HAVING COUNT(continent) > 1 ) AND population / Area <= 10
| 8,425 | ||
mondial_geo
|
Of all the countries of the Hindu religion, which has the lowest ratio of people per square meter of surface?
|
ratio of people per square meter of surface = Population / Area
|
SELECT T1.Name FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Hindu' ORDER BY T1.Population / T1.Area ASC LIMIT 1
| 8,426 | |
mondial_geo
|
On what date did the country have a gross domestic product 400% higher than Saint Kitts and Nevis become independent?
|
GDP refers to gross domestic product
|
SELECT Independence FROM politics WHERE country = ( SELECT country FROM economy WHERE GDP = 1100 )
| 8,427 | |
mondial_geo
|
What is the average population ratio of the countries in which organizations were established in 1947?
|
Average population ratio = Population / Area
|
SELECT T1.Population / T1.Area FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country WHERE STRFTIME('%Y', T2.Established) = '1947'
| 8,428 | |
mondial_geo
|
What is the name of Anguilla's capital, and where is it located?
|
Anguilla is a country
|
SELECT Capital, Province FROM country WHERE Name = 'Anguilla'
| 8,429 | |
mondial_geo
|
Which nation has the smallest population, and where is its capital located?
|
SELECT Name, Capital FROM country ORDER BY Population ASC LIMIT 1
| 8,430 | ||
mondial_geo
|
How much more space does Asia have than Europe?
|
Asia and Europe are two continents.
|
SELECT MAX(Area) - MIN(Area) FROM continent WHERE Name = 'Asia' OR Name = 'Europe'
| 8,431 | |
mondial_geo
|
What is the geographic location of Aarhus city? Please provide the answer with the coordinates of the location.
|
Longitude, Latitude = coordinates of the location
|
SELECT Longitude, Latitude FROM city WHERE Name = 'Aarhus'
| 8,432 | |
mondial_geo
|
What is the population gap between the United Kingdom and Italy?
|
Population gap = Total population of the United Kingdom - Total population of Italy
|
SELECT MAX(Population) - MIN(Population) FROM country WHERE Name = 'United Kingdom' OR Name = 'Italy'
| 8,433 | |
mondial_geo
|
In which city is the European Bank for Reconstruction and Development's headquarters? Please include the city and province where the headquarters are located in your answer.
|
SELECT City, Province FROM organization WHERE Name = 'European Bank for Reconstruction and Development'
| 8,434 | ||
mondial_geo
|
Which lake is the largest in terms of both surface area and depth?
|
Area * Depth can represents the metric in terms of both surface area and depth
|
SELECT Name FROM lake ORDER BY Area * Depth DESC LIMIT 1
| 8,435 | |
mondial_geo
|
Which two nations are separated from one another by the longest border? Please include the entire names of the nations in your answer.
|
SELECT Country1, Country2 FROM borders ORDER BY Length DESC LIMIT 1
| 8,436 | ||
mondial_geo
|
Which nation has the highest GDP? Please give the nation's full name.
|
SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.GDP DESC LIMIT 1
| 8,437 | ||
mondial_geo
|
Which nation has the lowest proportion of people who speak an African language? Please state the nation's full name.
|
Nation and country share the same meaning. Proportion refers to percentage
|
SELECT T1.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'African' ORDER BY T2.Percentage ASC LIMIT 1
| 8,438 | |
mondial_geo
|
Which country has three different religions-Anglicanism, Christianity, and Roman Catholicism and uses 100% English?
|
SELECT T2.Country FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country INNER JOIN language AS T3 ON T3.Country = T2.Country WHERE (T2.Name = 'Anglican' OR T2.Name = 'Christian' OR T2.Name = 'Roman Catholic') AND T3.Name = 'English' AND T3.Percentage = 100 GROUP BY T1.Name HAVING COUNT(T1.Name) = 3
| 8,439 | ||
mondial_geo
|
Please list the top 3 countries with the highest inflation rate.
|
SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.Inflation DESC LIMIT 3
| 8,440 | ||
mondial_geo
|
Please provide a list of every nation where English is spoken and utilized entirely.
|
Utilizition entirely means Percentage = 100% uses
|
SELECT T1.Name FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'English' AND T2.Percentage = 100
| 8,441 | |
mondial_geo
|
How many businesses were founded after 1960 in a nation that wasn't independent?
|
Established means founded; Country means nation; Organization means businesses
|
SELECT COUNT(T3.Name) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN organization AS T3 ON T3.Country = T2.Country WHERE T2.Independence = NULL AND STRFTIME('%Y', T3.Established) > '1960'
| 8,442 | |
mondial_geo
|
What province did the river Klaeaelv travel through and how long is the river?
|
SELECT T1.Province FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Name = 'Klaraelv'
| 8,443 | ||
mondial_geo
|
How many Italian regions are bordered by the Mediterranean Sea? How deep is the Mediterranean Sea?
|
Reigion refers to province
|
SELECT COUNT(DISTINCT T2.province), T3.Depth FROM country AS T1 INNER JOIN located AS T2 ON T1.Code = T2.Country INNER JOIN sea AS T3 ON T3.Name = T2.Sea WHERE T1.Code = 'I' AND T3.Name = 'Mediterranean Sea' GROUP BY T3.Depth
| 8,444 | |
mondial_geo
|
What nations are considered British Overseas Territories?
|
British Overseas Territories is one government form; Nation and country share the same meaning
|
SELECT name FROM country WHERE CODE IN ( SELECT country FROM politics WHERE government = 'British Overseas Territories' )
| 8,445 | |
mondial_geo
|
Which of the top 3 economies by GDP has the lowest proportion of the economy devoted to agriculture?
|
Economies refers to countries
|
SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.GDP DESC, T2.Agriculture ASC LIMIT 1
| 8,446 | |
mondial_geo
|
How big is Africa, and how many nations make up the continent?
|
Area can measure the size of countries; Country and nation share the same meaning
|
SELECT T1.Area, COUNT(T3.Name) FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T1.Name = 'Asia' GROUP BY T1.Name, T1.Area
| 8,447 | |
mondial_geo
|
Which United States province is home to the greatest number of corporations' corporate headquarters?
|
Organization refers to corporation
|
SELECT T1.Province FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'United States' GROUP BY T1.Province ORDER BY COUNT(T1.Name) DESC LIMIT 1
| 8,448 | |
mondial_geo
|
What are the most recent three independent nations?
|
Larger date of indepedence refers to more recent indepdence; Nation refers to country
|
SELECT T1.Name FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country ORDER BY T2.Independence DESC LIMIT 3
| 8,449 | |
mondial_geo
|
Please name any three sovereign nations that have been governed by the republic since 1991.
|
Nation refers to country
|
SELECT country FROM politics WHERE government = 'republic' AND STRFTIME('%Y', independence) >= '1991' AND country IN ( SELECT country FROM country ) ORDER BY independence LIMIT 3
| 8,450 | |
mondial_geo
|
Which company falls under the category of an associated member? Please provide the organization's full name.
|
SELECT NAME FROM organization WHERE country IN ( SELECT country FROM politics WHERE dependent != '' )
| 8,451 | ||
mondial_geo
|
Which nations have a boundary with the Kalahari Desert?
|
Nation refers to country
|
SELECT T3.Name FROM desert AS T1 INNER JOIN geo_desert AS T2 ON T1.Name = T2.Desert INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T1.Name = 'Kalahari'
| 8,452 | |
mondial_geo
|
Which desert in Kazakhstan is the largest?
|
SELECT T1.Name FROM desert AS T1 INNER JOIN geo_desert AS T2 ON T1.Name = T2.Desert INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T3.Name = 'Kazakstan' ORDER BY T1.Area DESC LIMIT 1
| 8,453 | ||
mondial_geo
|
What sea does the Baltic Sea converge with, and how deep is the Baltic Sea?
|
Coverage refers to mergesWith
|
SELECT T2.Sea2, T1.Depth FROM sea AS T1 INNER JOIN mergesWith AS T2 ON T1.Name = T2.Sea1 WHERE T1.Name = 'Baltic Sea'
| 8,454 | |
mondial_geo
|
Which constitutional monarchy nations saw the greatest growth in the number of organizations after 1907?
|
Nation refers to country; Information of growth appears in the column Established
|
SELECT T1.Name FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country INNER JOIN politics AS T3 ON T3.Country = T2.Country WHERE STRFTIME('%Y', T2.Established) > '1907' AND T3.Government = 'constitutional monarchy' GROUP BY T1.Name ORDER BY COUNT(DISTINCT T2.Name) DESC LIMIT 1
| 8,455 | |
mondial_geo
|
What kind of mountain is Ampato? Which province and nation does this mountain belong to?
|
Nation refers to country
|
SELECT T1.Type, T3.Name, T4.Name FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T3.Country = T4.Code WHERE T1.Name = 'Ampato'
| 8,456 | |
mondial_geo
|
Please provide a list of every volcano mountain in the province of Ecuador.
|
SELECT T1.Name FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province WHERE T3.Name = 'Ecuador' AND T1.Type = 'volcano'
| 8,457 | ||
mondial_geo
|
What percentage of nations have achieved independence since 1993 and practice parliamentary democracy? Please include any three parliament-based democracies that attained independence after 1993.
|
Percentage of rivers with lengths greater than 3,000 miles = [(Total number of rivers with lengths greater than 3,000 miles) / (Total number of rivers)] * 100%
|
SELECT SUM(IIF(government = 'parliamentary democracy', 1, 0)) , CAST(SUM(IIF(government = 'parliamentary democracy', 1, 0)) AS REAL) * 100 / COUNT(*) FROM politics AS t1 WHERE STRFTIME('%Y', independence) >= '1993'
| 8,458 | |
mondial_geo
|
What proportion of rivers have a length of more than 3,000 miles? Please provide the name of a Russian river that is more than 3,000 miles long.
|
Proportion of rivers with lengths greater than 3,000 miles = [(Total number of rivers with lengths greater than 3,000 miles) / (Total number of rivers)] * 100%
|
SELECT CAST(SUM(CASE WHEN T1.Length > 3000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Name) FROM river AS T1 INNER JOIN located AS T2 ON T1.Name = T2.River INNER JOIN country AS T3 ON T3.Code = T2.Country
| 8,459 | |
mondial_geo
|
What is the full name of ABEDA and when was it established?
|
SELECT Name, Established FROM organization WHERE Abbreviation = 'ABEDA'
| 8,460 | ||
mondial_geo
|
Name all the organisations that were established from 1970 to 1980.
|
SELECT Name FROM organization WHERE STRFTIME('%Y', Established) BETWEEN '1970' AND '1980'
| 8,461 | ||
mondial_geo
|
Provide a list of all organisations with headquarters in London?
|
London is a city
|
SELECT Name FROM organization WHERE City = 'London'
| 8,462 | |
mondial_geo
|
For each organisations with headquarters in the USA, provide the its full name and the city where the headquarter is located at.
|
SELECT Name, City FROM organization WHERE Country = 'USA'
| 8,463 | ||
mondial_geo
|
Name the first organisation established in the Paris city. State its abbreviation, full name and date of establishment.
|
Paris is a city
|
SELECT Abbreviation, Name, Established FROM organization WHERE City = 'Paris' ORDER BY Established ASC LIMIT 1
| 8,464 | |
mondial_geo
|
List all the organisations that where its name contains 'United Nation'. State its full name and its headquarter city.
|
SELECT Name, City FROM organization WHERE Name LIKE '%United Nation%'
| 8,465 | ||
mondial_geo
|
Which 2 countries' border span across the longest length? Provide the country's full name.
|
SELECT T1.Name, T3.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 INNER JOIN country AS T3 ON T3.Code = T2.Country2 ORDER BY T2.Length DESC LIMIT 1
| 8,466 | ||
mondial_geo
|
Name all countries in which have border with Bulgaria.
|
Bulgaria is a country name
|
SELECT T3.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 INNER JOIN country AS T3 ON T3.Code = T2.Country2 WHERE T1.Name = 'Bulgaria'
| 8,467 | |
mondial_geo
|
State all countries with border greater than 4,000. List the full country name.
|
SELECT T1.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 WHERE T2.Length > 4000
| 8,468 | ||
mondial_geo
|
Among the country member of 'IOC' organization, which country has the most population?
|
SELECT T2.Name FROM isMember AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Organization = 'IOC' ORDER BY T2.Population DESC LIMIT 1
| 8,469 | ||
mondial_geo
|
List all members and member type of the Islamic Development Bank.
|
SELECT T2.Country, T2.Type FROM organization AS T1 INNER JOIN isMember AS T2 ON T1.Abbreviation = T2.Organization INNER JOIN country AS T3 ON T2.Country = T3.Code WHERE T1.Name = 'Islamic Development Bank'
| 8,470 | ||
mondial_geo
|
State the area and population of the country where Asia Pacific Economic Cooperation headquarter is located.
|
Asia Pacific Economic Cooperation is an organization name
|
SELECT T2.Name, T2.Population FROM organization AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Name = 'Asia Pacific Economic Cooperation'
| 8,471 | |
mondial_geo
|
What is the organization(s) that has 'National Society' as member type.
|
SELECT T1.Name FROM organization AS T1 INNER JOIN isMember AS T2 ON T2.Country = T1.Country INNER JOIN country AS T3 ON T2.Country = T3.Code WHERE T2.Type = 'National Society'
| 8,472 | ||
mondial_geo
|
Which country has the least organization membership?
|
SELECT country FROM organization WHERE country IN ( SELECT Code FROM country ) GROUP BY country ORDER BY COUNT(NAME) LIMIT 1
| 8,473 | ||
mondial_geo
|
List all countries with 'Category III' membership in 'IFAD' organization. Please also provide the capital of the country.
|
SELECT Name, Capital FROM country WHERE Code IN ( SELECT Country FROM isMember WHERE type = 'Category III' AND Organization = 'IFAD' )
| 8,474 | ||
mondial_geo
|
Name the organizations with the most members.
|
SELECT T1.Name FROM organization AS T1 INNER JOIN isMember AS T2 ON T2.Country = T1.Country INNER JOIN country AS T3 ON T2.Country = T3.Code GROUP BY T1.Name ORDER BY COUNT(T3.Name) DESC LIMIT 1
| 8,475 | ||
mondial_geo
|
What is the capital of Australia? Is the capital a headquarter to any organization? Name the organization(s).
|
SELECT T2.Capital, T1.Name FROM organization AS T1 INNER JOIN country AS T2 ON T1.City = T2.Capital WHERE T2.Name = 'Australia'
| 8,476 | ||
mondial_geo
|
Among the organizations where headquarters are in the 'USA', what is the percentage of the them are in 'Washington'?
|
percentage can be computed by [count(City = 'Washington') / count(all cities)] * 100%
|
SELECT CAST(SUM(CASE WHEN T2.City = 'Washington' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.City) FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country WHERE T2.Country = 'USA'
| 8,477 | |
mondial_geo
|
What is the border length between 'USA' and 'MEX'
|
SELECT Length FROM borders WHERE Country1 = 'MEX' AND Country2 = 'USA'
| 8,478 | ||
mondial_geo
|
What is the newest established organization where Singapore is a member of?
|
SELECT T3.Name FROM country AS T1 INNER JOIN isMember AS T2 ON T1.Code = T2.Country INNER JOIN organization AS T3 ON T3.Country = T2.Country WHERE T1.Name = 'Singapore' ORDER BY T3.Established DESC LIMIT 1
| 8,479 | ||
mondial_geo
|
Provide the population of the city of the 'World Tourism Organization' headquarter.
|
SELECT T2.Population FROM organization AS T1 INNER JOIN city AS T2 ON T1.City = T2.Name WHERE T1.Name = 'World Tourism Organization'
| 8,480 | ||
mondial_geo
|
What is the height of mountain Dhaulagiri located and in which province is it located?
|
SELECT T1.Height, T2.Province FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain WHERE T1.Name = 'Dhaulagiri'
| 8,481 | ||
mondial_geo
|
List all the name and height of all mountains in Alaska
|
Alaska is a province
|
SELECT T1.Name, T1.Height FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain WHERE T2.Province = 'Alaska'
| 8,482 | |
mondial_geo
|
What is the population of the country with the highest infant mortality rate?
|
SELECT T1.Population FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country ORDER BY T2.Infant_Mortality DESC LIMIT 1
| 8,483 | ||
mondial_geo
|
State the inflation rate of Greece.
|
SELECT T2.Inflation FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Greece'
| 8,484 | ||
mondial_geo
|
Find the government type for the country with the highest percentage GDP in Agriculture.
|
SELECT T3.Government FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country INNER JOIN politics AS T3 ON T3.Country = T2.Country ORDER BY T2.Agriculture DESC LIMIT 1
| 8,485 | ||
mondial_geo
|
List the full name its capital of all the countries with parliamentary democracy government.
|
Parliamentary democracy is a government form
|
SELECT T1.Capital FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T2.Government = 'parliamentary democracy'
| 8,486 | |
mondial_geo
|
Provide a full list of countries and its population with more than 70% of Chinese.
|
SELECT T1.Name, T1.Population * T2.Percentage FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Chinese' AND T2.Percentage > 70
| 8,487 | ||
mondial_geo
|
In which city has the greatest population, what is its percentage to its country population?
|
SELECT T3.Name, CAST(T3.Population AS REAL) * 100 / T1.Population FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Country = T2.Country ORDER BY T3.Population DESC LIMIT 1
| 8,488 | ||
mondial_geo
|
When did the United States of America attained it's Independence?
|
SELECT T1.Independence FROM politics AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'United States'
| 8,489 | ||
mondial_geo
|
What is the peak height of the highest volcanic type of mountain? Give it's name.
|
peak means the highest
|
SELECT Height, Name FROM mountain WHERE Type = 'volcanic' ORDER BY Height DESC LIMIT 1
| 8,490 | |
mondial_geo
|
What is the name of the most recently founded organization in Saudi Arabia?
|
Saudi Arabia is a country
|
SELECT T1.Name FROM organization AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'Saudi Arabia' ORDER BY T1.Established DESC LIMIT 1
| 8,491 | |
mondial_geo
|
Which country has the 5th highest infant mortality rate?
|
SELECT T2.Name FROM population AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code ORDER BY T1.Infant_Mortality DESC LIMIT 4, 1
| 8,492 | ||
mondial_geo
|
Which country has the widest range of religious practices?
|
SELECT T1.Name FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country GROUP BY T1.Name ORDER BY COUNT(DISTINCT T2.Name) DESC LIMIT 1
| 8,493 | ||
mondial_geo
|
What river has the 17th-longest length overall? Specify it's length.
|
SELECT Name, Length FROM river ORDER BY Length DESC LIMIT 16, 1
| 8,494 | ||
mondial_geo
|
When did the country whose capital is Nouakchott attained it's independence?
|
SELECT T2.Independence FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Capital = 'Nouakchott'
| 8,495 | ||
mondial_geo
|
What is the name of the country with the smallest population, and what is its gross domestic product?
|
GDP refers to gross domestic product
|
SELECT T1.Name, T2.GDP FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T1.Population ASC LIMIT 1
| 8,496 | |
mondial_geo
|
Which Zaire region is home to the country's deepest lake's Name it and list its depth.
|
SELECT T3.Name, T1.Name, T1.Depth FROM lake AS T1 INNER JOIN located AS T2 ON T1.Name = T2.Lake INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T4.Code = T3.Country WHERE T4.Name = 'Zaire'
| 8,497 | ||
mondial_geo
|
What is the maximal elevation of the summit of the shortest mountain that can be found in the island of Madagaskar? Indicate what type of mountain it is.
|
The elevation of the summit refers to height
|
SELECT T3.Height, T3.Type FROM island AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Island INNER JOIN mountain AS T3 ON T3.Name = T2.Mountain WHERE T1.Name = 'Madagaskar' ORDER BY T3.Height DESC LIMIT 1
| 8,498 | |
mondial_geo
|
Which nation, with a population ranging from 60,000,000 to 99,000,000, has the greatest gross domestic product?
|
GDP refers to gross domestic product; Nation and country are synonyms
|
SELECT T1.Name, T2.GDP FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Population BETWEEN 60000000 AND 90000000 ORDER BY T2.GDP DESC LIMIT 1
| 8,499 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.