aherntech/sparc huggingface dataset:
Database: world_1
Question sequence:
What are the official languages of each country?
Of those countries, give the names of the ones that have English as one of the official languages.
Of those, which also have French as another official language?
SQL query sequence:
SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.IsOfficial  =  "T"
SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English" AND T2.IsOfficial  =  "T"
SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English" AND T2.IsOfficial  =  "T" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "French" AND T2.IsOfficial  =  "T"
Final question: Give the names of countries with English and French as official languages.
Final SQL: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English" AND T2.IsOfficial  =  "T" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "French" AND T2.IsOfficial  =  "T"
Database: world_1
Question sequence:
In which countries is Chinese spoken?
Which distinct continents are they in?
How many of them are there?
SQL query sequence:
SELECT T1.name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "Chinese"
SELECT DISTINCT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "Chinese"
SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "Chinese"
Final question: How many continents speak Chinese?
Final SQL: SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "Chinese"
Database: world_1
Question sequence:
What are all the different regions?
Which of those speak Dutch or English?
SQL query sequence:
SELECT DISTINCT Region FROM country
SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English" OR T2.Language  =  "Dutch"
Final question: Which regions speak Dutch or English?
Final SQL: SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English" OR T2.Language  =  "Dutch"
Database: world_1
Question sequence:
What are the official languages for each country?
Which of these countries have English or Dutch?
SQL query sequence:
SELECT T2.Language ,  T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE IsOfficial  =  "T"
SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English" AND IsOfficial  =  "T" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "Dutch" AND IsOfficial  =  "T"
Final question: Which countries have either English or Dutch as an official language?
Final SQL: SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English" AND IsOfficial  =  "T" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "Dutch" AND IsOfficial  =  "T"
Database: world_1
Question sequence:
What are all the different languages used in the continent of Asia?
Which one is used by the largest number of Asian countries?
SQL query sequence:
SELECT DISTINCT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Continent  =  "Asia"
SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Continent  =  "Asia" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1
Final question: What is the language that is used by the largest number of Asian nations?
Final SQL: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Continent  =  "Asia" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1
Database: world_1
Question sequence:
Which countries have republics as their form of government?
Which language is spoken by only one of those countries?
SQL query sequence:
SELECT * FROM country WHERE GovernmentForm  =  "Republic"
SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.GovernmentForm  =  "Republic" GROUP BY T2.Language HAVING COUNT(*)  =  1
Final question: What languages are only used by a single country with a republic government?
Final SQL: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.GovernmentForm  =  "Republic" GROUP BY T2.Language HAVING COUNT(*)  =  1
Database: world_1
Question sequence:
What are the names of all the cities that use English?
Which of those has the largest population?
SQL query sequence:
SELECT T1.Name FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode  =  T2.CountryCode WHERE T2.Language  =  "English"
SELECT T1.Name ,  T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode  =  T2.CountryCode WHERE T2.Language  =  "English" ORDER BY T1.Population DESC LIMIT 1
Final question: What is the most populace city that speaks English?
Final SQL: SELECT T1.Name ,  T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode  =  T2.CountryCode WHERE T2.Language  =  "English" ORDER BY T1.Population DESC LIMIT 1
Database: world_1
Question sequence:
What are the names, population, and life expectancy for all the countries in Asia?
Of those, which belong to the country with the largest surface area?
SQL query sequence:
SELECT Name ,  Population ,  LifeExpectancy FROM country WHERE Continent  =  "Asia"
SELECT Name ,  Population ,  LifeExpectancy FROM country WHERE Continent  =  "Asia" ORDER BY SurfaceArea DESC LIMIT 1
Final question: What are the name, population, and life expectancy of the largest Asian country by land?
Final SQL: SELECT Name ,  Population ,  LifeExpectancy FROM country WHERE Continent  =  "Asia" ORDER BY SurfaceArea DESC LIMIT 1
Database: world_1
Question sequence:
What are the official languages of each country?
Which countries do not have English as the official language?
In those countries, what is the average life expectancy?
SQL query sequence:
SELECT T2.Language ,  T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.IsOfficial  =  "T"
SELECT * FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English" AND T2.IsOfficial  =  "T")
SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English" AND T2.IsOfficial  =  "T")
Final question: Give the mean life expectancy of countries in which English is not the official language.
Final SQL: SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English" AND T2.IsOfficial  =  "T")
Database: world_1
Question sequence:
What are the names of each country that does not speak English?
How many people live in those countries?
SQL query sequence:
SELECT Name FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English")
SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English")
Final question: How many people live in countries that do not speak English?
Final SQL: SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  "English")
Database: world_1
Question sequence:
Which country has a head of state named Beatrix?
What languages are spoken in that country?
Which of those languages is the official one?
SQL query sequence:
SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.HeadOfState  =  "Beatrix"
SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.HeadOfState  =  "Beatrix"
SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.HeadOfState  =  "Beatrix" AND T2.IsOfficial  =  "T"
Final question: What is the official language used in the country the name of whose head of state is Beatrix.
Final SQL: SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.HeadOfState  =  "Beatrix" AND T2.IsOfficial  =  "T"
Database: world_1
Question sequence:
What are the names of all the countries?
What are the names of those countries that were founded after 1930?
For those countries, how many unique official languages are spoken in total?
SQL query sequence:
SELECT T1.Name FROM country AS t1
SELECT T1.Name FROM country AS t1 WHERE  IndepYear  <  1930
SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE  IndepYear  <  1930 AND T2.IsOfficial  =  "T"
Final question: For the countries founded before 1930, what is the total number of distinct official languages?
Final SQL: SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE  IndepYear  <  1930 AND T2.IsOfficial  =  "T"
Database: world_1
Question sequence:
What are all the information about European countries?
Of those countries, What is the minimum surface area?
What are the countries that have a greater surface area than that?
SQL query sequence:
SELECT * FROM country WHERE Continent  =  "Europe"
SELECT min(SurfaceArea) FROM country WHERE Continent  =  "Europe"
SELECT Name FROM country WHERE SurfaceArea  >  (SELECT min(SurfaceArea) FROM country WHERE Continent  =  "Europe")
Final question: Which countries have greater area than that of any country in Europe?
Final SQL: SELECT Name FROM country WHERE SurfaceArea  >  (SELECT min(SurfaceArea) FROM country WHERE Continent  =  "Europe")
Database: world_1
Question sequence:
What is the maximum population of a country in Asia?
Which countries in Africa have a population smaller than that?
SQL query sequence:
SELECT min(population) FROM country WHERE Continent  =  "Asia"
SELECT Name FROM country WHERE Continent  =  "Africa"  AND population  <  (SELECT max(population) FROM country WHERE Continent  =  "Asia")
Final question: Which African countries have a smaller population than that of any country in Asia?
Final SQL: SELECT Name FROM country WHERE Continent  =  "Africa"  AND population  <  (SELECT max(population) FROM country WHERE Continent  =  "Asia")
Database: world_1
Question sequence:
What is the smallest population of a country in Africa?
Which Asian countries have a greater population than that?
SQL query sequence:
SELECT min(population) FROM country WHERE Continent  =  "Africa"
SELECT Name FROM country WHERE Continent  =  "Asia"  AND population  >  (SELECT min(population) FROM country WHERE Continent  =  "Africa")
Final question: What are the Asian countries which have a population larger than that of any country in Africa?
Final SQL: SELECT Name FROM country WHERE Continent  =  "Asia"  AND population  >  (SELECT min(population) FROM country WHERE Continent  =  "Africa")
Database: world_1
Question sequence:
What are the country codes of all the countries?
Of those countries, give the country codes for those which do not speak English.
SQL query sequence:
SELECT CountryCode FROM countrylanguage
SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  "English"
Final question: Return the country codes for countries that do not speak English.
Final SQL: SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  "English"
Database: world_1
Question sequence:
What are the country codes of all the countries?
Of those, which do not speak English?
SQL query sequence:
SELECT DISTINCT CountryCode FROM countrylanguage
SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE ! =  "English"
Final question: Give the country codes for countries in which people speak langauges that are not English.
Final SQL: SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE ! =  "English"
Database: world_1
Question sequence:
What are the country codes for countries which are not republics?
Of those, which do not speak English?
SQL query sequence:
SELECT Code FROM country WHERE GovernmentForm ! =  "Republic"
SELECT Code FROM country WHERE GovernmentForm ! =  "Republic" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  "English"
Final question: Return the codes of countries that do not speak English and do not have Republics for governments.
Final SQL: SELECT Code FROM country WHERE GovernmentForm ! =  "Republic" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  "English"
Database: world_1
Question sequence:
What are the names of the countries where English is the official language?
What are the names of the countries in Europe that are not one of those?
What are the names of the cities in those countries?
SQL query sequence:
SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.IsOfficial  =  'T' AND T2.Language  =  'English'
SELECT Name FROM country WHERE Continent  =  'Europe' AND Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.IsOfficial  =  'T' AND T2.Language  =  'English')
SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode  =  T1.Code WHERE T1.Continent  =  'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code  =  T4.CountryCode WHERE T4.IsOfficial  =  'T' AND T4.Language  =  'English')
Final question: What are the names of cities in Europe for which English is not the official language?
Final SQL: SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode  =  T1.Code WHERE T1.Continent  =  'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code  =  T4.CountryCode WHERE T4.IsOfficial  =  'T' AND T4.Language  =  'English')
Database: world_1
Question sequence:
What are the countries in Asia where Chinese is spoken?
Of those, which have Chinese as the official language?
What are the different cities in those countries?
SQL query sequence:
SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  'Chinese' AND T1.Continent  =  "Asia"
SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.IsOfficial  =  'T' AND T2.Language  =  'Chinese' AND T1.Continent  =  "Asia"
SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode JOIN city AS T3 ON T1.Code  =  T3.CountryCode WHERE T2.IsOfficial  =  'T' AND T2.Language  =  'Chinese' AND T1.Continent  =  "Asia"
Final question: Return the different names of cities that are in Asia and for which Chinese is the official language.
Final SQL: SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode JOIN city AS T3 ON T1.Code  =  T3.CountryCode WHERE T2.IsOfficial  =  'T' AND T2.Language  =  'Chinese' AND T1.Continent  =  "Asia"
Database: world_1
Question sequence:
Which country has the smallest population?
What is its name, independence year, and surface area?
SQL query sequence:
SELECT * FROM country ORDER BY Population LIMIT 1
SELECT Name ,  SurfaceArea ,  IndepYear FROM country ORDER BY Population LIMIT 1
Final question: Give the name, year of independence, and surface area of the country that has the lowest population.
Final SQL: SELECT Name ,  SurfaceArea ,  IndepYear FROM country ORDER BY Population LIMIT 1
Database: world_1
Question sequence:
What is the country with the largest surface area?
What is its population, name and leader?
SQL query sequence:
SELECT * FROM country ORDER BY SurfaceArea DESC LIMIT 1
SELECT Name ,  population ,  HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1
Final question: Give the name, population, and head of state for the country that has the largest area.
Final SQL: SELECT Name ,  population ,  HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1
Database: world_1
Question sequence:
What are the names of the countries?
Which of them speak at least three languages?
Also, how many languages are spoken in each of those countries?
SQL query sequence:
SELECT Name FROM country
SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Name HAVING COUNT(*)  >  2
SELECT COUNT(T2.Language) ,  T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Name HAVING COUNT(*)  >  2
Final question: What are the names of countries that speak more than 2 languages, as well as how many languages they speak?
Final SQL: SELECT COUNT(T2.Language) ,  T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Name HAVING COUNT(*)  >  2
Database: world_1
Question sequence:
What is the average city population for each city?
For each district, count how many cities have a population greater than the average.
SQL query sequence:
SELECT avg(Population) FROM city
SELECT count(*) ,  District FROM city WHERE Population  >  (SELECT avg(Population) FROM city) GROUP BY District
Final question: How many cities in each district have a population that is above the average population across all cities?
Final SQL: SELECT count(*) ,  District FROM city WHERE Population  >  (SELECT avg(Population) FROM city) GROUP BY District
Database: world_1
Question sequence:
The countries with which government form have an average life expectancy greater than age 72?
For those, list the total population and government form name.
SQL query sequence:
SELECT * FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy)  >  72
SELECT sum(Population) ,  GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy)  >  72
Final question: 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?
Final SQL: SELECT sum(Population) ,  GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy)  >  72
Database: world_1
Question sequence:
Which continents have an average life expectancy less than age 72?
Give their average life expectancy and total population.
SQL query sequence:
SELECT Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy)  <  72
SELECT sum(Population) ,  avg(LifeExpectancy) ,  Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy)  <  72
Final question: 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?
Final SQL: SELECT sum(Population) ,  avg(LifeExpectancy) ,  Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy)  <  72
Database: world_1
Question sequence:
What are the countries with the top 5 largest surface areas?
What are the surface areas and names of those countries?
SQL query sequence:
SELECT * FROM country ORDER BY SurfaceArea DESC LIMIT 5
SELECT Name ,  SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5
Final question: Return the names and surface areas of the 5 largest countries.
Final SQL: SELECT Name ,  SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5
Database: world_1
Question sequence:
Order the countries by descending population size.
Give the names of the 3 countries which have the most.
SQL query sequence:
SELECT * FROM country ORDER BY Population DESC
SELECT Name FROM country ORDER BY Population DESC LIMIT 3
Final question: Return the names of the 3 most populated countries.
Final SQL: SELECT Name FROM country ORDER BY Population DESC LIMIT 3
Database: world_1
Question sequence:
Order the countries by increasing population.
Give the names of the 3 countries with the lowest.
SQL query sequence:
SELECT * FROM country ORDER BY Population
SELECT Name FROM country ORDER BY Population DESC LIMIT 3
Final question: Return the names of the 3 countries with the fewest people.
Final SQL: SELECT Name FROM country ORDER BY Population ASC LIMIT 3
Database: world_1
Question sequence:
What are the countries in the continent of Asia?
How many are there?
SQL query sequence:
SELECT * FROM country WHERE continent  =  "Asia"
SELECT count(*) FROM country WHERE continent  =  "Asia"
Final question: Count the number of countries in Asia.
Final SQL: SELECT count(*) FROM country WHERE continent  =  "Asia"
Database: world_1
Question sequence:
Which countries are in the continent of Europe?
Of those, what are the names of those that have a population of 80000?
SQL query sequence:
SELECT * FROM country WHERE continent  =  "Europe"
SELECT Name FROM country WHERE continent  =  "Europe" AND Population  =  "80000"
Final question: Give the names of countries that are in Europe and have a population equal to 80000.
Final SQL: SELECT Name FROM country WHERE WHERE continent  =  "Europe" AND Population  =  "80000"
Database: world_1
Question sequence:
What countries are in North America?
Of those, which have surface area greater than 3000?
What is the total population and average surface area of those countries?
SQL query sequence:
SELECT * FROM country WHERE Continent  =  "North America"
SELECT * FROM country WHERE Continent  =  "North America" AND SurfaceArea  >  3000
SELECT sum(Population) ,  avg(SurfaceArea) FROM country WHERE Continent  =  "North America" AND SurfaceArea  >  3000
Final question: Give the total population and average surface area corresponding to countries in Noth America that have a surface area greater than 3000.
Final SQL: SELECT sum(Population) ,  avg(SurfaceArea) FROM country WHERE Continent  =  "North America" AND SurfaceArea  >  3000
Database: world_1
Question sequence:
What are the names of all the cities?
Which of those have a population between 160000 and 900000?
SQL query sequence:
SELECT name FROM city
SELECT name FROM city WHERE Population BETWEEN 160000 AND 90000
Final question: Return the names of cities that have a population between 160000 and 900000.
Final SQL: SELECT name FROM city WHERE Population BETWEEN 160000 AND 90000
Database: world_1
Question sequence:
What are the different languages?
Which one is spoken in the most countries?
SQL query sequence:
SELECT LANGUAGE FROM countrylanguage
SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1
Final question: Give the language that is spoken in the most countries.
Final SQL: SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1
Database: tvshow
Question sequence:
Tell me﻿ the director of the cartoon named "Day of the Dark Knight!".
What is the channel of this cartoon?
Give me the titles of all cartoon directed by "Ben Jones" or "Brandon Vietti"?
SQL query sequence:
SELECT Directed_by FROM Cartoon WHERE Title = "Day of the Dark Knight!"
SELECT Channel FROM Cartoon WHERE Title = "Day of the Dark Knight!"
SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" OR Directed_by = "Brandon Vietti"
Final question: List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti".
Final SQL: SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" OR Directed_by = "Brandon Vietti";