db_id
stringclasses 31
values | schema
stringclasses 22
values | schemaComEx
stringclasses 22
values | question
stringlengths 18
181
| query
stringlengths 20
577
| answer
stringlengths 14
41.7k
⌀ | complexity
stringclasses 4
values | distinct
bool 2
classes | like
bool 2
classes | between
bool 2
classes | order_by
bool 2
classes | limit
bool 2
classes | grouby_by
bool 2
classes | having
bool 2
classes | single_join
bool 2
classes | multiple_join
bool 2
classes | multiple_select
bool 2
classes | intersect
bool 2
classes | except
bool 2
classes | union
bool 2
classes |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | How many people live in Gelderland district? | SELECT sum(Population) FROM city WHERE District = "Gelderland" | [{'sum(Population)': 545548}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What is the total population of Gelderland district? | SELECT sum(Population) FROM city WHERE District = "Gelderland" | [{'sum(Population)': 545548}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What is the average GNP and total population in all nations whose government is US territory? | SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = "US Territory" | [{'avg(GNP)': 510.3333333333333, 'sum(population)': 329000}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Give the mean GNP and total population of nations which are considered US territory. | SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = "US Territory" | [{'avg(GNP)': 510.3333333333333, 'sum(population)': 329000}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | How many unique languages are spoken in the world? | SELECT count(DISTINCT LANGUAGE) FROM countrylanguage | [{'count(DISTINCT LANGUAGE)': 457}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What is the number of distinct languages used around the world? | SELECT count(DISTINCT LANGUAGE) FROM countrylanguage | [{'count(DISTINCT LANGUAGE)': 457}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | How many type of governments are in Africa? | SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = "Africa" | [{'count(DISTINCT GovernmentForm)': 10}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | How many different forms of governments are there in Africa? | SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = "Africa" | [{'count(DISTINCT GovernmentForm)': 10}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Find the name, population and expected life length of asian country with the largest area? | SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = "Asia" ORDER BY SurfaceArea DESC LIMIT 1 | [{'Name': 'China', 'Population': 1277558000, 'LifeExpectancy': 71.4}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the name, population, and life expectancy of the largest Asian country by land? | SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = "Asia" ORDER BY SurfaceArea DESC LIMIT 1 | [{'Name': 'China', 'Population': 1277558000, 'LifeExpectancy': 71.4}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the countries that have greater surface area than any country in Europe? | SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = "Europe") | [{'Name': 'Aruba'}, {'Name': 'Afghanistan'}, {'Name': 'Angola'}, {'Name': 'Anguilla'}, {'Name': 'Albania'}, {'Name': 'Andorra'}, {'Name': 'Netherlands Antilles'}, {'Name': 'United Arab Emirates'}, {'Name': 'Argentina'}, {'Name': 'Armenia'}, {'Name': 'American Samoa'}, {'Name': 'Antarctica'}, {'Name': 'French Southern territories'}, {'Name': 'Antigua and Barbuda'}, {'Name': 'Australia'}, {'Name': 'Austria'}, {'Name': 'Azerbaijan'}, {'Name': 'Burundi'}, {'Name': 'Belgium'}, {'Name': 'Benin'}, {'Name': 'Burkina Faso'}, {'Name': 'Bangladesh'}, {'Name': 'Bulgaria'}, {'Name': 'Bahrain'}, {'Name': 'Bahamas'}, {'Name': 'Bosnia and Herzegovina'}, {'Name': 'Belarus'}, {'Name': 'Belize'}, {'Name': 'Bermuda'}, {'Name': 'Bolivia'}, {'Name': 'Brazil'}, {'Name': 'Barbados'}, {'Name': 'Brunei'}, {'Name': 'Bhutan'}, {'Name': 'Bouvet Island'}, {'Name': 'Botswana'}, {'Name': 'Central African Republic'}, {'Name': 'Canada'}, {'Name': 'Cocos (Keeling) Islands'}, {'Name': 'Switzerland'}, {'Name': 'Chile'}, {'Name': 'China'}, {'Name': 'Côte d’Ivoire'}, {'Name': 'Cameroon'}, {'Name': 'Congo, The Democratic Republic of the'}, {'Name': 'Congo'}, {'Name': 'Cook Islands'}, {'Name': 'Colombia'}, {'Name': 'Comoros'}, {'Name': 'Cape Verde'}, {'Name': 'Costa Rica'}, {'Name': 'Cuba'}, {'Name': 'Christmas Island'}, {'Name': 'Cayman Islands'}, {'Name': 'Cyprus'}, {'Name': 'Czech Republic'}, {'Name': 'Germany'}, {'Name': 'Djibouti'}, {'Name': 'Dominica'}, {'Name': 'Denmark'}, {'Name': 'Dominican Republic'}, {'Name': 'Algeria'}, {'Name': 'Ecuador'}, {'Name': 'Egypt'}, {'Name': 'Eritrea'}, {'Name': 'Western Sahara'}, {'Name': 'Spain'}, {'Name': 'Estonia'}, {'Name': 'Ethiopia'}, {'Name': 'Finland'}, {'Name': 'Fiji Islands'}, {'Name': 'Falkland Islands'}, {'Name': 'France'}, {'Name': 'Faroe Islands'}, {'Name': 'Micronesia, Federated States of'}, {'Name': 'Gabon'}, {'Name': 'United Kingdom'}, {'Name': 'Georgia'}, {'Name': 'Ghana'}, {'Name': 'Gibraltar'}, {'Name': 'Guinea'}, {'Name': 'Guadeloupe'}, {'Name': 'Gambia'}, {'Name': 'Guinea-Bissau'}, {'Name': 'Equatorial Guinea'}, {'Name': 'Greece'}, {'Name': 'Grenada'}, {'Name': 'Greenland'}, {'Name': 'Guatemala'}, {'Name': 'French Guiana'}, {'Name': 'Guam'}, {'Name': 'Guyana'}, {'Name': 'Hong Kong'}, {'Name': 'Heard Island and McDonald Islands'}, {'Name': 'Honduras'}, {'Name': 'Croatia'}, {'Name': 'Haiti'}, {'Name': 'Hungary'}, {'Name': 'Indonesia'}, {'Name': 'India'}, {'Name': 'British Indian Ocean Territory'}, {'Name': 'Ireland'}, {'Name': 'Iran'}, {'Name': 'Iraq'}, {'Name': 'Iceland'}, {'Name': 'Israel'}, {'Name': 'Italy'}, {'Name': 'Jamaica'}, {'Name': 'Jordan'}, {'Name': 'Japan'}, {'Name': 'Kazakstan'}, {'Name': 'Kenya'}, {'Name': 'Kyrgyzstan'}, {'Name': 'Cambodia'}, {'Name': 'Kiribati'}, {'Name': 'Saint Kitts and Nevis'}, {'Name': 'South Korea'}, {'Name': 'Kuwait'}, {'Name': 'Laos'}, {'Name': 'Lebanon'}, {'Name': 'Liberia'}, {'Name': 'Libyan Arab Jamahiriya'}, {'Name': 'Saint Lucia'}, {'Name': 'Liechtenstein'}, {'Name': 'Sri Lanka'}, {'Name': 'Lesotho'}, {'Name': 'Lithuania'}, {'Name': 'Luxembourg'}, {'Name': 'Latvia'}, {'Name': 'Macao'}, {'Name': 'Morocco'}, {'Name': 'Monaco'}, {'Name': 'Moldova'}, {'Name': 'Madagascar'}, {'Name': 'Maldives'}, {'Name': 'Mexico'}, {'Name': 'Marshall Islands'}, {'Name': 'Macedonia'}, {'Name': 'Mali'}, {'Name': 'Malta'}, {'Name': 'Myanmar'}, {'Name': 'Mongolia'}, {'Name': 'Northern Mariana Islands'}, {'Name': 'Mozambique'}, {'Name': 'Mauritania'}, {'Name': 'Montserrat'}, {'Name': 'Martinique'}, {'Name': 'Mauritius'}, {'Name': 'Malawi'}, {'Name': 'Malaysia'}, {'Name': 'Mayotte'}, {'Name': 'Namibia'}, {'Name': 'New Caledonia'}, {'Name': 'Niger'}, {'Name': 'Norfolk Island'}, {'Name': 'Nigeria'}, {'Name': 'Nicaragua'}, {'Name': 'Niue'}, {'Name': 'Netherlands'}, {'Name': 'Norway'}, {'Name': 'Nepal'}, {'Name': 'Nauru'}, {'Name': 'New Zealand'}, {'Name': 'Oman'}, {'Name': 'Pakistan'}, {'Name': 'Panama'}, {'Name': 'Pitcairn'}, {'Name': 'Peru'}, {'Name': 'Philippines'}, {'Name': 'Palau'}, {'Name': 'Papua New Guinea'}, {'Name': 'Poland'}, {'Name': 'Puerto Rico'}, {'Name': 'North Korea'}, {'Name': 'Portugal'}, {'Name': 'Paraguay'}, {'Name': 'Palestine'}, {'Name': 'French Polynesia'}, {'Name': 'Qatar'}, {'Name': 'Réunion'}, {'Name': 'Romania'}, {'Name': 'Russian Federation'}, {'Name': 'Rwanda'}, {'Name': 'Saudi Arabia'}, {'Name': 'Sudan'}, {'Name': 'Senegal'}, {'Name': 'Singapore'}, {'Name': 'South Georgia and the South Sandwich Islands'}, {'Name': 'Saint Helena'}, {'Name': 'Svalbard and Jan Mayen'}, {'Name': 'Solomon Islands'}, {'Name': 'Sierra Leone'}, {'Name': 'El Salvador'}, {'Name': 'San Marino'}, {'Name': 'Somalia'}, {'Name': 'Saint Pierre and Miquelon'}, {'Name': 'Sao Tome and Principe'}, {'Name': 'Suriname'}, {'Name': 'Slovakia'}, {'Name': 'Slovenia'}, {'Name': 'Sweden'}, {'Name': 'Swaziland'}, {'Name': 'Seychelles'}, {'Name': 'Syria'}, {'Name': 'Turks and Caicos Islands'}, {'Name': 'Chad'}, {'Name': 'Togo'}, {'Name': 'Thailand'}, {'Name': 'Tajikistan'}, {'Name': 'Tokelau'}, {'Name': 'Turkmenistan'}, {'Name': 'East Timor'}, {'Name': 'Tonga'}, {'Name': 'Trinidad and Tobago'}, {'Name': 'Tunisia'}, {'Name': 'Turkey'}, {'Name': 'Tuvalu'}, {'Name': 'Taiwan'}, {'Name': 'Tanzania'}, {'Name': 'Uganda'}, {'Name': 'Ukraine'}, {'Name': 'United States Minor Outlying Islands'}, {'Name': 'Uruguay'}, {'Name': 'United States'}, {'Name': 'Uzbekistan'}, {'Name': 'Saint Vincent and the Grenadines'}, {'Name': 'Venezuela'}, {'Name': 'Virgin Islands, British'}, {'Name': 'Virgin Islands, U.S.'}, {'Name': 'Vietnam'}, {'Name': 'Vanuatu'}, {'Name': 'Wallis and Futuna'}, {'Name': 'Samoa'}, {'Name': 'Yemen'}, {'Name': 'Yugoslavia'}, {'Name': 'South Africa'}, {'Name': 'Zambia'}, {'Name': 'Zimbabwe'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Which countries have greater area than that of any country in Europe? | SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = "Europe") | [{'Name': 'Aruba'}, {'Name': 'Afghanistan'}, {'Name': 'Angola'}, {'Name': 'Anguilla'}, {'Name': 'Albania'}, {'Name': 'Andorra'}, {'Name': 'Netherlands Antilles'}, {'Name': 'United Arab Emirates'}, {'Name': 'Argentina'}, {'Name': 'Armenia'}, {'Name': 'American Samoa'}, {'Name': 'Antarctica'}, {'Name': 'French Southern territories'}, {'Name': 'Antigua and Barbuda'}, {'Name': 'Australia'}, {'Name': 'Austria'}, {'Name': 'Azerbaijan'}, {'Name': 'Burundi'}, {'Name': 'Belgium'}, {'Name': 'Benin'}, {'Name': 'Burkina Faso'}, {'Name': 'Bangladesh'}, {'Name': 'Bulgaria'}, {'Name': 'Bahrain'}, {'Name': 'Bahamas'}, {'Name': 'Bosnia and Herzegovina'}, {'Name': 'Belarus'}, {'Name': 'Belize'}, {'Name': 'Bermuda'}, {'Name': 'Bolivia'}, {'Name': 'Brazil'}, {'Name': 'Barbados'}, {'Name': 'Brunei'}, {'Name': 'Bhutan'}, {'Name': 'Bouvet Island'}, {'Name': 'Botswana'}, {'Name': 'Central African Republic'}, {'Name': 'Canada'}, {'Name': 'Cocos (Keeling) Islands'}, {'Name': 'Switzerland'}, {'Name': 'Chile'}, {'Name': 'China'}, {'Name': 'Côte d’Ivoire'}, {'Name': 'Cameroon'}, {'Name': 'Congo, The Democratic Republic of the'}, {'Name': 'Congo'}, {'Name': 'Cook Islands'}, {'Name': 'Colombia'}, {'Name': 'Comoros'}, {'Name': 'Cape Verde'}, {'Name': 'Costa Rica'}, {'Name': 'Cuba'}, {'Name': 'Christmas Island'}, {'Name': 'Cayman Islands'}, {'Name': 'Cyprus'}, {'Name': 'Czech Republic'}, {'Name': 'Germany'}, {'Name': 'Djibouti'}, {'Name': 'Dominica'}, {'Name': 'Denmark'}, {'Name': 'Dominican Republic'}, {'Name': 'Algeria'}, {'Name': 'Ecuador'}, {'Name': 'Egypt'}, {'Name': 'Eritrea'}, {'Name': 'Western Sahara'}, {'Name': 'Spain'}, {'Name': 'Estonia'}, {'Name': 'Ethiopia'}, {'Name': 'Finland'}, {'Name': 'Fiji Islands'}, {'Name': 'Falkland Islands'}, {'Name': 'France'}, {'Name': 'Faroe Islands'}, {'Name': 'Micronesia, Federated States of'}, {'Name': 'Gabon'}, {'Name': 'United Kingdom'}, {'Name': 'Georgia'}, {'Name': 'Ghana'}, {'Name': 'Gibraltar'}, {'Name': 'Guinea'}, {'Name': 'Guadeloupe'}, {'Name': 'Gambia'}, {'Name': 'Guinea-Bissau'}, {'Name': 'Equatorial Guinea'}, {'Name': 'Greece'}, {'Name': 'Grenada'}, {'Name': 'Greenland'}, {'Name': 'Guatemala'}, {'Name': 'French Guiana'}, {'Name': 'Guam'}, {'Name': 'Guyana'}, {'Name': 'Hong Kong'}, {'Name': 'Heard Island and McDonald Islands'}, {'Name': 'Honduras'}, {'Name': 'Croatia'}, {'Name': 'Haiti'}, {'Name': 'Hungary'}, {'Name': 'Indonesia'}, {'Name': 'India'}, {'Name': 'British Indian Ocean Territory'}, {'Name': 'Ireland'}, {'Name': 'Iran'}, {'Name': 'Iraq'}, {'Name': 'Iceland'}, {'Name': 'Israel'}, {'Name': 'Italy'}, {'Name': 'Jamaica'}, {'Name': 'Jordan'}, {'Name': 'Japan'}, {'Name': 'Kazakstan'}, {'Name': 'Kenya'}, {'Name': 'Kyrgyzstan'}, {'Name': 'Cambodia'}, {'Name': 'Kiribati'}, {'Name': 'Saint Kitts and Nevis'}, {'Name': 'South Korea'}, {'Name': 'Kuwait'}, {'Name': 'Laos'}, {'Name': 'Lebanon'}, {'Name': 'Liberia'}, {'Name': 'Libyan Arab Jamahiriya'}, {'Name': 'Saint Lucia'}, {'Name': 'Liechtenstein'}, {'Name': 'Sri Lanka'}, {'Name': 'Lesotho'}, {'Name': 'Lithuania'}, {'Name': 'Luxembourg'}, {'Name': 'Latvia'}, {'Name': 'Macao'}, {'Name': 'Morocco'}, {'Name': 'Monaco'}, {'Name': 'Moldova'}, {'Name': 'Madagascar'}, {'Name': 'Maldives'}, {'Name': 'Mexico'}, {'Name': 'Marshall Islands'}, {'Name': 'Macedonia'}, {'Name': 'Mali'}, {'Name': 'Malta'}, {'Name': 'Myanmar'}, {'Name': 'Mongolia'}, {'Name': 'Northern Mariana Islands'}, {'Name': 'Mozambique'}, {'Name': 'Mauritania'}, {'Name': 'Montserrat'}, {'Name': 'Martinique'}, {'Name': 'Mauritius'}, {'Name': 'Malawi'}, {'Name': 'Malaysia'}, {'Name': 'Mayotte'}, {'Name': 'Namibia'}, {'Name': 'New Caledonia'}, {'Name': 'Niger'}, {'Name': 'Norfolk Island'}, {'Name': 'Nigeria'}, {'Name': 'Nicaragua'}, {'Name': 'Niue'}, {'Name': 'Netherlands'}, {'Name': 'Norway'}, {'Name': 'Nepal'}, {'Name': 'Nauru'}, {'Name': 'New Zealand'}, {'Name': 'Oman'}, {'Name': 'Pakistan'}, {'Name': 'Panama'}, {'Name': 'Pitcairn'}, {'Name': 'Peru'}, {'Name': 'Philippines'}, {'Name': 'Palau'}, {'Name': 'Papua New Guinea'}, {'Name': 'Poland'}, {'Name': 'Puerto Rico'}, {'Name': 'North Korea'}, {'Name': 'Portugal'}, {'Name': 'Paraguay'}, {'Name': 'Palestine'}, {'Name': 'French Polynesia'}, {'Name': 'Qatar'}, {'Name': 'Réunion'}, {'Name': 'Romania'}, {'Name': 'Russian Federation'}, {'Name': 'Rwanda'}, {'Name': 'Saudi Arabia'}, {'Name': 'Sudan'}, {'Name': 'Senegal'}, {'Name': 'Singapore'}, {'Name': 'South Georgia and the South Sandwich Islands'}, {'Name': 'Saint Helena'}, {'Name': 'Svalbard and Jan Mayen'}, {'Name': 'Solomon Islands'}, {'Name': 'Sierra Leone'}, {'Name': 'El Salvador'}, {'Name': 'San Marino'}, {'Name': 'Somalia'}, {'Name': 'Saint Pierre and Miquelon'}, {'Name': 'Sao Tome and Principe'}, {'Name': 'Suriname'}, {'Name': 'Slovakia'}, {'Name': 'Slovenia'}, {'Name': 'Sweden'}, {'Name': 'Swaziland'}, {'Name': 'Seychelles'}, {'Name': 'Syria'}, {'Name': 'Turks and Caicos Islands'}, {'Name': 'Chad'}, {'Name': 'Togo'}, {'Name': 'Thailand'}, {'Name': 'Tajikistan'}, {'Name': 'Tokelau'}, {'Name': 'Turkmenistan'}, {'Name': 'East Timor'}, {'Name': 'Tonga'}, {'Name': 'Trinidad and Tobago'}, {'Name': 'Tunisia'}, {'Name': 'Turkey'}, {'Name': 'Tuvalu'}, {'Name': 'Taiwan'}, {'Name': 'Tanzania'}, {'Name': 'Uganda'}, {'Name': 'Ukraine'}, {'Name': 'United States Minor Outlying Islands'}, {'Name': 'Uruguay'}, {'Name': 'United States'}, {'Name': 'Uzbekistan'}, {'Name': 'Saint Vincent and the Grenadines'}, {'Name': 'Venezuela'}, {'Name': 'Virgin Islands, British'}, {'Name': 'Virgin Islands, U.S.'}, {'Name': 'Vietnam'}, {'Name': 'Vanuatu'}, {'Name': 'Wallis and Futuna'}, {'Name': 'Samoa'}, {'Name': 'Yemen'}, {'Name': 'Yugoslavia'}, {'Name': 'South Africa'}, {'Name': 'Zambia'}, {'Name': 'Zimbabwe'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the African countries that have a population less than any country in Asia? | SELECT Name FROM country WHERE Continent = "Africa" AND population < (SELECT max(population) FROM country WHERE Continent = "Asia") | [{'Name': 'Angola'}, {'Name': 'Burundi'}, {'Name': 'Benin'}, {'Name': 'Burkina Faso'}, {'Name': 'Botswana'}, {'Name': 'Central African Republic'}, {'Name': 'Côte d’Ivoire'}, {'Name': 'Cameroon'}, {'Name': 'Congo, The Democratic Republic of the'}, {'Name': 'Congo'}, {'Name': 'Comoros'}, {'Name': 'Cape Verde'}, {'Name': 'Djibouti'}, {'Name': 'Algeria'}, {'Name': 'Egypt'}, {'Name': 'Eritrea'}, {'Name': 'Western Sahara'}, {'Name': 'Ethiopia'}, {'Name': 'Gabon'}, {'Name': 'Ghana'}, {'Name': 'Guinea'}, {'Name': 'Gambia'}, {'Name': 'Guinea-Bissau'}, {'Name': 'Equatorial Guinea'}, {'Name': 'British Indian Ocean Territory'}, {'Name': 'Kenya'}, {'Name': 'Liberia'}, {'Name': 'Libyan Arab Jamahiriya'}, {'Name': 'Lesotho'}, {'Name': 'Morocco'}, {'Name': 'Madagascar'}, {'Name': 'Mali'}, {'Name': 'Mozambique'}, {'Name': 'Mauritania'}, {'Name': 'Mauritius'}, {'Name': 'Malawi'}, {'Name': 'Mayotte'}, {'Name': 'Namibia'}, {'Name': 'Niger'}, {'Name': 'Nigeria'}, {'Name': 'Réunion'}, {'Name': 'Rwanda'}, {'Name': 'Sudan'}, {'Name': 'Senegal'}, {'Name': 'Saint Helena'}, {'Name': 'Sierra Leone'}, {'Name': 'Somalia'}, {'Name': 'Sao Tome and Principe'}, {'Name': 'Swaziland'}, {'Name': 'Seychelles'}, {'Name': 'Chad'}, {'Name': 'Togo'}, {'Name': 'Tunisia'}, {'Name': 'Tanzania'}, {'Name': 'Uganda'}, {'Name': 'South Africa'}, {'Name': 'Zambia'}, {'Name': 'Zimbabwe'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Which African countries have a smaller population than that of any country in Asia? | SELECT Name FROM country WHERE Continent = "Africa" AND population < (SELECT min(population) FROM country WHERE Continent = "Asia") | [{'Name': 'British Indian Ocean Territory'}, {'Name': 'Mayotte'}, {'Name': 'Saint Helena'}, {'Name': 'Sao Tome and Principe'}, {'Name': 'Seychelles'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Which Asian countries have a population that is larger than any country in Africa? | SELECT Name FROM country WHERE Continent = "Asia" AND population > (SELECT max(population) FROM country WHERE Continent = "Africa") | [{'Name': 'Bangladesh'}, {'Name': 'China'}, {'Name': 'Indonesia'}, {'Name': 'India'}, {'Name': 'Japan'}, {'Name': 'Pakistan'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the Asian countries which have a population larger than that of any country in Africa? | SELECT Name FROM country WHERE Continent = "Asia" AND population > (SELECT min(population) FROM country WHERE Continent = "Africa") | [{'Name': 'Afghanistan'}, {'Name': 'United Arab Emirates'}, {'Name': 'Armenia'}, {'Name': 'Azerbaijan'}, {'Name': 'Bangladesh'}, {'Name': 'Bahrain'}, {'Name': 'Brunei'}, {'Name': 'Bhutan'}, {'Name': 'China'}, {'Name': 'Cyprus'}, {'Name': 'Georgia'}, {'Name': 'Hong Kong'}, {'Name': 'Indonesia'}, {'Name': 'India'}, {'Name': 'Iran'}, {'Name': 'Iraq'}, {'Name': 'Israel'}, {'Name': 'Jordan'}, {'Name': 'Japan'}, {'Name': 'Kazakstan'}, {'Name': 'Kyrgyzstan'}, {'Name': 'Cambodia'}, {'Name': 'South Korea'}, {'Name': 'Kuwait'}, {'Name': 'Laos'}, {'Name': 'Lebanon'}, {'Name': 'Sri Lanka'}, {'Name': 'Macao'}, {'Name': 'Maldives'}, {'Name': 'Myanmar'}, {'Name': 'Mongolia'}, {'Name': 'Malaysia'}, {'Name': 'Nepal'}, {'Name': 'Oman'}, {'Name': 'Pakistan'}, {'Name': 'Philippines'}, {'Name': 'North Korea'}, {'Name': 'Palestine'}, {'Name': 'Qatar'}, {'Name': 'Saudi Arabia'}, {'Name': 'Singapore'}, {'Name': 'Syria'}, {'Name': 'Thailand'}, {'Name': 'Tajikistan'}, {'Name': 'Turkmenistan'}, {'Name': 'East Timor'}, {'Name': 'Turkey'}, {'Name': 'Taiwan'}, {'Name': 'Uzbekistan'}, {'Name': 'Vietnam'}, {'Name': 'Yemen'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the country codes of countries where people use languages other than English? | SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != "English" | [{'CountryCode': 'ABW'}, {'CountryCode': 'AFG'}, {'CountryCode': 'AGO'}, {'CountryCode': 'ALB'}, {'CountryCode': 'AND'}, {'CountryCode': 'ANT'}, {'CountryCode': 'ARE'}, {'CountryCode': 'ARG'}, {'CountryCode': 'ARM'}, {'CountryCode': 'ASM'}, {'CountryCode': 'ATG'}, {'CountryCode': 'AUS'}, {'CountryCode': 'AUT'}, {'CountryCode': 'AZE'}, {'CountryCode': 'BDI'}, {'CountryCode': 'BEL'}, {'CountryCode': 'BEN'}, {'CountryCode': 'BFA'}, {'CountryCode': 'BGD'}, {'CountryCode': 'BGR'}, {'CountryCode': 'BHR'}, {'CountryCode': 'BHS'}, {'CountryCode': 'BIH'}, {'CountryCode': 'BLR'}, {'CountryCode': 'BLZ'}, {'CountryCode': 'BOL'}, {'CountryCode': 'BRA'}, {'CountryCode': 'BRB'}, {'CountryCode': 'BRN'}, {'CountryCode': 'BTN'}, {'CountryCode': 'BWA'}, {'CountryCode': 'CAF'}, {'CountryCode': 'CAN'}, {'CountryCode': 'CCK'}, {'CountryCode': 'CHE'}, {'CountryCode': 'CHL'}, {'CountryCode': 'CHN'}, {'CountryCode': 'CIV'}, {'CountryCode': 'CMR'}, {'CountryCode': 'COD'}, {'CountryCode': 'COG'}, {'CountryCode': 'COK'}, {'CountryCode': 'COL'}, {'CountryCode': 'COM'}, {'CountryCode': 'CPV'}, {'CountryCode': 'CRI'}, {'CountryCode': 'CUB'}, {'CountryCode': 'CXR'}, {'CountryCode': 'CYP'}, {'CountryCode': 'CZE'}, {'CountryCode': 'DEU'}, {'CountryCode': 'DJI'}, {'CountryCode': 'DMA'}, {'CountryCode': 'DNK'}, {'CountryCode': 'DOM'}, {'CountryCode': 'DZA'}, {'CountryCode': 'ECU'}, {'CountryCode': 'EGY'}, {'CountryCode': 'ERI'}, {'CountryCode': 'ESH'}, {'CountryCode': 'ESP'}, {'CountryCode': 'EST'}, {'CountryCode': 'ETH'}, {'CountryCode': 'FIN'}, {'CountryCode': 'FJI'}, {'CountryCode': 'FRA'}, {'CountryCode': 'FRO'}, {'CountryCode': 'FSM'}, {'CountryCode': 'GAB'}, {'CountryCode': 'GBR'}, {'CountryCode': 'GEO'}, {'CountryCode': 'GHA'}, {'CountryCode': 'GIB'}, {'CountryCode': 'GIN'}, {'CountryCode': 'GLP'}, {'CountryCode': 'GMB'}, {'CountryCode': 'GNB'}, {'CountryCode': 'GNQ'}, {'CountryCode': 'GRC'}, {'CountryCode': 'GRD'}, {'CountryCode': 'GRL'}, {'CountryCode': 'GTM'}, {'CountryCode': 'GUF'}, {'CountryCode': 'GUM'}, {'CountryCode': 'GUY'}, {'CountryCode': 'HKG'}, {'CountryCode': 'HND'}, {'CountryCode': 'HRV'}, {'CountryCode': 'HTI'}, {'CountryCode': 'HUN'}, {'CountryCode': 'IDN'}, {'CountryCode': 'IND'}, {'CountryCode': 'IRL'}, {'CountryCode': 'IRN'}, {'CountryCode': 'IRQ'}, {'CountryCode': 'ISL'}, {'CountryCode': 'ISR'}, {'CountryCode': 'ITA'}, {'CountryCode': 'JAM'}, {'CountryCode': 'JOR'}, {'CountryCode': 'JPN'}, {'CountryCode': 'KAZ'}, {'CountryCode': 'KEN'}, {'CountryCode': 'KGZ'}, {'CountryCode': 'KHM'}, {'CountryCode': 'KIR'}, {'CountryCode': 'KNA'}, {'CountryCode': 'KOR'}, {'CountryCode': 'KWT'}, {'CountryCode': 'LAO'}, {'CountryCode': 'LBN'}, {'CountryCode': 'LBR'}, {'CountryCode': 'LBY'}, {'CountryCode': 'LCA'}, {'CountryCode': 'LIE'}, {'CountryCode': 'LKA'}, {'CountryCode': 'LSO'}, {'CountryCode': 'LTU'}, {'CountryCode': 'LUX'}, {'CountryCode': 'LVA'}, {'CountryCode': 'MAC'}, {'CountryCode': 'MAR'}, {'CountryCode': 'MCO'}, {'CountryCode': 'MDA'}, {'CountryCode': 'MDG'}, {'CountryCode': 'MDV'}, {'CountryCode': 'MEX'}, {'CountryCode': 'MHL'}, {'CountryCode': 'MKD'}, {'CountryCode': 'MLI'}, {'CountryCode': 'MLT'}, {'CountryCode': 'MMR'}, {'CountryCode': 'MNG'}, {'CountryCode': 'MNP'}, {'CountryCode': 'MOZ'}, {'CountryCode': 'MRT'}, {'CountryCode': 'MTQ'}, {'CountryCode': 'MUS'}, {'CountryCode': 'MWI'}, {'CountryCode': 'MYS'}, {'CountryCode': 'MYT'}, {'CountryCode': 'NAM'}, {'CountryCode': 'NCL'}, {'CountryCode': 'NER'}, {'CountryCode': 'NGA'}, {'CountryCode': 'NIC'}, {'CountryCode': 'NIU'}, {'CountryCode': 'NLD'}, {'CountryCode': 'NOR'}, {'CountryCode': 'NPL'}, {'CountryCode': 'NRU'}, {'CountryCode': 'NZL'}, {'CountryCode': 'OMN'}, {'CountryCode': 'PAK'}, {'CountryCode': 'PAN'}, {'CountryCode': 'PCN'}, {'CountryCode': 'PER'}, {'CountryCode': 'PHL'}, {'CountryCode': 'PLW'}, {'CountryCode': 'PNG'}, {'CountryCode': 'POL'}, {'CountryCode': 'PRI'}, {'CountryCode': 'PRK'}, {'CountryCode': 'PRT'}, {'CountryCode': 'PRY'}, {'CountryCode': 'PSE'}, {'CountryCode': 'PYF'}, {'CountryCode': 'QAT'}, {'CountryCode': 'REU'}, {'CountryCode': 'ROM'}, {'CountryCode': 'RUS'}, {'CountryCode': 'RWA'}, {'CountryCode': 'SAU'}, {'CountryCode': 'SDN'}, {'CountryCode': 'SEN'}, {'CountryCode': 'SGP'}, {'CountryCode': 'SJM'}, {'CountryCode': 'SLB'}, {'CountryCode': 'SLE'}, {'CountryCode': 'SLV'}, {'CountryCode': 'SMR'}, {'CountryCode': 'SOM'}, {'CountryCode': 'SPM'}, {'CountryCode': 'STP'}, {'CountryCode': 'SUR'}, {'CountryCode': 'SVK'}, {'CountryCode': 'SVN'}, {'CountryCode': 'SWE'}, {'CountryCode': 'SWZ'}, {'CountryCode': 'SYC'}, {'CountryCode': 'SYR'}, {'CountryCode': 'TCD'}, {'CountryCode': 'TGO'}, {'CountryCode': 'THA'}, {'CountryCode': 'TJK'}, {'CountryCode': 'TKL'}, {'CountryCode': 'TKM'}, {'CountryCode': 'TMP'}, {'CountryCode': 'TON'}, {'CountryCode': 'TTO'}, {'CountryCode': 'TUN'}, {'CountryCode': 'TUR'}, {'CountryCode': 'TUV'}, {'CountryCode': 'TWN'}, {'CountryCode': 'TZA'}, {'CountryCode': 'UGA'}, {'CountryCode': 'UKR'}, {'CountryCode': 'URY'}, {'CountryCode': 'USA'}, {'CountryCode': 'UZB'}, {'CountryCode': 'VAT'}, {'CountryCode': 'VCT'}, {'CountryCode': 'VEN'}, {'CountryCode': 'VIR'}, {'CountryCode': 'VNM'}, {'CountryCode': 'VUT'}, {'CountryCode': 'WLF'}, {'CountryCode': 'WSM'}, {'CountryCode': 'YEM'}, {'CountryCode': 'YUG'}, {'CountryCode': 'ZAF'}, {'CountryCode': 'ZMB'}, {'CountryCode': 'ZWE'}] | Easy | true | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Give the country codes for countries in which people speak langauges that are not English. | SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != "English" | [{'CountryCode': 'ABW'}, {'CountryCode': 'AFG'}, {'CountryCode': 'AGO'}, {'CountryCode': 'ALB'}, {'CountryCode': 'AND'}, {'CountryCode': 'ANT'}, {'CountryCode': 'ARE'}, {'CountryCode': 'ARG'}, {'CountryCode': 'ARM'}, {'CountryCode': 'ASM'}, {'CountryCode': 'ATG'}, {'CountryCode': 'AUS'}, {'CountryCode': 'AUT'}, {'CountryCode': 'AZE'}, {'CountryCode': 'BDI'}, {'CountryCode': 'BEL'}, {'CountryCode': 'BEN'}, {'CountryCode': 'BFA'}, {'CountryCode': 'BGD'}, {'CountryCode': 'BGR'}, {'CountryCode': 'BHR'}, {'CountryCode': 'BHS'}, {'CountryCode': 'BIH'}, {'CountryCode': 'BLR'}, {'CountryCode': 'BLZ'}, {'CountryCode': 'BOL'}, {'CountryCode': 'BRA'}, {'CountryCode': 'BRB'}, {'CountryCode': 'BRN'}, {'CountryCode': 'BTN'}, {'CountryCode': 'BWA'}, {'CountryCode': 'CAF'}, {'CountryCode': 'CAN'}, {'CountryCode': 'CCK'}, {'CountryCode': 'CHE'}, {'CountryCode': 'CHL'}, {'CountryCode': 'CHN'}, {'CountryCode': 'CIV'}, {'CountryCode': 'CMR'}, {'CountryCode': 'COD'}, {'CountryCode': 'COG'}, {'CountryCode': 'COK'}, {'CountryCode': 'COL'}, {'CountryCode': 'COM'}, {'CountryCode': 'CPV'}, {'CountryCode': 'CRI'}, {'CountryCode': 'CUB'}, {'CountryCode': 'CXR'}, {'CountryCode': 'CYP'}, {'CountryCode': 'CZE'}, {'CountryCode': 'DEU'}, {'CountryCode': 'DJI'}, {'CountryCode': 'DMA'}, {'CountryCode': 'DNK'}, {'CountryCode': 'DOM'}, {'CountryCode': 'DZA'}, {'CountryCode': 'ECU'}, {'CountryCode': 'EGY'}, {'CountryCode': 'ERI'}, {'CountryCode': 'ESH'}, {'CountryCode': 'ESP'}, {'CountryCode': 'EST'}, {'CountryCode': 'ETH'}, {'CountryCode': 'FIN'}, {'CountryCode': 'FJI'}, {'CountryCode': 'FRA'}, {'CountryCode': 'FRO'}, {'CountryCode': 'FSM'}, {'CountryCode': 'GAB'}, {'CountryCode': 'GBR'}, {'CountryCode': 'GEO'}, {'CountryCode': 'GHA'}, {'CountryCode': 'GIB'}, {'CountryCode': 'GIN'}, {'CountryCode': 'GLP'}, {'CountryCode': 'GMB'}, {'CountryCode': 'GNB'}, {'CountryCode': 'GNQ'}, {'CountryCode': 'GRC'}, {'CountryCode': 'GRD'}, {'CountryCode': 'GRL'}, {'CountryCode': 'GTM'}, {'CountryCode': 'GUF'}, {'CountryCode': 'GUM'}, {'CountryCode': 'GUY'}, {'CountryCode': 'HKG'}, {'CountryCode': 'HND'}, {'CountryCode': 'HRV'}, {'CountryCode': 'HTI'}, {'CountryCode': 'HUN'}, {'CountryCode': 'IDN'}, {'CountryCode': 'IND'}, {'CountryCode': 'IRL'}, {'CountryCode': 'IRN'}, {'CountryCode': 'IRQ'}, {'CountryCode': 'ISL'}, {'CountryCode': 'ISR'}, {'CountryCode': 'ITA'}, {'CountryCode': 'JAM'}, {'CountryCode': 'JOR'}, {'CountryCode': 'JPN'}, {'CountryCode': 'KAZ'}, {'CountryCode': 'KEN'}, {'CountryCode': 'KGZ'}, {'CountryCode': 'KHM'}, {'CountryCode': 'KIR'}, {'CountryCode': 'KNA'}, {'CountryCode': 'KOR'}, {'CountryCode': 'KWT'}, {'CountryCode': 'LAO'}, {'CountryCode': 'LBN'}, {'CountryCode': 'LBR'}, {'CountryCode': 'LBY'}, {'CountryCode': 'LCA'}, {'CountryCode': 'LIE'}, {'CountryCode': 'LKA'}, {'CountryCode': 'LSO'}, {'CountryCode': 'LTU'}, {'CountryCode': 'LUX'}, {'CountryCode': 'LVA'}, {'CountryCode': 'MAC'}, {'CountryCode': 'MAR'}, {'CountryCode': 'MCO'}, {'CountryCode': 'MDA'}, {'CountryCode': 'MDG'}, {'CountryCode': 'MDV'}, {'CountryCode': 'MEX'}, {'CountryCode': 'MHL'}, {'CountryCode': 'MKD'}, {'CountryCode': 'MLI'}, {'CountryCode': 'MLT'}, {'CountryCode': 'MMR'}, {'CountryCode': 'MNG'}, {'CountryCode': 'MNP'}, {'CountryCode': 'MOZ'}, {'CountryCode': 'MRT'}, {'CountryCode': 'MTQ'}, {'CountryCode': 'MUS'}, {'CountryCode': 'MWI'}, {'CountryCode': 'MYS'}, {'CountryCode': 'MYT'}, {'CountryCode': 'NAM'}, {'CountryCode': 'NCL'}, {'CountryCode': 'NER'}, {'CountryCode': 'NGA'}, {'CountryCode': 'NIC'}, {'CountryCode': 'NIU'}, {'CountryCode': 'NLD'}, {'CountryCode': 'NOR'}, {'CountryCode': 'NPL'}, {'CountryCode': 'NRU'}, {'CountryCode': 'NZL'}, {'CountryCode': 'OMN'}, {'CountryCode': 'PAK'}, {'CountryCode': 'PAN'}, {'CountryCode': 'PCN'}, {'CountryCode': 'PER'}, {'CountryCode': 'PHL'}, {'CountryCode': 'PLW'}, {'CountryCode': 'PNG'}, {'CountryCode': 'POL'}, {'CountryCode': 'PRI'}, {'CountryCode': 'PRK'}, {'CountryCode': 'PRT'}, {'CountryCode': 'PRY'}, {'CountryCode': 'PSE'}, {'CountryCode': 'PYF'}, {'CountryCode': 'QAT'}, {'CountryCode': 'REU'}, {'CountryCode': 'ROM'}, {'CountryCode': 'RUS'}, {'CountryCode': 'RWA'}, {'CountryCode': 'SAU'}, {'CountryCode': 'SDN'}, {'CountryCode': 'SEN'}, {'CountryCode': 'SGP'}, {'CountryCode': 'SJM'}, {'CountryCode': 'SLB'}, {'CountryCode': 'SLE'}, {'CountryCode': 'SLV'}, {'CountryCode': 'SMR'}, {'CountryCode': 'SOM'}, {'CountryCode': 'SPM'}, {'CountryCode': 'STP'}, {'CountryCode': 'SUR'}, {'CountryCode': 'SVK'}, {'CountryCode': 'SVN'}, {'CountryCode': 'SWE'}, {'CountryCode': 'SWZ'}, {'CountryCode': 'SYC'}, {'CountryCode': 'SYR'}, {'CountryCode': 'TCD'}, {'CountryCode': 'TGO'}, {'CountryCode': 'THA'}, {'CountryCode': 'TJK'}, {'CountryCode': 'TKL'}, {'CountryCode': 'TKM'}, {'CountryCode': 'TMP'}, {'CountryCode': 'TON'}, {'CountryCode': 'TTO'}, {'CountryCode': 'TUN'}, {'CountryCode': 'TUR'}, {'CountryCode': 'TUV'}, {'CountryCode': 'TWN'}, {'CountryCode': 'TZA'}, {'CountryCode': 'UGA'}, {'CountryCode': 'UKR'}, {'CountryCode': 'URY'}, {'CountryCode': 'USA'}, {'CountryCode': 'UZB'}, {'CountryCode': 'VAT'}, {'CountryCode': 'VCT'}, {'CountryCode': 'VEN'}, {'CountryCode': 'VIR'}, {'CountryCode': 'VNM'}, {'CountryCode': 'VUT'}, {'CountryCode': 'WLF'}, {'CountryCode': 'WSM'}, {'CountryCode': 'YEM'}, {'CountryCode': 'YUG'}, {'CountryCode': 'ZAF'}, {'CountryCode': 'ZMB'}, {'CountryCode': 'ZWE'}] | Easy | true | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the name, independence year, and surface area of the country with the smallest population? | SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1 | [{'Name': 'Antarctica', 'SurfaceArea': 13120000.0, 'IndepYear': None}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Give the name, year of independence, and surface area of the country that has the lowest population. | SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1 | [{'Name': 'Antarctica', 'SurfaceArea': 13120000.0, 'IndepYear': None}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the population, name and leader of the country with the largest area? | SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1 | [{'Name': 'Russian Federation', 'Population': 146934000, 'HeadOfState': 'Vladimir Putin'}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Give the name, population, and head of state for the country that has the largest area. | SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1 | [{'Name': 'Russian Federation', 'Population': 146934000, 'HeadOfState': 'Vladimir Putin'}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Find the number of cities in each district whose population is greater than the average population of cities? | SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District | [{'count(*)': 1, 'District': 'Abidjan'}, {'count(*)': 1, 'District': 'Abu Dhabi'}, {'count(*)': 1, 'District': 'Adana'}, {'count(*)': 1, 'District': 'Addis Abeba'}, {'count(*)': 1, 'District': 'Aden'}, {'count(*)': 1, 'District': 'Aguascalientes'}, {'count(*)': 1, 'District': 'Ahal'}, {'count(*)': 2, 'District': 'Aichi'}, {'count(*)': 1, 'District': 'Alagoas'}, {'count(*)': 2, 'District': 'Alberta'}, {'count(*)': 1, 'District': 'Aleksandria'}, {'count(*)': 1, 'District': 'Aleppo'}, {'count(*)': 1, 'District': 'Alger'}, {'count(*)': 1, 'District': 'Almaty Qalasy'}, {'count(*)': 1, 'District': 'Altai'}, {'count(*)': 1, 'District': 'Amazonas'}, {'count(*)': 1, 'District': 'Amman'}, {'count(*)': 1, 'District': 'Anambra & Enugu & Eb'}, {'count(*)': 2, 'District': 'Andalusia'}, {'count(*)': 5, 'District': 'Andhra Pradesh'}, {'count(*)': 5, 'District': 'Anhui'}, {'count(*)': 1, 'District': 'Ankara'}, {'count(*)': 1, 'District': 'Antalya'}, {'count(*)': 1, 'District': 'Antananarivo'}, {'count(*)': 1, 'District': 'Antioquia'}, {'count(*)': 1, 'District': 'Antwerpen'}, {'count(*)': 1, 'District': 'Aragonia'}, {'count(*)': 1, 'District': 'Aragua'}, {'count(*)': 1, 'District': 'Arequipa'}, {'count(*)': 3, 'District': 'Arizona'}, {'count(*)': 1, 'District': 'Arkangeli'}, {'count(*)': 1, 'District': 'Ashanti'}, {'count(*)': 1, 'District': 'Assam'}, {'count(*)': 1, 'District': 'Astrahan'}, {'count(*)': 1, 'District': 'Asunción'}, {'count(*)': 1, 'District': 'Atlantique'}, {'count(*)': 1, 'District': 'Atlántico'}, {'count(*)': 1, 'District': 'Attika'}, {'count(*)': 1, 'District': 'Auckland'}, {'count(*)': 1, 'District': 'Baden-Württemberg'}, {'count(*)': 1, 'District': 'Baghdad'}, {'count(*)': 2, 'District': 'Bahia'}, {'count(*)': 2, 'District': 'Baijeri'}, {'count(*)': 3, 'District': 'Baja California'}, {'count(*)': 1, 'District': 'Baki'}, {'count(*)': 1, 'District': 'Bali'}, {'count(*)': 1, 'District': 'Baluchistan'}, {'count(*)': 1, 'District': 'Bamako'}, {'count(*)': 1, 'District': 'Banaadir'}, {'count(*)': 1, 'District': 'Bangkok'}, {'count(*)': 1, 'District': 'Bangui'}, {'count(*)': 1, 'District': 'Baskimaa'}, {'count(*)': 1, 'District': 'Basra'}, {'count(*)': 1, 'District': 'Baškortostan'}, {'count(*)': 1, 'District': 'Beirut'}, {'count(*)': 1, 'District': 'Bengasi'}, {'count(*)': 1, 'District': 'Berliini'}, {'count(*)': 1, 'District': 'Bihar'}, {'count(*)': 1, 'District': 'Bishkek shaary'}, {'count(*)': 1, 'District': 'Blantyre'}, {'count(*)': 2, 'District': 'Bolívar'}, {'count(*)': 1, 'District': 'Bratislava'}, {'count(*)': 1, 'District': 'Brazzaville'}, {'count(*)': 1, 'District': 'Bremen'}, {'count(*)': 1, 'District': 'British Colombia'}, {'count(*)': 1, 'District': 'Brjansk'}, {'count(*)': 1, 'District': 'Budapest'}, {'count(*)': 12, 'District': 'Buenos Aires'}, {'count(*)': 1, 'District': 'Bukarest'}, {'count(*)': 1, 'District': 'Bulawayo'}, {'count(*)': 1, 'District': 'Burjatia'}, {'count(*)': 1, 'District': 'Bursa'}, {'count(*)': 8, 'District': 'California'}, {'count(*)': 1, 'District': 'Callao'}, {'count(*)': 1, 'District': 'Campania'}, {'count(*)': 1, 'District': 'Canary Islands'}, {'count(*)': 2, 'District': 'Cap-Vert'}, {'count(*)': 1, 'District': 'Carabobo'}, {'count(*)': 1, 'District': 'Casablanca'}, {'count(*)': 1, 'District': 'Ceará'}, {'count(*)': 2, 'District': 'Central'}, {'count(*)': 2, 'District': 'Central Java'}, {'count(*)': 1, 'District': 'Central Macedonia'}, {'count(*)': 1, 'District': 'Central Serbia'}, {'count(*)': 1, 'District': 'Central Visayas'}, {'count(*)': 1, 'District': 'Centre'}, {'count(*)': 1, 'District': 'Chandigarh'}, {'count(*)': 1, 'District': 'Chari-Baguirmi'}, {'count(*)': 2, 'District': 'Chhatisgarh'}, {'count(*)': 1, 'District': 'Chiapas'}, {'count(*)': 4, 'District': 'Chiba'}, {'count(*)': 2, 'District': 'Chihuahua'}, {'count(*)': 1, 'District': 'Chisinau'}, {'count(*)': 1, 'District': 'Chittagong'}, {'count(*)': 1, 'District': 'Chollabuk'}, {'count(*)': 1, 'District': 'Chongqing'}, {'count(*)': 1, 'District': 'Chungchongbuk'}, {'count(*)': 2, 'District': 'Coahuila de Zaragoza'}, {'count(*)': 1, 'District': 'Coast'}, {'count(*)': 1, 'District': 'Cochabamba'}, {'count(*)': 2, 'District': 'Colorado'}, {'count(*)': 1, 'District': 'Conakry'}, {'count(*)': 1, 'District': 'Constantine'}, {'count(*)': 1, 'District': 'Cortés'}, {'count(*)': 1, 'District': 'Córdoba'}, {'count(*)': 1, 'District': 'Damascus'}, {'count(*)': 1, 'District': 'Dar es Salaam'}, {'count(*)': 1, 'District': 'Delhi'}, {'count(*)': 1, 'District': 'Dhaka'}, {'count(*)': 1, 'District': 'District of Columbia'}, {'count(*)': 1, 'District': 'Distrito Central'}, {'count(*)': 4, 'District': 'Distrito Federal'}, {'count(*)': 1, 'District': 'Distrito Nacional'}, {'count(*)': 1, 'District': 'Diyarbakir'}, {'count(*)': 1, 'District': 'Djibouti'}, {'count(*)': 2, 'District': 'Dnipropetrovsk'}, {'count(*)': 1, 'District': 'Doha'}, {'count(*)': 1, 'District': 'Dolnoslaskie'}, {'count(*)': 3, 'District': 'Donetsk'}, {'count(*)': 1, 'District': 'Dubai'}, {'count(*)': 1, 'District': 'Durango'}, {'count(*)': 1, 'District': 'East Azerbaidzan'}, {'count(*)': 2, 'District': 'East Java'}, {'count(*)': 1, 'District': 'East Kasai'}, {'count(*)': 1, 'District': 'Eastern Cape'}, {'count(*)': 1, 'District': 'Ehime'}, {'count(*)': 1, 'District': 'Emilia-Romagna'}, {'count(*)': 7, 'District': 'England'}, {'count(*)': 1, 'District': 'Esfahan'}, {'count(*)': 1, 'District': 'Eskisehir'}, {'count(*)': 1, 'District': 'Estuaire'}, {'count(*)': 1, 'District': 'Fars'}, {'count(*)': 1, 'District': 'Federaatio'}, {'count(*)': 2, 'District': 'Florida'}, {'count(*)': 2, 'District': 'Fujian'}, {'count(*)': 2, 'District': 'Fukuoka'}, {'count(*)': 1, 'District': 'Fukushima'}, {'count(*)': 1, 'District': 'Fès-Boulemane'}, {'count(*)': 1, 'District': 'Gansu'}, {'count(*)': 7, 'District': 'Gauteng'}, {'count(*)': 1, 'District': 'Gaza'}, {'count(*)': 1, 'District': 'Gaziantep'}, {'count(*)': 1, 'District': 'Georgia'}, {'count(*)': 1, 'District': 'Gifu'}, {'count(*)': 1, 'District': 'Gilan'}, {'count(*)': 1, 'District': 'Giza'}, {'count(*)': 1, 'District': 'Goiás'}, {'count(*)': 1, 'District': 'Gomel'}, {'count(*)': 1, 'District': 'Grad Sofija'}, {'count(*)': 1, 'District': 'Grad Zagreb'}, {'count(*)': 1, 'District': 'Greater Accra'}, {'count(*)': 3, 'District': 'Guanajuato'}, {'count(*)': 4, 'District': 'Guangdong'}, {'count(*)': 3, 'District': 'Guangxi'}, {'count(*)': 1, 'District': 'Guatemala'}, {'count(*)': 1, 'District': 'Guayas'}, {'count(*)': 1, 'District': 'Guerrero'}, {'count(*)': 2, 'District': 'Guizhou'}, {'count(*)': 5, 'District': 'Gujarat'}, {'count(*)': 1, 'District': 'Habarovsk'}, {'count(*)': 1, 'District': 'Hainan'}, {'count(*)': 1, 'District': 'Haiphong'}, {'count(*)': 1, 'District': 'Hamadan'}, {'count(*)': 1, 'District': 'Hamburg'}, {'count(*)': 1, 'District': 'Hamgyong N'}, {'count(*)': 1, 'District': 'Hamgyong P'}, {'count(*)': 1, 'District': 'Hanoi'}, {'count(*)': 1, 'District': 'Harare'}, {'count(*)': 1, 'District': 'Harjumaa'}, {'count(*)': 1, 'District': 'Harkova'}, {'count(*)': 1, 'District': 'Haryana'}, {'count(*)': 1, 'District': 'Haute-Zaïre'}, {'count(*)': 1, 'District': 'Hawaii'}, {'count(*)': 6, 'District': 'Hebei'}, {'count(*)': 9, 'District': 'Heilongjiang'}, {'count(*)': 7, 'District': 'Henan'}, {'count(*)': 1, 'District': 'Herson'}, {'count(*)': 1, 'District': 'Hessen'}, {'count(*)': 1, 'District': 'Hims'}, {'count(*)': 2, 'District': 'Hiroshima'}, {'count(*)': 1, 'District': 'Hlavní mesto Praha'}, {'count(*)': 1, 'District': 'Ho Chi Minh City'}, {'count(*)': 2, 'District': 'Hokkaido'}, {'count(*)': 1, 'District': 'Hongkong'}, {'count(*)': 1, 'District': 'Horad Minsk'}, {'count(*)': 1, 'District': 'Hsinchu'}, {'count(*)': 4, 'District': 'Hubei'}, {'count(*)': 4, 'District': 'Hunan'}, {'count(*)': 4, 'District': 'Hyogo'}, {'count(*)': 1, 'District': 'Illinois'}, {'count(*)': 1, 'District': 'Inchon'}, {'count(*)': 1, 'District': 'Indiana'}, {'count(*)': 3, 'District': 'Inner Mongolia'}, {'count(*)': 1, 'District': 'Irbil'}, {'count(*)': 1, 'District': 'Irkutsk'}, {'count(*)': 1, 'District': 'Ishikawa'}, {'count(*)': 1, 'District': 'Islamabad'}, {'count(*)': 1, 'District': 'Istanbul'}, {'count(*)': 1, 'District': 'Ivanovo'}, {'count(*)': 1, 'District': 'Izmir'}, {'count(*)': 1, 'District': 'Içel'}, {'count(*)': 1, 'District': 'Jakarta Raya'}, {'count(*)': 3, 'District': 'Jalisco'}, {'count(*)': 1, 'District': 'Jambi'}, {'count(*)': 1, 'District': 'Jammu and Kashmir'}, {'count(*)': 1, 'District': 'Jaroslavl'}, {'count(*)': 1, 'District': 'Jerusalem'}, {'count(*)': 2, 'District': 'Jharkhand'}, {'count(*)': 7, 'District': 'Jiangsu'}, {'count(*)': 2, 'District': 'Jiangxi'}, {'count(*)': 4, 'District': 'Jilin'}, {'count(*)': 1, 'District': 'Jizní Morava'}, {'count(*)': 1, 'District': 'Kabol'}, {'count(*)': 1, 'District': 'Kadiogo'}, {'count(*)': 1, 'District': 'Kaduna'}, {'count(*)': 1, 'District': 'Kagoshima'}, {'count(*)': 1, 'District': 'Kairo'}, {'count(*)': 1, 'District': 'Kalimantan Barat'}, {'count(*)': 1, 'District': 'Kalimantan Selatan'}, {'count(*)': 1, 'District': 'Kalimantan Timur'}, {'count(*)': 1, 'District': 'Kaliningrad'}, {'count(*)': 5, 'District': 'Kanagawa'}, {'count(*)': 1, 'District': 'Kano & Jigawa'}, {'count(*)': 1, 'District': 'Kaohsiung'}, {'count(*)': 3, 'District': 'Karnataka'}, {'count(*)': 1, 'District': 'Karotegin'}, {'count(*)': 1, 'District': 'Katalonia'}, {'count(*)': 1, 'District': 'Kaunas'}, {'count(*)': 1, 'District': 'Kayseri'}, {'count(*)': 1, 'District': 'Keelung'}, {'count(*)': 2, 'District': 'Kemerovo'}, {'count(*)': 3, 'District': 'Kerala'}, {'count(*)': 1, 'District': 'Kerman'}, {'count(*)': 1, 'District': 'Kermanshah'}, {'count(*)': 3, 'District': 'Khartum'}, {'count(*)': 1, 'District': 'Khorasan'}, {'count(*)': 1, 'District': 'Khulna'}, {'count(*)': 1, 'District': 'Khuzestan'}, {'count(*)': 1, 'District': 'Kinshasa'}, {'count(*)': 1, 'District': 'Kiova'}, {'count(*)': 1, 'District': 'Kirov'}, {'count(*)': 1, 'District': 'Konya'}, {'count(*)': 1, 'District': 'Kouilou'}, {'count(*)': 1, 'District': 'Kowloon and New Kowl'}, {'count(*)': 2, 'District': 'Krasnodar'}, {'count(*)': 1, 'District': 'Krasnojarsk'}, {'count(*)': 1, 'District': 'Kujawsko-Pomorskie'}, {'count(*)': 1, 'District': 'Kumamoto'}, {'count(*)': 1, 'District': 'Kurgan'}, {'count(*)': 1, 'District': 'Kursk'}, {'count(*)': 4, 'District': 'KwaZulu-Natal'}, {'count(*)': 1, 'District': 'Kwangju'}, {'count(*)': 1, 'District': 'Kwara & Kogi'}, {'count(*)': 7, 'District': 'Kyonggi'}, {'count(*)': 1, 'District': 'Kyongsangbuk'}, {'count(*)': 3, 'District': 'Kyongsangnam'}, {'count(*)': 1, 'District': 'Kyoto'}, {'count(*)': 1, 'District': 'København'}, {'count(*)': 1, 'District': 'La Habana'}, {'count(*)': 1, 'District': 'La Libertad'}, {'count(*)': 2, 'District': 'La Paz'}, {'count(*)': 1, 'District': 'Lagos'}, {'count(*)': 1, 'District': 'Lambayeque'}, {'count(*)': 1, 'District': 'Lampung'}, {'count(*)': 1, 'District': 'Lara'}, {'count(*)': 1, 'District': 'Latium'}, {'count(*)': 1, 'District': 'Leinster'}, {'count(*)': 12, 'District': 'Liaoning'}, {'count(*)': 1, 'District': 'Liguria'}, {'count(*)': 1, 'District': 'Lilongwe'}, {'count(*)': 1, 'District': 'Lima'}, {'count(*)': 1, 'District': 'Lipetsk'}, {'count(*)': 2, 'District': 'Lisboa'}, {'count(*)': 1, 'District': 'Littoral'}, {'count(*)': 1, 'District': 'Lodzkie'}, {'count(*)': 1, 'District': 'Lombardia'}, {'count(*)': 1, 'District': 'Loreto'}, {'count(*)': 1, 'District': 'Louisiana'}, {'count(*)': 1, 'District': 'Luanda'}, {'count(*)': 1, 'District': 'Lubelskie'}, {'count(*)': 1, 'District': 'Lugansk'}, {'count(*)': 1, 'District': 'Lusaka'}, {'count(*)': 1, 'District': 'Luxor'}, {'count(*)': 1, 'District': 'Lviv'}, {'count(*)': 1, 'District': 'Macau'}, {'count(*)': 5, 'District': 'Madhya Pradesh'}, {'count(*)': 1, 'District': 'Madrid'}, {'count(*)': 1, 'District': 'Maekel'}, {'count(*)': 1, 'District': 'Magdalena'}, {'count(*)': 13, 'District': 'Maharashtra'}, {'count(*)': 1, 'District': 'Malopolskie'}, {'count(*)': 1, 'District': 'Managua'}, {'count(*)': 1, 'District': 'Mandalay'}, {'count(*)': 1, 'District': 'Manitoba'}, {'count(*)': 2, 'District': 'Maputo'}, {'count(*)': 1, 'District': 'Maranhão'}, {'count(*)': 1, 'District': 'Maritime'}, {'count(*)': 1, 'District': 'Markazi'}, {'count(*)': 1, 'District': 'Marrakech-Tensift-Al'}, {'count(*)': 1, 'District': 'Maryland'}, {'count(*)': 1, 'District': 'Massachusetts'}, {'count(*)': 1, 'District': 'Mato Grosso'}, {'count(*)': 1, 'District': 'Mato Grosso do Sul'}, {'count(*)': 1, 'District': 'Mazowieckie'}, {'count(*)': 1, 'District': 'Medina'}, {'count(*)': 3, 'District': 'Mekka'}, {'count(*)': 1, 'District': 'Meknès-Tafilalet'}, {'count(*)': 1, 'District': 'Michigan'}, {'count(*)': 1, 'District': 'Michoacán de Ocampo'}, {'count(*)': 1, 'District': 'Midi-Pyrénées'}, {'count(*)': 4, 'District': 'Minas Gerais'}, {'count(*)': 1, 'District': 'Minnesota'}, {'count(*)': 1, 'District': 'Miranda'}, {'count(*)': 1, 'District': 'Missouri'}, {'count(*)': 1, 'District': 'Miyagi'}, {'count(*)': 1, 'District': 'Mogiljov'}, {'count(*)': 1, 'District': 'Montevideo'}, {'count(*)': 1, 'District': 'Montserrado'}, {'count(*)': 1, 'District': 'Moscow (City)'}, {'count(*)': 1, 'District': 'Murcia'}, {'count(*)': 1, 'District': 'Murmansk'}, {'count(*)': 1, 'District': 'Mykolajiv'}, {'count(*)': 9, 'District': 'México'}, {'count(*)': 1, 'District': 'Nagano'}, {'count(*)': 1, 'District': 'Nagasaki'}, {'count(*)': 1, 'District': 'Nairobi'}, {'count(*)': 1, 'District': 'Namangan'}, {'count(*)': 1, 'District': 'Nampo-si'}, {'count(*)': 1, 'District': 'Nara'}, {'count(*)': 12, 'District': 'National Capital Reg'}, {'count(*)': 1, 'District': 'Nebraska'}, {'count(*)': 1, 'District': 'Nevada'}, {'count(*)': 1, 'District': 'New Mexico'}, {'count(*)': 1, 'District': 'New South Wales'}, {'count(*)': 1, 'District': 'New York'}, {'count(*)': 1, 'District': 'Newmaa'}, {'count(*)': 1, 'District': 'Niamey'}, {'count(*)': 1, 'District': 'Niedersachsen'}, {'count(*)': 1, 'District': 'Niigata'}, {'count(*)': 1, 'District': 'Ninawa'}, {'count(*)': 1, 'District': 'Ningxia'}, {'count(*)': 1, 'District': 'Nizni Novgorod'}, {'count(*)': 1, 'District': 'Noord-Holland'}, {'count(*)': 7, 'District': 'Nordrhein-Westfalen'}, {'count(*)': 1, 'District': 'Norte de Santander'}, {'count(*)': 1, 'District': 'North Carolina'}, {'count(*)': 1, 'District': 'Northern Mindanao'}, {'count(*)': 1, 'District': 'Nothwest Border Prov'}, {'count(*)': 1, 'District': 'Nouakchott'}, {'count(*)': 1, 'District': 'Novosibirsk'}, {'count(*)': 3, 'District': 'Nuevo León'}, {'count(*)': 1, 'District': 'Odesa'}, {'count(*)': 1, 'District': 'Ogun'}, {'count(*)': 2, 'District': 'Ohio'}, {'count(*)': 1, 'District': 'Oita'}, {'count(*)': 2, 'District': 'Okayama'}, {'count(*)': 2, 'District': 'Oklahoma'}, {'count(*)': 1, 'District': 'Omsk'}, {'count(*)': 1, 'District': 'Ondo & Ekiti'}, {'count(*)': 4, 'District': 'Ontario'}, {'count(*)': 1, 'District': 'Oran'}, {'count(*)': 1, 'District': 'Oregon'}, {'count(*)': 1, 'District': 'Orenburg'}, {'count(*)': 1, 'District': 'Oriental'}, {'count(*)': 2, 'District': 'Orissa'}, {'count(*)': 6, 'District': 'Osaka'}, {'count(*)': 1, 'District': 'Oslo'}, {'count(*)': 1, 'District': 'Ouest'}, {'count(*)': 5, 'District': 'Oyo & Osun'}, {'count(*)': 1, 'District': 'Panamá'}, {'count(*)': 2, 'District': 'Paraná'}, {'count(*)': 2, 'District': 'Paraíba'}, {'count(*)': 2, 'District': 'Pará'}, {'count(*)': 1, 'District': 'Peking'}, {'count(*)': 1, 'District': 'Pennsylvania'}, {'count(*)': 1, 'District': 'Penza'}, {'count(*)': 1, 'District': 'Perak'}, {'count(*)': 1, 'District': 'Perm'}, {'count(*)': 3, 'District': 'Pernambuco'}, {'count(*)': 1, 'District': 'Phnom Penh'}, {'count(*)': 1, 'District': 'Piauí'}, {'count(*)': 1, 'District': 'Pichincha'}, {'count(*)': 1, 'District': 'Piemonte'}, {'count(*)': 1, 'District': 'Pietari'}, {'count(*)': 1, 'District': 'Pomorskie'}, {'count(*)': 1, 'District': 'Port Said'}, {'count(*)': 1, 'District': 'Primorje'}, {'count(*)': 1, 'District': 'Provence-Alpes-Côte'}, {'count(*)': 1, 'District': 'Puebla'}, {'count(*)': 11, 'District': 'Punjab'}, {'count(*)': 1, 'District': 'Pusan'}, {'count(*)': 1, 'District': 'Pyongyang-si'}, {'count(*)': 1, 'District': 'Qaraghandy'}, {'count(*)': 1, 'District': 'Qinghai'}, {'count(*)': 1, 'District': 'Qom'}, {'count(*)': 1, 'District': 'Quang Nam-Da Nang'}, {'count(*)': 1, 'District': 'Queensland'}, {'count(*)': 1, 'District': 'Querétaro de Arteaga'}, {'count(*)': 1, 'District': 'Quintana Roo'}, {'count(*)': 1, 'District': 'Québec'}, {'count(*)': 2, 'District': 'Rabat-Salé-Zammour-Z'}, {'count(*)': 5, 'District': 'Rajasthan'}, {'count(*)': 1, 'District': 'Rangoon [Yangon]'}, {'count(*)': 1, 'District': 'Rhône-Alpes'}, {'count(*)': 1, 'District': 'Riau'}, {'count(*)': 1, 'District': 'Riika'}, {'count(*)': 1, 'District': 'Rio Grande do Norte'}, {'count(*)': 1, 'District': 'Rio Grande do Sul'}, {'count(*)': 8, 'District': 'Rio de Janeiro'}, {'count(*)': 1, 'District': 'Risaralda'}, {'count(*)': 1, 'District': 'Rivers & Bayelsa'}, {'count(*)': 1, 'District': 'Riyadh'}, {'count(*)': 1, 'District': 'Rjazan'}, {'count(*)': 1, 'District': 'Rostov-na-Donu'}, {'count(*)': 3, 'District': 'Saitama'}, {'count(*)': 2, 'District': 'Saksi'}, {'count(*)': 1, 'District': 'Salta'}, {'count(*)': 2, 'District': 'Samara'}, {'count(*)': 1, 'District': 'Samarkand'}, {'count(*)': 1, 'District': 'San Juan'}, {'count(*)': 1, 'District': 'San Luis Potosí'}, {'count(*)': 1, 'District': 'San Salvador'}, {'count(*)': 1, 'District': 'Sanaa'}, {'count(*)': 1, 'District': 'Sanliurfa'}, {'count(*)': 1, 'District': 'Santa Catarina'}, {'count(*)': 1, 'District': 'Santa Cruz'}, {'count(*)': 2, 'District': 'Santa Fé'}, {'count(*)': 1, 'District': 'Santafé de Bogotá'}, {'count(*)': 1, 'District': 'Santander'}, {'count(*)': 3, 'District': 'Santiago'}, {'count(*)': 1, 'District': 'Santiago de Cuba'}, {'count(*)': 1, 'District': 'Saratov'}, {'count(*)': 2, 'District': 'Scotland'}, {'count(*)': 1, 'District': 'Seoul'}, {'count(*)': 1, 'District': 'Sergipe'}, {'count(*)': 2, 'District': 'Shaanxi'}, {'count(*)': 2, 'District': 'Shaba'}, {'count(*)': 7, 'District': 'Shandong'}, {'count(*)': 1, 'District': 'Shanghai'}, {'count(*)': 3, 'District': 'Shanxi'}, {'count(*)': 2, 'District': 'Shizuoka'}, {'count(*)': 3, 'District': 'Sichuan'}, {'count(*)': 3, 'District': 'Sinaloa'}, {'count(*)': 2, 'District': 'Sindh'}, {'count(*)': 1, 'District': 'Sisilia'}, {'count(*)': 1, 'District': 'Sistan va Baluchesta'}, {'count(*)': 1, 'District': 'Skopje'}, {'count(*)': 1, 'District': 'Smolensk'}, {'count(*)': 1, 'District': 'Sofala'}, {'count(*)': 2, 'District': 'Sonora'}, {'count(*)': 1, 'District': 'South Australia'}, {'count(*)': 1, 'District': 'South Kazakstan'}, {'count(*)': 2, 'District': 'Southern Mindanao'}, {'count(*)': 2, 'District': 'Southern Tagalog'}, {'count(*)': 1, 'District': 'Suez'}, {'count(*)': 1, 'District': 'Sulawesi Selatan'}, {'count(*)': 1, 'District': 'Sumatera Barat'}, {'count(*)': 1, 'District': 'Sumatera Selatan'}, {'count(*)': 1, 'District': 'Sumatera Utara'}, {'count(*)': 2, 'District': 'Sverdlovsk'}, {'count(*)': 13, 'District': 'São Paulo'}, {'count(*)': 1, 'District': 'Tabasco'}, {'count(*)': 1, 'District': 'Taegu'}, {'count(*)': 1, 'District': 'Taejon'}, {'count(*)': 1, 'District': 'Taichung'}, {'count(*)': 1, 'District': 'Tainan'}, {'count(*)': 5, 'District': 'Taipei'}, {'count(*)': 2, 'District': 'Tamaulipas'}, {'count(*)': 5, 'District': 'Tamil Nadu'}, {'count(*)': 1, 'District': 'Tanger-Tétouan'}, {'count(*)': 2, 'District': 'Tatarstan'}, {'count(*)': 1, 'District': 'Tbilisi'}, {'count(*)': 2, 'District': 'Teheran'}, {'count(*)': 2, 'District': 'Tennessee'}, {'count(*)': 6, 'District': 'Texas'}, {'count(*)': 1, 'District': 'Tianjin'}, {'count(*)': 1, 'District': 'Tjumen'}, {'count(*)': 1, 'District': 'Tochigi'}, {'count(*)': 3, 'District': 'Tokyo-to'}, {'count(*)': 1, 'District': 'Tolima'}, {'count(*)': 1, 'District': 'Tomsk'}, {'count(*)': 1, 'District': 'Toscana'}, {'count(*)': 1, 'District': 'Toskent Shahri'}, {'count(*)': 1, 'District': 'Tripoli'}, {'count(*)': 1, 'District': 'Tucumán'}, {'count(*)': 1, 'District': 'Tula'}, {'count(*)': 1, 'District': 'Tunis'}, {'count(*)': 1, 'District': 'Tver'}, {'count(*)': 2, 'District': 'Tšeljabinsk'}, {'count(*)': 1, 'District': 'Tšuvassia'}, {'count(*)': 1, 'District': 'Udmurtia'}, {'count(*)': 1, 'District': 'Ulaanbaatar'}, {'count(*)': 1, 'District': 'Uljanovsk'}, {'count(*)': 12, 'District': 'Uttar Pradesh'}, {'count(*)': 1, 'District': 'Valencia'}, {'count(*)': 1, 'District': 'Valle'}, {'count(*)': 2, 'District': 'Veracruz'}, {'count(*)': 1, 'District': 'Viangchan'}, {'count(*)': 1, 'District': 'Victoria'}, {'count(*)': 1, 'District': 'Vilna'}, {'count(*)': 1, 'District': 'Vinnytsja'}, {'count(*)': 1, 'District': 'Virginia'}, {'count(*)': 1, 'District': 'Volgograd'}, {'count(*)': 1, 'District': 'Voronez'}, {'count(*)': 1, 'District': 'Wakayama'}, {'count(*)': 1, 'District': 'Washington'}, {'count(*)': 1, 'District': 'West Australia'}, {'count(*)': 1, 'District': 'West Azerbaidzan'}, {'count(*)': 3, 'District': 'West Bengali'}, {'count(*)': 1, 'District': 'West Götanmaan län'}, {'count(*)': 4, 'District': 'West Java'}, {'count(*)': 1, 'District': 'West Kasai'}, {'count(*)': 2, 'District': 'Western'}, {'count(*)': 1, 'District': 'Western Cape'}, {'count(*)': 1, 'District': 'Western Mindanao'}, {'count(*)': 2, 'District': 'Western Visayas'}, {'count(*)': 1, 'District': 'Wielkopolskie'}, {'count(*)': 1, 'District': 'Wien'}, {'count(*)': 1, 'District': 'Wilayah Persekutuan'}, {'count(*)': 1, 'District': 'Wisconsin'}, {'count(*)': 1, 'District': 'Xinxiang'}, {'count(*)': 1, 'District': 'Yerevan'}, {'count(*)': 1, 'District': 'Yogyakarta'}, {'count(*)': 1, 'District': 'Yucatán'}, {'count(*)': 1, 'District': 'Yunnan'}, {'count(*)': 1, 'District': 'Zachodnio-Pomorskie'}, {'count(*)': 1, 'District': 'Zaporizzja'}, {'count(*)': 3, 'District': 'Zhejiang'}, {'count(*)': 2, 'District': 'Zuid-Holland'}, {'count(*)': 1, 'District': 'Zulia'}, {'count(*)': 1, 'District': 'al-Daqahliya'}, {'count(*)': 2, 'District': 'al-Gharbiya'}, {'count(*)': 1, 'District': 'al-Qalyubiya'}, {'count(*)': 1, 'District': 'al-Sharqiya'}, {'count(*)': 1, 'District': 'al-Sulaymaniya'}, {'count(*)': 1, 'District': 'al-Tamim'}, {'count(*)': 1, 'District': 'al-Zarqa'}, {'count(*)': 1, 'District': 'Île-de-France'}, {'count(*)': 1, 'District': '–'}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | How many cities in each district have a population that is above the average population across all cities? | SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District | [{'count(*)': 1, 'District': 'Abidjan'}, {'count(*)': 1, 'District': 'Abu Dhabi'}, {'count(*)': 1, 'District': 'Adana'}, {'count(*)': 1, 'District': 'Addis Abeba'}, {'count(*)': 1, 'District': 'Aden'}, {'count(*)': 1, 'District': 'Aguascalientes'}, {'count(*)': 1, 'District': 'Ahal'}, {'count(*)': 2, 'District': 'Aichi'}, {'count(*)': 1, 'District': 'Alagoas'}, {'count(*)': 2, 'District': 'Alberta'}, {'count(*)': 1, 'District': 'Aleksandria'}, {'count(*)': 1, 'District': 'Aleppo'}, {'count(*)': 1, 'District': 'Alger'}, {'count(*)': 1, 'District': 'Almaty Qalasy'}, {'count(*)': 1, 'District': 'Altai'}, {'count(*)': 1, 'District': 'Amazonas'}, {'count(*)': 1, 'District': 'Amman'}, {'count(*)': 1, 'District': 'Anambra & Enugu & Eb'}, {'count(*)': 2, 'District': 'Andalusia'}, {'count(*)': 5, 'District': 'Andhra Pradesh'}, {'count(*)': 5, 'District': 'Anhui'}, {'count(*)': 1, 'District': 'Ankara'}, {'count(*)': 1, 'District': 'Antalya'}, {'count(*)': 1, 'District': 'Antananarivo'}, {'count(*)': 1, 'District': 'Antioquia'}, {'count(*)': 1, 'District': 'Antwerpen'}, {'count(*)': 1, 'District': 'Aragonia'}, {'count(*)': 1, 'District': 'Aragua'}, {'count(*)': 1, 'District': 'Arequipa'}, {'count(*)': 3, 'District': 'Arizona'}, {'count(*)': 1, 'District': 'Arkangeli'}, {'count(*)': 1, 'District': 'Ashanti'}, {'count(*)': 1, 'District': 'Assam'}, {'count(*)': 1, 'District': 'Astrahan'}, {'count(*)': 1, 'District': 'Asunción'}, {'count(*)': 1, 'District': 'Atlantique'}, {'count(*)': 1, 'District': 'Atlántico'}, {'count(*)': 1, 'District': 'Attika'}, {'count(*)': 1, 'District': 'Auckland'}, {'count(*)': 1, 'District': 'Baden-Württemberg'}, {'count(*)': 1, 'District': 'Baghdad'}, {'count(*)': 2, 'District': 'Bahia'}, {'count(*)': 2, 'District': 'Baijeri'}, {'count(*)': 3, 'District': 'Baja California'}, {'count(*)': 1, 'District': 'Baki'}, {'count(*)': 1, 'District': 'Bali'}, {'count(*)': 1, 'District': 'Baluchistan'}, {'count(*)': 1, 'District': 'Bamako'}, {'count(*)': 1, 'District': 'Banaadir'}, {'count(*)': 1, 'District': 'Bangkok'}, {'count(*)': 1, 'District': 'Bangui'}, {'count(*)': 1, 'District': 'Baskimaa'}, {'count(*)': 1, 'District': 'Basra'}, {'count(*)': 1, 'District': 'Baškortostan'}, {'count(*)': 1, 'District': 'Beirut'}, {'count(*)': 1, 'District': 'Bengasi'}, {'count(*)': 1, 'District': 'Berliini'}, {'count(*)': 1, 'District': 'Bihar'}, {'count(*)': 1, 'District': 'Bishkek shaary'}, {'count(*)': 1, 'District': 'Blantyre'}, {'count(*)': 2, 'District': 'Bolívar'}, {'count(*)': 1, 'District': 'Bratislava'}, {'count(*)': 1, 'District': 'Brazzaville'}, {'count(*)': 1, 'District': 'Bremen'}, {'count(*)': 1, 'District': 'British Colombia'}, {'count(*)': 1, 'District': 'Brjansk'}, {'count(*)': 1, 'District': 'Budapest'}, {'count(*)': 12, 'District': 'Buenos Aires'}, {'count(*)': 1, 'District': 'Bukarest'}, {'count(*)': 1, 'District': 'Bulawayo'}, {'count(*)': 1, 'District': 'Burjatia'}, {'count(*)': 1, 'District': 'Bursa'}, {'count(*)': 8, 'District': 'California'}, {'count(*)': 1, 'District': 'Callao'}, {'count(*)': 1, 'District': 'Campania'}, {'count(*)': 1, 'District': 'Canary Islands'}, {'count(*)': 2, 'District': 'Cap-Vert'}, {'count(*)': 1, 'District': 'Carabobo'}, {'count(*)': 1, 'District': 'Casablanca'}, {'count(*)': 1, 'District': 'Ceará'}, {'count(*)': 2, 'District': 'Central'}, {'count(*)': 2, 'District': 'Central Java'}, {'count(*)': 1, 'District': 'Central Macedonia'}, {'count(*)': 1, 'District': 'Central Serbia'}, {'count(*)': 1, 'District': 'Central Visayas'}, {'count(*)': 1, 'District': 'Centre'}, {'count(*)': 1, 'District': 'Chandigarh'}, {'count(*)': 1, 'District': 'Chari-Baguirmi'}, {'count(*)': 2, 'District': 'Chhatisgarh'}, {'count(*)': 1, 'District': 'Chiapas'}, {'count(*)': 4, 'District': 'Chiba'}, {'count(*)': 2, 'District': 'Chihuahua'}, {'count(*)': 1, 'District': 'Chisinau'}, {'count(*)': 1, 'District': 'Chittagong'}, {'count(*)': 1, 'District': 'Chollabuk'}, {'count(*)': 1, 'District': 'Chongqing'}, {'count(*)': 1, 'District': 'Chungchongbuk'}, {'count(*)': 2, 'District': 'Coahuila de Zaragoza'}, {'count(*)': 1, 'District': 'Coast'}, {'count(*)': 1, 'District': 'Cochabamba'}, {'count(*)': 2, 'District': 'Colorado'}, {'count(*)': 1, 'District': 'Conakry'}, {'count(*)': 1, 'District': 'Constantine'}, {'count(*)': 1, 'District': 'Cortés'}, {'count(*)': 1, 'District': 'Córdoba'}, {'count(*)': 1, 'District': 'Damascus'}, {'count(*)': 1, 'District': 'Dar es Salaam'}, {'count(*)': 1, 'District': 'Delhi'}, {'count(*)': 1, 'District': 'Dhaka'}, {'count(*)': 1, 'District': 'District of Columbia'}, {'count(*)': 1, 'District': 'Distrito Central'}, {'count(*)': 4, 'District': 'Distrito Federal'}, {'count(*)': 1, 'District': 'Distrito Nacional'}, {'count(*)': 1, 'District': 'Diyarbakir'}, {'count(*)': 1, 'District': 'Djibouti'}, {'count(*)': 2, 'District': 'Dnipropetrovsk'}, {'count(*)': 1, 'District': 'Doha'}, {'count(*)': 1, 'District': 'Dolnoslaskie'}, {'count(*)': 3, 'District': 'Donetsk'}, {'count(*)': 1, 'District': 'Dubai'}, {'count(*)': 1, 'District': 'Durango'}, {'count(*)': 1, 'District': 'East Azerbaidzan'}, {'count(*)': 2, 'District': 'East Java'}, {'count(*)': 1, 'District': 'East Kasai'}, {'count(*)': 1, 'District': 'Eastern Cape'}, {'count(*)': 1, 'District': 'Ehime'}, {'count(*)': 1, 'District': 'Emilia-Romagna'}, {'count(*)': 7, 'District': 'England'}, {'count(*)': 1, 'District': 'Esfahan'}, {'count(*)': 1, 'District': 'Eskisehir'}, {'count(*)': 1, 'District': 'Estuaire'}, {'count(*)': 1, 'District': 'Fars'}, {'count(*)': 1, 'District': 'Federaatio'}, {'count(*)': 2, 'District': 'Florida'}, {'count(*)': 2, 'District': 'Fujian'}, {'count(*)': 2, 'District': 'Fukuoka'}, {'count(*)': 1, 'District': 'Fukushima'}, {'count(*)': 1, 'District': 'Fès-Boulemane'}, {'count(*)': 1, 'District': 'Gansu'}, {'count(*)': 7, 'District': 'Gauteng'}, {'count(*)': 1, 'District': 'Gaza'}, {'count(*)': 1, 'District': 'Gaziantep'}, {'count(*)': 1, 'District': 'Georgia'}, {'count(*)': 1, 'District': 'Gifu'}, {'count(*)': 1, 'District': 'Gilan'}, {'count(*)': 1, 'District': 'Giza'}, {'count(*)': 1, 'District': 'Goiás'}, {'count(*)': 1, 'District': 'Gomel'}, {'count(*)': 1, 'District': 'Grad Sofija'}, {'count(*)': 1, 'District': 'Grad Zagreb'}, {'count(*)': 1, 'District': 'Greater Accra'}, {'count(*)': 3, 'District': 'Guanajuato'}, {'count(*)': 4, 'District': 'Guangdong'}, {'count(*)': 3, 'District': 'Guangxi'}, {'count(*)': 1, 'District': 'Guatemala'}, {'count(*)': 1, 'District': 'Guayas'}, {'count(*)': 1, 'District': 'Guerrero'}, {'count(*)': 2, 'District': 'Guizhou'}, {'count(*)': 5, 'District': 'Gujarat'}, {'count(*)': 1, 'District': 'Habarovsk'}, {'count(*)': 1, 'District': 'Hainan'}, {'count(*)': 1, 'District': 'Haiphong'}, {'count(*)': 1, 'District': 'Hamadan'}, {'count(*)': 1, 'District': 'Hamburg'}, {'count(*)': 1, 'District': 'Hamgyong N'}, {'count(*)': 1, 'District': 'Hamgyong P'}, {'count(*)': 1, 'District': 'Hanoi'}, {'count(*)': 1, 'District': 'Harare'}, {'count(*)': 1, 'District': 'Harjumaa'}, {'count(*)': 1, 'District': 'Harkova'}, {'count(*)': 1, 'District': 'Haryana'}, {'count(*)': 1, 'District': 'Haute-Zaïre'}, {'count(*)': 1, 'District': 'Hawaii'}, {'count(*)': 6, 'District': 'Hebei'}, {'count(*)': 9, 'District': 'Heilongjiang'}, {'count(*)': 7, 'District': 'Henan'}, {'count(*)': 1, 'District': 'Herson'}, {'count(*)': 1, 'District': 'Hessen'}, {'count(*)': 1, 'District': 'Hims'}, {'count(*)': 2, 'District': 'Hiroshima'}, {'count(*)': 1, 'District': 'Hlavní mesto Praha'}, {'count(*)': 1, 'District': 'Ho Chi Minh City'}, {'count(*)': 2, 'District': 'Hokkaido'}, {'count(*)': 1, 'District': 'Hongkong'}, {'count(*)': 1, 'District': 'Horad Minsk'}, {'count(*)': 1, 'District': 'Hsinchu'}, {'count(*)': 4, 'District': 'Hubei'}, {'count(*)': 4, 'District': 'Hunan'}, {'count(*)': 4, 'District': 'Hyogo'}, {'count(*)': 1, 'District': 'Illinois'}, {'count(*)': 1, 'District': 'Inchon'}, {'count(*)': 1, 'District': 'Indiana'}, {'count(*)': 3, 'District': 'Inner Mongolia'}, {'count(*)': 1, 'District': 'Irbil'}, {'count(*)': 1, 'District': 'Irkutsk'}, {'count(*)': 1, 'District': 'Ishikawa'}, {'count(*)': 1, 'District': 'Islamabad'}, {'count(*)': 1, 'District': 'Istanbul'}, {'count(*)': 1, 'District': 'Ivanovo'}, {'count(*)': 1, 'District': 'Izmir'}, {'count(*)': 1, 'District': 'Içel'}, {'count(*)': 1, 'District': 'Jakarta Raya'}, {'count(*)': 3, 'District': 'Jalisco'}, {'count(*)': 1, 'District': 'Jambi'}, {'count(*)': 1, 'District': 'Jammu and Kashmir'}, {'count(*)': 1, 'District': 'Jaroslavl'}, {'count(*)': 1, 'District': 'Jerusalem'}, {'count(*)': 2, 'District': 'Jharkhand'}, {'count(*)': 7, 'District': 'Jiangsu'}, {'count(*)': 2, 'District': 'Jiangxi'}, {'count(*)': 4, 'District': 'Jilin'}, {'count(*)': 1, 'District': 'Jizní Morava'}, {'count(*)': 1, 'District': 'Kabol'}, {'count(*)': 1, 'District': 'Kadiogo'}, {'count(*)': 1, 'District': 'Kaduna'}, {'count(*)': 1, 'District': 'Kagoshima'}, {'count(*)': 1, 'District': 'Kairo'}, {'count(*)': 1, 'District': 'Kalimantan Barat'}, {'count(*)': 1, 'District': 'Kalimantan Selatan'}, {'count(*)': 1, 'District': 'Kalimantan Timur'}, {'count(*)': 1, 'District': 'Kaliningrad'}, {'count(*)': 5, 'District': 'Kanagawa'}, {'count(*)': 1, 'District': 'Kano & Jigawa'}, {'count(*)': 1, 'District': 'Kaohsiung'}, {'count(*)': 3, 'District': 'Karnataka'}, {'count(*)': 1, 'District': 'Karotegin'}, {'count(*)': 1, 'District': 'Katalonia'}, {'count(*)': 1, 'District': 'Kaunas'}, {'count(*)': 1, 'District': 'Kayseri'}, {'count(*)': 1, 'District': 'Keelung'}, {'count(*)': 2, 'District': 'Kemerovo'}, {'count(*)': 3, 'District': 'Kerala'}, {'count(*)': 1, 'District': 'Kerman'}, {'count(*)': 1, 'District': 'Kermanshah'}, {'count(*)': 3, 'District': 'Khartum'}, {'count(*)': 1, 'District': 'Khorasan'}, {'count(*)': 1, 'District': 'Khulna'}, {'count(*)': 1, 'District': 'Khuzestan'}, {'count(*)': 1, 'District': 'Kinshasa'}, {'count(*)': 1, 'District': 'Kiova'}, {'count(*)': 1, 'District': 'Kirov'}, {'count(*)': 1, 'District': 'Konya'}, {'count(*)': 1, 'District': 'Kouilou'}, {'count(*)': 1, 'District': 'Kowloon and New Kowl'}, {'count(*)': 2, 'District': 'Krasnodar'}, {'count(*)': 1, 'District': 'Krasnojarsk'}, {'count(*)': 1, 'District': 'Kujawsko-Pomorskie'}, {'count(*)': 1, 'District': 'Kumamoto'}, {'count(*)': 1, 'District': 'Kurgan'}, {'count(*)': 1, 'District': 'Kursk'}, {'count(*)': 4, 'District': 'KwaZulu-Natal'}, {'count(*)': 1, 'District': 'Kwangju'}, {'count(*)': 1, 'District': 'Kwara & Kogi'}, {'count(*)': 7, 'District': 'Kyonggi'}, {'count(*)': 1, 'District': 'Kyongsangbuk'}, {'count(*)': 3, 'District': 'Kyongsangnam'}, {'count(*)': 1, 'District': 'Kyoto'}, {'count(*)': 1, 'District': 'København'}, {'count(*)': 1, 'District': 'La Habana'}, {'count(*)': 1, 'District': 'La Libertad'}, {'count(*)': 2, 'District': 'La Paz'}, {'count(*)': 1, 'District': 'Lagos'}, {'count(*)': 1, 'District': 'Lambayeque'}, {'count(*)': 1, 'District': 'Lampung'}, {'count(*)': 1, 'District': 'Lara'}, {'count(*)': 1, 'District': 'Latium'}, {'count(*)': 1, 'District': 'Leinster'}, {'count(*)': 12, 'District': 'Liaoning'}, {'count(*)': 1, 'District': 'Liguria'}, {'count(*)': 1, 'District': 'Lilongwe'}, {'count(*)': 1, 'District': 'Lima'}, {'count(*)': 1, 'District': 'Lipetsk'}, {'count(*)': 2, 'District': 'Lisboa'}, {'count(*)': 1, 'District': 'Littoral'}, {'count(*)': 1, 'District': 'Lodzkie'}, {'count(*)': 1, 'District': 'Lombardia'}, {'count(*)': 1, 'District': 'Loreto'}, {'count(*)': 1, 'District': 'Louisiana'}, {'count(*)': 1, 'District': 'Luanda'}, {'count(*)': 1, 'District': 'Lubelskie'}, {'count(*)': 1, 'District': 'Lugansk'}, {'count(*)': 1, 'District': 'Lusaka'}, {'count(*)': 1, 'District': 'Luxor'}, {'count(*)': 1, 'District': 'Lviv'}, {'count(*)': 1, 'District': 'Macau'}, {'count(*)': 5, 'District': 'Madhya Pradesh'}, {'count(*)': 1, 'District': 'Madrid'}, {'count(*)': 1, 'District': 'Maekel'}, {'count(*)': 1, 'District': 'Magdalena'}, {'count(*)': 13, 'District': 'Maharashtra'}, {'count(*)': 1, 'District': 'Malopolskie'}, {'count(*)': 1, 'District': 'Managua'}, {'count(*)': 1, 'District': 'Mandalay'}, {'count(*)': 1, 'District': 'Manitoba'}, {'count(*)': 2, 'District': 'Maputo'}, {'count(*)': 1, 'District': 'Maranhão'}, {'count(*)': 1, 'District': 'Maritime'}, {'count(*)': 1, 'District': 'Markazi'}, {'count(*)': 1, 'District': 'Marrakech-Tensift-Al'}, {'count(*)': 1, 'District': 'Maryland'}, {'count(*)': 1, 'District': 'Massachusetts'}, {'count(*)': 1, 'District': 'Mato Grosso'}, {'count(*)': 1, 'District': 'Mato Grosso do Sul'}, {'count(*)': 1, 'District': 'Mazowieckie'}, {'count(*)': 1, 'District': 'Medina'}, {'count(*)': 3, 'District': 'Mekka'}, {'count(*)': 1, 'District': 'Meknès-Tafilalet'}, {'count(*)': 1, 'District': 'Michigan'}, {'count(*)': 1, 'District': 'Michoacán de Ocampo'}, {'count(*)': 1, 'District': 'Midi-Pyrénées'}, {'count(*)': 4, 'District': 'Minas Gerais'}, {'count(*)': 1, 'District': 'Minnesota'}, {'count(*)': 1, 'District': 'Miranda'}, {'count(*)': 1, 'District': 'Missouri'}, {'count(*)': 1, 'District': 'Miyagi'}, {'count(*)': 1, 'District': 'Mogiljov'}, {'count(*)': 1, 'District': 'Montevideo'}, {'count(*)': 1, 'District': 'Montserrado'}, {'count(*)': 1, 'District': 'Moscow (City)'}, {'count(*)': 1, 'District': 'Murcia'}, {'count(*)': 1, 'District': 'Murmansk'}, {'count(*)': 1, 'District': 'Mykolajiv'}, {'count(*)': 9, 'District': 'México'}, {'count(*)': 1, 'District': 'Nagano'}, {'count(*)': 1, 'District': 'Nagasaki'}, {'count(*)': 1, 'District': 'Nairobi'}, {'count(*)': 1, 'District': 'Namangan'}, {'count(*)': 1, 'District': 'Nampo-si'}, {'count(*)': 1, 'District': 'Nara'}, {'count(*)': 12, 'District': 'National Capital Reg'}, {'count(*)': 1, 'District': 'Nebraska'}, {'count(*)': 1, 'District': 'Nevada'}, {'count(*)': 1, 'District': 'New Mexico'}, {'count(*)': 1, 'District': 'New South Wales'}, {'count(*)': 1, 'District': 'New York'}, {'count(*)': 1, 'District': 'Newmaa'}, {'count(*)': 1, 'District': 'Niamey'}, {'count(*)': 1, 'District': 'Niedersachsen'}, {'count(*)': 1, 'District': 'Niigata'}, {'count(*)': 1, 'District': 'Ninawa'}, {'count(*)': 1, 'District': 'Ningxia'}, {'count(*)': 1, 'District': 'Nizni Novgorod'}, {'count(*)': 1, 'District': 'Noord-Holland'}, {'count(*)': 7, 'District': 'Nordrhein-Westfalen'}, {'count(*)': 1, 'District': 'Norte de Santander'}, {'count(*)': 1, 'District': 'North Carolina'}, {'count(*)': 1, 'District': 'Northern Mindanao'}, {'count(*)': 1, 'District': 'Nothwest Border Prov'}, {'count(*)': 1, 'District': 'Nouakchott'}, {'count(*)': 1, 'District': 'Novosibirsk'}, {'count(*)': 3, 'District': 'Nuevo León'}, {'count(*)': 1, 'District': 'Odesa'}, {'count(*)': 1, 'District': 'Ogun'}, {'count(*)': 2, 'District': 'Ohio'}, {'count(*)': 1, 'District': 'Oita'}, {'count(*)': 2, 'District': 'Okayama'}, {'count(*)': 2, 'District': 'Oklahoma'}, {'count(*)': 1, 'District': 'Omsk'}, {'count(*)': 1, 'District': 'Ondo & Ekiti'}, {'count(*)': 4, 'District': 'Ontario'}, {'count(*)': 1, 'District': 'Oran'}, {'count(*)': 1, 'District': 'Oregon'}, {'count(*)': 1, 'District': 'Orenburg'}, {'count(*)': 1, 'District': 'Oriental'}, {'count(*)': 2, 'District': 'Orissa'}, {'count(*)': 6, 'District': 'Osaka'}, {'count(*)': 1, 'District': 'Oslo'}, {'count(*)': 1, 'District': 'Ouest'}, {'count(*)': 5, 'District': 'Oyo & Osun'}, {'count(*)': 1, 'District': 'Panamá'}, {'count(*)': 2, 'District': 'Paraná'}, {'count(*)': 2, 'District': 'Paraíba'}, {'count(*)': 2, 'District': 'Pará'}, {'count(*)': 1, 'District': 'Peking'}, {'count(*)': 1, 'District': 'Pennsylvania'}, {'count(*)': 1, 'District': 'Penza'}, {'count(*)': 1, 'District': 'Perak'}, {'count(*)': 1, 'District': 'Perm'}, {'count(*)': 3, 'District': 'Pernambuco'}, {'count(*)': 1, 'District': 'Phnom Penh'}, {'count(*)': 1, 'District': 'Piauí'}, {'count(*)': 1, 'District': 'Pichincha'}, {'count(*)': 1, 'District': 'Piemonte'}, {'count(*)': 1, 'District': 'Pietari'}, {'count(*)': 1, 'District': 'Pomorskie'}, {'count(*)': 1, 'District': 'Port Said'}, {'count(*)': 1, 'District': 'Primorje'}, {'count(*)': 1, 'District': 'Provence-Alpes-Côte'}, {'count(*)': 1, 'District': 'Puebla'}, {'count(*)': 11, 'District': 'Punjab'}, {'count(*)': 1, 'District': 'Pusan'}, {'count(*)': 1, 'District': 'Pyongyang-si'}, {'count(*)': 1, 'District': 'Qaraghandy'}, {'count(*)': 1, 'District': 'Qinghai'}, {'count(*)': 1, 'District': 'Qom'}, {'count(*)': 1, 'District': 'Quang Nam-Da Nang'}, {'count(*)': 1, 'District': 'Queensland'}, {'count(*)': 1, 'District': 'Querétaro de Arteaga'}, {'count(*)': 1, 'District': 'Quintana Roo'}, {'count(*)': 1, 'District': 'Québec'}, {'count(*)': 2, 'District': 'Rabat-Salé-Zammour-Z'}, {'count(*)': 5, 'District': 'Rajasthan'}, {'count(*)': 1, 'District': 'Rangoon [Yangon]'}, {'count(*)': 1, 'District': 'Rhône-Alpes'}, {'count(*)': 1, 'District': 'Riau'}, {'count(*)': 1, 'District': 'Riika'}, {'count(*)': 1, 'District': 'Rio Grande do Norte'}, {'count(*)': 1, 'District': 'Rio Grande do Sul'}, {'count(*)': 8, 'District': 'Rio de Janeiro'}, {'count(*)': 1, 'District': 'Risaralda'}, {'count(*)': 1, 'District': 'Rivers & Bayelsa'}, {'count(*)': 1, 'District': 'Riyadh'}, {'count(*)': 1, 'District': 'Rjazan'}, {'count(*)': 1, 'District': 'Rostov-na-Donu'}, {'count(*)': 3, 'District': 'Saitama'}, {'count(*)': 2, 'District': 'Saksi'}, {'count(*)': 1, 'District': 'Salta'}, {'count(*)': 2, 'District': 'Samara'}, {'count(*)': 1, 'District': 'Samarkand'}, {'count(*)': 1, 'District': 'San Juan'}, {'count(*)': 1, 'District': 'San Luis Potosí'}, {'count(*)': 1, 'District': 'San Salvador'}, {'count(*)': 1, 'District': 'Sanaa'}, {'count(*)': 1, 'District': 'Sanliurfa'}, {'count(*)': 1, 'District': 'Santa Catarina'}, {'count(*)': 1, 'District': 'Santa Cruz'}, {'count(*)': 2, 'District': 'Santa Fé'}, {'count(*)': 1, 'District': 'Santafé de Bogotá'}, {'count(*)': 1, 'District': 'Santander'}, {'count(*)': 3, 'District': 'Santiago'}, {'count(*)': 1, 'District': 'Santiago de Cuba'}, {'count(*)': 1, 'District': 'Saratov'}, {'count(*)': 2, 'District': 'Scotland'}, {'count(*)': 1, 'District': 'Seoul'}, {'count(*)': 1, 'District': 'Sergipe'}, {'count(*)': 2, 'District': 'Shaanxi'}, {'count(*)': 2, 'District': 'Shaba'}, {'count(*)': 7, 'District': 'Shandong'}, {'count(*)': 1, 'District': 'Shanghai'}, {'count(*)': 3, 'District': 'Shanxi'}, {'count(*)': 2, 'District': 'Shizuoka'}, {'count(*)': 3, 'District': 'Sichuan'}, {'count(*)': 3, 'District': 'Sinaloa'}, {'count(*)': 2, 'District': 'Sindh'}, {'count(*)': 1, 'District': 'Sisilia'}, {'count(*)': 1, 'District': 'Sistan va Baluchesta'}, {'count(*)': 1, 'District': 'Skopje'}, {'count(*)': 1, 'District': 'Smolensk'}, {'count(*)': 1, 'District': 'Sofala'}, {'count(*)': 2, 'District': 'Sonora'}, {'count(*)': 1, 'District': 'South Australia'}, {'count(*)': 1, 'District': 'South Kazakstan'}, {'count(*)': 2, 'District': 'Southern Mindanao'}, {'count(*)': 2, 'District': 'Southern Tagalog'}, {'count(*)': 1, 'District': 'Suez'}, {'count(*)': 1, 'District': 'Sulawesi Selatan'}, {'count(*)': 1, 'District': 'Sumatera Barat'}, {'count(*)': 1, 'District': 'Sumatera Selatan'}, {'count(*)': 1, 'District': 'Sumatera Utara'}, {'count(*)': 2, 'District': 'Sverdlovsk'}, {'count(*)': 13, 'District': 'São Paulo'}, {'count(*)': 1, 'District': 'Tabasco'}, {'count(*)': 1, 'District': 'Taegu'}, {'count(*)': 1, 'District': 'Taejon'}, {'count(*)': 1, 'District': 'Taichung'}, {'count(*)': 1, 'District': 'Tainan'}, {'count(*)': 5, 'District': 'Taipei'}, {'count(*)': 2, 'District': 'Tamaulipas'}, {'count(*)': 5, 'District': 'Tamil Nadu'}, {'count(*)': 1, 'District': 'Tanger-Tétouan'}, {'count(*)': 2, 'District': 'Tatarstan'}, {'count(*)': 1, 'District': 'Tbilisi'}, {'count(*)': 2, 'District': 'Teheran'}, {'count(*)': 2, 'District': 'Tennessee'}, {'count(*)': 6, 'District': 'Texas'}, {'count(*)': 1, 'District': 'Tianjin'}, {'count(*)': 1, 'District': 'Tjumen'}, {'count(*)': 1, 'District': 'Tochigi'}, {'count(*)': 3, 'District': 'Tokyo-to'}, {'count(*)': 1, 'District': 'Tolima'}, {'count(*)': 1, 'District': 'Tomsk'}, {'count(*)': 1, 'District': 'Toscana'}, {'count(*)': 1, 'District': 'Toskent Shahri'}, {'count(*)': 1, 'District': 'Tripoli'}, {'count(*)': 1, 'District': 'Tucumán'}, {'count(*)': 1, 'District': 'Tula'}, {'count(*)': 1, 'District': 'Tunis'}, {'count(*)': 1, 'District': 'Tver'}, {'count(*)': 2, 'District': 'Tšeljabinsk'}, {'count(*)': 1, 'District': 'Tšuvassia'}, {'count(*)': 1, 'District': 'Udmurtia'}, {'count(*)': 1, 'District': 'Ulaanbaatar'}, {'count(*)': 1, 'District': 'Uljanovsk'}, {'count(*)': 12, 'District': 'Uttar Pradesh'}, {'count(*)': 1, 'District': 'Valencia'}, {'count(*)': 1, 'District': 'Valle'}, {'count(*)': 2, 'District': 'Veracruz'}, {'count(*)': 1, 'District': 'Viangchan'}, {'count(*)': 1, 'District': 'Victoria'}, {'count(*)': 1, 'District': 'Vilna'}, {'count(*)': 1, 'District': 'Vinnytsja'}, {'count(*)': 1, 'District': 'Virginia'}, {'count(*)': 1, 'District': 'Volgograd'}, {'count(*)': 1, 'District': 'Voronez'}, {'count(*)': 1, 'District': 'Wakayama'}, {'count(*)': 1, 'District': 'Washington'}, {'count(*)': 1, 'District': 'West Australia'}, {'count(*)': 1, 'District': 'West Azerbaidzan'}, {'count(*)': 3, 'District': 'West Bengali'}, {'count(*)': 1, 'District': 'West Götanmaan län'}, {'count(*)': 4, 'District': 'West Java'}, {'count(*)': 1, 'District': 'West Kasai'}, {'count(*)': 2, 'District': 'Western'}, {'count(*)': 1, 'District': 'Western Cape'}, {'count(*)': 1, 'District': 'Western Mindanao'}, {'count(*)': 2, 'District': 'Western Visayas'}, {'count(*)': 1, 'District': 'Wielkopolskie'}, {'count(*)': 1, 'District': 'Wien'}, {'count(*)': 1, 'District': 'Wilayah Persekutuan'}, {'count(*)': 1, 'District': 'Wisconsin'}, {'count(*)': 1, 'District': 'Xinxiang'}, {'count(*)': 1, 'District': 'Yerevan'}, {'count(*)': 1, 'District': 'Yogyakarta'}, {'count(*)': 1, 'District': 'Yucatán'}, {'count(*)': 1, 'District': 'Yunnan'}, {'count(*)': 1, 'District': 'Zachodnio-Pomorskie'}, {'count(*)': 1, 'District': 'Zaporizzja'}, {'count(*)': 3, 'District': 'Zhejiang'}, {'count(*)': 2, 'District': 'Zuid-Holland'}, {'count(*)': 1, 'District': 'Zulia'}, {'count(*)': 1, 'District': 'al-Daqahliya'}, {'count(*)': 2, 'District': 'al-Gharbiya'}, {'count(*)': 1, 'District': 'al-Qalyubiya'}, {'count(*)': 1, 'District': 'al-Sharqiya'}, {'count(*)': 1, 'District': 'al-Sulaymaniya'}, {'count(*)': 1, 'District': 'al-Tamim'}, {'count(*)': 1, 'District': 'al-Zarqa'}, {'count(*)': 1, 'District': 'Île-de-France'}, {'count(*)': 1, 'District': '–'}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Find the government form name and total population for each government form whose average life expectancy is longer than 72. | SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72 | [{'sum(Population)': 3947000, 'GovernmentForm': 'Commonwealth of the US'}, {'sum(Population)': 1972000, 'GovernmentForm': 'Constitutional Monarchy (Emirate)'}, {'sum(Population)': 82516000, 'GovernmentForm': 'Constitutional Monarchy, Federation'}, {'sum(Population)': 193050, 'GovernmentForm': 'Dependent Territory of the UK'}, {'sum(Population)': 2441000, 'GovernmentForm': 'Emirate Federation'}, {'sum(Population)': 7160400, 'GovernmentForm': 'Federation'}, {'sum(Population)': 617000, 'GovernmentForm': 'Monarchy (Emirate)'}, {'sum(Population)': 2870000, 'GovernmentForm': 'Monarchy (Sultanate)'}, {'sum(Population)': 464000, 'GovernmentForm': 'Nonmetropolitan Territory of France'}, {'sum(Population)': 320000, 'GovernmentForm': 'Nonmetropolitan Territory of The Netherlands'}, {'sum(Population)': 1731000, 'GovernmentForm': 'Overseas Department of France'}, {'sum(Population)': 78000, 'GovernmentForm': 'Parliamentary Coprincipality'}, {'sum(Population)': 99000, 'GovernmentForm': 'Part of Denmark'}, {'sum(Population)': 115072000, 'GovernmentForm': 'Socialistic Republic'}, {'sum(Population)': 5605000, 'GovernmentForm': 'Socialistic State'}, {'sum(Population)': 7255000, 'GovernmentForm': 'Special Administrative Region of China'}, {'sum(Population)': 329000, 'GovernmentForm': 'US Territory'}] | Easy | false | false | false | false | false | true | true | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72? | SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72 | [{'sum(Population)': 3947000, 'GovernmentForm': 'Commonwealth of the US'}, {'sum(Population)': 1972000, 'GovernmentForm': 'Constitutional Monarchy (Emirate)'}, {'sum(Population)': 82516000, 'GovernmentForm': 'Constitutional Monarchy, Federation'}, {'sum(Population)': 193050, 'GovernmentForm': 'Dependent Territory of the UK'}, {'sum(Population)': 2441000, 'GovernmentForm': 'Emirate Federation'}, {'sum(Population)': 7160400, 'GovernmentForm': 'Federation'}, {'sum(Population)': 617000, 'GovernmentForm': 'Monarchy (Emirate)'}, {'sum(Population)': 2870000, 'GovernmentForm': 'Monarchy (Sultanate)'}, {'sum(Population)': 464000, 'GovernmentForm': 'Nonmetropolitan Territory of France'}, {'sum(Population)': 320000, 'GovernmentForm': 'Nonmetropolitan Territory of The Netherlands'}, {'sum(Population)': 1731000, 'GovernmentForm': 'Overseas Department of France'}, {'sum(Population)': 78000, 'GovernmentForm': 'Parliamentary Coprincipality'}, {'sum(Population)': 99000, 'GovernmentForm': 'Part of Denmark'}, {'sum(Population)': 115072000, 'GovernmentForm': 'Socialistic Republic'}, {'sum(Population)': 5605000, 'GovernmentForm': 'Socialistic State'}, {'sum(Population)': 7255000, 'GovernmentForm': 'Special Administrative Region of China'}, {'sum(Population)': 329000, 'GovernmentForm': 'US Territory'}] | Easy | false | false | false | false | false | true | true | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72? | SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72 | [{'sum(Population)': 784475000, 'avg(LifeExpectancy)': 52.571929824561394, 'Continent': 'Africa'}, {'sum(Population)': 3705025700, 'avg(LifeExpectancy)': 67.44117647058825, 'Continent': 'Asia'}, {'sum(Population)': 30401150, 'avg(LifeExpectancy)': 69.715, 'Continent': 'Oceania'}, {'sum(Population)': 345780000, 'avg(LifeExpectancy)': 70.94615384615386, 'Continent': 'South America'}] | Easy | false | false | false | false | false | true | true | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72? | SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72 | [{'sum(Population)': 784475000, 'avg(LifeExpectancy)': 52.571929824561394, 'Continent': 'Africa'}, {'sum(Population)': 3705025700, 'avg(LifeExpectancy)': 67.44117647058825, 'Continent': 'Asia'}, {'sum(Population)': 30401150, 'avg(LifeExpectancy)': 69.715, 'Continent': 'Oceania'}, {'sum(Population)': 345780000, 'avg(LifeExpectancy)': 70.94615384615386, 'Continent': 'South America'}] | Easy | false | false | false | false | false | true | true | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the names and areas of countries with the top 5 largest area? | SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5 | [{'Name': 'Russian Federation', 'SurfaceArea': 17075400.0}, {'Name': 'Antarctica', 'SurfaceArea': 13120000.0}, {'Name': 'Canada', 'SurfaceArea': 9970610.0}, {'Name': 'China', 'SurfaceArea': 9572900.0}, {'Name': 'United States', 'SurfaceArea': 9363520.0}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Return the names and surface areas of the 5 largest countries. | SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5 | [{'Name': 'Russian Federation', 'SurfaceArea': 17075400.0}, {'Name': 'Antarctica', 'SurfaceArea': 13120000.0}, {'Name': 'Canada', 'SurfaceArea': 9970610.0}, {'Name': 'China', 'SurfaceArea': 9572900.0}, {'Name': 'United States', 'SurfaceArea': 9363520.0}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are names of countries with the top 3 largest population? | SELECT Name FROM country ORDER BY Population DESC LIMIT 3 | [{'Name': 'China'}, {'Name': 'India'}, {'Name': 'United States'}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Return the names of the 3 most populated countries. | SELECT Name FROM country ORDER BY Population DESC LIMIT 3 | [{'Name': 'China'}, {'Name': 'India'}, {'Name': 'United States'}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the names of the nations with the 3 lowest populations? | SELECT Name FROM country ORDER BY Population ASC LIMIT 3 | [{'Name': 'Antarctica'}, {'Name': 'French Southern territories'}, {'Name': 'Bouvet Island'}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Return the names of the 3 countries with the fewest people. | SELECT Name FROM country ORDER BY Population ASC LIMIT 3 | [{'Name': 'Antarctica'}, {'Name': 'French Southern territories'}, {'Name': 'Bouvet Island'}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | how many countries are in Asia? | SELECT count(*) FROM country WHERE continent = "Asia" | [{'count(*)': 51}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Count the number of countries in Asia. | SELECT count(*) FROM country WHERE continent = "Asia" | [{'count(*)': 51}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the names of the countries that are in the continent of Europe and have a population of 80000? | SELECT Name FROM country WHERE continent = "Europe" AND Population = "80000" | [{'Nenhum': 'Nenhum resultado encontrado'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Give the names of countries that are in Europe and have a population equal to 80000. | SELECT Name FROM country WHERE continent = "Europe" AND Population = "80000" | [{'Nenhum': 'Nenhum resultado encontrado'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ? | SELECT sum(population) , avg(surfacearea) FROM country WHERE continent = "north america" AND surfacearea > 3000 | [{'sum(population)': None, 'avg(surfacearea)': None}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 . | SELECT sum(population) , avg(surfacearea) FROM country WHERE continent = "north america" AND surfacearea > 3000 | [{'sum(population)': None, 'avg(surfacearea)': None}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the cities whose population is between 160000 and 900000? | SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000 | [{'Name': 'Qandahar'}, {'Name': 'Herat'}, {'Name': 'Amsterdam'}, {'Name': 'Rotterdam'}, {'Name': 'Haag'}, {'Name': 'Utrecht'}, {'Name': 'Eindhoven'}, {'Name': 'Tilburg'}, {'Name': 'Groningen'}, {'Name': 'Breda'}, {'Name': 'Tirana'}, {'Name': 'Oran'}, {'Name': 'Constantine'}, {'Name': 'Annaba'}, {'Name': 'Batna'}, {'Name': 'Sétif'}, {'Name': 'Huambo'}, {'Name': 'Dubai'}, {'Name': 'Abu Dhabi'}, {'Name': 'Sharja'}, {'Name': 'al-Ayn'}, {'Name': 'Lomas de Zamora'}, {'Name': 'Quilmes'}, {'Name': 'Almirante Brown'}, {'Name': 'La Plata'}, {'Name': 'Mar del Plata'}, {'Name': 'San Miguel de Tucumán'}, {'Name': 'Lanús'}, {'Name': 'Merlo'}, {'Name': 'General San Martín'}, {'Name': 'Salta'}, {'Name': 'Moreno'}, {'Name': 'Santa Fé'}, {'Name': 'Avellaneda'}, {'Name': 'Tres de Febrero'}, {'Name': 'Morón'}, {'Name': 'Florencio Varela'}, {'Name': 'San Isidro'}, {'Name': 'Tigre'}, {'Name': 'Malvinas Argentinas'}, {'Name': 'Vicente López'}, {'Name': 'Berazategui'}, {'Name': 'Corrientes'}, {'Name': 'San Miguel'}, {'Name': 'Bahía Blanca'}, {'Name': 'Esteban Echeverría'}, {'Name': 'Resistencia'}, {'Name': 'José C. Paz'}, {'Name': 'Paraná'}, {'Name': 'Godoy Cruz'}, {'Name': 'Posadas'}, {'Name': 'Guaymallén'}, {'Name': 'Santiago del Estero'}, {'Name': 'San Salvador de Jujuy'}, {'Name': 'Hurlingham'}, {'Name': 'Neuquén'}, {'Name': 'Gjumri'}, {'Name': 'Vanadzor'}, {'Name': 'Canberra'}, {'Name': 'Gold Coast'}, {'Name': 'Newcastle'}, {'Name': 'Central Coast'}, {'Name': 'Wollongong'}, {'Name': 'Gäncä'}, {'Name': 'Sumqayit'}, {'Name': 'Nassau'}, {'Name': 'Khulna'}, {'Name': 'Rajshahi'}, {'Name': 'Narayanganj'}, {'Name': 'Rangpur'}, {'Name': 'Mymensingh'}, {'Name': 'Barisal'}, {'Name': 'Tungi'}, {'Name': 'Antwerpen'}, {'Name': 'Gent'}, {'Name': 'Charleroi'}, {'Name': 'Liège'}, {'Name': 'Cotonou'}, {'Name': 'Porto-Novo'}, {'Name': 'La Paz'}, {'Name': 'El Alto'}, {'Name': 'Cochabamba'}, {'Name': 'Oruro'}, {'Name': 'Sucre'}, {'Name': 'Sarajevo'}, {'Name': 'Gaborone'}, {'Name': 'São Gonçalo'}, {'Name': 'Nova Iguaçu'}, {'Name': 'São Luís'}, {'Name': 'Maceió'}, {'Name': 'Duque de Caxias'}, {'Name': 'São Bernardo do Campo'}, {'Name': 'Teresina'}, {'Name': 'Natal'}, {'Name': 'Osasco'}, {'Name': 'Campo Grande'}, {'Name': 'Santo André'}, {'Name': 'João Pessoa'}, {'Name': 'Jaboatão dos Guararapes'}, {'Name': 'Contagem'}, {'Name': 'São José dos Campos'}, {'Name': 'Uberlândia'}, {'Name': 'Feira de Santana'}, {'Name': 'Ribeirão Preto'}, {'Name': 'Sorocaba'}, {'Name': 'Niterói'}, {'Name': 'Cuiabá'}, {'Name': 'Juiz de Fora'}, {'Name': 'Aracaju'}, {'Name': 'São João de Meriti'}, {'Name': 'Londrina'}, {'Name': 'Joinville'}, {'Name': 'Belford Roxo'}, {'Name': 'Santos'}, {'Name': 'Ananindeua'}, {'Name': 'Campos dos Goytacazes'}, {'Name': 'Mauá'}, {'Name': 'Carapicuíba'}, {'Name': 'Olinda'}, {'Name': 'Campina Grande'}, {'Name': 'São José do Rio Preto'}, {'Name': 'Caxias do Sul'}, {'Name': 'Moji das Cruzes'}, {'Name': 'Diadema'}, {'Name': 'Aparecida de Goiânia'}, {'Name': 'Piracicaba'}, {'Name': 'Cariacica'}, {'Name': 'Vila Velha'}, {'Name': 'Pelotas'}, {'Name': 'Bauru'}, {'Name': 'Porto Velho'}, {'Name': 'Serra'}, {'Name': 'Betim'}, {'Name': 'Jundíaí'}, {'Name': 'Canoas'}, {'Name': 'Franca'}, {'Name': 'São Vicente'}, {'Name': 'Maringá'}, {'Name': 'Montes Claros'}, {'Name': 'Anápolis'}, {'Name': 'Florianópolis'}, {'Name': 'Petrópolis'}, {'Name': 'Itaquaquecetuba'}, {'Name': 'Vitória'}, {'Name': 'Ponta Grossa'}, {'Name': 'Rio Branco'}, {'Name': 'Foz do Iguaçu'}, {'Name': 'Macapá'}, {'Name': 'Ilhéus'}, {'Name': 'Vitória da Conquista'}, {'Name': 'Uberaba'}, {'Name': 'Paulista'}, {'Name': 'Limeira'}, {'Name': 'Blumenau'}, {'Name': 'Caruaru'}, {'Name': 'Santarém'}, {'Name': 'Volta Redonda'}, {'Name': 'Novo Hamburgo'}, {'Name': 'Caucaia'}, {'Name': 'Santa Maria'}, {'Name': 'Cascavel'}, {'Name': 'Guarujá'}, {'Name': 'Ribeirão das Neves'}, {'Name': 'Governador Valadares'}, {'Name': 'Taubaté'}, {'Name': 'Imperatriz'}, {'Name': 'Gravataí'}, {'Name': 'Embu'}, {'Name': 'Mossoró'}, {'Name': 'Várzea Grande'}, {'Name': 'Petrolina'}, {'Name': 'Barueri'}, {'Name': 'Viamão'}, {'Name': 'Ipatinga'}, {'Name': 'Juazeiro'}, {'Name': 'Juazeiro do Norte'}, {'Name': 'Taboão da Serra'}, {'Name': 'São José dos Pinhais'}, {'Name': 'Magé'}, {'Name': 'Suzano'}, {'Name': 'São Leopoldo'}, {'Name': 'Marília'}, {'Name': 'São Carlos'}, {'Name': 'Sumaré'}, {'Name': 'Presidente Prudente'}, {'Name': 'Divinópolis'}, {'Name': 'Sete Lagoas'}, {'Name': 'Rio Grande'}, {'Name': 'Itabuna'}, {'Name': 'Jequié'}, {'Name': 'Arapiraca'}, {'Name': 'Colombo'}, {'Name': 'Americana'}, {'Name': 'Alvorada'}, {'Name': 'Araraquara'}, {'Name': 'Itaboraí'}, {'Name': 'Santa Bárbara d´Oeste'}, {'Name': 'Nova Friburgo'}, {'Name': 'Jacareí'}, {'Name': 'Araçatuba'}, {'Name': 'Barra Mansa'}, {'Name': 'Praia Grande'}, {'Name': 'Marabá'}, {'Name': 'Criciúma'}, {'Name': 'Boa Vista'}, {'Name': 'Passo Fundo'}, {'Name': 'Dourados'}, {'Name': 'Santa Luzia'}, {'Name': 'Rio Claro'}, {'Name': 'Maracanaú'}, {'Name': 'Guarapuava'}, {'Name': 'Glasgow'}, {'Name': 'Liverpool'}, {'Name': 'Edinburgh'}, {'Name': 'Sheffield'}, {'Name': 'Manchester'}, {'Name': 'Leeds'}, {'Name': 'Bristol'}, {'Name': 'Cardiff'}, {'Name': 'Coventry'}, {'Name': 'Leicester'}, {'Name': 'Bradford'}, {'Name': 'Belfast'}, {'Name': 'Nottingham'}, {'Name': 'Kingston upon Hull'}, {'Name': 'Plymouth'}, {'Name': 'Stoke-on-Trent'}, {'Name': 'Wolverhampton'}, {'Name': 'Derby'}, {'Name': 'Swansea'}, {'Name': 'Southampton'}, {'Name': 'Aberdeen'}, {'Name': 'Northampton'}, {'Name': 'Dudley'}, {'Name': 'Portsmouth'}, {'Name': 'Newcastle upon Tyne'}, {'Name': 'Sunderland'}, {'Name': 'Luton'}, {'Name': 'Swindon'}, {'Name': 'Southend-on-Sea'}, {'Name': 'Walsall'}, {'Name': 'Bournemouth'}, {'Name': 'Plovdiv'}, {'Name': 'Varna'}, {'Name': 'Burgas'}, {'Name': 'Ruse'}, {'Name': 'Ouagadougou'}, {'Name': 'Bobo-Dioulasso'}, {'Name': 'Bujumbura'}, {'Name': 'Puente Alto'}, {'Name': 'Viña del Mar'}, {'Name': 'Valparaíso'}, {'Name': 'Talcahuano'}, {'Name': 'Antofagasta'}, {'Name': 'San Bernardo'}, {'Name': 'Temuco'}, {'Name': 'Concepción'}, {'Name': 'Rancagua'}, {'Name': 'Arica'}, {'Name': 'Talca'}, {'Name': 'Chillán'}, {'Name': 'Iquique'}, {'Name': 'San José'}, {'Name': 'Djibouti'}, {'Name': 'Santiago de los Caballeros'}, {'Name': 'Cuenca'}, {'Name': 'Machala'}, {'Name': 'Santo Domingo de los Colorados'}, {'Name': 'Portoviejo'}, {'Name': 'Ambato'}, {'Name': 'Manta'}, {'Name': 'Shubra al-Khayma'}, {'Name': 'Port Said'}, {'Name': 'Suez'}, {'Name': 'al-Mahallat al-Kubra'}, {'Name': 'Tanta'}, {'Name': 'al-Mansura'}, {'Name': 'Luxor'}, {'Name': 'Asyut'}, {'Name': 'Bahtim'}, {'Name': 'Zagazig'}, {'Name': 'al-Faiyum'}, {'Name': 'Ismailia'}, {'Name': 'Kafr al-Dawwar'}, {'Name': 'Assuan'}, {'Name': 'Damanhur'}, {'Name': 'al-Minya'}, {'Name': 'Bani Suwayf'}, {'Name': 'Qina'}, {'Name': 'Sawhaj'}, {'Name': 'San Salvador'}, {'Name': 'Asmara'}, {'Name': 'Valencia'}, {'Name': 'Sevilla'}, {'Name': 'Zaragoza'}, {'Name': 'Málaga'}, {'Name': 'Bilbao'}, {'Name': 'Las Palmas de Gran Canaria'}, {'Name': 'Murcia'}, {'Name': 'Palma de Mallorca'}, {'Name': 'Valladolid'}, {'Name': 'Córdoba'}, {'Name': 'Vigo'}, {'Name': 'Alicante [Alacant]'}, {'Name': 'Gijón'}, {'Name': 'L´Hospitalet de Llobregat'}, {'Name': 'Granada'}, {'Name': 'A Coruña (La Coruña)'}, {'Name': 'Vitoria-Gasteiz'}, {'Name': 'Santa Cruz de Tenerife'}, {'Name': 'Badalona'}, {'Name': 'Oviedo'}, {'Name': 'Móstoles'}, {'Name': 'Elche [Elx]'}, {'Name': 'Sabadell'}, {'Name': 'Santander'}, {'Name': 'Jerez de la Frontera'}, {'Name': 'Pamplona [Iruña]'}, {'Name': 'Donostia-San Sebastián'}, {'Name': 'Cartagena'}, {'Name': 'Leganés'}, {'Name': 'Fuenlabrada'}, {'Name': 'Almería'}, {'Name': 'Terrassa'}, {'Name': 'Alcalá de Henares'}, {'Name': 'Burgos'}, {'Name': 'Johannesburg'}, {'Name': 'Port Elizabeth'}, {'Name': 'Pretoria'}, {'Name': 'Inanda'}, {'Name': 'Durban'}, {'Name': 'Vanderbijlpark'}, {'Name': 'Kempton Park'}, {'Name': 'Alberton'}, {'Name': 'Pinetown'}, {'Name': 'Pietermaritzburg'}, {'Name': 'Benoni'}, {'Name': 'Randburg'}, {'Name': 'Umlazi'}, {'Name': 'Bloemfontein'}, {'Name': 'Vereeniging'}, {'Name': 'Wonderboom'}, {'Name': 'Roodepoort'}, {'Name': 'Boksburg'}, {'Name': 'Klerksdorp'}, {'Name': 'Soshanguve'}, {'Name': 'Newcastle'}, {'Name': 'East London'}, {'Name': 'Welkom'}, {'Name': 'Kimberley'}, {'Name': 'Uitenhage'}, {'Name': 'Chatsworth'}, {'Name': 'Mdantsane'}, {'Name': 'Krugersdorp'}, {'Name': 'Botshabelo'}, {'Name': 'Brakpan'}, {'Name': 'Witbank'}, {'Name': 'Oberholzer'}, {'Name': 'Germiston'}, {'Name': 'Springs'}, {'Name': 'Dire Dawa'}, {'Name': 'Cebu'}, {'Name': 'Zamboanga'}, {'Name': 'Pasig'}, {'Name': 'Valenzuela'}, {'Name': 'Las Piñas'}, {'Name': 'Antipolo'}, {'Name': 'Taguig'}, {'Name': 'Cagayan de Oro'}, {'Name': 'Parañaque'}, {'Name': 'Makati'}, {'Name': 'Bacolod'}, {'Name': 'General Santos'}, {'Name': 'Marikina'}, {'Name': 'Dasmariñas'}, {'Name': 'Muntinlupa'}, {'Name': 'Iloilo'}, {'Name': 'Pasay'}, {'Name': 'Malabon'}, {'Name': 'San José del Monte'}, {'Name': 'Bacoor'}, {'Name': 'Iligan'}, {'Name': 'Calamba'}, {'Name': 'Mandaluyong'}, {'Name': 'Butuan'}, {'Name': 'Angeles'}, {'Name': 'Tarlac'}, {'Name': 'Mandaue'}, {'Name': 'Baguio'}, {'Name': 'Batangas'}, {'Name': 'Cainta'}, {'Name': 'San Pedro'}, {'Name': 'Navotas'}, {'Name': 'Cabanatuan'}, {'Name': 'San Fernando'}, {'Name': 'Lipa'}, {'Name': 'Lapu-Lapu'}, {'Name': 'San Pablo'}, {'Name': 'Biñan'}, {'Name': 'Taytay'}, {'Name': 'Lucena'}, {'Name': 'Imus'}, {'Name': 'Olongapo'}, {'Name': 'Binangonan'}, {'Name': 'Santa Rosa'}, {'Name': 'Tagum'}, {'Name': 'Tacloban'}, {'Name': 'Malolos'}, {'Name': 'Mabalacat'}, {'Name': 'Cotabato'}, {'Name': 'Meycauayan'}, {'Name': 'Puerto Princesa'}, {'Name': 'Libreville'}, {'Name': 'Kutaisi'}, {'Name': 'Kumasi'}, {'Name': 'Ciudad de Guatemala'}, {'Name': 'Mixco'}, {'Name': 'Bissau'}, {'Name': 'Georgetown'}, {'Name': 'Port-au-Prince'}, {'Name': 'Carrefour'}, {'Name': 'Delmas'}, {'Name': 'Tegucigalpa'}, {'Name': 'San Pedro Sula'}, {'Name': 'Malang'}, {'Name': 'Bandar Lampung'}, {'Name': 'Bekasi'}, {'Name': 'Padang'}, {'Name': 'Surakarta'}, {'Name': 'Banjarmasin'}, {'Name': 'Pekan Baru'}, {'Name': 'Denpasar'}, {'Name': 'Yogyakarta'}, {'Name': 'Pontianak'}, {'Name': 'Samarinda'}, {'Name': 'Jambi'}, {'Name': 'Depok'}, {'Name': 'Cimahi'}, {'Name': 'Balikpapan'}, {'Name': 'Manado'}, {'Name': 'Mataram'}, {'Name': 'Pekalongan'}, {'Name': 'Tegal'}, {'Name': 'Bogor'}, {'Name': 'Ciputat'}, {'Name': 'Pondokgede'}, {'Name': 'Cirebon'}, {'Name': 'Kediri'}, {'Name': 'Ambon'}, {'Name': 'Jember'}, {'Name': 'Cilacap'}, {'Name': 'Cimanggis'}, {'Name': 'Pematang Siantar'}, {'Name': 'Purwokerto'}, {'Name': 'Ciomas'}, {'Name': 'Tasikmalaya'}, {'Name': 'Madiun'}, {'Name': 'Srinagar'}, {'Name': 'Agra'}, {'Name': 'Coimbatore'}, {'Name': 'Thane (Thana)'}, {'Name': 'Allahabad'}, {'Name': 'Meerut'}, {'Name': 'Vishakhapatnam'}, {'Name': 'Jabalpur'}, {'Name': 'Amritsar'}, {'Name': 'Faridabad'}, {'Name': 'Vijayawada'}, {'Name': 'Gwalior'}, {'Name': 'Jodhpur'}, {'Name': 'Nashik (Nasik)'}, {'Name': 'Hubli-Dharwad'}, {'Name': 'Solapur (Sholapur)'}, {'Name': 'Ranchi'}, {'Name': 'Bareilly'}, {'Name': 'Guwahati (Gauhati)'}, {'Name': 'Shambajinagar (Aurangabad)'}, {'Name': 'Cochin (Kochi)'}, {'Name': 'Rajkot'}, {'Name': 'Kota'}, {'Name': 'Thiruvananthapuram (Trivandrum'}, {'Name': 'Pimpri-Chinchwad'}, {'Name': 'Jalandhar (Jullundur)'}, {'Name': 'Gorakhpur'}, {'Name': 'Chandigarh'}, {'Name': 'Mysore'}, {'Name': 'Aligarh'}, {'Name': 'Guntur'}, {'Name': 'Jamshedpur'}, {'Name': 'Ghaziabad'}, {'Name': 'Warangal'}, {'Name': 'Raipur'}, {'Name': 'Moradabad'}, {'Name': 'Durgapur'}, {'Name': 'Amravati'}, {'Name': 'Calicut (Kozhikode)'}, {'Name': 'Bikaner'}, {'Name': 'Bhubaneswar'}, {'Name': 'Kolhapur'}, {'Name': 'Kataka (Cuttack)'}, {'Name': 'Ajmer'}, {'Name': 'Bhavnagar'}, {'Name': 'Tiruchirapalli'}, {'Name': 'Bhilai'}, {'Name': 'Bhiwandi'}, {'Name': 'Saharanpur'}, {'Name': 'Ulhasnagar'}, {'Name': 'Salem'}, {'Name': 'Ujjain'}, {'Name': 'Malegaon'}, {'Name': 'Jamnagar'}, {'Name': 'Bokaro Steel City'}, {'Name': 'Akola'}, {'Name': 'Belgaum'}, {'Name': 'Rajahmundry'}, {'Name': 'Nellore'}, {'Name': 'Udaipur'}, {'Name': 'New Bombay'}, {'Name': 'Bhatpara'}, {'Name': 'Gulbarga'}, {'Name': 'New Delhi'}, {'Name': 'Jhansi'}, {'Name': 'Gaya'}, {'Name': 'Kakinada'}, {'Name': 'Dhule (Dhulia)'}, {'Name': 'Panihati'}, {'Name': 'Nanded (Nander)'}, {'Name': 'Mangalore'}, {'Name': 'Dehra Dun'}, {'Name': 'Kamarhati'}, {'Name': 'Davangere'}, {'Name': 'Asansol'}, {'Name': 'Bhagalpur'}, {'Name': 'Bellary'}, {'Name': 'Barddhaman (Burdwan)'}, {'Name': 'Rampur'}, {'Name': 'Jalgaon'}, {'Name': 'Muzaffarpur'}, {'Name': 'Nizamabad'}, {'Name': 'Muzaffarnagar'}, {'Name': 'Patiala'}, {'Name': 'Shahjahanpur'}, {'Name': 'Kurnool'}, {'Name': 'Tiruppur (Tirupper)'}, {'Name': 'Rohtak'}, {'Name': 'South Dum Dum'}, {'Name': 'Mathura'}, {'Name': 'Chandrapur'}, {'Name': 'Barahanagar (Baranagar)'}, {'Name': 'Darbhanga'}, {'Name': 'Siliguri (Shiliguri)'}, {'Name': 'Raurkela'}, {'Name': 'Ambattur'}, {'Name': 'Panipat'}, {'Name': 'Firozabad'}, {'Name': 'Ichalkaranji'}, {'Name': 'Jammu'}, {'Name': 'Ramagundam'}, {'Name': 'Eluru'}, {'Name': 'Brahmapur'}, {'Name': 'Alwar'}, {'Name': 'Pondicherry'}, {'Name': 'Thanjavur'}, {'Name': 'Bihar Sharif'}, {'Name': 'Tuticorin'}, {'Name': 'Imphal'}, {'Name': 'Latur'}, {'Name': 'Sagar'}, {'Name': 'Farrukhabad-cum-Fatehgarh'}, {'Name': 'Sangli'}, {'Name': 'Parbhani'}, {'Name': 'Nagar Coil'}, {'Name': 'Bijapur'}, {'Name': 'Kukatpalle'}, {'Name': 'Bally'}, {'Name': 'Bhilwara'}, {'Name': 'Ratlam'}, {'Name': 'Avadi'}, {'Name': 'Dindigul'}, {'Name': 'Ahmadnagar'}, {'Name': 'Bilaspur'}, {'Name': 'Shimoga'}, {'Name': 'Kharagpur'}, {'Name': 'Mira Bhayandar'}, {'Name': 'Vellore'}, {'Name': 'Jalna'}, {'Name': 'Burnpur'}, {'Name': 'Anantapur'}, {'Name': 'Allappuzha (Alleppey)'}, {'Name': 'Tirupati'}, {'Name': 'Karnal'}, {'Name': 'Burhanpur'}, {'Name': 'Hisar (Hissar)'}, {'Name': 'Tiruvottiyur'}, {'Name': 'Mirzapur-cum-Vindhyachal'}, {'Name': 'Secunderabad'}, {'Name': 'Nadiad'}, {'Name': 'Dewas'}, {'Name': 'Murwara (Katni)'}, {'Name': 'Ganganagar'}, {'Name': 'Vizianagaram'}, {'Name': 'Mosul'}, {'Name': 'Irbil'}, {'Name': 'Kirkuk'}, {'Name': 'Basra'}, {'Name': 'al-Sulaymaniya'}, {'Name': 'al-Najaf'}, {'Name': 'Karbala'}, {'Name': 'al-Hilla'}, {'Name': 'al-Nasiriya'}, {'Name': 'al-Amara'}, {'Name': 'al-Diwaniya'}, {'Name': 'al-Ramadi'}, {'Name': 'al-Kut'}, {'Name': 'Ahvaz'}, {'Name': 'Qom'}, {'Name': 'Kermanshah'}, {'Name': 'Urmia'}, {'Name': 'Zahedan'}, {'Name': 'Rasht'}, {'Name': 'Hamadan'}, {'Name': 'Kerman'}, {'Name': 'Arak'}, {'Name': 'Ardebil'}, {'Name': 'Yazd'}, {'Name': 'Qazvin'}, {'Name': 'Zanjan'}, {'Name': 'Sanandaj'}, {'Name': 'Bandar-e-Abbas'}, {'Name': 'Khorramabad'}, {'Name': 'Eslamshahr'}, {'Name': 'Borujerd'}, {'Name': 'Abadan'}, {'Name': 'Dezful'}, {'Name': 'Kashan'}, {'Name': 'Sari'}, {'Name': 'Gorgan'}, {'Name': 'Najafabad'}, {'Name': 'Sabzevar'}, {'Name': 'Khomeynishahr'}, {'Name': 'Dublin'}, {'Name': 'Jerusalem'}, {'Name': 'Tel Aviv-Jaffa'}, {'Name': 'Haifa'}, {'Name': 'Rishon Le Ziyyon'}, {'Name': 'Beerseba'}, {'Name': 'Holon'}, {'Name': 'Palermo'}, {'Name': 'Genova'}, {'Name': 'Bologna'}, {'Name': 'Firenze'}, {'Name': 'Catania'}, {'Name': 'Bari'}, {'Name': 'Venezia'}, {'Name': 'Messina'}, {'Name': 'Verona'}, {'Name': 'Trieste'}, {'Name': 'Padova'}, {'Name': 'Taranto'}, {'Name': 'Brescia'}, {'Name': 'Reggio di Calabria'}, {'Name': 'Modena'}, {'Name': 'Prato'}, {'Name': 'Parma'}, {'Name': 'Cagliari'}, {'Name': 'Livorno'}, {'Name': 'Graz'}, {'Name': 'Linz'}, {'Name': 'Chiba'}, {'Name': 'Sakai'}, {'Name': 'Kumamoto'}, {'Name': 'Okayama'}, {'Name': 'Sagamihara'}, {'Name': 'Hamamatsu'}, {'Name': 'Kagoshima'}, {'Name': 'Funabashi'}, {'Name': 'Higashiosaka'}, {'Name': 'Hachioji'}, {'Name': 'Niigata'}, {'Name': 'Amagasaki'}, {'Name': 'Himeji'}, {'Name': 'Shizuoka'}, {'Name': 'Urawa'}, {'Name': 'Matsuyama'}, {'Name': 'Matsudo'}, {'Name': 'Kanazawa'}, {'Name': 'Kawaguchi'}, {'Name': 'Ichikawa'}, {'Name': 'Omiya'}, {'Name': 'Utsunomiya'}, {'Name': 'Oita'}, {'Name': 'Nagasaki'}, {'Name': 'Yokosuka'}, {'Name': 'Kurashiki'}, {'Name': 'Gifu'}, {'Name': 'Hirakata'}, {'Name': 'Nishinomiya'}, {'Name': 'Toyonaka'}, {'Name': 'Wakayama'}, {'Name': 'Fukuyama'}, {'Name': 'Fujisawa'}, {'Name': 'Asahikawa'}, {'Name': 'Machida'}, {'Name': 'Nara'}, {'Name': 'Takatsuki'}, {'Name': 'Iwaki'}, {'Name': 'Nagano'}, {'Name': 'Toyohashi'}, {'Name': 'Toyota'}, {'Name': 'Suita'}, {'Name': 'Takamatsu'}, {'Name': 'Koriyama'}, {'Name': 'Okazaki'}, {'Name': 'Kawagoe'}, {'Name': 'Tokorozawa'}, {'Name': 'Toyama'}, {'Name': 'Kochi'}, {'Name': 'Kashiwa'}, {'Name': 'Akita'}, {'Name': 'Miyazaki'}, {'Name': 'Koshigaya'}, {'Name': 'Naha'}, {'Name': 'Aomori'}, {'Name': 'Hakodate'}, {'Name': 'Akashi'}, {'Name': 'Yokkaichi'}, {'Name': 'Fukushima'}, {'Name': 'Morioka'}, {'Name': 'Maebashi'}, {'Name': 'Kasugai'}, {'Name': 'Otsu'}, {'Name': 'Ichihara'}, {'Name': 'Yao'}, {'Name': 'Ichinomiya'}, {'Name': 'Tokushima'}, {'Name': 'Kakogawa'}, {'Name': 'Ibaraki'}, {'Name': 'Neyagawa'}, {'Name': 'Shimonoseki'}, {'Name': 'Yamagata'}, {'Name': 'Fukui'}, {'Name': 'Hiratsuka'}, {'Name': 'Mito'}, {'Name': 'Sasebo'}, {'Name': 'Hachinohe'}, {'Name': 'Takasaki'}, {'Name': 'Shimizu'}, {'Name': 'Kurume'}, {'Name': 'Fuji'}, {'Name': 'Soka'}, {'Name': 'Fuchu'}, {'Name': 'Chigasaki'}, {'Name': 'Atsugi'}, {'Name': 'Numazu'}, {'Name': 'Ageo'}, {'Name': 'Yamato'}, {'Name': 'Matsumoto'}, {'Name': 'Kure'}, {'Name': 'Takarazuka'}, {'Name': 'Kasukabe'}, {'Name': 'Chofu'}, {'Name': 'Odawara'}, {'Name': 'Kofu'}, {'Name': 'Kushiro'}, {'Name': 'Kishiwada'}, {'Name': 'Hitachi'}, {'Name': 'Nagaoka'}, {'Name': 'Itami'}, {'Name': 'Uji'}, {'Name': 'Suzuka'}, {'Name': 'Hirosaki'}, {'Name': 'Ube'}, {'Name': 'Kodaira'}, {'Name': 'Takaoka'}, {'Name': 'Obihiro'}, {'Name': 'Tomakomai'}, {'Name': 'Saga'}, {'Name': 'Sakura'}, {'Name': 'Kamakura'}, {'Name': 'Mitaka'}, {'Name': 'Izumi'}, {'Name': 'Hino'}, {'Name': 'Hadano'}, {'Name': 'Ashikaga'}, {'Name': 'Tsu'}, {'Name': 'Sayama'}, {'Name': 'Yachiyo'}, {'Name': 'Tsukuba'}, {'Name': 'Sanaa'}, {'Name': 'Aden'}, {'Name': 'Taizz'}, {'Name': 'Hodeida'}, {'Name': 'al-Zarqa'}, {'Name': 'Irbid'}, {'Name': 'Novi Sad'}, {'Name': 'Niš'}, {'Name': 'Phnom Penh'}, {'Name': 'Garoua'}, {'Name': 'Calgary'}, {'Name': 'Toronto'}, {'Name': 'North York'}, {'Name': 'Winnipeg'}, {'Name': 'Edmonton'}, {'Name': 'Mississauga'}, {'Name': 'Scarborough'}, {'Name': 'Vancouver'}, {'Name': 'Etobicoke'}, {'Name': 'London'}, {'Name': 'Hamilton'}, {'Name': 'Ottawa'}, {'Name': 'Laval'}, {'Name': 'Surrey'}, {'Name': 'Brampton'}, {'Name': 'Windsor'}, {'Name': 'Saskatoon'}, {'Name': 'Kitchener'}, {'Name': 'Markham'}, {'Name': 'Regina'}, {'Name': 'Burnaby'}, {'Name': 'Québec'}, {'Name': 'Qaraghandy'}, {'Name': 'Shymkent'}, {'Name': 'Taraz'}, {'Name': 'Astana'}, {'Name': 'Öskemen'}, {'Name': 'Pavlodar'}, {'Name': 'Semey'}, {'Name': 'Aqtöbe'}, {'Name': 'Qostanay'}, {'Name': 'Petropavl'}, {'Name': 'Oral'}, {'Name': 'Temirtau'}, {'Name': 'Mombasa'}, {'Name': 'Kisumu'}, {'Name': 'Nakuru'}, {'Name': 'Bangui'}, {'Name': 'Handan'}, {'Name': 'Wuxi'}, {'Name': 'Xuzhou'}, {'Name': 'Datong'}, {'Name': 'Yichun'}, {'Name': 'Benxi'}, {'Name': 'Luoyang'}, {'Name': 'Suzhou'}, {'Name': 'Xining'}, {'Name': 'Huainan'}, {'Name': 'Jixi'}, {'Name': 'Daqing'}, {'Name': 'Fuxin'}, {'Name': 'Amoy [Xiamen]'}, {'Name': 'Liuzhou'}, {'Name': 'Shantou'}, {'Name': 'Jinzhou'}, {'Name': 'Mudanjiang'}, {'Name': 'Yinchuan'}, {'Name': 'Changzhou'}, {'Name': 'Zhangjiakou'}, {'Name': 'Dandong'}, {'Name': 'Hegang'}, {'Name': 'Kaifeng'}, {'Name': 'Jiamusi'}, {'Name': 'Liaoyang'}, {'Name': 'Hengyang'}, {'Name': 'Baoding'}, {'Name': 'Hunjiang'}, {'Name': 'Xinxiang'}, {'Name': 'Huangshi'}, {'Name': 'Haikou'}, {'Name': 'Yantai'}, {'Name': 'Bengbu'}, {'Name': 'Xiangtan'}, {'Name': 'Weifang'}, {'Name': 'Wuhu'}, {'Name': 'Pingxiang'}, {'Name': 'Yingkou'}, {'Name': 'Anyang'}, {'Name': 'Panzhihua'}, {'Name': 'Pingdingshan'}, {'Name': 'Xiangfan'}, {'Name': 'Zhuzhou'}, {'Name': 'Jiaozuo'}, {'Name': 'Wenzhou'}, {'Name': 'Zhangjiang'}, {'Name': 'Zigong'}, {'Name': 'Shuangyashan'}, {'Name': 'Zaozhuang'}, {'Name': 'Yakeshi'}, {'Name': 'Yichang'}, {'Name': 'Zhenjiang'}, {'Name': 'Huaibei'}, {'Name': 'Qinhuangdao'}, {'Name': 'Guilin'}, {'Name': 'Liupanshui'}, {'Name': 'Panjin'}, {'Name': 'Yangquan'}, {'Name': 'Jinxi'}, {'Name': 'Liaoyuan'}, {'Name': 'Lianyungang'}, {'Name': 'Xianyang'}, {'Name': 'Tai´an'}, {'Name': 'Chifeng'}, {'Name': 'Shaoguan'}, {'Name': 'Nantong'}, {'Name': 'Leshan'}, {'Name': 'Baoji'}, {'Name': 'Linyi'}, {'Name': 'Tonghua'}, {'Name': 'Siping'}, {'Name': 'Changzhi'}, {'Name': 'Tengzhou'}, {'Name': 'Chaozhou'}, {'Name': 'Yangzhou'}, {'Name': 'Dongwan'}, {'Name': 'Ma´anshan'}, {'Name': 'Foshan'}, {'Name': 'Yueyang'}, {'Name': 'Xingtai'}, {'Name': 'Changde'}, {'Name': 'Shihezi'}, {'Name': 'Yancheng'}, {'Name': 'Jiujiang'}, {'Name': 'Dongying'}, {'Name': 'Shashi'}, {'Name': 'Xintai'}, {'Name': 'Jingdezhen'}, {'Name': 'Tongchuan'}, {'Name': 'Zhongshan'}, {'Name': 'Shiyan'}, {'Name': 'Tieli'}, {'Name': 'Jining'}, {'Name': 'Wuhai'}, {'Name': 'Mianyang'}, {'Name': 'Luzhou'}, {'Name': 'Zunyi'}, {'Name': 'Shizuishan'}, {'Name': 'Neijiang'}, {'Name': 'Tongliao'}, {'Name': 'Tieling'}, {'Name': 'Wafangdian'}, {'Name': 'Anqing'}, {'Name': 'Shaoyang'}, {'Name': 'Laiwu'}, {'Name': 'Chengde'}, {'Name': 'Tianshui'}, {'Name': 'Nanyang'}, {'Name': 'Cangzhou'}, {'Name': 'Yibin'}, {'Name': 'Huaiyin'}, {'Name': 'Dunhua'}, {'Name': 'Yanji'}, {'Name': 'Jiangmen'}, {'Name': 'Tongling'}, {'Name': 'Suihua'}, {'Name': 'Gongziling'}, {'Name': 'Xiantao'}, {'Name': 'Chaoyang'}, {'Name': 'Ganzhou'}, {'Name': 'Huzhou'}, {'Name': 'Baicheng'}, {'Name': 'Shangzi'}, {'Name': 'Yangjiang'}, {'Name': 'Qitaihe'}, {'Name': 'Gejiu'}, {'Name': 'Jiangyin'}, {'Name': 'Hebi'}, {'Name': 'Jiaxing'}, {'Name': 'Wuzhou'}, {'Name': 'Meihekou'}, {'Name': 'Xuchang'}, {'Name': 'Liaocheng'}, {'Name': 'Haicheng'}, {'Name': 'Qianjiang'}, {'Name': 'Baiyin'}, {'Name': 'Bei´an'}, {'Name': 'Yixing'}, {'Name': 'Laizhou'}, {'Name': 'Qaramay'}, {'Name': 'Acheng'}, {'Name': 'Dezhou'}, {'Name': 'Nanping'}, {'Name': 'Zhaoqing'}, {'Name': 'Beipiao'}, {'Name': 'Fengcheng'}, {'Name': 'Fuyu'}, {'Name': 'Xinyang'}, {'Name': 'Dongtai'}, {'Name': 'Yuci'}, {'Name': 'Honghu'}, {'Name': 'Ezhou'}, {'Name': 'Heze'}, {'Name': 'Daxian'}, {'Name': 'Linfen'}, {'Name': 'Tianmen'}, {'Name': 'Yiyang'}, {'Name': 'Quanzhou'}, {'Name': 'Rizhao'}, {'Name': 'Deyang'}, {'Name': 'Guangyuan'}, {'Name': 'Changshu'}, {'Name': 'Zhangzhou'}, {'Name': 'Hailar'}, {'Name': 'Nanchong'}, {'Name': 'Jiutai'}, {'Name': 'Zhaodong'}, {'Name': 'Shaoxing'}, {'Name': 'Fuyang'}, {'Name': 'Maoming'}, {'Name': 'Qujing'}, {'Name': 'Ghulja'}, {'Name': 'Jiaohe'}, {'Name': 'Puyang'}, {'Name': 'Huadian'}, {'Name': 'Jiangyou'}, {'Name': 'Qashqar'}, {'Name': 'Anshun'}, {'Name': 'Fuling'}, {'Name': 'Xinyu'}, {'Name': 'Hanzhong'}, {'Name': 'Danyang'}, {'Name': 'Chenzhou'}, {'Name': 'Xiaogan'}, {'Name': 'Shangqiu'}, {'Name': 'Zhuhai'}, {'Name': 'Qingyuan'}, {'Name': 'Aqsu'}, {'Name': 'Jining'}, {'Name': 'Xiaoshan'}, {'Name': 'Zaoyang'}, {'Name': 'Xinghua'}, {'Name': 'Hami'}, {'Name': 'Huizhou'}, {'Name': 'Jinmen'}, {'Name': 'Sanming'}, {'Name': 'Bishkek'}, {'Name': 'Osh'}, {'Name': 'Cartagena'}, {'Name': 'Cúcuta'}, {'Name': 'Bucaramanga'}, {'Name': 'Ibagué'}, {'Name': 'Pereira'}, {'Name': 'Santa Marta'}, {'Name': 'Manizales'}, {'Name': 'Bello'}, {'Name': 'Pasto'}, {'Name': 'Neiva'}, {'Name': 'Soledad'}, {'Name': 'Armenia'}, {'Name': 'Villavicencio'}, {'Name': 'Soacha'}, {'Name': 'Valledupar'}, {'Name': 'Montería'}, {'Name': 'Itagüí'}, {'Name': 'Palmira'}, {'Name': 'Buenaventura'}, {'Name': 'Floridablanca'}, {'Name': 'Sincelejo'}, {'Name': 'Popayán'}, {'Name': 'Barrancabermeja'}, {'Name': 'Pointe-Noire'}, {'Name': 'Lubumbashi'}, {'Name': 'Mbuji-Mayi'}, {'Name': 'Kolwezi'}, {'Name': 'Kisangani'}, {'Name': 'Kananga'}, {'Name': 'Likasi'}, {'Name': 'Bukavu'}, {'Name': 'Kikwit'}, {'Name': 'Tshikapa'}, {'Name': 'Matadi'}, {'Name': 'Mbandaka'}, {'Name': 'Hamhung'}, {'Name': 'Chongjin'}, {'Name': 'Nampo'}, {'Name': 'Sinuiju'}, {'Name': 'Wonsan'}, {'Name': 'Phyongsong'}, {'Name': 'Sariwon'}, {'Name': 'Haeju'}, {'Name': 'Kanggye'}, {'Name': 'Kimchaek'}, {'Name': 'Hyesan'}, {'Name': 'Kaesong'}, {'Name': 'Songnam'}, {'Name': 'Puchon'}, {'Name': 'Suwon'}, {'Name': 'Anyang'}, {'Name': 'Chonju'}, {'Name': 'Chongju'}, {'Name': 'Koyang'}, {'Name': 'Ansan'}, {'Name': 'Pohang'}, {'Name': 'Chang-won'}, {'Name': 'Masan'}, {'Name': 'Kwangmyong'}, {'Name': 'Chonan'}, {'Name': 'Chinju'}, {'Name': 'Iksan'}, {'Name': 'Pyongtaek'}, {'Name': 'Kumi'}, {'Name': 'Uijongbu'}, {'Name': 'Kyongju'}, {'Name': 'Kunsan'}, {'Name': 'Cheju'}, {'Name': 'Kimhae'}, {'Name': 'Sunchon'}, {'Name': 'Mokpo'}, {'Name': 'Yong-in'}, {'Name': 'Wonju'}, {'Name': 'Kunpo'}, {'Name': 'Chunchon'}, {'Name': 'Namyangju'}, {'Name': 'Kangnung'}, {'Name': 'Chungju'}, {'Name': 'Andong'}, {'Name': 'Yosu'}, {'Name': 'Kyongsan'}, {'Name': 'Paju'}, {'Name': 'Yangsan'}, {'Name': 'Athenai'}, {'Name': 'Thessaloniki'}, {'Name': 'Pireus'}, {'Name': 'Zagreb'}, {'Name': 'Split'}, {'Name': 'Rijeka'}, {'Name': 'Santiago de Cuba'}, {'Name': 'Camagüey'}, {'Name': 'Holguín'}, {'Name': 'Santa Clara'}, {'Name': 'Guantánamo'}, {'Name': 'Nicosia'}, {'Name': 'Vientiane'}, {'Name': 'Riga'}, {'Name': 'Maseru'}, {'Name': 'Tripoli'}, {'Name': 'Monrovia'}, {'Name': 'Bengasi'}, {'Name': 'Vilnius'}, {'Name': 'Kaunas'}, {'Name': 'Klaipeda'}, {'Name': 'El-Aaiún'}, {'Name': 'Macao'}, {'Name': 'Antananarivo'}, {'Name': 'Skopje'}, {'Name': 'Blantyre'}, {'Name': 'Lilongwe'}, {'Name': 'Ipoh'}, {'Name': 'Johor Baharu'}, {'Name': 'Petaling Jaya'}, {'Name': 'Kelang'}, {'Name': 'Kuala Terengganu'}, {'Name': 'Pinang'}, {'Name': 'Kota Bharu'}, {'Name': 'Kuantan'}, {'Name': 'Taiping'}, {'Name': 'Seremban'}, {'Name': 'Bamako'}, {'Name': 'Rabat'}, {'Name': 'Marrakech'}, {'Name': 'Fès'}, {'Name': 'Tanger'}, {'Name': 'Salé'}, {'Name': 'Meknès'}, {'Name': 'Oujda'}, {'Name': 'Kénitra'}, {'Name': 'Tétouan'}, {'Name': 'Safi'}, {'Name': 'Nouakchott'}, {'Name': 'Naucalpan de Juárez'}, {'Name': 'Mexicali'}, {'Name': 'Culiacán'}, {'Name': 'Acapulco de Juárez'}, {'Name': 'Tlalnepantla de Baz'}, {'Name': 'Mérida'}, {'Name': 'Chihuahua'}, {'Name': 'San Luis Potosí'}, {'Name': 'Guadalupe'}, {'Name': 'Toluca'}, {'Name': 'Aguascalientes'}, {'Name': 'Querétaro'}, {'Name': 'Morelia'}, {'Name': 'Hermosillo'}, {'Name': 'Saltillo'}, {'Name': 'Torreón'}, {'Name': 'Centro (Villahermosa)'}, {'Name': 'San Nicolás de los Garza'}, {'Name': 'Durango'}, {'Name': 'Chimalhuacán'}, {'Name': 'Tlaquepaque'}, {'Name': 'Atizapán de Zaragoza'}, {'Name': 'Veracruz'}, {'Name': 'Cuautitlán Izcalli'}, {'Name': 'Irapuato'}, {'Name': 'Tuxtla Gutiérrez'}, {'Name': 'Tultitlán'}, {'Name': 'Reynosa'}, {'Name': 'Benito Juárez'}, {'Name': 'Matamoros'}, {'Name': 'Xalapa'}, {'Name': 'Celaya'}, {'Name': 'Mazatlán'}, {'Name': 'Ensenada'}, {'Name': 'Ahome'}, {'Name': 'Cajeme'}, {'Name': 'Cuernavaca'}, {'Name': 'Tonalá'}, {'Name': 'Valle de Chalco Solidaridad'}, {'Name': 'Nuevo Laredo'}, {'Name': 'Tepic'}, {'Name': 'Tampico'}, {'Name': 'Ixtapaluca'}, {'Name': 'Apodaca'}, {'Name': 'Guasave'}, {'Name': 'Gómez Palacio'}, {'Name': 'Tapachula'}, {'Name': 'Nicolás Romero'}, {'Name': 'Coatzacoalcos'}, {'Name': 'Uruapan'}, {'Name': 'Victoria'}, {'Name': 'Oaxaca de Juárez'}, {'Name': 'Coacalco de Berriozábal'}, {'Name': 'Pachuca de Soto'}, {'Name': 'General Escobedo'}, {'Name': 'Salamanca'}, {'Name': 'Santa Catarina'}, {'Name': 'Tehuacán'}, {'Name': 'Chalco'}, {'Name': 'Cárdenas'}, {'Name': 'Campeche'}, {'Name': 'La Paz'}, {'Name': 'Othón P. Blanco (Chetumal)'}, {'Name': 'Texcoco'}, {'Name': 'La Paz'}, {'Name': 'Metepec'}, {'Name': 'Monclova'}, {'Name': 'Huixquilucan'}, {'Name': 'Chilpancingo de los Bravo'}, {'Name': 'Puerto Vallarta'}, {'Name': 'Fresnillo'}, {'Name': 'Ciudad Madero'}, {'Name': 'Soledad de Graciano Sánchez'}, {'Name': 'San Juan del Río'}, {'Name': 'San Felipe del Progreso'}, {'Name': 'Córdoba'}, {'Name': 'Tecámac'}, {'Name': 'Ocosingo'}, {'Name': 'Carmen'}, {'Name': 'Lázaro Cárdenas'}, {'Name': 'Jiutepec'}, {'Name': 'Papantla'}, {'Name': 'Comalcalco'}, {'Name': 'Zamora'}, {'Name': 'Chisinau'}, {'Name': 'Tiraspol'}, {'Name': 'Ulan Bator'}, {'Name': 'Matola'}, {'Name': 'Beira'}, {'Name': 'Nampula'}, {'Name': 'Chimoio'}, {'Name': 'Mandalay'}, {'Name': 'Moulmein (Mawlamyine)'}, {'Name': 'Pegu (Bago)'}, {'Name': 'Bassein (Pathein)'}, {'Name': 'Windhoek'}, {'Name': 'Kathmandu'}, {'Name': 'Niamey'}, {'Name': 'Ogbomosho'}, {'Name': 'Kano'}, {'Name': 'Oshogbo'}, {'Name': 'Ilorin'}, {'Name': 'Abeokuta'}, {'Name': 'Port Harcourt'}, {'Name': 'Zaria'}, {'Name': 'Ilesha'}, {'Name': 'Onitsha'}, {'Name': 'Iwo'}, {'Name': 'Ado-Ekiti'}, {'Name': 'Abuja'}, {'Name': 'Kaduna'}, {'Name': 'Mushin'}, {'Name': 'Maiduguri'}, {'Name': 'Enugu'}, {'Name': 'Ede'}, {'Name': 'Aba'}, {'Name': 'Ife'}, {'Name': 'Ila'}, {'Name': 'Oyo'}, {'Name': 'Ikerre'}, {'Name': 'Benin City'}, {'Name': 'Iseyin'}, {'Name': 'Katsina'}, {'Name': 'Jos'}, {'Name': 'Sokoto'}, {'Name': 'Ilobu'}, {'Name': 'Offa'}, {'Name': 'Ikorodu'}, {'Name': 'Ilawe-Ekiti'}, {'Name': 'Owo'}, {'Name': 'Ikirun'}, {'Name': 'Shaki'}, {'Name': 'Calabar'}, {'Name': 'Ondo'}, {'Name': 'Akure'}, {'Name': 'Oslo'}, {'Name': 'Bergen'}, {'Name': 'Bouaké'}, {'Name': 'Quetta'}, {'Name': 'Islamabad'}, {'Name': 'Sargodha'}, {'Name': 'Sialkot'}, {'Name': 'Bahawalpur'}, {'Name': 'Sukkur'}, {'Name': 'Jhang'}, {'Name': 'Sheikhupura'}, {'Name': 'Larkana'}, {'Name': 'Gujrat'}, {'Name': 'Mardan'}, {'Name': 'Kasur'}, {'Name': 'Rahim Yar Khan'}, {'Name': 'Sahiwal'}, {'Name': 'Okara'}, {'Name': 'Wah'}, {'Name': 'Dera Ghazi Khan'}, {'Name': 'Mirpur Khas'}, {'Name': 'Nawabshah'}, {'Name': 'Mingora'}, {'Name': 'Chiniot'}, {'Name': 'Ciudad de Panamá'}, {'Name': 'San Miguelito'}, {'Name': 'Port Moresby'}, {'Name': 'Asunción'}, {'Name': 'Arequipa'}, {'Name': 'Trujillo'}, {'Name': 'Chiclayo'}, {'Name': 'Callao'}, {'Name': 'Iquitos'}, {'Name': 'Chimbote'}, {'Name': 'Huancayo'}, {'Name': 'Piura'}, {'Name': 'Cusco'}, {'Name': 'Pucallpa'}, {'Name': 'Tacna'}, {'Name': 'Ica'}, {'Name': 'Lisboa'}, {'Name': 'Porto'}, {'Name': 'San Juan'}, {'Name': 'Bayamón'}, {'Name': 'Ponce'}, {'Name': 'Carolina'}, {'Name': 'Lódz'}, {'Name': 'Kraków'}, {'Name': 'Wroclaw'}, {'Name': 'Poznan'}, {'Name': 'Gdansk'}, {'Name': 'Szczecin'}, {'Name': 'Bydgoszcz'}, {'Name': 'Lublin'}, {'Name': 'Katowice'}, {'Name': 'Bialystok'}, {'Name': 'Czestochowa'}, {'Name': 'Gdynia'}, {'Name': 'Sosnowiec'}, {'Name': 'Radom'}, {'Name': 'Kielce'}, {'Name': 'Gliwice'}, {'Name': 'Torun'}, {'Name': 'Bytom'}, {'Name': 'Zabrze'}, {'Name': 'Bielsko-Biala'}, {'Name': 'Olsztyn'}, {'Name': 'Rzeszów'}, {'Name': 'Doha'}, {'Name': 'Marseille'}, {'Name': 'Lyon'}, {'Name': 'Toulouse'}, {'Name': 'Nice'}, {'Name': 'Nantes'}, {'Name': 'Strasbourg'}, {'Name': 'Montpellier'}, {'Name': 'Bordeaux'}, {'Name': 'Rennes'}, {'Name': 'Le Havre'}, {'Name': 'Reims'}, {'Name': 'Lille'}, {'Name': 'St-Étienne'}, {'Name': 'Toulon'}, {'Name': 'Iasi'}, {'Name': 'Constanta'}, {'Name': 'Cluj-Napoca'}, {'Name': 'Galati'}, {'Name': 'Timisoara'}, {'Name': 'Brasov'}, {'Name': 'Craiova'}, {'Name': 'Ploiesti'}, {'Name': 'Braila'}, {'Name': 'Oradea'}, {'Name': 'Bacau'}, {'Name': 'Pitesti'}, {'Name': 'Arad'}, {'Name': 'Sibiu'}, {'Name': 'Târgu Mures'}, {'Name': 'Kigali'}, {'Name': 'Stockholm'}, {'Name': 'Gothenburg [Göteborg]'}, {'Name': 'Malmö'}, {'Name': 'Uppsala'}, {'Name': 'Frankfurt am Main'}, {'Name': 'Essen'}, {'Name': 'Dortmund'}, {'Name': 'Stuttgart'}, {'Name': 'Düsseldorf'}, {'Name': 'Bremen'}, {'Name': 'Duisburg'}, {'Name': 'Hannover'}, {'Name': 'Leipzig'}, {'Name': 'Nürnberg'}, {'Name': 'Dresden'}, {'Name': 'Bochum'}, {'Name': 'Wuppertal'}, {'Name': 'Bielefeld'}, {'Name': 'Mannheim'}, {'Name': 'Bonn'}, {'Name': 'Gelsenkirchen'}, {'Name': 'Karlsruhe'}, {'Name': 'Wiesbaden'}, {'Name': 'Münster'}, {'Name': 'Mönchengladbach'}, {'Name': 'Chemnitz'}, {'Name': 'Augsburg'}, {'Name': 'Halle/Saale'}, {'Name': 'Braunschweig'}, {'Name': 'Aachen'}, {'Name': 'Krefeld'}, {'Name': 'Magdeburg'}, {'Name': 'Kiel'}, {'Name': 'Oberhausen'}, {'Name': 'Lübeck'}, {'Name': 'Hagen'}, {'Name': 'Rostock'}, {'Name': 'Freiburg im Breisgau'}, {'Name': 'Erfurt'}, {'Name': 'Kassel'}, {'Name': 'Saarbrücken'}, {'Name': 'Mainz'}, {'Name': 'Hamm'}, {'Name': 'Herne'}, {'Name': 'Mülheim an der Ruhr'}, {'Name': 'Solingen'}, {'Name': 'Osnabrück'}, {'Name': 'Ludwigshafen am Rhein'}, {'Name': 'Leverkusen'}, {'Name': 'Ndola'}, {'Name': 'Kitwe'}, {'Name': 'Medina'}, {'Name': 'al-Dammam'}, {'Name': 'al-Taif'}, {'Name': 'Tabuk'}, {'Name': 'Burayda'}, {'Name': 'al-Hufuf'}, {'Name': 'al-Mubarraz'}, {'Name': 'Khamis Mushayt'}, {'Name': 'Hail'}, {'Name': 'Pikine'}, {'Name': 'Dakar'}, {'Name': 'Thiès'}, {'Name': 'Kaolack'}, {'Name': 'Ziguinchor'}, {'Name': 'Freetown'}, {'Name': 'Bratislava'}, {'Name': 'Košice'}, {'Name': 'Ljubljana'}, {'Name': 'Colombo'}, {'Name': 'Dehiwala'}, {'Name': 'Moratuwa'}, {'Name': 'Sharq al-Nil'}, {'Name': 'Port Sudan'}, {'Name': 'Kassala'}, {'Name': 'Obeid'}, {'Name': 'Nyala'}, {'Name': 'Wad Madani'}, {'Name': 'al-Qadarif'}, {'Name': 'Kusti'}, {'Name': 'Helsinki [Helsingfors]'}, {'Name': 'Espoo'}, {'Name': 'Tampere'}, {'Name': 'Vantaa'}, {'Name': 'Turku [Åbo]'}, {'Name': 'Zürich'}, {'Name': 'Geneve'}, {'Name': 'Basel'}, {'Name': 'Hims'}, {'Name': 'Hama'}, {'Name': 'Latakia'}, {'Name': 'Dushanbe'}, {'Name': 'Khujand'}, {'Name': 'Tainan'}, {'Name': 'Panchiao'}, {'Name': 'Chungho'}, {'Name': 'Keelung (Chilung)'}, {'Name': 'Sanchung'}, {'Name': 'Hsinchuang'}, {'Name': 'Hsinchu'}, {'Name': 'Chungli'}, {'Name': 'Fengshan'}, {'Name': 'Taoyuan'}, {'Name': 'Chiayi'}, {'Name': 'Hsintien'}, {'Name': 'Changhwa'}, {'Name': 'Yungho'}, {'Name': 'Tucheng'}, {'Name': 'Pingtung'}, {'Name': 'Yungkang'}, {'Name': 'Pingchen'}, {'Name': 'Tali'}, {'Name': 'Taiping'}, {'Name': 'Pate'}, {'Name': 'Fengyuan'}, {'Name': 'Luchou'}, {'Name': 'Dodoma'}, {'Name': 'Mwanza'}, {'Name': 'København'}, {'Name': 'Århus'}, {'Name': 'Odense'}, {'Name': 'Aalborg'}, {'Name': 'Nonthaburi'}, {'Name': 'Nakhon Ratchasima'}, {'Name': 'Chiang Mai'}, {'Name': 'Lomé'}, {'Name': 'N´Djaména'}, {'Name': 'Brno'}, {'Name': 'Ostrava'}, {'Name': 'Plzen'}, {'Name': 'Tunis'}, {'Name': 'Sfax'}, {'Name': 'Ariana'}, {'Name': 'Ettadhamen'}, {'Name': 'Gaziantep'}, {'Name': 'Konya'}, {'Name': 'Mersin (Içel)'}, {'Name': 'Antalya'}, {'Name': 'Diyarbakir'}, {'Name': 'Kayseri'}, {'Name': 'Eskisehir'}, {'Name': 'Sanliurfa'}, {'Name': 'Samsun'}, {'Name': 'Malatya'}, {'Name': 'Gebze'}, {'Name': 'Denizli'}, {'Name': 'Sivas'}, {'Name': 'Erzurum'}, {'Name': 'Tarsus'}, {'Name': 'Kahramanmaras'}, {'Name': 'Elâzig'}, {'Name': 'Van'}, {'Name': 'Sultanbeyli'}, {'Name': 'Izmit (Kocaeli)'}, {'Name': 'Manisa'}, {'Name': 'Batman'}, {'Name': 'Balikesir'}, {'Name': 'Sakarya (Adapazari)'}, {'Name': 'Ashgabat'}, {'Name': 'Chärjew'}, {'Name': 'Kampala'}, {'Name': 'Zaporizzja'}, {'Name': 'Lviv'}, {'Name': 'Kryvyi Rig'}, {'Name': 'Mykolajiv'}, {'Name': 'Mariupol'}, {'Name': 'Lugansk'}, {'Name': 'Vinnytsja'}, {'Name': 'Makijivka'}, {'Name': 'Herson'}, {'Name': 'Sevastopol'}, {'Name': 'Simferopol'}, {'Name': 'Pultava [Poltava]'}, {'Name': 'Tšernigiv'}, {'Name': 'Tšerkasy'}, {'Name': 'Gorlivka'}, {'Name': 'Zytomyr'}, {'Name': 'Sumy'}, {'Name': 'Dniprodzerzynsk'}, {'Name': 'Kirovograd'}, {'Name': 'Hmelnytskyi'}, {'Name': 'Tšernivtsi'}, {'Name': 'Rivne'}, {'Name': 'Krementšuk'}, {'Name': 'Ivano-Frankivsk'}, {'Name': 'Ternopil'}, {'Name': 'Lutsk'}, {'Name': 'Bila Tserkva'}, {'Name': 'Kramatorsk'}, {'Name': 'Melitopol'}, {'Name': 'Kertš'}, {'Name': 'Debrecen'}, {'Name': 'Miskolc'}, {'Name': 'Auckland'}, {'Name': 'Christchurch'}, {'Name': 'Manukau'}, {'Name': 'North Shore'}, {'Name': 'Waitakere'}, {'Name': 'Wellington'}, {'Name': 'Namangan'}, {'Name': 'Samarkand'}, {'Name': 'Andijon'}, {'Name': 'Buhoro'}, {'Name': 'Karsi'}, {'Name': 'Nukus'}, {'Name': 'Kükon'}, {'Name': 'Fargona'}, {'Name': 'Gomel'}, {'Name': 'Mogiljov'}, {'Name': 'Vitebsk'}, {'Name': 'Grodno'}, {'Name': 'Brest'}, {'Name': 'Bobruisk'}, {'Name': 'Baranovitši'}, {'Name': 'Barquisimeto'}, {'Name': 'Valencia'}, {'Name': 'Ciudad Guayana'}, {'Name': 'Petare'}, {'Name': 'Maracay'}, {'Name': 'Barcelona'}, {'Name': 'Maturín'}, {'Name': 'San Cristóbal'}, {'Name': 'Ciudad Bolívar'}, {'Name': 'Cumaná'}, {'Name': 'Mérida'}, {'Name': 'Cabimas'}, {'Name': 'Barinas'}, {'Name': 'Turmero'}, {'Name': 'Baruta'}, {'Name': 'Puerto Cabello'}, {'Name': 'Santa Ana de Coro'}, {'Name': 'Los Teques'}, {'Name': 'Punto Fijo'}, {'Name': 'Guarenas'}, {'Name': 'Krasnojarsk'}, {'Name': 'Saratov'}, {'Name': 'Toljatti'}, {'Name': 'Uljanovsk'}, {'Name': 'Izevsk'}, {'Name': 'Krasnodar'}, {'Name': 'Jaroslavl'}, {'Name': 'Habarovsk'}, {'Name': 'Vladivostok'}, {'Name': 'Irkutsk'}, {'Name': 'Barnaul'}, {'Name': 'Novokuznetsk'}, {'Name': 'Penza'}, {'Name': 'Rjazan'}, {'Name': 'Orenburg'}, {'Name': 'Lipetsk'}, {'Name': 'Nabereznyje Tšelny'}, {'Name': 'Tula'}, {'Name': 'Tjumen'}, {'Name': 'Kemerovo'}, {'Name': 'Astrahan'}, {'Name': 'Tomsk'}, {'Name': 'Kirov'}, {'Name': 'Ivanovo'}, {'Name': 'Tšeboksary'}, {'Name': 'Brjansk'}, {'Name': 'Tver'}, {'Name': 'Kursk'}, {'Name': 'Magnitogorsk'}, {'Name': 'Kaliningrad'}, {'Name': 'Nizni Tagil'}, {'Name': 'Murmansk'}, {'Name': 'Ulan-Ude'}, {'Name': 'Kurgan'}, {'Name': 'Arkangeli'}, {'Name': 'Sotši'}, {'Name': 'Smolensk'}, {'Name': 'Orjol'}, {'Name': 'Stavropol'}, {'Name': 'Belgorod'}, {'Name': 'Kaluga'}, {'Name': 'Vladimir'}, {'Name': 'Mahatškala'}, {'Name': 'Tšerepovets'}, {'Name': 'Saransk'}, {'Name': 'Tambov'}, {'Name': 'Vladikavkaz'}, {'Name': 'Tšita'}, {'Name': 'Vologda'}, {'Name': 'Veliki Novgorod'}, {'Name': 'Komsomolsk-na-Amure'}, {'Name': 'Kostroma'}, {'Name': 'Volzski'}, {'Name': 'Taganrog'}, {'Name': 'Petroskoi'}, {'Name': 'Bratsk'}, {'Name': 'Dzerzinsk'}, {'Name': 'Surgut'}, {'Name': 'Orsk'}, {'Name': 'Sterlitamak'}, {'Name': 'Angarsk'}, {'Name': 'Joškar-Ola'}, {'Name': 'Rybinsk'}, {'Name': 'Prokopjevsk'}, {'Name': 'Niznevartovsk'}, {'Name': 'Naltšik'}, {'Name': 'Syktyvkar'}, {'Name': 'Severodvinsk'}, {'Name': 'Bijsk'}, {'Name': 'Niznekamsk'}, {'Name': 'Blagoveštšensk'}, {'Name': 'Šahty'}, {'Name': 'Staryi Oskol'}, {'Name': 'Zelenograd'}, {'Name': 'Balakovo'}, {'Name': 'Novorossijsk'}, {'Name': 'Pihkova'}, {'Name': 'Zlatoust'}, {'Name': 'Jakutsk'}, {'Name': 'Podolsk'}, {'Name': 'Petropavlovsk-Kamtšatski'}, {'Name': 'Kamensk-Uralski'}, {'Name': 'Engels'}, {'Name': 'Syzran'}, {'Name': 'Grozny'}, {'Name': 'Novotšerkassk'}, {'Name': 'Berezniki'}, {'Name': 'Juzno-Sahalinsk'}, {'Name': 'Volgodonsk'}, {'Name': 'Abakan'}, {'Name': 'Maikop'}, {'Name': 'Miass'}, {'Name': 'Armavir'}, {'Name': 'Ljubertsy'}, {'Name': 'Rubtsovsk'}, {'Name': 'Haiphong'}, {'Name': 'Da Nang'}, {'Name': 'Biên Hoa'}, {'Name': 'Nha Trang'}, {'Name': 'Hue'}, {'Name': 'Can Tho'}, {'Name': 'Cam Pha'}, {'Name': 'Nam Dinh'}, {'Name': 'Quy Nhon'}, {'Name': 'Tallinn'}, {'Name': 'San Jose'}, {'Name': 'Indianapolis'}, {'Name': 'San Francisco'}, {'Name': 'Jacksonville'}, {'Name': 'Columbus'}, {'Name': 'Austin'}, {'Name': 'Baltimore'}, {'Name': 'Memphis'}, {'Name': 'Milwaukee'}, {'Name': 'Boston'}, {'Name': 'Washington'}, {'Name': 'Nashville-Davidson'}, {'Name': 'El Paso'}, {'Name': 'Seattle'}, {'Name': 'Denver'}, {'Name': 'Charlotte'}, {'Name': 'Fort Worth'}, {'Name': 'Portland'}, {'Name': 'Oklahoma City'}, {'Name': 'Tucson'}, {'Name': 'New Orleans'}, {'Name': 'Las Vegas'}, {'Name': 'Cleveland'}, {'Name': 'Long Beach'}, {'Name': 'Albuquerque'}, {'Name': 'Kansas City'}, {'Name': 'Fresno'}, {'Name': 'Virginia Beach'}, {'Name': 'Atlanta'}, {'Name': 'Sacramento'}, {'Name': 'Oakland'}, {'Name': 'Mesa'}, {'Name': 'Tulsa'}, {'Name': 'Omaha'}, {'Name': 'Minneapolis'}, {'Name': 'Honolulu'}, {'Name': 'Miami'}, {'Name': 'Colorado Springs'}, {'Name': 'Saint Louis'}, {'Name': 'Wichita'}, {'Name': 'Santa Ana'}, {'Name': 'Pittsburgh'}, {'Name': 'Arlington'}, {'Name': 'Cincinnati'}, {'Name': 'Anaheim'}, {'Name': 'Toledo'}, {'Name': 'Tampa'}, {'Name': 'Buffalo'}, {'Name': 'Saint Paul'}, {'Name': 'Corpus Christi'}, {'Name': 'Aurora'}, {'Name': 'Raleigh'}, {'Name': 'Newark'}, {'Name': 'Lexington-Fayette'}, {'Name': 'Anchorage'}, {'Name': 'Louisville'}, {'Name': 'Riverside'}, {'Name': 'Saint Petersburg'}, {'Name': 'Bakersfield'}, {'Name': 'Stockton'}, {'Name': 'Birmingham'}, {'Name': 'Jersey City'}, {'Name': 'Norfolk'}, {'Name': 'Baton Rouge'}, {'Name': 'Hialeah'}, {'Name': 'Lincoln'}, {'Name': 'Greensboro'}, {'Name': 'Plano'}, {'Name': 'Rochester'}, {'Name': 'Glendale'}, {'Name': 'Akron'}, {'Name': 'Garland'}, {'Name': 'Madison'}, {'Name': 'Fort Wayne'}, {'Name': 'Fremont'}, {'Name': 'Scottsdale'}, {'Name': 'Montgomery'}, {'Name': 'Shreveport'}, {'Name': 'Augusta-Richmond County'}, {'Name': 'Lubbock'}, {'Name': 'Chesapeake'}, {'Name': 'Mobile'}, {'Name': 'Des Moines'}, {'Name': 'Grand Rapids'}, {'Name': 'Richmond'}, {'Name': 'Yonkers'}, {'Name': 'Spokane'}, {'Name': 'Glendale'}, {'Name': 'Tacoma'}, {'Name': 'Irving'}, {'Name': 'Huntington Beach'}, {'Name': 'Modesto'}, {'Name': 'Durham'}, {'Name': 'Columbus'}, {'Name': 'Orlando'}, {'Name': 'Boise City'}, {'Name': 'Winston-Salem'}, {'Name': 'San Bernardino'}, {'Name': 'Jackson'}, {'Name': 'Little Rock'}, {'Name': 'Salt Lake City'}, {'Name': 'Reno'}, {'Name': 'Newport News'}, {'Name': 'Chandler'}, {'Name': 'Laredo'}, {'Name': 'Henderson'}, {'Name': 'Arlington'}, {'Name': 'Knoxville'}, {'Name': 'Amarillo'}, {'Name': 'Providence'}, {'Name': 'Chula Vista'}, {'Name': 'Worcester'}, {'Name': 'Oxnard'}, {'Name': 'Dayton'}, {'Name': 'Garden Grove'}, {'Name': 'Oceanside'}, {'Name': 'Bulawayo'}, {'Name': 'Chitungwiza'}, {'Name': 'Mount Darwin'}, {'Name': 'Gaza'}] | Easy | false | false | true | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Return the names of cities that have a population between 160000 and 900000 . | SELECT name FROM city WHERE population BETWEEN 160000 AND 900000 | [{'Name': 'Qandahar'}, {'Name': 'Herat'}, {'Name': 'Amsterdam'}, {'Name': 'Rotterdam'}, {'Name': 'Haag'}, {'Name': 'Utrecht'}, {'Name': 'Eindhoven'}, {'Name': 'Tilburg'}, {'Name': 'Groningen'}, {'Name': 'Breda'}, {'Name': 'Tirana'}, {'Name': 'Oran'}, {'Name': 'Constantine'}, {'Name': 'Annaba'}, {'Name': 'Batna'}, {'Name': 'Sétif'}, {'Name': 'Huambo'}, {'Name': 'Dubai'}, {'Name': 'Abu Dhabi'}, {'Name': 'Sharja'}, {'Name': 'al-Ayn'}, {'Name': 'Lomas de Zamora'}, {'Name': 'Quilmes'}, {'Name': 'Almirante Brown'}, {'Name': 'La Plata'}, {'Name': 'Mar del Plata'}, {'Name': 'San Miguel de Tucumán'}, {'Name': 'Lanús'}, {'Name': 'Merlo'}, {'Name': 'General San Martín'}, {'Name': 'Salta'}, {'Name': 'Moreno'}, {'Name': 'Santa Fé'}, {'Name': 'Avellaneda'}, {'Name': 'Tres de Febrero'}, {'Name': 'Morón'}, {'Name': 'Florencio Varela'}, {'Name': 'San Isidro'}, {'Name': 'Tigre'}, {'Name': 'Malvinas Argentinas'}, {'Name': 'Vicente López'}, {'Name': 'Berazategui'}, {'Name': 'Corrientes'}, {'Name': 'San Miguel'}, {'Name': 'Bahía Blanca'}, {'Name': 'Esteban Echeverría'}, {'Name': 'Resistencia'}, {'Name': 'José C. Paz'}, {'Name': 'Paraná'}, {'Name': 'Godoy Cruz'}, {'Name': 'Posadas'}, {'Name': 'Guaymallén'}, {'Name': 'Santiago del Estero'}, {'Name': 'San Salvador de Jujuy'}, {'Name': 'Hurlingham'}, {'Name': 'Neuquén'}, {'Name': 'Gjumri'}, {'Name': 'Vanadzor'}, {'Name': 'Canberra'}, {'Name': 'Gold Coast'}, {'Name': 'Newcastle'}, {'Name': 'Central Coast'}, {'Name': 'Wollongong'}, {'Name': 'Gäncä'}, {'Name': 'Sumqayit'}, {'Name': 'Nassau'}, {'Name': 'Khulna'}, {'Name': 'Rajshahi'}, {'Name': 'Narayanganj'}, {'Name': 'Rangpur'}, {'Name': 'Mymensingh'}, {'Name': 'Barisal'}, {'Name': 'Tungi'}, {'Name': 'Antwerpen'}, {'Name': 'Gent'}, {'Name': 'Charleroi'}, {'Name': 'Liège'}, {'Name': 'Cotonou'}, {'Name': 'Porto-Novo'}, {'Name': 'La Paz'}, {'Name': 'El Alto'}, {'Name': 'Cochabamba'}, {'Name': 'Oruro'}, {'Name': 'Sucre'}, {'Name': 'Sarajevo'}, {'Name': 'Gaborone'}, {'Name': 'São Gonçalo'}, {'Name': 'Nova Iguaçu'}, {'Name': 'São Luís'}, {'Name': 'Maceió'}, {'Name': 'Duque de Caxias'}, {'Name': 'São Bernardo do Campo'}, {'Name': 'Teresina'}, {'Name': 'Natal'}, {'Name': 'Osasco'}, {'Name': 'Campo Grande'}, {'Name': 'Santo André'}, {'Name': 'João Pessoa'}, {'Name': 'Jaboatão dos Guararapes'}, {'Name': 'Contagem'}, {'Name': 'São José dos Campos'}, {'Name': 'Uberlândia'}, {'Name': 'Feira de Santana'}, {'Name': 'Ribeirão Preto'}, {'Name': 'Sorocaba'}, {'Name': 'Niterói'}, {'Name': 'Cuiabá'}, {'Name': 'Juiz de Fora'}, {'Name': 'Aracaju'}, {'Name': 'São João de Meriti'}, {'Name': 'Londrina'}, {'Name': 'Joinville'}, {'Name': 'Belford Roxo'}, {'Name': 'Santos'}, {'Name': 'Ananindeua'}, {'Name': 'Campos dos Goytacazes'}, {'Name': 'Mauá'}, {'Name': 'Carapicuíba'}, {'Name': 'Olinda'}, {'Name': 'Campina Grande'}, {'Name': 'São José do Rio Preto'}, {'Name': 'Caxias do Sul'}, {'Name': 'Moji das Cruzes'}, {'Name': 'Diadema'}, {'Name': 'Aparecida de Goiânia'}, {'Name': 'Piracicaba'}, {'Name': 'Cariacica'}, {'Name': 'Vila Velha'}, {'Name': 'Pelotas'}, {'Name': 'Bauru'}, {'Name': 'Porto Velho'}, {'Name': 'Serra'}, {'Name': 'Betim'}, {'Name': 'Jundíaí'}, {'Name': 'Canoas'}, {'Name': 'Franca'}, {'Name': 'São Vicente'}, {'Name': 'Maringá'}, {'Name': 'Montes Claros'}, {'Name': 'Anápolis'}, {'Name': 'Florianópolis'}, {'Name': 'Petrópolis'}, {'Name': 'Itaquaquecetuba'}, {'Name': 'Vitória'}, {'Name': 'Ponta Grossa'}, {'Name': 'Rio Branco'}, {'Name': 'Foz do Iguaçu'}, {'Name': 'Macapá'}, {'Name': 'Ilhéus'}, {'Name': 'Vitória da Conquista'}, {'Name': 'Uberaba'}, {'Name': 'Paulista'}, {'Name': 'Limeira'}, {'Name': 'Blumenau'}, {'Name': 'Caruaru'}, {'Name': 'Santarém'}, {'Name': 'Volta Redonda'}, {'Name': 'Novo Hamburgo'}, {'Name': 'Caucaia'}, {'Name': 'Santa Maria'}, {'Name': 'Cascavel'}, {'Name': 'Guarujá'}, {'Name': 'Ribeirão das Neves'}, {'Name': 'Governador Valadares'}, {'Name': 'Taubaté'}, {'Name': 'Imperatriz'}, {'Name': 'Gravataí'}, {'Name': 'Embu'}, {'Name': 'Mossoró'}, {'Name': 'Várzea Grande'}, {'Name': 'Petrolina'}, {'Name': 'Barueri'}, {'Name': 'Viamão'}, {'Name': 'Ipatinga'}, {'Name': 'Juazeiro'}, {'Name': 'Juazeiro do Norte'}, {'Name': 'Taboão da Serra'}, {'Name': 'São José dos Pinhais'}, {'Name': 'Magé'}, {'Name': 'Suzano'}, {'Name': 'São Leopoldo'}, {'Name': 'Marília'}, {'Name': 'São Carlos'}, {'Name': 'Sumaré'}, {'Name': 'Presidente Prudente'}, {'Name': 'Divinópolis'}, {'Name': 'Sete Lagoas'}, {'Name': 'Rio Grande'}, {'Name': 'Itabuna'}, {'Name': 'Jequié'}, {'Name': 'Arapiraca'}, {'Name': 'Colombo'}, {'Name': 'Americana'}, {'Name': 'Alvorada'}, {'Name': 'Araraquara'}, {'Name': 'Itaboraí'}, {'Name': 'Santa Bárbara d´Oeste'}, {'Name': 'Nova Friburgo'}, {'Name': 'Jacareí'}, {'Name': 'Araçatuba'}, {'Name': 'Barra Mansa'}, {'Name': 'Praia Grande'}, {'Name': 'Marabá'}, {'Name': 'Criciúma'}, {'Name': 'Boa Vista'}, {'Name': 'Passo Fundo'}, {'Name': 'Dourados'}, {'Name': 'Santa Luzia'}, {'Name': 'Rio Claro'}, {'Name': 'Maracanaú'}, {'Name': 'Guarapuava'}, {'Name': 'Glasgow'}, {'Name': 'Liverpool'}, {'Name': 'Edinburgh'}, {'Name': 'Sheffield'}, {'Name': 'Manchester'}, {'Name': 'Leeds'}, {'Name': 'Bristol'}, {'Name': 'Cardiff'}, {'Name': 'Coventry'}, {'Name': 'Leicester'}, {'Name': 'Bradford'}, {'Name': 'Belfast'}, {'Name': 'Nottingham'}, {'Name': 'Kingston upon Hull'}, {'Name': 'Plymouth'}, {'Name': 'Stoke-on-Trent'}, {'Name': 'Wolverhampton'}, {'Name': 'Derby'}, {'Name': 'Swansea'}, {'Name': 'Southampton'}, {'Name': 'Aberdeen'}, {'Name': 'Northampton'}, {'Name': 'Dudley'}, {'Name': 'Portsmouth'}, {'Name': 'Newcastle upon Tyne'}, {'Name': 'Sunderland'}, {'Name': 'Luton'}, {'Name': 'Swindon'}, {'Name': 'Southend-on-Sea'}, {'Name': 'Walsall'}, {'Name': 'Bournemouth'}, {'Name': 'Plovdiv'}, {'Name': 'Varna'}, {'Name': 'Burgas'}, {'Name': 'Ruse'}, {'Name': 'Ouagadougou'}, {'Name': 'Bobo-Dioulasso'}, {'Name': 'Bujumbura'}, {'Name': 'Puente Alto'}, {'Name': 'Viña del Mar'}, {'Name': 'Valparaíso'}, {'Name': 'Talcahuano'}, {'Name': 'Antofagasta'}, {'Name': 'San Bernardo'}, {'Name': 'Temuco'}, {'Name': 'Concepción'}, {'Name': 'Rancagua'}, {'Name': 'Arica'}, {'Name': 'Talca'}, {'Name': 'Chillán'}, {'Name': 'Iquique'}, {'Name': 'San José'}, {'Name': 'Djibouti'}, {'Name': 'Santiago de los Caballeros'}, {'Name': 'Cuenca'}, {'Name': 'Machala'}, {'Name': 'Santo Domingo de los Colorados'}, {'Name': 'Portoviejo'}, {'Name': 'Ambato'}, {'Name': 'Manta'}, {'Name': 'Shubra al-Khayma'}, {'Name': 'Port Said'}, {'Name': 'Suez'}, {'Name': 'al-Mahallat al-Kubra'}, {'Name': 'Tanta'}, {'Name': 'al-Mansura'}, {'Name': 'Luxor'}, {'Name': 'Asyut'}, {'Name': 'Bahtim'}, {'Name': 'Zagazig'}, {'Name': 'al-Faiyum'}, {'Name': 'Ismailia'}, {'Name': 'Kafr al-Dawwar'}, {'Name': 'Assuan'}, {'Name': 'Damanhur'}, {'Name': 'al-Minya'}, {'Name': 'Bani Suwayf'}, {'Name': 'Qina'}, {'Name': 'Sawhaj'}, {'Name': 'San Salvador'}, {'Name': 'Asmara'}, {'Name': 'Valencia'}, {'Name': 'Sevilla'}, {'Name': 'Zaragoza'}, {'Name': 'Málaga'}, {'Name': 'Bilbao'}, {'Name': 'Las Palmas de Gran Canaria'}, {'Name': 'Murcia'}, {'Name': 'Palma de Mallorca'}, {'Name': 'Valladolid'}, {'Name': 'Córdoba'}, {'Name': 'Vigo'}, {'Name': 'Alicante [Alacant]'}, {'Name': 'Gijón'}, {'Name': 'L´Hospitalet de Llobregat'}, {'Name': 'Granada'}, {'Name': 'A Coruña (La Coruña)'}, {'Name': 'Vitoria-Gasteiz'}, {'Name': 'Santa Cruz de Tenerife'}, {'Name': 'Badalona'}, {'Name': 'Oviedo'}, {'Name': 'Móstoles'}, {'Name': 'Elche [Elx]'}, {'Name': 'Sabadell'}, {'Name': 'Santander'}, {'Name': 'Jerez de la Frontera'}, {'Name': 'Pamplona [Iruña]'}, {'Name': 'Donostia-San Sebastián'}, {'Name': 'Cartagena'}, {'Name': 'Leganés'}, {'Name': 'Fuenlabrada'}, {'Name': 'Almería'}, {'Name': 'Terrassa'}, {'Name': 'Alcalá de Henares'}, {'Name': 'Burgos'}, {'Name': 'Johannesburg'}, {'Name': 'Port Elizabeth'}, {'Name': 'Pretoria'}, {'Name': 'Inanda'}, {'Name': 'Durban'}, {'Name': 'Vanderbijlpark'}, {'Name': 'Kempton Park'}, {'Name': 'Alberton'}, {'Name': 'Pinetown'}, {'Name': 'Pietermaritzburg'}, {'Name': 'Benoni'}, {'Name': 'Randburg'}, {'Name': 'Umlazi'}, {'Name': 'Bloemfontein'}, {'Name': 'Vereeniging'}, {'Name': 'Wonderboom'}, {'Name': 'Roodepoort'}, {'Name': 'Boksburg'}, {'Name': 'Klerksdorp'}, {'Name': 'Soshanguve'}, {'Name': 'Newcastle'}, {'Name': 'East London'}, {'Name': 'Welkom'}, {'Name': 'Kimberley'}, {'Name': 'Uitenhage'}, {'Name': 'Chatsworth'}, {'Name': 'Mdantsane'}, {'Name': 'Krugersdorp'}, {'Name': 'Botshabelo'}, {'Name': 'Brakpan'}, {'Name': 'Witbank'}, {'Name': 'Oberholzer'}, {'Name': 'Germiston'}, {'Name': 'Springs'}, {'Name': 'Dire Dawa'}, {'Name': 'Cebu'}, {'Name': 'Zamboanga'}, {'Name': 'Pasig'}, {'Name': 'Valenzuela'}, {'Name': 'Las Piñas'}, {'Name': 'Antipolo'}, {'Name': 'Taguig'}, {'Name': 'Cagayan de Oro'}, {'Name': 'Parañaque'}, {'Name': 'Makati'}, {'Name': 'Bacolod'}, {'Name': 'General Santos'}, {'Name': 'Marikina'}, {'Name': 'Dasmariñas'}, {'Name': 'Muntinlupa'}, {'Name': 'Iloilo'}, {'Name': 'Pasay'}, {'Name': 'Malabon'}, {'Name': 'San José del Monte'}, {'Name': 'Bacoor'}, {'Name': 'Iligan'}, {'Name': 'Calamba'}, {'Name': 'Mandaluyong'}, {'Name': 'Butuan'}, {'Name': 'Angeles'}, {'Name': 'Tarlac'}, {'Name': 'Mandaue'}, {'Name': 'Baguio'}, {'Name': 'Batangas'}, {'Name': 'Cainta'}, {'Name': 'San Pedro'}, {'Name': 'Navotas'}, {'Name': 'Cabanatuan'}, {'Name': 'San Fernando'}, {'Name': 'Lipa'}, {'Name': 'Lapu-Lapu'}, {'Name': 'San Pablo'}, {'Name': 'Biñan'}, {'Name': 'Taytay'}, {'Name': 'Lucena'}, {'Name': 'Imus'}, {'Name': 'Olongapo'}, {'Name': 'Binangonan'}, {'Name': 'Santa Rosa'}, {'Name': 'Tagum'}, {'Name': 'Tacloban'}, {'Name': 'Malolos'}, {'Name': 'Mabalacat'}, {'Name': 'Cotabato'}, {'Name': 'Meycauayan'}, {'Name': 'Puerto Princesa'}, {'Name': 'Libreville'}, {'Name': 'Kutaisi'}, {'Name': 'Kumasi'}, {'Name': 'Ciudad de Guatemala'}, {'Name': 'Mixco'}, {'Name': 'Bissau'}, {'Name': 'Georgetown'}, {'Name': 'Port-au-Prince'}, {'Name': 'Carrefour'}, {'Name': 'Delmas'}, {'Name': 'Tegucigalpa'}, {'Name': 'San Pedro Sula'}, {'Name': 'Malang'}, {'Name': 'Bandar Lampung'}, {'Name': 'Bekasi'}, {'Name': 'Padang'}, {'Name': 'Surakarta'}, {'Name': 'Banjarmasin'}, {'Name': 'Pekan Baru'}, {'Name': 'Denpasar'}, {'Name': 'Yogyakarta'}, {'Name': 'Pontianak'}, {'Name': 'Samarinda'}, {'Name': 'Jambi'}, {'Name': 'Depok'}, {'Name': 'Cimahi'}, {'Name': 'Balikpapan'}, {'Name': 'Manado'}, {'Name': 'Mataram'}, {'Name': 'Pekalongan'}, {'Name': 'Tegal'}, {'Name': 'Bogor'}, {'Name': 'Ciputat'}, {'Name': 'Pondokgede'}, {'Name': 'Cirebon'}, {'Name': 'Kediri'}, {'Name': 'Ambon'}, {'Name': 'Jember'}, {'Name': 'Cilacap'}, {'Name': 'Cimanggis'}, {'Name': 'Pematang Siantar'}, {'Name': 'Purwokerto'}, {'Name': 'Ciomas'}, {'Name': 'Tasikmalaya'}, {'Name': 'Madiun'}, {'Name': 'Srinagar'}, {'Name': 'Agra'}, {'Name': 'Coimbatore'}, {'Name': 'Thane (Thana)'}, {'Name': 'Allahabad'}, {'Name': 'Meerut'}, {'Name': 'Vishakhapatnam'}, {'Name': 'Jabalpur'}, {'Name': 'Amritsar'}, {'Name': 'Faridabad'}, {'Name': 'Vijayawada'}, {'Name': 'Gwalior'}, {'Name': 'Jodhpur'}, {'Name': 'Nashik (Nasik)'}, {'Name': 'Hubli-Dharwad'}, {'Name': 'Solapur (Sholapur)'}, {'Name': 'Ranchi'}, {'Name': 'Bareilly'}, {'Name': 'Guwahati (Gauhati)'}, {'Name': 'Shambajinagar (Aurangabad)'}, {'Name': 'Cochin (Kochi)'}, {'Name': 'Rajkot'}, {'Name': 'Kota'}, {'Name': 'Thiruvananthapuram (Trivandrum'}, {'Name': 'Pimpri-Chinchwad'}, {'Name': 'Jalandhar (Jullundur)'}, {'Name': 'Gorakhpur'}, {'Name': 'Chandigarh'}, {'Name': 'Mysore'}, {'Name': 'Aligarh'}, {'Name': 'Guntur'}, {'Name': 'Jamshedpur'}, {'Name': 'Ghaziabad'}, {'Name': 'Warangal'}, {'Name': 'Raipur'}, {'Name': 'Moradabad'}, {'Name': 'Durgapur'}, {'Name': 'Amravati'}, {'Name': 'Calicut (Kozhikode)'}, {'Name': 'Bikaner'}, {'Name': 'Bhubaneswar'}, {'Name': 'Kolhapur'}, {'Name': 'Kataka (Cuttack)'}, {'Name': 'Ajmer'}, {'Name': 'Bhavnagar'}, {'Name': 'Tiruchirapalli'}, {'Name': 'Bhilai'}, {'Name': 'Bhiwandi'}, {'Name': 'Saharanpur'}, {'Name': 'Ulhasnagar'}, {'Name': 'Salem'}, {'Name': 'Ujjain'}, {'Name': 'Malegaon'}, {'Name': 'Jamnagar'}, {'Name': 'Bokaro Steel City'}, {'Name': 'Akola'}, {'Name': 'Belgaum'}, {'Name': 'Rajahmundry'}, {'Name': 'Nellore'}, {'Name': 'Udaipur'}, {'Name': 'New Bombay'}, {'Name': 'Bhatpara'}, {'Name': 'Gulbarga'}, {'Name': 'New Delhi'}, {'Name': 'Jhansi'}, {'Name': 'Gaya'}, {'Name': 'Kakinada'}, {'Name': 'Dhule (Dhulia)'}, {'Name': 'Panihati'}, {'Name': 'Nanded (Nander)'}, {'Name': 'Mangalore'}, {'Name': 'Dehra Dun'}, {'Name': 'Kamarhati'}, {'Name': 'Davangere'}, {'Name': 'Asansol'}, {'Name': 'Bhagalpur'}, {'Name': 'Bellary'}, {'Name': 'Barddhaman (Burdwan)'}, {'Name': 'Rampur'}, {'Name': 'Jalgaon'}, {'Name': 'Muzaffarpur'}, {'Name': 'Nizamabad'}, {'Name': 'Muzaffarnagar'}, {'Name': 'Patiala'}, {'Name': 'Shahjahanpur'}, {'Name': 'Kurnool'}, {'Name': 'Tiruppur (Tirupper)'}, {'Name': 'Rohtak'}, {'Name': 'South Dum Dum'}, {'Name': 'Mathura'}, {'Name': 'Chandrapur'}, {'Name': 'Barahanagar (Baranagar)'}, {'Name': 'Darbhanga'}, {'Name': 'Siliguri (Shiliguri)'}, {'Name': 'Raurkela'}, {'Name': 'Ambattur'}, {'Name': 'Panipat'}, {'Name': 'Firozabad'}, {'Name': 'Ichalkaranji'}, {'Name': 'Jammu'}, {'Name': 'Ramagundam'}, {'Name': 'Eluru'}, {'Name': 'Brahmapur'}, {'Name': 'Alwar'}, {'Name': 'Pondicherry'}, {'Name': 'Thanjavur'}, {'Name': 'Bihar Sharif'}, {'Name': 'Tuticorin'}, {'Name': 'Imphal'}, {'Name': 'Latur'}, {'Name': 'Sagar'}, {'Name': 'Farrukhabad-cum-Fatehgarh'}, {'Name': 'Sangli'}, {'Name': 'Parbhani'}, {'Name': 'Nagar Coil'}, {'Name': 'Bijapur'}, {'Name': 'Kukatpalle'}, {'Name': 'Bally'}, {'Name': 'Bhilwara'}, {'Name': 'Ratlam'}, {'Name': 'Avadi'}, {'Name': 'Dindigul'}, {'Name': 'Ahmadnagar'}, {'Name': 'Bilaspur'}, {'Name': 'Shimoga'}, {'Name': 'Kharagpur'}, {'Name': 'Mira Bhayandar'}, {'Name': 'Vellore'}, {'Name': 'Jalna'}, {'Name': 'Burnpur'}, {'Name': 'Anantapur'}, {'Name': 'Allappuzha (Alleppey)'}, {'Name': 'Tirupati'}, {'Name': 'Karnal'}, {'Name': 'Burhanpur'}, {'Name': 'Hisar (Hissar)'}, {'Name': 'Tiruvottiyur'}, {'Name': 'Mirzapur-cum-Vindhyachal'}, {'Name': 'Secunderabad'}, {'Name': 'Nadiad'}, {'Name': 'Dewas'}, {'Name': 'Murwara (Katni)'}, {'Name': 'Ganganagar'}, {'Name': 'Vizianagaram'}, {'Name': 'Mosul'}, {'Name': 'Irbil'}, {'Name': 'Kirkuk'}, {'Name': 'Basra'}, {'Name': 'al-Sulaymaniya'}, {'Name': 'al-Najaf'}, {'Name': 'Karbala'}, {'Name': 'al-Hilla'}, {'Name': 'al-Nasiriya'}, {'Name': 'al-Amara'}, {'Name': 'al-Diwaniya'}, {'Name': 'al-Ramadi'}, {'Name': 'al-Kut'}, {'Name': 'Ahvaz'}, {'Name': 'Qom'}, {'Name': 'Kermanshah'}, {'Name': 'Urmia'}, {'Name': 'Zahedan'}, {'Name': 'Rasht'}, {'Name': 'Hamadan'}, {'Name': 'Kerman'}, {'Name': 'Arak'}, {'Name': 'Ardebil'}, {'Name': 'Yazd'}, {'Name': 'Qazvin'}, {'Name': 'Zanjan'}, {'Name': 'Sanandaj'}, {'Name': 'Bandar-e-Abbas'}, {'Name': 'Khorramabad'}, {'Name': 'Eslamshahr'}, {'Name': 'Borujerd'}, {'Name': 'Abadan'}, {'Name': 'Dezful'}, {'Name': 'Kashan'}, {'Name': 'Sari'}, {'Name': 'Gorgan'}, {'Name': 'Najafabad'}, {'Name': 'Sabzevar'}, {'Name': 'Khomeynishahr'}, {'Name': 'Dublin'}, {'Name': 'Jerusalem'}, {'Name': 'Tel Aviv-Jaffa'}, {'Name': 'Haifa'}, {'Name': 'Rishon Le Ziyyon'}, {'Name': 'Beerseba'}, {'Name': 'Holon'}, {'Name': 'Palermo'}, {'Name': 'Genova'}, {'Name': 'Bologna'}, {'Name': 'Firenze'}, {'Name': 'Catania'}, {'Name': 'Bari'}, {'Name': 'Venezia'}, {'Name': 'Messina'}, {'Name': 'Verona'}, {'Name': 'Trieste'}, {'Name': 'Padova'}, {'Name': 'Taranto'}, {'Name': 'Brescia'}, {'Name': 'Reggio di Calabria'}, {'Name': 'Modena'}, {'Name': 'Prato'}, {'Name': 'Parma'}, {'Name': 'Cagliari'}, {'Name': 'Livorno'}, {'Name': 'Graz'}, {'Name': 'Linz'}, {'Name': 'Chiba'}, {'Name': 'Sakai'}, {'Name': 'Kumamoto'}, {'Name': 'Okayama'}, {'Name': 'Sagamihara'}, {'Name': 'Hamamatsu'}, {'Name': 'Kagoshima'}, {'Name': 'Funabashi'}, {'Name': 'Higashiosaka'}, {'Name': 'Hachioji'}, {'Name': 'Niigata'}, {'Name': 'Amagasaki'}, {'Name': 'Himeji'}, {'Name': 'Shizuoka'}, {'Name': 'Urawa'}, {'Name': 'Matsuyama'}, {'Name': 'Matsudo'}, {'Name': 'Kanazawa'}, {'Name': 'Kawaguchi'}, {'Name': 'Ichikawa'}, {'Name': 'Omiya'}, {'Name': 'Utsunomiya'}, {'Name': 'Oita'}, {'Name': 'Nagasaki'}, {'Name': 'Yokosuka'}, {'Name': 'Kurashiki'}, {'Name': 'Gifu'}, {'Name': 'Hirakata'}, {'Name': 'Nishinomiya'}, {'Name': 'Toyonaka'}, {'Name': 'Wakayama'}, {'Name': 'Fukuyama'}, {'Name': 'Fujisawa'}, {'Name': 'Asahikawa'}, {'Name': 'Machida'}, {'Name': 'Nara'}, {'Name': 'Takatsuki'}, {'Name': 'Iwaki'}, {'Name': 'Nagano'}, {'Name': 'Toyohashi'}, {'Name': 'Toyota'}, {'Name': 'Suita'}, {'Name': 'Takamatsu'}, {'Name': 'Koriyama'}, {'Name': 'Okazaki'}, {'Name': 'Kawagoe'}, {'Name': 'Tokorozawa'}, {'Name': 'Toyama'}, {'Name': 'Kochi'}, {'Name': 'Kashiwa'}, {'Name': 'Akita'}, {'Name': 'Miyazaki'}, {'Name': 'Koshigaya'}, {'Name': 'Naha'}, {'Name': 'Aomori'}, {'Name': 'Hakodate'}, {'Name': 'Akashi'}, {'Name': 'Yokkaichi'}, {'Name': 'Fukushima'}, {'Name': 'Morioka'}, {'Name': 'Maebashi'}, {'Name': 'Kasugai'}, {'Name': 'Otsu'}, {'Name': 'Ichihara'}, {'Name': 'Yao'}, {'Name': 'Ichinomiya'}, {'Name': 'Tokushima'}, {'Name': 'Kakogawa'}, {'Name': 'Ibaraki'}, {'Name': 'Neyagawa'}, {'Name': 'Shimonoseki'}, {'Name': 'Yamagata'}, {'Name': 'Fukui'}, {'Name': 'Hiratsuka'}, {'Name': 'Mito'}, {'Name': 'Sasebo'}, {'Name': 'Hachinohe'}, {'Name': 'Takasaki'}, {'Name': 'Shimizu'}, {'Name': 'Kurume'}, {'Name': 'Fuji'}, {'Name': 'Soka'}, {'Name': 'Fuchu'}, {'Name': 'Chigasaki'}, {'Name': 'Atsugi'}, {'Name': 'Numazu'}, {'Name': 'Ageo'}, {'Name': 'Yamato'}, {'Name': 'Matsumoto'}, {'Name': 'Kure'}, {'Name': 'Takarazuka'}, {'Name': 'Kasukabe'}, {'Name': 'Chofu'}, {'Name': 'Odawara'}, {'Name': 'Kofu'}, {'Name': 'Kushiro'}, {'Name': 'Kishiwada'}, {'Name': 'Hitachi'}, {'Name': 'Nagaoka'}, {'Name': 'Itami'}, {'Name': 'Uji'}, {'Name': 'Suzuka'}, {'Name': 'Hirosaki'}, {'Name': 'Ube'}, {'Name': 'Kodaira'}, {'Name': 'Takaoka'}, {'Name': 'Obihiro'}, {'Name': 'Tomakomai'}, {'Name': 'Saga'}, {'Name': 'Sakura'}, {'Name': 'Kamakura'}, {'Name': 'Mitaka'}, {'Name': 'Izumi'}, {'Name': 'Hino'}, {'Name': 'Hadano'}, {'Name': 'Ashikaga'}, {'Name': 'Tsu'}, {'Name': 'Sayama'}, {'Name': 'Yachiyo'}, {'Name': 'Tsukuba'}, {'Name': 'Sanaa'}, {'Name': 'Aden'}, {'Name': 'Taizz'}, {'Name': 'Hodeida'}, {'Name': 'al-Zarqa'}, {'Name': 'Irbid'}, {'Name': 'Novi Sad'}, {'Name': 'Niš'}, {'Name': 'Phnom Penh'}, {'Name': 'Garoua'}, {'Name': 'Calgary'}, {'Name': 'Toronto'}, {'Name': 'North York'}, {'Name': 'Winnipeg'}, {'Name': 'Edmonton'}, {'Name': 'Mississauga'}, {'Name': 'Scarborough'}, {'Name': 'Vancouver'}, {'Name': 'Etobicoke'}, {'Name': 'London'}, {'Name': 'Hamilton'}, {'Name': 'Ottawa'}, {'Name': 'Laval'}, {'Name': 'Surrey'}, {'Name': 'Brampton'}, {'Name': 'Windsor'}, {'Name': 'Saskatoon'}, {'Name': 'Kitchener'}, {'Name': 'Markham'}, {'Name': 'Regina'}, {'Name': 'Burnaby'}, {'Name': 'Québec'}, {'Name': 'Qaraghandy'}, {'Name': 'Shymkent'}, {'Name': 'Taraz'}, {'Name': 'Astana'}, {'Name': 'Öskemen'}, {'Name': 'Pavlodar'}, {'Name': 'Semey'}, {'Name': 'Aqtöbe'}, {'Name': 'Qostanay'}, {'Name': 'Petropavl'}, {'Name': 'Oral'}, {'Name': 'Temirtau'}, {'Name': 'Mombasa'}, {'Name': 'Kisumu'}, {'Name': 'Nakuru'}, {'Name': 'Bangui'}, {'Name': 'Handan'}, {'Name': 'Wuxi'}, {'Name': 'Xuzhou'}, {'Name': 'Datong'}, {'Name': 'Yichun'}, {'Name': 'Benxi'}, {'Name': 'Luoyang'}, {'Name': 'Suzhou'}, {'Name': 'Xining'}, {'Name': 'Huainan'}, {'Name': 'Jixi'}, {'Name': 'Daqing'}, {'Name': 'Fuxin'}, {'Name': 'Amoy [Xiamen]'}, {'Name': 'Liuzhou'}, {'Name': 'Shantou'}, {'Name': 'Jinzhou'}, {'Name': 'Mudanjiang'}, {'Name': 'Yinchuan'}, {'Name': 'Changzhou'}, {'Name': 'Zhangjiakou'}, {'Name': 'Dandong'}, {'Name': 'Hegang'}, {'Name': 'Kaifeng'}, {'Name': 'Jiamusi'}, {'Name': 'Liaoyang'}, {'Name': 'Hengyang'}, {'Name': 'Baoding'}, {'Name': 'Hunjiang'}, {'Name': 'Xinxiang'}, {'Name': 'Huangshi'}, {'Name': 'Haikou'}, {'Name': 'Yantai'}, {'Name': 'Bengbu'}, {'Name': 'Xiangtan'}, {'Name': 'Weifang'}, {'Name': 'Wuhu'}, {'Name': 'Pingxiang'}, {'Name': 'Yingkou'}, {'Name': 'Anyang'}, {'Name': 'Panzhihua'}, {'Name': 'Pingdingshan'}, {'Name': 'Xiangfan'}, {'Name': 'Zhuzhou'}, {'Name': 'Jiaozuo'}, {'Name': 'Wenzhou'}, {'Name': 'Zhangjiang'}, {'Name': 'Zigong'}, {'Name': 'Shuangyashan'}, {'Name': 'Zaozhuang'}, {'Name': 'Yakeshi'}, {'Name': 'Yichang'}, {'Name': 'Zhenjiang'}, {'Name': 'Huaibei'}, {'Name': 'Qinhuangdao'}, {'Name': 'Guilin'}, {'Name': 'Liupanshui'}, {'Name': 'Panjin'}, {'Name': 'Yangquan'}, {'Name': 'Jinxi'}, {'Name': 'Liaoyuan'}, {'Name': 'Lianyungang'}, {'Name': 'Xianyang'}, {'Name': 'Tai´an'}, {'Name': 'Chifeng'}, {'Name': 'Shaoguan'}, {'Name': 'Nantong'}, {'Name': 'Leshan'}, {'Name': 'Baoji'}, {'Name': 'Linyi'}, {'Name': 'Tonghua'}, {'Name': 'Siping'}, {'Name': 'Changzhi'}, {'Name': 'Tengzhou'}, {'Name': 'Chaozhou'}, {'Name': 'Yangzhou'}, {'Name': 'Dongwan'}, {'Name': 'Ma´anshan'}, {'Name': 'Foshan'}, {'Name': 'Yueyang'}, {'Name': 'Xingtai'}, {'Name': 'Changde'}, {'Name': 'Shihezi'}, {'Name': 'Yancheng'}, {'Name': 'Jiujiang'}, {'Name': 'Dongying'}, {'Name': 'Shashi'}, {'Name': 'Xintai'}, {'Name': 'Jingdezhen'}, {'Name': 'Tongchuan'}, {'Name': 'Zhongshan'}, {'Name': 'Shiyan'}, {'Name': 'Tieli'}, {'Name': 'Jining'}, {'Name': 'Wuhai'}, {'Name': 'Mianyang'}, {'Name': 'Luzhou'}, {'Name': 'Zunyi'}, {'Name': 'Shizuishan'}, {'Name': 'Neijiang'}, {'Name': 'Tongliao'}, {'Name': 'Tieling'}, {'Name': 'Wafangdian'}, {'Name': 'Anqing'}, {'Name': 'Shaoyang'}, {'Name': 'Laiwu'}, {'Name': 'Chengde'}, {'Name': 'Tianshui'}, {'Name': 'Nanyang'}, {'Name': 'Cangzhou'}, {'Name': 'Yibin'}, {'Name': 'Huaiyin'}, {'Name': 'Dunhua'}, {'Name': 'Yanji'}, {'Name': 'Jiangmen'}, {'Name': 'Tongling'}, {'Name': 'Suihua'}, {'Name': 'Gongziling'}, {'Name': 'Xiantao'}, {'Name': 'Chaoyang'}, {'Name': 'Ganzhou'}, {'Name': 'Huzhou'}, {'Name': 'Baicheng'}, {'Name': 'Shangzi'}, {'Name': 'Yangjiang'}, {'Name': 'Qitaihe'}, {'Name': 'Gejiu'}, {'Name': 'Jiangyin'}, {'Name': 'Hebi'}, {'Name': 'Jiaxing'}, {'Name': 'Wuzhou'}, {'Name': 'Meihekou'}, {'Name': 'Xuchang'}, {'Name': 'Liaocheng'}, {'Name': 'Haicheng'}, {'Name': 'Qianjiang'}, {'Name': 'Baiyin'}, {'Name': 'Bei´an'}, {'Name': 'Yixing'}, {'Name': 'Laizhou'}, {'Name': 'Qaramay'}, {'Name': 'Acheng'}, {'Name': 'Dezhou'}, {'Name': 'Nanping'}, {'Name': 'Zhaoqing'}, {'Name': 'Beipiao'}, {'Name': 'Fengcheng'}, {'Name': 'Fuyu'}, {'Name': 'Xinyang'}, {'Name': 'Dongtai'}, {'Name': 'Yuci'}, {'Name': 'Honghu'}, {'Name': 'Ezhou'}, {'Name': 'Heze'}, {'Name': 'Daxian'}, {'Name': 'Linfen'}, {'Name': 'Tianmen'}, {'Name': 'Yiyang'}, {'Name': 'Quanzhou'}, {'Name': 'Rizhao'}, {'Name': 'Deyang'}, {'Name': 'Guangyuan'}, {'Name': 'Changshu'}, {'Name': 'Zhangzhou'}, {'Name': 'Hailar'}, {'Name': 'Nanchong'}, {'Name': 'Jiutai'}, {'Name': 'Zhaodong'}, {'Name': 'Shaoxing'}, {'Name': 'Fuyang'}, {'Name': 'Maoming'}, {'Name': 'Qujing'}, {'Name': 'Ghulja'}, {'Name': 'Jiaohe'}, {'Name': 'Puyang'}, {'Name': 'Huadian'}, {'Name': 'Jiangyou'}, {'Name': 'Qashqar'}, {'Name': 'Anshun'}, {'Name': 'Fuling'}, {'Name': 'Xinyu'}, {'Name': 'Hanzhong'}, {'Name': 'Danyang'}, {'Name': 'Chenzhou'}, {'Name': 'Xiaogan'}, {'Name': 'Shangqiu'}, {'Name': 'Zhuhai'}, {'Name': 'Qingyuan'}, {'Name': 'Aqsu'}, {'Name': 'Jining'}, {'Name': 'Xiaoshan'}, {'Name': 'Zaoyang'}, {'Name': 'Xinghua'}, {'Name': 'Hami'}, {'Name': 'Huizhou'}, {'Name': 'Jinmen'}, {'Name': 'Sanming'}, {'Name': 'Bishkek'}, {'Name': 'Osh'}, {'Name': 'Cartagena'}, {'Name': 'Cúcuta'}, {'Name': 'Bucaramanga'}, {'Name': 'Ibagué'}, {'Name': 'Pereira'}, {'Name': 'Santa Marta'}, {'Name': 'Manizales'}, {'Name': 'Bello'}, {'Name': 'Pasto'}, {'Name': 'Neiva'}, {'Name': 'Soledad'}, {'Name': 'Armenia'}, {'Name': 'Villavicencio'}, {'Name': 'Soacha'}, {'Name': 'Valledupar'}, {'Name': 'Montería'}, {'Name': 'Itagüí'}, {'Name': 'Palmira'}, {'Name': 'Buenaventura'}, {'Name': 'Floridablanca'}, {'Name': 'Sincelejo'}, {'Name': 'Popayán'}, {'Name': 'Barrancabermeja'}, {'Name': 'Pointe-Noire'}, {'Name': 'Lubumbashi'}, {'Name': 'Mbuji-Mayi'}, {'Name': 'Kolwezi'}, {'Name': 'Kisangani'}, {'Name': 'Kananga'}, {'Name': 'Likasi'}, {'Name': 'Bukavu'}, {'Name': 'Kikwit'}, {'Name': 'Tshikapa'}, {'Name': 'Matadi'}, {'Name': 'Mbandaka'}, {'Name': 'Hamhung'}, {'Name': 'Chongjin'}, {'Name': 'Nampo'}, {'Name': 'Sinuiju'}, {'Name': 'Wonsan'}, {'Name': 'Phyongsong'}, {'Name': 'Sariwon'}, {'Name': 'Haeju'}, {'Name': 'Kanggye'}, {'Name': 'Kimchaek'}, {'Name': 'Hyesan'}, {'Name': 'Kaesong'}, {'Name': 'Songnam'}, {'Name': 'Puchon'}, {'Name': 'Suwon'}, {'Name': 'Anyang'}, {'Name': 'Chonju'}, {'Name': 'Chongju'}, {'Name': 'Koyang'}, {'Name': 'Ansan'}, {'Name': 'Pohang'}, {'Name': 'Chang-won'}, {'Name': 'Masan'}, {'Name': 'Kwangmyong'}, {'Name': 'Chonan'}, {'Name': 'Chinju'}, {'Name': 'Iksan'}, {'Name': 'Pyongtaek'}, {'Name': 'Kumi'}, {'Name': 'Uijongbu'}, {'Name': 'Kyongju'}, {'Name': 'Kunsan'}, {'Name': 'Cheju'}, {'Name': 'Kimhae'}, {'Name': 'Sunchon'}, {'Name': 'Mokpo'}, {'Name': 'Yong-in'}, {'Name': 'Wonju'}, {'Name': 'Kunpo'}, {'Name': 'Chunchon'}, {'Name': 'Namyangju'}, {'Name': 'Kangnung'}, {'Name': 'Chungju'}, {'Name': 'Andong'}, {'Name': 'Yosu'}, {'Name': 'Kyongsan'}, {'Name': 'Paju'}, {'Name': 'Yangsan'}, {'Name': 'Athenai'}, {'Name': 'Thessaloniki'}, {'Name': 'Pireus'}, {'Name': 'Zagreb'}, {'Name': 'Split'}, {'Name': 'Rijeka'}, {'Name': 'Santiago de Cuba'}, {'Name': 'Camagüey'}, {'Name': 'Holguín'}, {'Name': 'Santa Clara'}, {'Name': 'Guantánamo'}, {'Name': 'Nicosia'}, {'Name': 'Vientiane'}, {'Name': 'Riga'}, {'Name': 'Maseru'}, {'Name': 'Tripoli'}, {'Name': 'Monrovia'}, {'Name': 'Bengasi'}, {'Name': 'Vilnius'}, {'Name': 'Kaunas'}, {'Name': 'Klaipeda'}, {'Name': 'El-Aaiún'}, {'Name': 'Macao'}, {'Name': 'Antananarivo'}, {'Name': 'Skopje'}, {'Name': 'Blantyre'}, {'Name': 'Lilongwe'}, {'Name': 'Ipoh'}, {'Name': 'Johor Baharu'}, {'Name': 'Petaling Jaya'}, {'Name': 'Kelang'}, {'Name': 'Kuala Terengganu'}, {'Name': 'Pinang'}, {'Name': 'Kota Bharu'}, {'Name': 'Kuantan'}, {'Name': 'Taiping'}, {'Name': 'Seremban'}, {'Name': 'Bamako'}, {'Name': 'Rabat'}, {'Name': 'Marrakech'}, {'Name': 'Fès'}, {'Name': 'Tanger'}, {'Name': 'Salé'}, {'Name': 'Meknès'}, {'Name': 'Oujda'}, {'Name': 'Kénitra'}, {'Name': 'Tétouan'}, {'Name': 'Safi'}, {'Name': 'Nouakchott'}, {'Name': 'Naucalpan de Juárez'}, {'Name': 'Mexicali'}, {'Name': 'Culiacán'}, {'Name': 'Acapulco de Juárez'}, {'Name': 'Tlalnepantla de Baz'}, {'Name': 'Mérida'}, {'Name': 'Chihuahua'}, {'Name': 'San Luis Potosí'}, {'Name': 'Guadalupe'}, {'Name': 'Toluca'}, {'Name': 'Aguascalientes'}, {'Name': 'Querétaro'}, {'Name': 'Morelia'}, {'Name': 'Hermosillo'}, {'Name': 'Saltillo'}, {'Name': 'Torreón'}, {'Name': 'Centro (Villahermosa)'}, {'Name': 'San Nicolás de los Garza'}, {'Name': 'Durango'}, {'Name': 'Chimalhuacán'}, {'Name': 'Tlaquepaque'}, {'Name': 'Atizapán de Zaragoza'}, {'Name': 'Veracruz'}, {'Name': 'Cuautitlán Izcalli'}, {'Name': 'Irapuato'}, {'Name': 'Tuxtla Gutiérrez'}, {'Name': 'Tultitlán'}, {'Name': 'Reynosa'}, {'Name': 'Benito Juárez'}, {'Name': 'Matamoros'}, {'Name': 'Xalapa'}, {'Name': 'Celaya'}, {'Name': 'Mazatlán'}, {'Name': 'Ensenada'}, {'Name': 'Ahome'}, {'Name': 'Cajeme'}, {'Name': 'Cuernavaca'}, {'Name': 'Tonalá'}, {'Name': 'Valle de Chalco Solidaridad'}, {'Name': 'Nuevo Laredo'}, {'Name': 'Tepic'}, {'Name': 'Tampico'}, {'Name': 'Ixtapaluca'}, {'Name': 'Apodaca'}, {'Name': 'Guasave'}, {'Name': 'Gómez Palacio'}, {'Name': 'Tapachula'}, {'Name': 'Nicolás Romero'}, {'Name': 'Coatzacoalcos'}, {'Name': 'Uruapan'}, {'Name': 'Victoria'}, {'Name': 'Oaxaca de Juárez'}, {'Name': 'Coacalco de Berriozábal'}, {'Name': 'Pachuca de Soto'}, {'Name': 'General Escobedo'}, {'Name': 'Salamanca'}, {'Name': 'Santa Catarina'}, {'Name': 'Tehuacán'}, {'Name': 'Chalco'}, {'Name': 'Cárdenas'}, {'Name': 'Campeche'}, {'Name': 'La Paz'}, {'Name': 'Othón P. Blanco (Chetumal)'}, {'Name': 'Texcoco'}, {'Name': 'La Paz'}, {'Name': 'Metepec'}, {'Name': 'Monclova'}, {'Name': 'Huixquilucan'}, {'Name': 'Chilpancingo de los Bravo'}, {'Name': 'Puerto Vallarta'}, {'Name': 'Fresnillo'}, {'Name': 'Ciudad Madero'}, {'Name': 'Soledad de Graciano Sánchez'}, {'Name': 'San Juan del Río'}, {'Name': 'San Felipe del Progreso'}, {'Name': 'Córdoba'}, {'Name': 'Tecámac'}, {'Name': 'Ocosingo'}, {'Name': 'Carmen'}, {'Name': 'Lázaro Cárdenas'}, {'Name': 'Jiutepec'}, {'Name': 'Papantla'}, {'Name': 'Comalcalco'}, {'Name': 'Zamora'}, {'Name': 'Chisinau'}, {'Name': 'Tiraspol'}, {'Name': 'Ulan Bator'}, {'Name': 'Matola'}, {'Name': 'Beira'}, {'Name': 'Nampula'}, {'Name': 'Chimoio'}, {'Name': 'Mandalay'}, {'Name': 'Moulmein (Mawlamyine)'}, {'Name': 'Pegu (Bago)'}, {'Name': 'Bassein (Pathein)'}, {'Name': 'Windhoek'}, {'Name': 'Kathmandu'}, {'Name': 'Niamey'}, {'Name': 'Ogbomosho'}, {'Name': 'Kano'}, {'Name': 'Oshogbo'}, {'Name': 'Ilorin'}, {'Name': 'Abeokuta'}, {'Name': 'Port Harcourt'}, {'Name': 'Zaria'}, {'Name': 'Ilesha'}, {'Name': 'Onitsha'}, {'Name': 'Iwo'}, {'Name': 'Ado-Ekiti'}, {'Name': 'Abuja'}, {'Name': 'Kaduna'}, {'Name': 'Mushin'}, {'Name': 'Maiduguri'}, {'Name': 'Enugu'}, {'Name': 'Ede'}, {'Name': 'Aba'}, {'Name': 'Ife'}, {'Name': 'Ila'}, {'Name': 'Oyo'}, {'Name': 'Ikerre'}, {'Name': 'Benin City'}, {'Name': 'Iseyin'}, {'Name': 'Katsina'}, {'Name': 'Jos'}, {'Name': 'Sokoto'}, {'Name': 'Ilobu'}, {'Name': 'Offa'}, {'Name': 'Ikorodu'}, {'Name': 'Ilawe-Ekiti'}, {'Name': 'Owo'}, {'Name': 'Ikirun'}, {'Name': 'Shaki'}, {'Name': 'Calabar'}, {'Name': 'Ondo'}, {'Name': 'Akure'}, {'Name': 'Oslo'}, {'Name': 'Bergen'}, {'Name': 'Bouaké'}, {'Name': 'Quetta'}, {'Name': 'Islamabad'}, {'Name': 'Sargodha'}, {'Name': 'Sialkot'}, {'Name': 'Bahawalpur'}, {'Name': 'Sukkur'}, {'Name': 'Jhang'}, {'Name': 'Sheikhupura'}, {'Name': 'Larkana'}, {'Name': 'Gujrat'}, {'Name': 'Mardan'}, {'Name': 'Kasur'}, {'Name': 'Rahim Yar Khan'}, {'Name': 'Sahiwal'}, {'Name': 'Okara'}, {'Name': 'Wah'}, {'Name': 'Dera Ghazi Khan'}, {'Name': 'Mirpur Khas'}, {'Name': 'Nawabshah'}, {'Name': 'Mingora'}, {'Name': 'Chiniot'}, {'Name': 'Ciudad de Panamá'}, {'Name': 'San Miguelito'}, {'Name': 'Port Moresby'}, {'Name': 'Asunción'}, {'Name': 'Arequipa'}, {'Name': 'Trujillo'}, {'Name': 'Chiclayo'}, {'Name': 'Callao'}, {'Name': 'Iquitos'}, {'Name': 'Chimbote'}, {'Name': 'Huancayo'}, {'Name': 'Piura'}, {'Name': 'Cusco'}, {'Name': 'Pucallpa'}, {'Name': 'Tacna'}, {'Name': 'Ica'}, {'Name': 'Lisboa'}, {'Name': 'Porto'}, {'Name': 'San Juan'}, {'Name': 'Bayamón'}, {'Name': 'Ponce'}, {'Name': 'Carolina'}, {'Name': 'Lódz'}, {'Name': 'Kraków'}, {'Name': 'Wroclaw'}, {'Name': 'Poznan'}, {'Name': 'Gdansk'}, {'Name': 'Szczecin'}, {'Name': 'Bydgoszcz'}, {'Name': 'Lublin'}, {'Name': 'Katowice'}, {'Name': 'Bialystok'}, {'Name': 'Czestochowa'}, {'Name': 'Gdynia'}, {'Name': 'Sosnowiec'}, {'Name': 'Radom'}, {'Name': 'Kielce'}, {'Name': 'Gliwice'}, {'Name': 'Torun'}, {'Name': 'Bytom'}, {'Name': 'Zabrze'}, {'Name': 'Bielsko-Biala'}, {'Name': 'Olsztyn'}, {'Name': 'Rzeszów'}, {'Name': 'Doha'}, {'Name': 'Marseille'}, {'Name': 'Lyon'}, {'Name': 'Toulouse'}, {'Name': 'Nice'}, {'Name': 'Nantes'}, {'Name': 'Strasbourg'}, {'Name': 'Montpellier'}, {'Name': 'Bordeaux'}, {'Name': 'Rennes'}, {'Name': 'Le Havre'}, {'Name': 'Reims'}, {'Name': 'Lille'}, {'Name': 'St-Étienne'}, {'Name': 'Toulon'}, {'Name': 'Iasi'}, {'Name': 'Constanta'}, {'Name': 'Cluj-Napoca'}, {'Name': 'Galati'}, {'Name': 'Timisoara'}, {'Name': 'Brasov'}, {'Name': 'Craiova'}, {'Name': 'Ploiesti'}, {'Name': 'Braila'}, {'Name': 'Oradea'}, {'Name': 'Bacau'}, {'Name': 'Pitesti'}, {'Name': 'Arad'}, {'Name': 'Sibiu'}, {'Name': 'Târgu Mures'}, {'Name': 'Kigali'}, {'Name': 'Stockholm'}, {'Name': 'Gothenburg [Göteborg]'}, {'Name': 'Malmö'}, {'Name': 'Uppsala'}, {'Name': 'Frankfurt am Main'}, {'Name': 'Essen'}, {'Name': 'Dortmund'}, {'Name': 'Stuttgart'}, {'Name': 'Düsseldorf'}, {'Name': 'Bremen'}, {'Name': 'Duisburg'}, {'Name': 'Hannover'}, {'Name': 'Leipzig'}, {'Name': 'Nürnberg'}, {'Name': 'Dresden'}, {'Name': 'Bochum'}, {'Name': 'Wuppertal'}, {'Name': 'Bielefeld'}, {'Name': 'Mannheim'}, {'Name': 'Bonn'}, {'Name': 'Gelsenkirchen'}, {'Name': 'Karlsruhe'}, {'Name': 'Wiesbaden'}, {'Name': 'Münster'}, {'Name': 'Mönchengladbach'}, {'Name': 'Chemnitz'}, {'Name': 'Augsburg'}, {'Name': 'Halle/Saale'}, {'Name': 'Braunschweig'}, {'Name': 'Aachen'}, {'Name': 'Krefeld'}, {'Name': 'Magdeburg'}, {'Name': 'Kiel'}, {'Name': 'Oberhausen'}, {'Name': 'Lübeck'}, {'Name': 'Hagen'}, {'Name': 'Rostock'}, {'Name': 'Freiburg im Breisgau'}, {'Name': 'Erfurt'}, {'Name': 'Kassel'}, {'Name': 'Saarbrücken'}, {'Name': 'Mainz'}, {'Name': 'Hamm'}, {'Name': 'Herne'}, {'Name': 'Mülheim an der Ruhr'}, {'Name': 'Solingen'}, {'Name': 'Osnabrück'}, {'Name': 'Ludwigshafen am Rhein'}, {'Name': 'Leverkusen'}, {'Name': 'Ndola'}, {'Name': 'Kitwe'}, {'Name': 'Medina'}, {'Name': 'al-Dammam'}, {'Name': 'al-Taif'}, {'Name': 'Tabuk'}, {'Name': 'Burayda'}, {'Name': 'al-Hufuf'}, {'Name': 'al-Mubarraz'}, {'Name': 'Khamis Mushayt'}, {'Name': 'Hail'}, {'Name': 'Pikine'}, {'Name': 'Dakar'}, {'Name': 'Thiès'}, {'Name': 'Kaolack'}, {'Name': 'Ziguinchor'}, {'Name': 'Freetown'}, {'Name': 'Bratislava'}, {'Name': 'Košice'}, {'Name': 'Ljubljana'}, {'Name': 'Colombo'}, {'Name': 'Dehiwala'}, {'Name': 'Moratuwa'}, {'Name': 'Sharq al-Nil'}, {'Name': 'Port Sudan'}, {'Name': 'Kassala'}, {'Name': 'Obeid'}, {'Name': 'Nyala'}, {'Name': 'Wad Madani'}, {'Name': 'al-Qadarif'}, {'Name': 'Kusti'}, {'Name': 'Helsinki [Helsingfors]'}, {'Name': 'Espoo'}, {'Name': 'Tampere'}, {'Name': 'Vantaa'}, {'Name': 'Turku [Åbo]'}, {'Name': 'Zürich'}, {'Name': 'Geneve'}, {'Name': 'Basel'}, {'Name': 'Hims'}, {'Name': 'Hama'}, {'Name': 'Latakia'}, {'Name': 'Dushanbe'}, {'Name': 'Khujand'}, {'Name': 'Tainan'}, {'Name': 'Panchiao'}, {'Name': 'Chungho'}, {'Name': 'Keelung (Chilung)'}, {'Name': 'Sanchung'}, {'Name': 'Hsinchuang'}, {'Name': 'Hsinchu'}, {'Name': 'Chungli'}, {'Name': 'Fengshan'}, {'Name': 'Taoyuan'}, {'Name': 'Chiayi'}, {'Name': 'Hsintien'}, {'Name': 'Changhwa'}, {'Name': 'Yungho'}, {'Name': 'Tucheng'}, {'Name': 'Pingtung'}, {'Name': 'Yungkang'}, {'Name': 'Pingchen'}, {'Name': 'Tali'}, {'Name': 'Taiping'}, {'Name': 'Pate'}, {'Name': 'Fengyuan'}, {'Name': 'Luchou'}, {'Name': 'Dodoma'}, {'Name': 'Mwanza'}, {'Name': 'København'}, {'Name': 'Århus'}, {'Name': 'Odense'}, {'Name': 'Aalborg'}, {'Name': 'Nonthaburi'}, {'Name': 'Nakhon Ratchasima'}, {'Name': 'Chiang Mai'}, {'Name': 'Lomé'}, {'Name': 'N´Djaména'}, {'Name': 'Brno'}, {'Name': 'Ostrava'}, {'Name': 'Plzen'}, {'Name': 'Tunis'}, {'Name': 'Sfax'}, {'Name': 'Ariana'}, {'Name': 'Ettadhamen'}, {'Name': 'Gaziantep'}, {'Name': 'Konya'}, {'Name': 'Mersin (Içel)'}, {'Name': 'Antalya'}, {'Name': 'Diyarbakir'}, {'Name': 'Kayseri'}, {'Name': 'Eskisehir'}, {'Name': 'Sanliurfa'}, {'Name': 'Samsun'}, {'Name': 'Malatya'}, {'Name': 'Gebze'}, {'Name': 'Denizli'}, {'Name': 'Sivas'}, {'Name': 'Erzurum'}, {'Name': 'Tarsus'}, {'Name': 'Kahramanmaras'}, {'Name': 'Elâzig'}, {'Name': 'Van'}, {'Name': 'Sultanbeyli'}, {'Name': 'Izmit (Kocaeli)'}, {'Name': 'Manisa'}, {'Name': 'Batman'}, {'Name': 'Balikesir'}, {'Name': 'Sakarya (Adapazari)'}, {'Name': 'Ashgabat'}, {'Name': 'Chärjew'}, {'Name': 'Kampala'}, {'Name': 'Zaporizzja'}, {'Name': 'Lviv'}, {'Name': 'Kryvyi Rig'}, {'Name': 'Mykolajiv'}, {'Name': 'Mariupol'}, {'Name': 'Lugansk'}, {'Name': 'Vinnytsja'}, {'Name': 'Makijivka'}, {'Name': 'Herson'}, {'Name': 'Sevastopol'}, {'Name': 'Simferopol'}, {'Name': 'Pultava [Poltava]'}, {'Name': 'Tšernigiv'}, {'Name': 'Tšerkasy'}, {'Name': 'Gorlivka'}, {'Name': 'Zytomyr'}, {'Name': 'Sumy'}, {'Name': 'Dniprodzerzynsk'}, {'Name': 'Kirovograd'}, {'Name': 'Hmelnytskyi'}, {'Name': 'Tšernivtsi'}, {'Name': 'Rivne'}, {'Name': 'Krementšuk'}, {'Name': 'Ivano-Frankivsk'}, {'Name': 'Ternopil'}, {'Name': 'Lutsk'}, {'Name': 'Bila Tserkva'}, {'Name': 'Kramatorsk'}, {'Name': 'Melitopol'}, {'Name': 'Kertš'}, {'Name': 'Debrecen'}, {'Name': 'Miskolc'}, {'Name': 'Auckland'}, {'Name': 'Christchurch'}, {'Name': 'Manukau'}, {'Name': 'North Shore'}, {'Name': 'Waitakere'}, {'Name': 'Wellington'}, {'Name': 'Namangan'}, {'Name': 'Samarkand'}, {'Name': 'Andijon'}, {'Name': 'Buhoro'}, {'Name': 'Karsi'}, {'Name': 'Nukus'}, {'Name': 'Kükon'}, {'Name': 'Fargona'}, {'Name': 'Gomel'}, {'Name': 'Mogiljov'}, {'Name': 'Vitebsk'}, {'Name': 'Grodno'}, {'Name': 'Brest'}, {'Name': 'Bobruisk'}, {'Name': 'Baranovitši'}, {'Name': 'Barquisimeto'}, {'Name': 'Valencia'}, {'Name': 'Ciudad Guayana'}, {'Name': 'Petare'}, {'Name': 'Maracay'}, {'Name': 'Barcelona'}, {'Name': 'Maturín'}, {'Name': 'San Cristóbal'}, {'Name': 'Ciudad Bolívar'}, {'Name': 'Cumaná'}, {'Name': 'Mérida'}, {'Name': 'Cabimas'}, {'Name': 'Barinas'}, {'Name': 'Turmero'}, {'Name': 'Baruta'}, {'Name': 'Puerto Cabello'}, {'Name': 'Santa Ana de Coro'}, {'Name': 'Los Teques'}, {'Name': 'Punto Fijo'}, {'Name': 'Guarenas'}, {'Name': 'Krasnojarsk'}, {'Name': 'Saratov'}, {'Name': 'Toljatti'}, {'Name': 'Uljanovsk'}, {'Name': 'Izevsk'}, {'Name': 'Krasnodar'}, {'Name': 'Jaroslavl'}, {'Name': 'Habarovsk'}, {'Name': 'Vladivostok'}, {'Name': 'Irkutsk'}, {'Name': 'Barnaul'}, {'Name': 'Novokuznetsk'}, {'Name': 'Penza'}, {'Name': 'Rjazan'}, {'Name': 'Orenburg'}, {'Name': 'Lipetsk'}, {'Name': 'Nabereznyje Tšelny'}, {'Name': 'Tula'}, {'Name': 'Tjumen'}, {'Name': 'Kemerovo'}, {'Name': 'Astrahan'}, {'Name': 'Tomsk'}, {'Name': 'Kirov'}, {'Name': 'Ivanovo'}, {'Name': 'Tšeboksary'}, {'Name': 'Brjansk'}, {'Name': 'Tver'}, {'Name': 'Kursk'}, {'Name': 'Magnitogorsk'}, {'Name': 'Kaliningrad'}, {'Name': 'Nizni Tagil'}, {'Name': 'Murmansk'}, {'Name': 'Ulan-Ude'}, {'Name': 'Kurgan'}, {'Name': 'Arkangeli'}, {'Name': 'Sotši'}, {'Name': 'Smolensk'}, {'Name': 'Orjol'}, {'Name': 'Stavropol'}, {'Name': 'Belgorod'}, {'Name': 'Kaluga'}, {'Name': 'Vladimir'}, {'Name': 'Mahatškala'}, {'Name': 'Tšerepovets'}, {'Name': 'Saransk'}, {'Name': 'Tambov'}, {'Name': 'Vladikavkaz'}, {'Name': 'Tšita'}, {'Name': 'Vologda'}, {'Name': 'Veliki Novgorod'}, {'Name': 'Komsomolsk-na-Amure'}, {'Name': 'Kostroma'}, {'Name': 'Volzski'}, {'Name': 'Taganrog'}, {'Name': 'Petroskoi'}, {'Name': 'Bratsk'}, {'Name': 'Dzerzinsk'}, {'Name': 'Surgut'}, {'Name': 'Orsk'}, {'Name': 'Sterlitamak'}, {'Name': 'Angarsk'}, {'Name': 'Joškar-Ola'}, {'Name': 'Rybinsk'}, {'Name': 'Prokopjevsk'}, {'Name': 'Niznevartovsk'}, {'Name': 'Naltšik'}, {'Name': 'Syktyvkar'}, {'Name': 'Severodvinsk'}, {'Name': 'Bijsk'}, {'Name': 'Niznekamsk'}, {'Name': 'Blagoveštšensk'}, {'Name': 'Šahty'}, {'Name': 'Staryi Oskol'}, {'Name': 'Zelenograd'}, {'Name': 'Balakovo'}, {'Name': 'Novorossijsk'}, {'Name': 'Pihkova'}, {'Name': 'Zlatoust'}, {'Name': 'Jakutsk'}, {'Name': 'Podolsk'}, {'Name': 'Petropavlovsk-Kamtšatski'}, {'Name': 'Kamensk-Uralski'}, {'Name': 'Engels'}, {'Name': 'Syzran'}, {'Name': 'Grozny'}, {'Name': 'Novotšerkassk'}, {'Name': 'Berezniki'}, {'Name': 'Juzno-Sahalinsk'}, {'Name': 'Volgodonsk'}, {'Name': 'Abakan'}, {'Name': 'Maikop'}, {'Name': 'Miass'}, {'Name': 'Armavir'}, {'Name': 'Ljubertsy'}, {'Name': 'Rubtsovsk'}, {'Name': 'Haiphong'}, {'Name': 'Da Nang'}, {'Name': 'Biên Hoa'}, {'Name': 'Nha Trang'}, {'Name': 'Hue'}, {'Name': 'Can Tho'}, {'Name': 'Cam Pha'}, {'Name': 'Nam Dinh'}, {'Name': 'Quy Nhon'}, {'Name': 'Tallinn'}, {'Name': 'San Jose'}, {'Name': 'Indianapolis'}, {'Name': 'San Francisco'}, {'Name': 'Jacksonville'}, {'Name': 'Columbus'}, {'Name': 'Austin'}, {'Name': 'Baltimore'}, {'Name': 'Memphis'}, {'Name': 'Milwaukee'}, {'Name': 'Boston'}, {'Name': 'Washington'}, {'Name': 'Nashville-Davidson'}, {'Name': 'El Paso'}, {'Name': 'Seattle'}, {'Name': 'Denver'}, {'Name': 'Charlotte'}, {'Name': 'Fort Worth'}, {'Name': 'Portland'}, {'Name': 'Oklahoma City'}, {'Name': 'Tucson'}, {'Name': 'New Orleans'}, {'Name': 'Las Vegas'}, {'Name': 'Cleveland'}, {'Name': 'Long Beach'}, {'Name': 'Albuquerque'}, {'Name': 'Kansas City'}, {'Name': 'Fresno'}, {'Name': 'Virginia Beach'}, {'Name': 'Atlanta'}, {'Name': 'Sacramento'}, {'Name': 'Oakland'}, {'Name': 'Mesa'}, {'Name': 'Tulsa'}, {'Name': 'Omaha'}, {'Name': 'Minneapolis'}, {'Name': 'Honolulu'}, {'Name': 'Miami'}, {'Name': 'Colorado Springs'}, {'Name': 'Saint Louis'}, {'Name': 'Wichita'}, {'Name': 'Santa Ana'}, {'Name': 'Pittsburgh'}, {'Name': 'Arlington'}, {'Name': 'Cincinnati'}, {'Name': 'Anaheim'}, {'Name': 'Toledo'}, {'Name': 'Tampa'}, {'Name': 'Buffalo'}, {'Name': 'Saint Paul'}, {'Name': 'Corpus Christi'}, {'Name': 'Aurora'}, {'Name': 'Raleigh'}, {'Name': 'Newark'}, {'Name': 'Lexington-Fayette'}, {'Name': 'Anchorage'}, {'Name': 'Louisville'}, {'Name': 'Riverside'}, {'Name': 'Saint Petersburg'}, {'Name': 'Bakersfield'}, {'Name': 'Stockton'}, {'Name': 'Birmingham'}, {'Name': 'Jersey City'}, {'Name': 'Norfolk'}, {'Name': 'Baton Rouge'}, {'Name': 'Hialeah'}, {'Name': 'Lincoln'}, {'Name': 'Greensboro'}, {'Name': 'Plano'}, {'Name': 'Rochester'}, {'Name': 'Glendale'}, {'Name': 'Akron'}, {'Name': 'Garland'}, {'Name': 'Madison'}, {'Name': 'Fort Wayne'}, {'Name': 'Fremont'}, {'Name': 'Scottsdale'}, {'Name': 'Montgomery'}, {'Name': 'Shreveport'}, {'Name': 'Augusta-Richmond County'}, {'Name': 'Lubbock'}, {'Name': 'Chesapeake'}, {'Name': 'Mobile'}, {'Name': 'Des Moines'}, {'Name': 'Grand Rapids'}, {'Name': 'Richmond'}, {'Name': 'Yonkers'}, {'Name': 'Spokane'}, {'Name': 'Glendale'}, {'Name': 'Tacoma'}, {'Name': 'Irving'}, {'Name': 'Huntington Beach'}, {'Name': 'Modesto'}, {'Name': 'Durham'}, {'Name': 'Columbus'}, {'Name': 'Orlando'}, {'Name': 'Boise City'}, {'Name': 'Winston-Salem'}, {'Name': 'San Bernardino'}, {'Name': 'Jackson'}, {'Name': 'Little Rock'}, {'Name': 'Salt Lake City'}, {'Name': 'Reno'}, {'Name': 'Newport News'}, {'Name': 'Chandler'}, {'Name': 'Laredo'}, {'Name': 'Henderson'}, {'Name': 'Arlington'}, {'Name': 'Knoxville'}, {'Name': 'Amarillo'}, {'Name': 'Providence'}, {'Name': 'Chula Vista'}, {'Name': 'Worcester'}, {'Name': 'Oxnard'}, {'Name': 'Dayton'}, {'Name': 'Garden Grove'}, {'Name': 'Oceanside'}, {'Name': 'Bulawayo'}, {'Name': 'Chitungwiza'}, {'Name': 'Mount Darwin'}, {'Name': 'Gaza'}] | Easy | false | false | true | false | false | false | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Which language is spoken by the largest number of countries? | SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1 | [{'Language': 'English'}] | Easy | false | false | false | true | true | true | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Give the language that is spoken in the most countries. | SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1 | [{'Language': 'English'}] | Easy | false | false | false | true | true | true | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What is the language spoken by the largest percentage of people in each country? | SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode | [{'Language': 'Papiamento', 'CountryCode': 'ABW', 'max(Percentage)': 76.7}, {'Language': 'Pashto', 'CountryCode': 'AFG', 'max(Percentage)': 52.4}, {'Language': 'Ovimbundu', 'CountryCode': 'AGO', 'max(Percentage)': 37.2}, {'Language': 'English', 'CountryCode': 'AIA', 'max(Percentage)': 0.0}, {'Language': 'Albaniana', 'CountryCode': 'ALB', 'max(Percentage)': 97.9}, {'Language': 'Spanish', 'CountryCode': 'AND', 'max(Percentage)': 44.6}, {'Language': 'Papiamento', 'CountryCode': 'ANT', 'max(Percentage)': 86.2}, {'Language': 'Arabic', 'CountryCode': 'ARE', 'max(Percentage)': 42.0}, {'Language': 'Spanish', 'CountryCode': 'ARG', 'max(Percentage)': 96.8}, {'Language': 'Armenian', 'CountryCode': 'ARM', 'max(Percentage)': 93.4}, {'Language': 'Samoan', 'CountryCode': 'ASM', 'max(Percentage)': 90.6}, {'Language': 'Creole English', 'CountryCode': 'ATG', 'max(Percentage)': 95.7}, {'Language': 'English', 'CountryCode': 'AUS', 'max(Percentage)': 81.2}, {'Language': 'German', 'CountryCode': 'AUT', 'max(Percentage)': 92.0}, {'Language': 'Azerbaijani', 'CountryCode': 'AZE', 'max(Percentage)': 89.0}, {'Language': 'Kirundi', 'CountryCode': 'BDI', 'max(Percentage)': 98.1}, {'Language': 'Dutch', 'CountryCode': 'BEL', 'max(Percentage)': 59.2}, {'Language': 'Fon', 'CountryCode': 'BEN', 'max(Percentage)': 39.8}, {'Language': 'Mossi', 'CountryCode': 'BFA', 'max(Percentage)': 50.2}, {'Language': 'Bengali', 'CountryCode': 'BGD', 'max(Percentage)': 97.7}, {'Language': 'Bulgariana', 'CountryCode': 'BGR', 'max(Percentage)': 83.2}, {'Language': 'Arabic', 'CountryCode': 'BHR', 'max(Percentage)': 67.7}, {'Language': 'Creole English', 'CountryCode': 'BHS', 'max(Percentage)': 89.7}, {'Language': 'Serbo-Croatian', 'CountryCode': 'BIH', 'max(Percentage)': 99.2}, {'Language': 'Belorussian', 'CountryCode': 'BLR', 'max(Percentage)': 65.6}, {'Language': 'English', 'CountryCode': 'BLZ', 'max(Percentage)': 50.8}, {'Language': 'English', 'CountryCode': 'BMU', 'max(Percentage)': 100.0}, {'Language': 'Spanish', 'CountryCode': 'BOL', 'max(Percentage)': 87.7}, {'Language': 'Portuguese', 'CountryCode': 'BRA', 'max(Percentage)': 97.5}, {'Language': 'Bajan', 'CountryCode': 'BRB', 'max(Percentage)': 95.1}, {'Language': 'Malay', 'CountryCode': 'BRN', 'max(Percentage)': 45.5}, {'Language': 'Dzongkha', 'CountryCode': 'BTN', 'max(Percentage)': 50.0}, {'Language': 'Tswana', 'CountryCode': 'BWA', 'max(Percentage)': 75.5}, {'Language': 'Gbaya', 'CountryCode': 'CAF', 'max(Percentage)': 23.8}, {'Language': 'English', 'CountryCode': 'CAN', 'max(Percentage)': 60.4}, {'Language': 'English', 'CountryCode': 'CCK', 'max(Percentage)': 0.0}, {'Language': 'German', 'CountryCode': 'CHE', 'max(Percentage)': 63.6}, {'Language': 'Spanish', 'CountryCode': 'CHL', 'max(Percentage)': 89.7}, {'Language': 'Chinese', 'CountryCode': 'CHN', 'max(Percentage)': 92.0}, {'Language': 'Akan', 'CountryCode': 'CIV', 'max(Percentage)': 30.0}, {'Language': 'Fang', 'CountryCode': 'CMR', 'max(Percentage)': 19.7}, {'Language': 'Luba', 'CountryCode': 'COD', 'max(Percentage)': 18.0}, {'Language': 'Kongo', 'CountryCode': 'COG', 'max(Percentage)': 51.5}, {'Language': 'English', 'CountryCode': 'COK', 'max(Percentage)': 0.0}, {'Language': 'Spanish', 'CountryCode': 'COL', 'max(Percentage)': 99.0}, {'Language': 'Comorian', 'CountryCode': 'COM', 'max(Percentage)': 75.0}, {'Language': 'Crioulo', 'CountryCode': 'CPV', 'max(Percentage)': 100.0}, {'Language': 'Spanish', 'CountryCode': 'CRI', 'max(Percentage)': 97.5}, {'Language': 'Spanish', 'CountryCode': 'CUB', 'max(Percentage)': 100.0}, {'Language': 'Chinese', 'CountryCode': 'CXR', 'max(Percentage)': 0.0}, {'Language': 'English', 'CountryCode': 'CYM', 'max(Percentage)': 0.0}, {'Language': 'Greek', 'CountryCode': 'CYP', 'max(Percentage)': 74.1}, {'Language': 'Czech', 'CountryCode': 'CZE', 'max(Percentage)': 81.2}, {'Language': 'German', 'CountryCode': 'DEU', 'max(Percentage)': 91.3}, {'Language': 'Somali', 'CountryCode': 'DJI', 'max(Percentage)': 43.9}, {'Language': 'Creole English', 'CountryCode': 'DMA', 'max(Percentage)': 100.0}, {'Language': 'Danish', 'CountryCode': 'DNK', 'max(Percentage)': 93.5}, {'Language': 'Spanish', 'CountryCode': 'DOM', 'max(Percentage)': 98.0}, {'Language': 'Arabic', 'CountryCode': 'DZA', 'max(Percentage)': 86.0}, {'Language': 'Spanish', 'CountryCode': 'ECU', 'max(Percentage)': 93.0}, {'Language': 'Arabic', 'CountryCode': 'EGY', 'max(Percentage)': 98.8}, {'Language': 'Tigrinja', 'CountryCode': 'ERI', 'max(Percentage)': 49.1}, {'Language': 'Arabic', 'CountryCode': 'ESH', 'max(Percentage)': 100.0}, {'Language': 'Spanish', 'CountryCode': 'ESP', 'max(Percentage)': 74.4}, {'Language': 'Estonian', 'CountryCode': 'EST', 'max(Percentage)': 65.3}, {'Language': 'Oromo', 'CountryCode': 'ETH', 'max(Percentage)': 31.0}, {'Language': 'Finnish', 'CountryCode': 'FIN', 'max(Percentage)': 92.7}, {'Language': 'Fijian', 'CountryCode': 'FJI', 'max(Percentage)': 50.8}, {'Language': 'English', 'CountryCode': 'FLK', 'max(Percentage)': 0.0}, {'Language': 'French', 'CountryCode': 'FRA', 'max(Percentage)': 93.6}, {'Language': 'Faroese', 'CountryCode': 'FRO', 'max(Percentage)': 100.0}, {'Language': 'Trukese', 'CountryCode': 'FSM', 'max(Percentage)': 41.6}, {'Language': 'Fang', 'CountryCode': 'GAB', 'max(Percentage)': 35.8}, {'Language': 'English', 'CountryCode': 'GBR', 'max(Percentage)': 97.3}, {'Language': 'Georgiana', 'CountryCode': 'GEO', 'max(Percentage)': 71.7}, {'Language': 'Akan', 'CountryCode': 'GHA', 'max(Percentage)': 52.4}, {'Language': 'English', 'CountryCode': 'GIB', 'max(Percentage)': 88.9}, {'Language': 'Ful', 'CountryCode': 'GIN', 'max(Percentage)': 38.6}, {'Language': 'Creole French', 'CountryCode': 'GLP', 'max(Percentage)': 95.0}, {'Language': 'Malinke', 'CountryCode': 'GMB', 'max(Percentage)': 34.1}, {'Language': 'Crioulo', 'CountryCode': 'GNB', 'max(Percentage)': 36.4}, {'Language': 'Fang', 'CountryCode': 'GNQ', 'max(Percentage)': 84.8}, {'Language': 'Greek', 'CountryCode': 'GRC', 'max(Percentage)': 98.5}, {'Language': 'Creole English', 'CountryCode': 'GRD', 'max(Percentage)': 100.0}, {'Language': 'Greenlandic', 'CountryCode': 'GRL', 'max(Percentage)': 87.5}, {'Language': 'Spanish', 'CountryCode': 'GTM', 'max(Percentage)': 64.7}, {'Language': 'Creole French', 'CountryCode': 'GUF', 'max(Percentage)': 94.3}, {'Language': 'English', 'CountryCode': 'GUM', 'max(Percentage)': 37.5}, {'Language': 'Creole English', 'CountryCode': 'GUY', 'max(Percentage)': 96.4}, {'Language': 'Canton Chinese', 'CountryCode': 'HKG', 'max(Percentage)': 88.7}, {'Language': 'Spanish', 'CountryCode': 'HND', 'max(Percentage)': 97.2}, {'Language': 'Serbo-Croatian', 'CountryCode': 'HRV', 'max(Percentage)': 95.9}, {'Language': 'Haiti Creole', 'CountryCode': 'HTI', 'max(Percentage)': 100.0}, {'Language': 'Hungarian', 'CountryCode': 'HUN', 'max(Percentage)': 98.5}, {'Language': 'Javanese', 'CountryCode': 'IDN', 'max(Percentage)': 39.4}, {'Language': 'Hindi', 'CountryCode': 'IND', 'max(Percentage)': 39.9}, {'Language': 'English', 'CountryCode': 'IRL', 'max(Percentage)': 98.4}, {'Language': 'Persian', 'CountryCode': 'IRN', 'max(Percentage)': 45.7}, {'Language': 'Arabic', 'CountryCode': 'IRQ', 'max(Percentage)': 77.2}, {'Language': 'Icelandic', 'CountryCode': 'ISL', 'max(Percentage)': 95.7}, {'Language': 'Hebrew', 'CountryCode': 'ISR', 'max(Percentage)': 63.1}, {'Language': 'Italian', 'CountryCode': 'ITA', 'max(Percentage)': 94.1}, {'Language': 'Creole English', 'CountryCode': 'JAM', 'max(Percentage)': 94.2}, {'Language': 'Arabic', 'CountryCode': 'JOR', 'max(Percentage)': 97.9}, {'Language': 'Japanese', 'CountryCode': 'JPN', 'max(Percentage)': 99.1}, {'Language': 'Kazakh', 'CountryCode': 'KAZ', 'max(Percentage)': 46.0}, {'Language': 'Kikuyu', 'CountryCode': 'KEN', 'max(Percentage)': 20.9}, {'Language': 'Kirgiz', 'CountryCode': 'KGZ', 'max(Percentage)': 59.7}, {'Language': 'Khmer', 'CountryCode': 'KHM', 'max(Percentage)': 88.6}, {'Language': 'Kiribati', 'CountryCode': 'KIR', 'max(Percentage)': 98.9}, {'Language': 'Creole English', 'CountryCode': 'KNA', 'max(Percentage)': 100.0}, {'Language': 'Korean', 'CountryCode': 'KOR', 'max(Percentage)': 99.9}, {'Language': 'Arabic', 'CountryCode': 'KWT', 'max(Percentage)': 78.1}, {'Language': 'Lao', 'CountryCode': 'LAO', 'max(Percentage)': 67.2}, {'Language': 'Arabic', 'CountryCode': 'LBN', 'max(Percentage)': 93.0}, {'Language': 'Kpelle', 'CountryCode': 'LBR', 'max(Percentage)': 19.5}, {'Language': 'Arabic', 'CountryCode': 'LBY', 'max(Percentage)': 96.0}, {'Language': 'Creole French', 'CountryCode': 'LCA', 'max(Percentage)': 80.0}, {'Language': 'German', 'CountryCode': 'LIE', 'max(Percentage)': 89.0}, {'Language': 'Singali', 'CountryCode': 'LKA', 'max(Percentage)': 60.3}, {'Language': 'Sotho', 'CountryCode': 'LSO', 'max(Percentage)': 85.0}, {'Language': 'Lithuanian', 'CountryCode': 'LTU', 'max(Percentage)': 81.6}, {'Language': 'Luxembourgish', 'CountryCode': 'LUX', 'max(Percentage)': 64.4}, {'Language': 'Latvian', 'CountryCode': 'LVA', 'max(Percentage)': 55.1}, {'Language': 'Canton Chinese', 'CountryCode': 'MAC', 'max(Percentage)': 85.6}, {'Language': 'Arabic', 'CountryCode': 'MAR', 'max(Percentage)': 65.0}, {'Language': 'French', 'CountryCode': 'MCO', 'max(Percentage)': 41.9}, {'Language': 'Romanian', 'CountryCode': 'MDA', 'max(Percentage)': 61.9}, {'Language': 'Malagasy', 'CountryCode': 'MDG', 'max(Percentage)': 98.9}, {'Language': 'Dhivehi', 'CountryCode': 'MDV', 'max(Percentage)': 100.0}, {'Language': 'Spanish', 'CountryCode': 'MEX', 'max(Percentage)': 92.1}, {'Language': 'Marshallese', 'CountryCode': 'MHL', 'max(Percentage)': 96.8}, {'Language': 'Macedonian', 'CountryCode': 'MKD', 'max(Percentage)': 66.5}, {'Language': 'Bambara', 'CountryCode': 'MLI', 'max(Percentage)': 31.8}, {'Language': 'Maltese', 'CountryCode': 'MLT', 'max(Percentage)': 95.8}, {'Language': 'Burmese', 'CountryCode': 'MMR', 'max(Percentage)': 69.0}, {'Language': 'Mongolian', 'CountryCode': 'MNG', 'max(Percentage)': 78.8}, {'Language': 'Philippene Languages', 'CountryCode': 'MNP', 'max(Percentage)': 34.1}, {'Language': 'Makua', 'CountryCode': 'MOZ', 'max(Percentage)': 27.8}, {'Language': 'Hassaniya', 'CountryCode': 'MRT', 'max(Percentage)': 81.7}, {'Language': 'English', 'CountryCode': 'MSR', 'max(Percentage)': 0.0}, {'Language': 'Creole French', 'CountryCode': 'MTQ', 'max(Percentage)': 96.6}, {'Language': 'Creole French', 'CountryCode': 'MUS', 'max(Percentage)': 70.6}, {'Language': 'Chichewa', 'CountryCode': 'MWI', 'max(Percentage)': 58.3}, {'Language': 'Malay', 'CountryCode': 'MYS', 'max(Percentage)': 58.4}, {'Language': 'Mahoré', 'CountryCode': 'MYT', 'max(Percentage)': 41.9}, {'Language': 'Ovambo', 'CountryCode': 'NAM', 'max(Percentage)': 50.7}, {'Language': 'Malenasian Languages', 'CountryCode': 'NCL', 'max(Percentage)': 45.4}, {'Language': 'Hausa', 'CountryCode': 'NER', 'max(Percentage)': 53.1}, {'Language': 'English', 'CountryCode': 'NFK', 'max(Percentage)': 0.0}, {'Language': 'Joruba', 'CountryCode': 'NGA', 'max(Percentage)': 21.4}, {'Language': 'Spanish', 'CountryCode': 'NIC', 'max(Percentage)': 97.6}, {'Language': 'English', 'CountryCode': 'NIU', 'max(Percentage)': 0.0}, {'Language': 'Dutch', 'CountryCode': 'NLD', 'max(Percentage)': 95.6}, {'Language': 'Norwegian', 'CountryCode': 'NOR', 'max(Percentage)': 96.6}, {'Language': 'Nepali', 'CountryCode': 'NPL', 'max(Percentage)': 50.4}, {'Language': 'Nauru', 'CountryCode': 'NRU', 'max(Percentage)': 57.5}, {'Language': 'English', 'CountryCode': 'NZL', 'max(Percentage)': 87.0}, {'Language': 'Arabic', 'CountryCode': 'OMN', 'max(Percentage)': 76.7}, {'Language': 'Punjabi', 'CountryCode': 'PAK', 'max(Percentage)': 48.2}, {'Language': 'Spanish', 'CountryCode': 'PAN', 'max(Percentage)': 76.8}, {'Language': 'Pitcairnese', 'CountryCode': 'PCN', 'max(Percentage)': 0.0}, {'Language': 'Spanish', 'CountryCode': 'PER', 'max(Percentage)': 79.8}, {'Language': 'Pilipino', 'CountryCode': 'PHL', 'max(Percentage)': 29.3}, {'Language': 'Palau', 'CountryCode': 'PLW', 'max(Percentage)': 82.2}, {'Language': 'Papuan Languages', 'CountryCode': 'PNG', 'max(Percentage)': 78.1}, {'Language': 'Polish', 'CountryCode': 'POL', 'max(Percentage)': 97.6}, {'Language': 'Spanish', 'CountryCode': 'PRI', 'max(Percentage)': 51.3}, {'Language': 'Korean', 'CountryCode': 'PRK', 'max(Percentage)': 99.9}, {'Language': 'Portuguese', 'CountryCode': 'PRT', 'max(Percentage)': 99.0}, {'Language': 'Spanish', 'CountryCode': 'PRY', 'max(Percentage)': 55.1}, {'Language': 'Arabic', 'CountryCode': 'PSE', 'max(Percentage)': 95.9}, {'Language': 'Tahitian', 'CountryCode': 'PYF', 'max(Percentage)': 46.4}, {'Language': 'Arabic', 'CountryCode': 'QAT', 'max(Percentage)': 40.7}, {'Language': 'Creole French', 'CountryCode': 'REU', 'max(Percentage)': 91.5}, {'Language': 'Romanian', 'CountryCode': 'ROM', 'max(Percentage)': 90.7}, {'Language': 'Russian', 'CountryCode': 'RUS', 'max(Percentage)': 86.6}, {'Language': 'Rwanda', 'CountryCode': 'RWA', 'max(Percentage)': 100.0}, {'Language': 'Arabic', 'CountryCode': 'SAU', 'max(Percentage)': 95.0}, {'Language': 'Arabic', 'CountryCode': 'SDN', 'max(Percentage)': 49.4}, {'Language': 'Wolof', 'CountryCode': 'SEN', 'max(Percentage)': 48.1}, {'Language': 'Chinese', 'CountryCode': 'SGP', 'max(Percentage)': 77.1}, {'Language': 'English', 'CountryCode': 'SHN', 'max(Percentage)': 0.0}, {'Language': 'Norwegian', 'CountryCode': 'SJM', 'max(Percentage)': 0.0}, {'Language': 'Malenasian Languages', 'CountryCode': 'SLB', 'max(Percentage)': 85.6}, {'Language': 'Mende', 'CountryCode': 'SLE', 'max(Percentage)': 34.8}, {'Language': 'Spanish', 'CountryCode': 'SLV', 'max(Percentage)': 100.0}, {'Language': 'Italian', 'CountryCode': 'SMR', 'max(Percentage)': 100.0}, {'Language': 'Somali', 'CountryCode': 'SOM', 'max(Percentage)': 98.3}, {'Language': 'French', 'CountryCode': 'SPM', 'max(Percentage)': 0.0}, {'Language': 'Crioulo', 'CountryCode': 'STP', 'max(Percentage)': 86.3}, {'Language': 'Sranantonga', 'CountryCode': 'SUR', 'max(Percentage)': 81.0}, {'Language': 'Slovak', 'CountryCode': 'SVK', 'max(Percentage)': 85.6}, {'Language': 'Slovene', 'CountryCode': 'SVN', 'max(Percentage)': 87.9}, {'Language': 'Swedish', 'CountryCode': 'SWE', 'max(Percentage)': 89.5}, {'Language': 'Swazi', 'CountryCode': 'SWZ', 'max(Percentage)': 89.9}, {'Language': 'Seselwa', 'CountryCode': 'SYC', 'max(Percentage)': 91.3}, {'Language': 'Arabic', 'CountryCode': 'SYR', 'max(Percentage)': 90.0}, {'Language': 'English', 'CountryCode': 'TCA', 'max(Percentage)': 0.0}, {'Language': 'Sara', 'CountryCode': 'TCD', 'max(Percentage)': 27.7}, {'Language': 'Ewe', 'CountryCode': 'TGO', 'max(Percentage)': 23.2}, {'Language': 'Thai', 'CountryCode': 'THA', 'max(Percentage)': 52.6}, {'Language': 'Tadzhik', 'CountryCode': 'TJK', 'max(Percentage)': 62.2}, {'Language': 'English', 'CountryCode': 'TKL', 'max(Percentage)': 0.0}, {'Language': 'Turkmenian', 'CountryCode': 'TKM', 'max(Percentage)': 76.7}, {'Language': 'Portuguese', 'CountryCode': 'TMP', 'max(Percentage)': 0.0}, {'Language': 'Tongan', 'CountryCode': 'TON', 'max(Percentage)': 98.3}, {'Language': 'English', 'CountryCode': 'TTO', 'max(Percentage)': 93.5}, {'Language': 'Arabic', 'CountryCode': 'TUN', 'max(Percentage)': 69.9}, {'Language': 'Turkish', 'CountryCode': 'TUR', 'max(Percentage)': 87.6}, {'Language': 'Tuvalu', 'CountryCode': 'TUV', 'max(Percentage)': 92.5}, {'Language': 'Min', 'CountryCode': 'TWN', 'max(Percentage)': 66.7}, {'Language': 'Nyamwesi', 'CountryCode': 'TZA', 'max(Percentage)': 21.1}, {'Language': 'Ganda', 'CountryCode': 'UGA', 'max(Percentage)': 18.1}, {'Language': 'Ukrainian', 'CountryCode': 'UKR', 'max(Percentage)': 64.7}, {'Language': 'English', 'CountryCode': 'UMI', 'max(Percentage)': 0.0}, {'Language': 'Spanish', 'CountryCode': 'URY', 'max(Percentage)': 95.7}, {'Language': 'English', 'CountryCode': 'USA', 'max(Percentage)': 86.2}, {'Language': 'Uzbek', 'CountryCode': 'UZB', 'max(Percentage)': 72.6}, {'Language': 'Italian', 'CountryCode': 'VAT', 'max(Percentage)': 0.0}, {'Language': 'Creole English', 'CountryCode': 'VCT', 'max(Percentage)': 99.1}, {'Language': 'Spanish', 'CountryCode': 'VEN', 'max(Percentage)': 96.9}, {'Language': 'English', 'CountryCode': 'VGB', 'max(Percentage)': 0.0}, {'Language': 'English', 'CountryCode': 'VIR', 'max(Percentage)': 81.7}, {'Language': 'Vietnamese', 'CountryCode': 'VNM', 'max(Percentage)': 86.8}, {'Language': 'Bislama', 'CountryCode': 'VUT', 'max(Percentage)': 56.6}, {'Language': 'Futuna', 'CountryCode': 'WLF', 'max(Percentage)': 0.0}, {'Language': 'Samoan-English', 'CountryCode': 'WSM', 'max(Percentage)': 52.0}, {'Language': 'Arabic', 'CountryCode': 'YEM', 'max(Percentage)': 99.6}, {'Language': 'Serbo-Croatian', 'CountryCode': 'YUG', 'max(Percentage)': 75.2}, {'Language': 'Zulu', 'CountryCode': 'ZAF', 'max(Percentage)': 22.7}, {'Language': 'Bemba', 'CountryCode': 'ZMB', 'max(Percentage)': 29.7}, {'Language': 'Shona', 'CountryCode': 'ZWE', 'max(Percentage)': 72.1}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each? | SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode | [{'Language': 'Papiamento', 'CountryCode': 'ABW', 'max(Percentage)': 76.7}, {'Language': 'Pashto', 'CountryCode': 'AFG', 'max(Percentage)': 52.4}, {'Language': 'Ovimbundu', 'CountryCode': 'AGO', 'max(Percentage)': 37.2}, {'Language': 'English', 'CountryCode': 'AIA', 'max(Percentage)': 0.0}, {'Language': 'Albaniana', 'CountryCode': 'ALB', 'max(Percentage)': 97.9}, {'Language': 'Spanish', 'CountryCode': 'AND', 'max(Percentage)': 44.6}, {'Language': 'Papiamento', 'CountryCode': 'ANT', 'max(Percentage)': 86.2}, {'Language': 'Arabic', 'CountryCode': 'ARE', 'max(Percentage)': 42.0}, {'Language': 'Spanish', 'CountryCode': 'ARG', 'max(Percentage)': 96.8}, {'Language': 'Armenian', 'CountryCode': 'ARM', 'max(Percentage)': 93.4}, {'Language': 'Samoan', 'CountryCode': 'ASM', 'max(Percentage)': 90.6}, {'Language': 'Creole English', 'CountryCode': 'ATG', 'max(Percentage)': 95.7}, {'Language': 'English', 'CountryCode': 'AUS', 'max(Percentage)': 81.2}, {'Language': 'German', 'CountryCode': 'AUT', 'max(Percentage)': 92.0}, {'Language': 'Azerbaijani', 'CountryCode': 'AZE', 'max(Percentage)': 89.0}, {'Language': 'Kirundi', 'CountryCode': 'BDI', 'max(Percentage)': 98.1}, {'Language': 'Dutch', 'CountryCode': 'BEL', 'max(Percentage)': 59.2}, {'Language': 'Fon', 'CountryCode': 'BEN', 'max(Percentage)': 39.8}, {'Language': 'Mossi', 'CountryCode': 'BFA', 'max(Percentage)': 50.2}, {'Language': 'Bengali', 'CountryCode': 'BGD', 'max(Percentage)': 97.7}, {'Language': 'Bulgariana', 'CountryCode': 'BGR', 'max(Percentage)': 83.2}, {'Language': 'Arabic', 'CountryCode': 'BHR', 'max(Percentage)': 67.7}, {'Language': 'Creole English', 'CountryCode': 'BHS', 'max(Percentage)': 89.7}, {'Language': 'Serbo-Croatian', 'CountryCode': 'BIH', 'max(Percentage)': 99.2}, {'Language': 'Belorussian', 'CountryCode': 'BLR', 'max(Percentage)': 65.6}, {'Language': 'English', 'CountryCode': 'BLZ', 'max(Percentage)': 50.8}, {'Language': 'English', 'CountryCode': 'BMU', 'max(Percentage)': 100.0}, {'Language': 'Spanish', 'CountryCode': 'BOL', 'max(Percentage)': 87.7}, {'Language': 'Portuguese', 'CountryCode': 'BRA', 'max(Percentage)': 97.5}, {'Language': 'Bajan', 'CountryCode': 'BRB', 'max(Percentage)': 95.1}, {'Language': 'Malay', 'CountryCode': 'BRN', 'max(Percentage)': 45.5}, {'Language': 'Dzongkha', 'CountryCode': 'BTN', 'max(Percentage)': 50.0}, {'Language': 'Tswana', 'CountryCode': 'BWA', 'max(Percentage)': 75.5}, {'Language': 'Gbaya', 'CountryCode': 'CAF', 'max(Percentage)': 23.8}, {'Language': 'English', 'CountryCode': 'CAN', 'max(Percentage)': 60.4}, {'Language': 'English', 'CountryCode': 'CCK', 'max(Percentage)': 0.0}, {'Language': 'German', 'CountryCode': 'CHE', 'max(Percentage)': 63.6}, {'Language': 'Spanish', 'CountryCode': 'CHL', 'max(Percentage)': 89.7}, {'Language': 'Chinese', 'CountryCode': 'CHN', 'max(Percentage)': 92.0}, {'Language': 'Akan', 'CountryCode': 'CIV', 'max(Percentage)': 30.0}, {'Language': 'Fang', 'CountryCode': 'CMR', 'max(Percentage)': 19.7}, {'Language': 'Luba', 'CountryCode': 'COD', 'max(Percentage)': 18.0}, {'Language': 'Kongo', 'CountryCode': 'COG', 'max(Percentage)': 51.5}, {'Language': 'English', 'CountryCode': 'COK', 'max(Percentage)': 0.0}, {'Language': 'Spanish', 'CountryCode': 'COL', 'max(Percentage)': 99.0}, {'Language': 'Comorian', 'CountryCode': 'COM', 'max(Percentage)': 75.0}, {'Language': 'Crioulo', 'CountryCode': 'CPV', 'max(Percentage)': 100.0}, {'Language': 'Spanish', 'CountryCode': 'CRI', 'max(Percentage)': 97.5}, {'Language': 'Spanish', 'CountryCode': 'CUB', 'max(Percentage)': 100.0}, {'Language': 'Chinese', 'CountryCode': 'CXR', 'max(Percentage)': 0.0}, {'Language': 'English', 'CountryCode': 'CYM', 'max(Percentage)': 0.0}, {'Language': 'Greek', 'CountryCode': 'CYP', 'max(Percentage)': 74.1}, {'Language': 'Czech', 'CountryCode': 'CZE', 'max(Percentage)': 81.2}, {'Language': 'German', 'CountryCode': 'DEU', 'max(Percentage)': 91.3}, {'Language': 'Somali', 'CountryCode': 'DJI', 'max(Percentage)': 43.9}, {'Language': 'Creole English', 'CountryCode': 'DMA', 'max(Percentage)': 100.0}, {'Language': 'Danish', 'CountryCode': 'DNK', 'max(Percentage)': 93.5}, {'Language': 'Spanish', 'CountryCode': 'DOM', 'max(Percentage)': 98.0}, {'Language': 'Arabic', 'CountryCode': 'DZA', 'max(Percentage)': 86.0}, {'Language': 'Spanish', 'CountryCode': 'ECU', 'max(Percentage)': 93.0}, {'Language': 'Arabic', 'CountryCode': 'EGY', 'max(Percentage)': 98.8}, {'Language': 'Tigrinja', 'CountryCode': 'ERI', 'max(Percentage)': 49.1}, {'Language': 'Arabic', 'CountryCode': 'ESH', 'max(Percentage)': 100.0}, {'Language': 'Spanish', 'CountryCode': 'ESP', 'max(Percentage)': 74.4}, {'Language': 'Estonian', 'CountryCode': 'EST', 'max(Percentage)': 65.3}, {'Language': 'Oromo', 'CountryCode': 'ETH', 'max(Percentage)': 31.0}, {'Language': 'Finnish', 'CountryCode': 'FIN', 'max(Percentage)': 92.7}, {'Language': 'Fijian', 'CountryCode': 'FJI', 'max(Percentage)': 50.8}, {'Language': 'English', 'CountryCode': 'FLK', 'max(Percentage)': 0.0}, {'Language': 'French', 'CountryCode': 'FRA', 'max(Percentage)': 93.6}, {'Language': 'Faroese', 'CountryCode': 'FRO', 'max(Percentage)': 100.0}, {'Language': 'Trukese', 'CountryCode': 'FSM', 'max(Percentage)': 41.6}, {'Language': 'Fang', 'CountryCode': 'GAB', 'max(Percentage)': 35.8}, {'Language': 'English', 'CountryCode': 'GBR', 'max(Percentage)': 97.3}, {'Language': 'Georgiana', 'CountryCode': 'GEO', 'max(Percentage)': 71.7}, {'Language': 'Akan', 'CountryCode': 'GHA', 'max(Percentage)': 52.4}, {'Language': 'English', 'CountryCode': 'GIB', 'max(Percentage)': 88.9}, {'Language': 'Ful', 'CountryCode': 'GIN', 'max(Percentage)': 38.6}, {'Language': 'Creole French', 'CountryCode': 'GLP', 'max(Percentage)': 95.0}, {'Language': 'Malinke', 'CountryCode': 'GMB', 'max(Percentage)': 34.1}, {'Language': 'Crioulo', 'CountryCode': 'GNB', 'max(Percentage)': 36.4}, {'Language': 'Fang', 'CountryCode': 'GNQ', 'max(Percentage)': 84.8}, {'Language': 'Greek', 'CountryCode': 'GRC', 'max(Percentage)': 98.5}, {'Language': 'Creole English', 'CountryCode': 'GRD', 'max(Percentage)': 100.0}, {'Language': 'Greenlandic', 'CountryCode': 'GRL', 'max(Percentage)': 87.5}, {'Language': 'Spanish', 'CountryCode': 'GTM', 'max(Percentage)': 64.7}, {'Language': 'Creole French', 'CountryCode': 'GUF', 'max(Percentage)': 94.3}, {'Language': 'English', 'CountryCode': 'GUM', 'max(Percentage)': 37.5}, {'Language': 'Creole English', 'CountryCode': 'GUY', 'max(Percentage)': 96.4}, {'Language': 'Canton Chinese', 'CountryCode': 'HKG', 'max(Percentage)': 88.7}, {'Language': 'Spanish', 'CountryCode': 'HND', 'max(Percentage)': 97.2}, {'Language': 'Serbo-Croatian', 'CountryCode': 'HRV', 'max(Percentage)': 95.9}, {'Language': 'Haiti Creole', 'CountryCode': 'HTI', 'max(Percentage)': 100.0}, {'Language': 'Hungarian', 'CountryCode': 'HUN', 'max(Percentage)': 98.5}, {'Language': 'Javanese', 'CountryCode': 'IDN', 'max(Percentage)': 39.4}, {'Language': 'Hindi', 'CountryCode': 'IND', 'max(Percentage)': 39.9}, {'Language': 'English', 'CountryCode': 'IRL', 'max(Percentage)': 98.4}, {'Language': 'Persian', 'CountryCode': 'IRN', 'max(Percentage)': 45.7}, {'Language': 'Arabic', 'CountryCode': 'IRQ', 'max(Percentage)': 77.2}, {'Language': 'Icelandic', 'CountryCode': 'ISL', 'max(Percentage)': 95.7}, {'Language': 'Hebrew', 'CountryCode': 'ISR', 'max(Percentage)': 63.1}, {'Language': 'Italian', 'CountryCode': 'ITA', 'max(Percentage)': 94.1}, {'Language': 'Creole English', 'CountryCode': 'JAM', 'max(Percentage)': 94.2}, {'Language': 'Arabic', 'CountryCode': 'JOR', 'max(Percentage)': 97.9}, {'Language': 'Japanese', 'CountryCode': 'JPN', 'max(Percentage)': 99.1}, {'Language': 'Kazakh', 'CountryCode': 'KAZ', 'max(Percentage)': 46.0}, {'Language': 'Kikuyu', 'CountryCode': 'KEN', 'max(Percentage)': 20.9}, {'Language': 'Kirgiz', 'CountryCode': 'KGZ', 'max(Percentage)': 59.7}, {'Language': 'Khmer', 'CountryCode': 'KHM', 'max(Percentage)': 88.6}, {'Language': 'Kiribati', 'CountryCode': 'KIR', 'max(Percentage)': 98.9}, {'Language': 'Creole English', 'CountryCode': 'KNA', 'max(Percentage)': 100.0}, {'Language': 'Korean', 'CountryCode': 'KOR', 'max(Percentage)': 99.9}, {'Language': 'Arabic', 'CountryCode': 'KWT', 'max(Percentage)': 78.1}, {'Language': 'Lao', 'CountryCode': 'LAO', 'max(Percentage)': 67.2}, {'Language': 'Arabic', 'CountryCode': 'LBN', 'max(Percentage)': 93.0}, {'Language': 'Kpelle', 'CountryCode': 'LBR', 'max(Percentage)': 19.5}, {'Language': 'Arabic', 'CountryCode': 'LBY', 'max(Percentage)': 96.0}, {'Language': 'Creole French', 'CountryCode': 'LCA', 'max(Percentage)': 80.0}, {'Language': 'German', 'CountryCode': 'LIE', 'max(Percentage)': 89.0}, {'Language': 'Singali', 'CountryCode': 'LKA', 'max(Percentage)': 60.3}, {'Language': 'Sotho', 'CountryCode': 'LSO', 'max(Percentage)': 85.0}, {'Language': 'Lithuanian', 'CountryCode': 'LTU', 'max(Percentage)': 81.6}, {'Language': 'Luxembourgish', 'CountryCode': 'LUX', 'max(Percentage)': 64.4}, {'Language': 'Latvian', 'CountryCode': 'LVA', 'max(Percentage)': 55.1}, {'Language': 'Canton Chinese', 'CountryCode': 'MAC', 'max(Percentage)': 85.6}, {'Language': 'Arabic', 'CountryCode': 'MAR', 'max(Percentage)': 65.0}, {'Language': 'French', 'CountryCode': 'MCO', 'max(Percentage)': 41.9}, {'Language': 'Romanian', 'CountryCode': 'MDA', 'max(Percentage)': 61.9}, {'Language': 'Malagasy', 'CountryCode': 'MDG', 'max(Percentage)': 98.9}, {'Language': 'Dhivehi', 'CountryCode': 'MDV', 'max(Percentage)': 100.0}, {'Language': 'Spanish', 'CountryCode': 'MEX', 'max(Percentage)': 92.1}, {'Language': 'Marshallese', 'CountryCode': 'MHL', 'max(Percentage)': 96.8}, {'Language': 'Macedonian', 'CountryCode': 'MKD', 'max(Percentage)': 66.5}, {'Language': 'Bambara', 'CountryCode': 'MLI', 'max(Percentage)': 31.8}, {'Language': 'Maltese', 'CountryCode': 'MLT', 'max(Percentage)': 95.8}, {'Language': 'Burmese', 'CountryCode': 'MMR', 'max(Percentage)': 69.0}, {'Language': 'Mongolian', 'CountryCode': 'MNG', 'max(Percentage)': 78.8}, {'Language': 'Philippene Languages', 'CountryCode': 'MNP', 'max(Percentage)': 34.1}, {'Language': 'Makua', 'CountryCode': 'MOZ', 'max(Percentage)': 27.8}, {'Language': 'Hassaniya', 'CountryCode': 'MRT', 'max(Percentage)': 81.7}, {'Language': 'English', 'CountryCode': 'MSR', 'max(Percentage)': 0.0}, {'Language': 'Creole French', 'CountryCode': 'MTQ', 'max(Percentage)': 96.6}, {'Language': 'Creole French', 'CountryCode': 'MUS', 'max(Percentage)': 70.6}, {'Language': 'Chichewa', 'CountryCode': 'MWI', 'max(Percentage)': 58.3}, {'Language': 'Malay', 'CountryCode': 'MYS', 'max(Percentage)': 58.4}, {'Language': 'Mahoré', 'CountryCode': 'MYT', 'max(Percentage)': 41.9}, {'Language': 'Ovambo', 'CountryCode': 'NAM', 'max(Percentage)': 50.7}, {'Language': 'Malenasian Languages', 'CountryCode': 'NCL', 'max(Percentage)': 45.4}, {'Language': 'Hausa', 'CountryCode': 'NER', 'max(Percentage)': 53.1}, {'Language': 'English', 'CountryCode': 'NFK', 'max(Percentage)': 0.0}, {'Language': 'Joruba', 'CountryCode': 'NGA', 'max(Percentage)': 21.4}, {'Language': 'Spanish', 'CountryCode': 'NIC', 'max(Percentage)': 97.6}, {'Language': 'English', 'CountryCode': 'NIU', 'max(Percentage)': 0.0}, {'Language': 'Dutch', 'CountryCode': 'NLD', 'max(Percentage)': 95.6}, {'Language': 'Norwegian', 'CountryCode': 'NOR', 'max(Percentage)': 96.6}, {'Language': 'Nepali', 'CountryCode': 'NPL', 'max(Percentage)': 50.4}, {'Language': 'Nauru', 'CountryCode': 'NRU', 'max(Percentage)': 57.5}, {'Language': 'English', 'CountryCode': 'NZL', 'max(Percentage)': 87.0}, {'Language': 'Arabic', 'CountryCode': 'OMN', 'max(Percentage)': 76.7}, {'Language': 'Punjabi', 'CountryCode': 'PAK', 'max(Percentage)': 48.2}, {'Language': 'Spanish', 'CountryCode': 'PAN', 'max(Percentage)': 76.8}, {'Language': 'Pitcairnese', 'CountryCode': 'PCN', 'max(Percentage)': 0.0}, {'Language': 'Spanish', 'CountryCode': 'PER', 'max(Percentage)': 79.8}, {'Language': 'Pilipino', 'CountryCode': 'PHL', 'max(Percentage)': 29.3}, {'Language': 'Palau', 'CountryCode': 'PLW', 'max(Percentage)': 82.2}, {'Language': 'Papuan Languages', 'CountryCode': 'PNG', 'max(Percentage)': 78.1}, {'Language': 'Polish', 'CountryCode': 'POL', 'max(Percentage)': 97.6}, {'Language': 'Spanish', 'CountryCode': 'PRI', 'max(Percentage)': 51.3}, {'Language': 'Korean', 'CountryCode': 'PRK', 'max(Percentage)': 99.9}, {'Language': 'Portuguese', 'CountryCode': 'PRT', 'max(Percentage)': 99.0}, {'Language': 'Spanish', 'CountryCode': 'PRY', 'max(Percentage)': 55.1}, {'Language': 'Arabic', 'CountryCode': 'PSE', 'max(Percentage)': 95.9}, {'Language': 'Tahitian', 'CountryCode': 'PYF', 'max(Percentage)': 46.4}, {'Language': 'Arabic', 'CountryCode': 'QAT', 'max(Percentage)': 40.7}, {'Language': 'Creole French', 'CountryCode': 'REU', 'max(Percentage)': 91.5}, {'Language': 'Romanian', 'CountryCode': 'ROM', 'max(Percentage)': 90.7}, {'Language': 'Russian', 'CountryCode': 'RUS', 'max(Percentage)': 86.6}, {'Language': 'Rwanda', 'CountryCode': 'RWA', 'max(Percentage)': 100.0}, {'Language': 'Arabic', 'CountryCode': 'SAU', 'max(Percentage)': 95.0}, {'Language': 'Arabic', 'CountryCode': 'SDN', 'max(Percentage)': 49.4}, {'Language': 'Wolof', 'CountryCode': 'SEN', 'max(Percentage)': 48.1}, {'Language': 'Chinese', 'CountryCode': 'SGP', 'max(Percentage)': 77.1}, {'Language': 'English', 'CountryCode': 'SHN', 'max(Percentage)': 0.0}, {'Language': 'Norwegian', 'CountryCode': 'SJM', 'max(Percentage)': 0.0}, {'Language': 'Malenasian Languages', 'CountryCode': 'SLB', 'max(Percentage)': 85.6}, {'Language': 'Mende', 'CountryCode': 'SLE', 'max(Percentage)': 34.8}, {'Language': 'Spanish', 'CountryCode': 'SLV', 'max(Percentage)': 100.0}, {'Language': 'Italian', 'CountryCode': 'SMR', 'max(Percentage)': 100.0}, {'Language': 'Somali', 'CountryCode': 'SOM', 'max(Percentage)': 98.3}, {'Language': 'French', 'CountryCode': 'SPM', 'max(Percentage)': 0.0}, {'Language': 'Crioulo', 'CountryCode': 'STP', 'max(Percentage)': 86.3}, {'Language': 'Sranantonga', 'CountryCode': 'SUR', 'max(Percentage)': 81.0}, {'Language': 'Slovak', 'CountryCode': 'SVK', 'max(Percentage)': 85.6}, {'Language': 'Slovene', 'CountryCode': 'SVN', 'max(Percentage)': 87.9}, {'Language': 'Swedish', 'CountryCode': 'SWE', 'max(Percentage)': 89.5}, {'Language': 'Swazi', 'CountryCode': 'SWZ', 'max(Percentage)': 89.9}, {'Language': 'Seselwa', 'CountryCode': 'SYC', 'max(Percentage)': 91.3}, {'Language': 'Arabic', 'CountryCode': 'SYR', 'max(Percentage)': 90.0}, {'Language': 'English', 'CountryCode': 'TCA', 'max(Percentage)': 0.0}, {'Language': 'Sara', 'CountryCode': 'TCD', 'max(Percentage)': 27.7}, {'Language': 'Ewe', 'CountryCode': 'TGO', 'max(Percentage)': 23.2}, {'Language': 'Thai', 'CountryCode': 'THA', 'max(Percentage)': 52.6}, {'Language': 'Tadzhik', 'CountryCode': 'TJK', 'max(Percentage)': 62.2}, {'Language': 'English', 'CountryCode': 'TKL', 'max(Percentage)': 0.0}, {'Language': 'Turkmenian', 'CountryCode': 'TKM', 'max(Percentage)': 76.7}, {'Language': 'Portuguese', 'CountryCode': 'TMP', 'max(Percentage)': 0.0}, {'Language': 'Tongan', 'CountryCode': 'TON', 'max(Percentage)': 98.3}, {'Language': 'English', 'CountryCode': 'TTO', 'max(Percentage)': 93.5}, {'Language': 'Arabic', 'CountryCode': 'TUN', 'max(Percentage)': 69.9}, {'Language': 'Turkish', 'CountryCode': 'TUR', 'max(Percentage)': 87.6}, {'Language': 'Tuvalu', 'CountryCode': 'TUV', 'max(Percentage)': 92.5}, {'Language': 'Min', 'CountryCode': 'TWN', 'max(Percentage)': 66.7}, {'Language': 'Nyamwesi', 'CountryCode': 'TZA', 'max(Percentage)': 21.1}, {'Language': 'Ganda', 'CountryCode': 'UGA', 'max(Percentage)': 18.1}, {'Language': 'Ukrainian', 'CountryCode': 'UKR', 'max(Percentage)': 64.7}, {'Language': 'English', 'CountryCode': 'UMI', 'max(Percentage)': 0.0}, {'Language': 'Spanish', 'CountryCode': 'URY', 'max(Percentage)': 95.7}, {'Language': 'English', 'CountryCode': 'USA', 'max(Percentage)': 86.2}, {'Language': 'Uzbek', 'CountryCode': 'UZB', 'max(Percentage)': 72.6}, {'Language': 'Italian', 'CountryCode': 'VAT', 'max(Percentage)': 0.0}, {'Language': 'Creole English', 'CountryCode': 'VCT', 'max(Percentage)': 99.1}, {'Language': 'Spanish', 'CountryCode': 'VEN', 'max(Percentage)': 96.9}, {'Language': 'English', 'CountryCode': 'VGB', 'max(Percentage)': 0.0}, {'Language': 'English', 'CountryCode': 'VIR', 'max(Percentage)': 81.7}, {'Language': 'Vietnamese', 'CountryCode': 'VNM', 'max(Percentage)': 86.8}, {'Language': 'Bislama', 'CountryCode': 'VUT', 'max(Percentage)': 56.6}, {'Language': 'Futuna', 'CountryCode': 'WLF', 'max(Percentage)': 0.0}, {'Language': 'Samoan-English', 'CountryCode': 'WSM', 'max(Percentage)': 52.0}, {'Language': 'Arabic', 'CountryCode': 'YEM', 'max(Percentage)': 99.6}, {'Language': 'Serbo-Croatian', 'CountryCode': 'YUG', 'max(Percentage)': 75.2}, {'Language': 'Zulu', 'CountryCode': 'ZAF', 'max(Percentage)': 22.7}, {'Language': 'Bemba', 'CountryCode': 'ZMB', 'max(Percentage)': 29.7}, {'Language': 'Shona', 'CountryCode': 'ZWE', 'max(Percentage)': 72.1}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What is the total number of countries where Spanish is spoken by the largest percentage of people? | SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode | [{'count(*)': 1, 'max(Percentage)': 7.4}, {'count(*)': 1, 'max(Percentage)': 44.6}, {'count(*)': 1, 'max(Percentage)': 96.8}, {'count(*)': 1, 'max(Percentage)': 31.6}, {'count(*)': 1, 'max(Percentage)': 87.7}, {'count(*)': 1, 'max(Percentage)': 0.7}, {'count(*)': 1, 'max(Percentage)': 89.7}, {'count(*)': 1, 'max(Percentage)': 99.0}, {'count(*)': 1, 'max(Percentage)': 97.5}, {'count(*)': 1, 'max(Percentage)': 100.0}, {'count(*)': 1, 'max(Percentage)': 98.0}, {'count(*)': 1, 'max(Percentage)': 93.0}, {'count(*)': 1, 'max(Percentage)': 74.4}, {'count(*)': 1, 'max(Percentage)': 0.4}, {'count(*)': 1, 'max(Percentage)': 64.7}, {'count(*)': 1, 'max(Percentage)': 97.2}, {'count(*)': 1, 'max(Percentage)': 92.1}, {'count(*)': 1, 'max(Percentage)': 97.6}, {'count(*)': 1, 'max(Percentage)': 76.8}, {'count(*)': 1, 'max(Percentage)': 79.8}, {'count(*)': 1, 'max(Percentage)': 51.3}, {'count(*)': 1, 'max(Percentage)': 55.1}, {'count(*)': 1, 'max(Percentage)': 100.0}, {'count(*)': 1, 'max(Percentage)': 0.6}, {'count(*)': 1, 'max(Percentage)': 95.7}, {'count(*)': 1, 'max(Percentage)': 7.5}, {'count(*)': 1, 'max(Percentage)': 96.9}, {'count(*)': 1, 'max(Percentage)': 13.3}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Count the number of countries for which Spanish is the predominantly spoken language. | SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode | [{'count(*)': 1, 'max(Percentage)': 7.4}, {'count(*)': 1, 'max(Percentage)': 44.6}, {'count(*)': 1, 'max(Percentage)': 96.8}, {'count(*)': 1, 'max(Percentage)': 31.6}, {'count(*)': 1, 'max(Percentage)': 87.7}, {'count(*)': 1, 'max(Percentage)': 0.7}, {'count(*)': 1, 'max(Percentage)': 89.7}, {'count(*)': 1, 'max(Percentage)': 99.0}, {'count(*)': 1, 'max(Percentage)': 97.5}, {'count(*)': 1, 'max(Percentage)': 100.0}, {'count(*)': 1, 'max(Percentage)': 98.0}, {'count(*)': 1, 'max(Percentage)': 93.0}, {'count(*)': 1, 'max(Percentage)': 74.4}, {'count(*)': 1, 'max(Percentage)': 0.4}, {'count(*)': 1, 'max(Percentage)': 64.7}, {'count(*)': 1, 'max(Percentage)': 97.2}, {'count(*)': 1, 'max(Percentage)': 92.1}, {'count(*)': 1, 'max(Percentage)': 97.6}, {'count(*)': 1, 'max(Percentage)': 76.8}, {'count(*)': 1, 'max(Percentage)': 79.8}, {'count(*)': 1, 'max(Percentage)': 51.3}, {'count(*)': 1, 'max(Percentage)': 55.1}, {'count(*)': 1, 'max(Percentage)': 100.0}, {'count(*)': 1, 'max(Percentage)': 0.6}, {'count(*)': 1, 'max(Percentage)': 95.7}, {'count(*)': 1, 'max(Percentage)': 7.5}, {'count(*)': 1, 'max(Percentage)': 96.9}, {'count(*)': 1, 'max(Percentage)': 13.3}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | What are the codes of countries where Spanish is spoken by the largest percentage of people? | SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode | [{'CountryCode': 'ABW', 'max(Percentage)': 7.4}, {'CountryCode': 'AND', 'max(Percentage)': 44.6}, {'CountryCode': 'ARG', 'max(Percentage)': 96.8}, {'CountryCode': 'BLZ', 'max(Percentage)': 31.6}, {'CountryCode': 'BOL', 'max(Percentage)': 87.7}, {'CountryCode': 'CAN', 'max(Percentage)': 0.7}, {'CountryCode': 'CHL', 'max(Percentage)': 89.7}, {'CountryCode': 'COL', 'max(Percentage)': 99.0}, {'CountryCode': 'CRI', 'max(Percentage)': 97.5}, {'CountryCode': 'CUB', 'max(Percentage)': 100.0}, {'CountryCode': 'DOM', 'max(Percentage)': 98.0}, {'CountryCode': 'ECU', 'max(Percentage)': 93.0}, {'CountryCode': 'ESP', 'max(Percentage)': 74.4}, {'CountryCode': 'FRA', 'max(Percentage)': 0.4}, {'CountryCode': 'GTM', 'max(Percentage)': 64.7}, {'CountryCode': 'HND', 'max(Percentage)': 97.2}, {'CountryCode': 'MEX', 'max(Percentage)': 92.1}, {'CountryCode': 'NIC', 'max(Percentage)': 97.6}, {'CountryCode': 'PAN', 'max(Percentage)': 76.8}, {'CountryCode': 'PER', 'max(Percentage)': 79.8}, {'CountryCode': 'PRI', 'max(Percentage)': 51.3}, {'CountryCode': 'PRY', 'max(Percentage)': 55.1}, {'CountryCode': 'SLV', 'max(Percentage)': 100.0}, {'CountryCode': 'SWE', 'max(Percentage)': 0.6}, {'CountryCode': 'URY', 'max(Percentage)': 95.7}, {'CountryCode': 'USA', 'max(Percentage)': 7.5}, {'CountryCode': 'VEN', 'max(Percentage)': 96.9}, {'CountryCode': 'VIR', 'max(Percentage)': 13.3}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |
world_1 |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
) |
CREATE TABLE city (
"ID" INTEGER NOT NULL,
"Name" CHAR(35) DEFAULT '' NOT NULL,
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"District" CHAR(20) DEFAULT '' NOT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
PRIMARY KEY ("ID"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from city table:
ID Name CountryCode District Population
1 Kabul AFG Kabol 1780000
2 Qandahar AFG Qandahar 237500
*/
CREATE TABLE country (
"Code" CHAR(3) DEFAULT '' NOT NULL,
"Name" CHAR(52) DEFAULT '' NOT NULL,
"Continent" TEXT DEFAULT 'Asia' NOT NULL,
"Region" CHAR(26) DEFAULT '' NOT NULL,
"SurfaceArea" FLOAT DEFAULT '0.00' NOT NULL,
"IndepYear" INTEGER DEFAULT NULL,
"Population" INTEGER DEFAULT '0' NOT NULL,
"LifeExpectancy" FLOAT DEFAULT NULL,
"GNP" FLOAT DEFAULT NULL,
"GNPOld" FLOAT DEFAULT NULL,
"LocalName" CHAR(45) DEFAULT '' NOT NULL,
"GovernmentForm" CHAR(45) DEFAULT '' NOT NULL,
"HeadOfState" CHAR(60) DEFAULT NULL,
"Capital" INTEGER DEFAULT NULL,
"Code2" CHAR(2) DEFAULT '' NOT NULL,
PRIMARY KEY ("Code")
)
/*
2 rows from country table:
Code Name Continent Region SurfaceArea IndepYear Population LifeExpectancy GNP GNPOld LocalName GovernmentForm HeadOfState Capital Code2
ABW Aruba North America Caribbean 193.0000000000 None 103000 78.4000000000 828.0000000000 793.0000000000 Aruba Nonmetropolitan Territory of The Netherlands Beatrix 129 AW
AFG Afghanistan Asia Southern and Central Asia 652090.0000000000 1919 22720000 45.9000000000 5976.0000000000 None Afganistan/Afqanestan Islamic Emirate Mohammad Omar 1 AF
*/
CREATE TABLE countrylanguage (
"CountryCode" CHAR(3) DEFAULT '' NOT NULL,
"Language" CHAR(30) DEFAULT '' NOT NULL,
"IsOfficial" TEXT DEFAULT 'F' NOT NULL,
"Percentage" FLOAT DEFAULT '0.0' NOT NULL,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY("CountryCode") REFERENCES country ("Code")
)
/*
2 rows from countrylanguage table:
CountryCode Language IsOfficial Percentage
ABW Dutch T 5.3000000000
ABW English F 9.5000000000
*/ | Return the codes of countries for which Spanish is the predominantly spoken language. | SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode | [{'CountryCode': 'ABW', 'max(Percentage)': 7.4}, {'CountryCode': 'AND', 'max(Percentage)': 44.6}, {'CountryCode': 'ARG', 'max(Percentage)': 96.8}, {'CountryCode': 'BLZ', 'max(Percentage)': 31.6}, {'CountryCode': 'BOL', 'max(Percentage)': 87.7}, {'CountryCode': 'CAN', 'max(Percentage)': 0.7}, {'CountryCode': 'CHL', 'max(Percentage)': 89.7}, {'CountryCode': 'COL', 'max(Percentage)': 99.0}, {'CountryCode': 'CRI', 'max(Percentage)': 97.5}, {'CountryCode': 'CUB', 'max(Percentage)': 100.0}, {'CountryCode': 'DOM', 'max(Percentage)': 98.0}, {'CountryCode': 'ECU', 'max(Percentage)': 93.0}, {'CountryCode': 'ESP', 'max(Percentage)': 74.4}, {'CountryCode': 'FRA', 'max(Percentage)': 0.4}, {'CountryCode': 'GTM', 'max(Percentage)': 64.7}, {'CountryCode': 'HND', 'max(Percentage)': 97.2}, {'CountryCode': 'MEX', 'max(Percentage)': 92.1}, {'CountryCode': 'NIC', 'max(Percentage)': 97.6}, {'CountryCode': 'PAN', 'max(Percentage)': 76.8}, {'CountryCode': 'PER', 'max(Percentage)': 79.8}, {'CountryCode': 'PRI', 'max(Percentage)': 51.3}, {'CountryCode': 'PRY', 'max(Percentage)': 55.1}, {'CountryCode': 'SLV', 'max(Percentage)': 100.0}, {'CountryCode': 'SWE', 'max(Percentage)': 0.6}, {'CountryCode': 'URY', 'max(Percentage)': 95.7}, {'CountryCode': 'USA', 'max(Percentage)': 7.5}, {'CountryCode': 'VEN', 'max(Percentage)': 96.9}, {'CountryCode': 'VIR', 'max(Percentage)': 13.3}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | How many conductors are there? | SELECT count(*) FROM conductor | [{'count(*)': 12}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | Count the number of conductors. | SELECT count(*) FROM conductor | [{'count(*)': 12}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | List the names of conductors in ascending order of age. | SELECT Name FROM conductor ORDER BY Age ASC | [{'Name': 'Antal Doráti'}, {'Name': 'Igor Stravinsky'}, {'Name': 'Colin Davis'}, {'Name': 'Michael Tilson Thomas'}, {'Name': 'Paul Jorgensen'}, {'Name': 'Antal Brown'}, {'Name': 'Charles Dutoit'}, {'Name': 'Seiji Ozawa'}, {'Name': 'Valeri Gergiev'}, {'Name': 'Pierre Boulez'}, {'Name': 'Gerard Schwarz'}, {'Name': 'Robert Craft'}] | Easy | false | false | false | true | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | What are the names of conductors, ordered by age? | SELECT Name FROM conductor ORDER BY Age ASC | [{'Name': 'Antal Doráti'}, {'Name': 'Igor Stravinsky'}, {'Name': 'Colin Davis'}, {'Name': 'Michael Tilson Thomas'}, {'Name': 'Paul Jorgensen'}, {'Name': 'Antal Brown'}, {'Name': 'Charles Dutoit'}, {'Name': 'Seiji Ozawa'}, {'Name': 'Valeri Gergiev'}, {'Name': 'Pierre Boulez'}, {'Name': 'Gerard Schwarz'}, {'Name': 'Robert Craft'}] | Easy | false | false | false | true | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | What are the names of conductors whose nationalities are not "USA"? | SELECT Name FROM conductor WHERE Nationality != 'USA' | [{'Name': 'Igor Stravinsky'}, {'Name': 'Paul Jorgensen'}, {'Name': 'Charles Dutoit'}, {'Name': 'Pierre Boulez'}, {'Name': 'Robert Craft'}, {'Name': 'Michael Tilson Thomas'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | Return the names of conductors that do not have the nationality "USA". | SELECT Name FROM conductor WHERE Nationality != 'USA' | [{'Name': 'Igor Stravinsky'}, {'Name': 'Paul Jorgensen'}, {'Name': 'Charles Dutoit'}, {'Name': 'Pierre Boulez'}, {'Name': 'Robert Craft'}, {'Name': 'Michael Tilson Thomas'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | What are the record companies of orchestras in descending order of years in which they were founded? | SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC | [{'Record_Company': 'Columbia Masterworks'}, {'Record_Company': 'Philips'}, {'Record_Company': 'Philips Classics Records'}, {'Record_Company': 'RCA'}, {'Record_Company': 'EMI'}, {'Record_Company': 'Koch Records / Naxos Records'}, {'Record_Company': 'Decca Records'}, {'Record_Company': 'Mercury Records'}, {'Record_Company': 'Deutsche Grammophon'}, {'Record_Company': 'Kultur'}, {'Record_Company': 'Decca Records'}, {'Record_Company': 'Delos Records'}] | Easy | false | false | false | true | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | Return the record companies of orchestras, sorted descending by the years in which they were founded. | SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC | [{'Record_Company': 'Columbia Masterworks'}, {'Record_Company': 'Philips'}, {'Record_Company': 'Philips Classics Records'}, {'Record_Company': 'RCA'}, {'Record_Company': 'EMI'}, {'Record_Company': 'Koch Records / Naxos Records'}, {'Record_Company': 'Decca Records'}, {'Record_Company': 'Mercury Records'}, {'Record_Company': 'Deutsche Grammophon'}, {'Record_Company': 'Kultur'}, {'Record_Company': 'Decca Records'}, {'Record_Company': 'Delos Records'}] | Easy | false | false | false | true | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | What is the average attendance of shows? | SELECT avg(Attendance) FROM SHOW | [{'avg(Attendance)': 1326.4}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | Return the average attendance across all shows. | SELECT avg(Attendance) FROM SHOW | [{'avg(Attendance)': 1326.4}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | What are the maximum and minimum share of performances whose type is not "Live final". | SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != "Live final" | [{'max(SHARE)': '44.7%', 'min(SHARE)': '22.7%'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | Return the maximum and minimum shares for performances that do not have the type "Live final". | SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != "Live final" | [{'max(SHARE)': '44.7%', 'min(SHARE)': '22.7%'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | How many different nationalities do conductors have? | SELECT count(DISTINCT Nationality) FROM conductor | [{'count(DISTINCT Nationality)': 3}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | Count the number of different nationalities of conductors. | SELECT count(DISTINCT Nationality) FROM conductor | [{'count(DISTINCT Nationality)': 3}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | List names of conductors in descending order of years of work. | SELECT Name FROM conductor ORDER BY Year_of_Work DESC | [{'Name': 'Robert Craft'}, {'Name': 'Antal Brown'}, {'Name': 'Gerard Schwarz'}, {'Name': 'Valeri Gergiev'}, {'Name': 'Charles Dutoit'}, {'Name': 'Michael Tilson Thomas'}, {'Name': 'Igor Stravinsky'}, {'Name': 'Paul Jorgensen'}, {'Name': 'Pierre Boulez'}, {'Name': 'Antal Doráti'}, {'Name': 'Seiji Ozawa'}, {'Name': 'Colin Davis'}] | Easy | false | false | false | true | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | What are the names of conductors, sorted descending by the number of years they have worked? | SELECT Name FROM conductor ORDER BY Year_of_Work DESC | [{'Name': 'Robert Craft'}, {'Name': 'Antal Brown'}, {'Name': 'Gerard Schwarz'}, {'Name': 'Valeri Gergiev'}, {'Name': 'Charles Dutoit'}, {'Name': 'Michael Tilson Thomas'}, {'Name': 'Igor Stravinsky'}, {'Name': 'Paul Jorgensen'}, {'Name': 'Pierre Boulez'}, {'Name': 'Antal Doráti'}, {'Name': 'Seiji Ozawa'}, {'Name': 'Colin Davis'}] | Easy | false | false | false | true | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | List the name of the conductor with the most years of work. | SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1 | [{'Name': 'Robert Craft'}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | What is the name of the conductor who has worked the greatest number of years? | SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1 | [{'Name': 'Robert Craft'}] | Easy | false | false | false | true | true | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | Please show the different record companies and the corresponding number of orchestras. | SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company | [{'Record_Company': 'Columbia Masterworks', 'COUNT(*)': 1}, {'Record_Company': 'Decca Records', 'COUNT(*)': 2}, {'Record_Company': 'Delos Records', 'COUNT(*)': 1}, {'Record_Company': 'Deutsche Grammophon', 'COUNT(*)': 1}, {'Record_Company': 'EMI', 'COUNT(*)': 1}, {'Record_Company': 'Koch Records / Naxos Records', 'COUNT(*)': 1}, {'Record_Company': 'Kultur', 'COUNT(*)': 1}, {'Record_Company': 'Mercury Records', 'COUNT(*)': 1}, {'Record_Company': 'Philips', 'COUNT(*)': 1}, {'Record_Company': 'Philips Classics Records', 'COUNT(*)': 1}, {'Record_Company': 'RCA', 'COUNT(*)': 1}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | How many orchestras does each record company manage? | SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company | [{'Record_Company': 'Columbia Masterworks', 'COUNT(*)': 1}, {'Record_Company': 'Decca Records', 'COUNT(*)': 2}, {'Record_Company': 'Delos Records', 'COUNT(*)': 1}, {'Record_Company': 'Deutsche Grammophon', 'COUNT(*)': 1}, {'Record_Company': 'EMI', 'COUNT(*)': 1}, {'Record_Company': 'Koch Records / Naxos Records', 'COUNT(*)': 1}, {'Record_Company': 'Kultur', 'COUNT(*)': 1}, {'Record_Company': 'Mercury Records', 'COUNT(*)': 1}, {'Record_Company': 'Philips', 'COUNT(*)': 1}, {'Record_Company': 'Philips Classics Records', 'COUNT(*)': 1}, {'Record_Company': 'RCA', 'COUNT(*)': 1}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | Please show the record formats of orchestras in ascending order of count. | SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC | [{'Major_Record_Format': 'CD / LP'}, {'Major_Record_Format': 'DVD'}, {'Major_Record_Format': 'CD'}] | Easy | false | false | false | true | false | true | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | What are the major record formats of orchestras, sorted by their frequency? | SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC | [{'Major_Record_Format': 'CD / LP'}, {'Major_Record_Format': 'DVD'}, {'Major_Record_Format': 'CD'}] | Easy | false | false | false | true | false | true | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | List the record company shared by the most number of orchestras. | SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1 | [{'Record_Company': 'Decca Records'}] | Easy | false | false | false | true | true | true | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | What is the record company used by the greatest number of orchestras? | SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1 | [{'Record_Company': 'Decca Records'}] | Easy | false | false | false | true | true | true | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | List the names of orchestras that have no performance. | SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance) | [{'Orchestra': 'San Francisco Symphony Orchestra'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | What are the orchestras that do not have any performances? | SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance) | [{'Orchestra': 'San Francisco Symphony Orchestra'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | Find the number of orchestras whose record format is "CD" or "DVD". | SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = "CD" OR Major_Record_Format = "DVD" | [{'COUNT(*)': 11}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
orchestra |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
) |
CREATE TABLE conductor (
"Conductor_ID" INTEGER,
"Name" TEXT,
"Age" INTEGER,
"Nationality" TEXT,
"Year_of_Work" INTEGER,
PRIMARY KEY ("Conductor_ID")
)
/*
2 rows from conductor table:
Conductor_ID Name Age Nationality Year_of_Work
1 Antal Doráti 40 USA 10
2 Igor Stravinsky 41 UK 11
*/
CREATE TABLE orchestra (
"Orchestra_ID" INTEGER,
"Orchestra" TEXT,
"Conductor_ID" INTEGER,
"Record_Company" TEXT,
"Year_of_Founded" REAL,
"Major_Record_Format" TEXT,
PRIMARY KEY ("Orchestra_ID"),
FOREIGN KEY("Conductor_ID") REFERENCES conductor ("Conductor_ID")
)
/*
2 rows from orchestra table:
Orchestra_ID Orchestra Conductor_ID Record_Company Year_of_Founded Major_Record_Format
1 London Symphony Orchestra 1 Mercury Records 2003.0 CD
2 Columbia Symphony Orchestra 2 Columbia Masterworks 2009.0 CD / LP
*/
CREATE TABLE performance (
"Performance_ID" INTEGER,
"Orchestra_ID" INTEGER,
"Type" TEXT,
"Date" TEXT,
"Official_ratings_(millions)" REAL,
"Weekly_rank" TEXT,
"Share" TEXT,
PRIMARY KEY ("Performance_ID"),
FOREIGN KEY("Orchestra_ID") REFERENCES orchestra ("Orchestra_ID")
)
/*
2 rows from performance table:
Performance_ID Orchestra_ID Type Date Official_ratings_(millions) Weekly_rank Share
1 1 Auditions 1 9 June 5.2 12 22.7%
2 2 Auditions 2 10 June 6.73 8 28.0%
*/
CREATE TABLE show (
"Show_ID" INTEGER,
"Performance_ID" INTEGER,
"If_first_show" BOOLEAN,
"Result" TEXT,
"Attendance" REAL,
FOREIGN KEY("Performance_ID") REFERENCES performance ("Performance_ID")
)
/*
2 rows from show table:
Show_ID Performance_ID If_first_show Result Attendance
1 1 True T 1026.0
2 2 True T 695.0
*/ | Count the number of orchestras that have CD or DVD as their record format. | SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = "CD" OR Major_Record_Format = "DVD" | [{'COUNT(*)': 11}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | How many high schoolers are there? | SELECT count(*) FROM Highschooler | [{'count(*)': 16}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | Count the number of high schoolers. | SELECT count(*) FROM Highschooler | [{'count(*)': 16}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | Show the names and grades of each high schooler. | SELECT name , grade FROM Highschooler | [{'name': 'Jordan', 'grade': 9}, {'name': 'Gabriel', 'grade': 9}, {'name': 'Tiffany', 'grade': 9}, {'name': 'Cassandra', 'grade': 9}, {'name': 'Haley', 'grade': 10}, {'name': 'Andrew', 'grade': 10}, {'name': 'Kris', 'grade': 10}, {'name': 'Brittany', 'grade': 10}, {'name': 'Alexis', 'grade': 11}, {'name': 'Austin', 'grade': 11}, {'name': 'Gabriel', 'grade': 11}, {'name': 'Jessica', 'grade': 11}, {'name': 'Jordan', 'grade': 12}, {'name': 'John', 'grade': 12}, {'name': 'Kyle', 'grade': 12}, {'name': 'Logan', 'grade': 12}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | What are the names and grades for each high schooler? | SELECT name , grade FROM Highschooler | [{'name': 'Jordan', 'grade': 9}, {'name': 'Gabriel', 'grade': 9}, {'name': 'Tiffany', 'grade': 9}, {'name': 'Cassandra', 'grade': 9}, {'name': 'Haley', 'grade': 10}, {'name': 'Andrew', 'grade': 10}, {'name': 'Kris', 'grade': 10}, {'name': 'Brittany', 'grade': 10}, {'name': 'Alexis', 'grade': 11}, {'name': 'Austin', 'grade': 11}, {'name': 'Gabriel', 'grade': 11}, {'name': 'Jessica', 'grade': 11}, {'name': 'Jordan', 'grade': 12}, {'name': 'John', 'grade': 12}, {'name': 'Kyle', 'grade': 12}, {'name': 'Logan', 'grade': 12}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | Show all the grades of the high schoolers. | SELECT grade FROM Highschooler | [{'grade': 9}, {'grade': 9}, {'grade': 9}, {'grade': 9}, {'grade': 10}, {'grade': 10}, {'grade': 10}, {'grade': 10}, {'grade': 11}, {'grade': 11}, {'grade': 11}, {'grade': 11}, {'grade': 12}, {'grade': 12}, {'grade': 12}, {'grade': 12}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | What is the grade of each high schooler? | SELECT grade FROM Highschooler | [{'grade': 9}, {'grade': 9}, {'grade': 9}, {'grade': 9}, {'grade': 10}, {'grade': 10}, {'grade': 10}, {'grade': 10}, {'grade': 11}, {'grade': 11}, {'grade': 11}, {'grade': 11}, {'grade': 12}, {'grade': 12}, {'grade': 12}, {'grade': 12}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | What grade is Kyle in? | SELECT grade FROM Highschooler WHERE name = "Kyle" | [{'grade': 12}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | Return the grade for the high schooler named Kyle. | SELECT grade FROM Highschooler WHERE name = "Kyle" | [{'grade': 12}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | Show the names of all high schoolers in grade 10. | SELECT name FROM Highschooler WHERE grade = 10 | [{'name': 'Haley'}, {'name': 'Andrew'}, {'name': 'Kris'}, {'name': 'Brittany'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | What are the names of all high schoolers in grade 10? | SELECT name FROM Highschooler WHERE grade = 10 | [{'name': 'Haley'}, {'name': 'Andrew'}, {'name': 'Kris'}, {'name': 'Brittany'}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | Show the ID of the high schooler named Kyle. | SELECT ID FROM Highschooler WHERE name = "Kyle" | [{'ID': 1934}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | What is Kyle's id? | SELECT ID FROM Highschooler WHERE name = "Kyle" | [{'ID': 1934}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | How many high schoolers are there in grade 9 or 10? | SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10 | [{'count(*)': 8}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | Count the number of high schoolers in grades 9 or 10. | SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10 | [{'count(*)': 8}] | Easy | false | false | false | false | false | false | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | Show the number of high schoolers for each grade. | SELECT grade , count(*) FROM Highschooler GROUP BY grade | [{'grade': 9, 'count(*)': 4}, {'grade': 10, 'count(*)': 4}, {'grade': 11, 'count(*)': 4}, {'grade': 12, 'count(*)': 4}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | How many high schoolers are in each grade? | SELECT grade , count(*) FROM Highschooler GROUP BY grade | [{'grade': 9, 'count(*)': 4}, {'grade': 10, 'count(*)': 4}, {'grade': 11, 'count(*)': 4}, {'grade': 12, 'count(*)': 4}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | Which grade has the most high schoolers? | SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1 | [{'grade': 12}] | Easy | false | false | false | true | true | true | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | Return the grade that has the greatest number of high schoolers. | SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1 | [{'grade': 12}] | Easy | false | false | false | true | true | true | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | Show me all grades that have at least 4 students. | SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4 | [{'grade': 9}, {'grade': 10}, {'grade': 11}, {'grade': 12}] | Easy | false | false | false | false | false | true | true | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | Which grades have 4 or more high schoolers? | SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4 | [{'grade': 9}, {'grade': 10}, {'grade': 11}, {'grade': 12}] | Easy | false | false | false | false | false | true | true | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | Show the student IDs and numbers of friends corresponding to each. | SELECT student_id , count(*) FROM Friend GROUP BY student_id | [{'student_id': 1101, 'count(*)': 1}, {'student_id': 1247, 'count(*)': 2}, {'student_id': 1304, 'count(*)': 1}, {'student_id': 1316, 'count(*)': 1}, {'student_id': 1381, 'count(*)': 1}, {'student_id': 1468, 'count(*)': 2}, {'student_id': 1501, 'count(*)': 1}, {'student_id': 1510, 'count(*)': 2}, {'student_id': 1661, 'count(*)': 1}, {'student_id': 1689, 'count(*)': 2}, {'student_id': 1709, 'count(*)': 1}, {'student_id': 1782, 'count(*)': 3}, {'student_id': 1911, 'count(*)': 1}, {'student_id': 1934, 'count(*)': 1}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |
network_1 |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
) |
CREATE TABLE "Friend" (
student_id INTEGER,
friend_id INTEGER,
PRIMARY KEY (student_id, friend_id),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(friend_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Friend table:
student_id friend_id
1510 1381
1510 1689
*/
CREATE TABLE "Highschooler" (
"ID" INTEGER,
name TEXT,
grade INTEGER,
PRIMARY KEY ("ID")
)
/*
2 rows from Highschooler table:
ID name grade
1510 Jordan 9
1689 Gabriel 9
*/
CREATE TABLE "Likes" (
student_id INTEGER,
liked_id INTEGER,
PRIMARY KEY (student_id, liked_id),
FOREIGN KEY(liked_id) REFERENCES "Highschooler" ("ID"),
FOREIGN KEY(student_id) REFERENCES "Highschooler" ("ID")
)
/*
2 rows from Likes table:
student_id liked_id
1689 1709
1709 1689
*/ | How many friends does each student have? | SELECT student_id , count(*) FROM Friend GROUP BY student_id | [{'student_id': 1101, 'count(*)': 1}, {'student_id': 1247, 'count(*)': 2}, {'student_id': 1304, 'count(*)': 1}, {'student_id': 1316, 'count(*)': 1}, {'student_id': 1381, 'count(*)': 1}, {'student_id': 1468, 'count(*)': 2}, {'student_id': 1501, 'count(*)': 1}, {'student_id': 1510, 'count(*)': 2}, {'student_id': 1661, 'count(*)': 1}, {'student_id': 1689, 'count(*)': 2}, {'student_id': 1709, 'count(*)': 1}, {'student_id': 1782, 'count(*)': 3}, {'student_id': 1911, 'count(*)': 1}, {'student_id': 1934, 'count(*)': 1}] | Easy | false | false | false | false | false | true | false | false | false | false | false | false | false |