dataset_name stringclasses 1
value | split stringclasses 1
value | prompt_raw stringlengths 897 4.29k | messages listlengths 2 2 | question stringlengths 18 174 | sample_id int64 0 1.03k | db_id stringclasses 20
values | groundtruth_sqls listlengths 1 1 |
|---|---|---|---|---|---|---|---|
spider | dev | Database Schema:
Table VOTES
VOTES.phone_number: INTEGER - phone number
Sample values: "5112677315", "6209222712", "7148407040", "7182887233"
VOTES.created: TIMESTAMP
Sample values: "2018-03-09 19:03:21", "2018-03-09 19:03:36", "2018-03-09 19:03:39", "2018-03-09 19:03:40"
VOTES.contestant_number: INTEGER... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'. | 700 | voter_1 | [
"SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contes... |
spider | dev | Database Schema:
Table VOTES
VOTES.phone_number: INTEGER - phone number
Sample values: "5112677315", "6209222712", "7148407040", "7182887233"
VOTES.created: TIMESTAMP
Sample values: "2018-03-09 19:03:21", "2018-03-09 19:03:36", "2018-03-09 19:03:39", "2018-03-09 19:03:40"
VOTES.contestant_number: INTEGER... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the names of the contestants whose names contain the substring 'Al' . | 701 | voter_1 | [
"select contestant_name from contestants where contestant_name like \"%al%\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of all the countries that became independent after 1950? | 702 | world_1 | [
"SELECT Name FROM country WHERE IndepYear > 1950"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the names of the nations that were founded after 1950. | 703 | world_1 | [
"SELECT Name FROM country WHERE IndepYear > 1950"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many countries have a republic as their form of government? | 704 | world_1 | [
"SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many countries have governments that are republics? | 705 | world_1 | [
"SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the total surface area of the countries in the Caribbean region? | 706 | world_1 | [
"SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How much surface area do the countires in the Carribean cover together? | 707 | world_1 | [
"SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which continent is Anguilla in? | 708 | world_1 | [
"SELECT Continent FROM country WHERE Name = \"Anguilla\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Percentage: FLOAT(4,1) - percentage
Sample values: "5.3", "9.5", "76.7", "7.4", "0.9"
countrylanguage.IsOfficial: TEXT - is official
S... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the continent name which Anguilla belongs to? | 709 | world_1 | [
"SELECT Continent FROM country WHERE Name = \"Anguilla\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Percentage: FLOAT(4,1) - percentage
Sample values: "5.3", "9.5", "76.7", "7.4", "0.9"
countrylanguage.IsOfficial: TEXT - is official
S... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which region is the city Kabul located in? | 710 | world_1 | [
"SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Percentage: FLOAT(4,1) - percentage
Sample values: "5.3", "9.5", "76.7", "7.4", "0.9"
countrylanguage.IsOfficial: TEXT - is official
S... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What region is Kabul in? | 711 | world_1 | [
"SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which language is the most popular in Aruba? | 712 | world_1 | [
"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\" ORDER BY Percentage DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What language is predominantly spoken in Aruba? | 713 | world_1 | [
"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\" ORDER BY Percentage DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the population and life expectancies in Brazil? | 714 | world_1 | [
"SELECT Population , LifeExpectancy FROM country WHERE Name = \"Brazil\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give me Brazil’s population and life expectancies. | 715 | world_1 | [
"SELECT Population , LifeExpectancy FROM country WHERE Name = \"Brazil\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GNP: FLOAT(10,2) - g... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the region and population of Angola? | 716 | world_1 | [
"SELECT Population , Region FROM country WHERE Name = \"Angola\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.IsOfficial: TEXT - is official
Sample values: "T", "F"
Table country
country.Population: INTEGER - population
Sample values: "103000"... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What region does Angola belong to and what is its population? | 717 | world_1 | [
"SELECT Population , Region FROM country WHERE Name = \"Angola\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the average expected life expectancy for countries in the region of Central Africa? | 718 | world_1 | [
"SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How long is the people’s average life expectancy in Central Africa? | 719 | world_1 | [
"SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the name of country that has the shortest life expectancy in Asia? | 720 | world_1 | [
"SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the name of the country in Asia with the lowest life expectancy. | 721 | world_1 | [
"SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.IsOfficial: TEXT - is official
Sample values: "T", "F"
Table country
country.Population: INTEGER - population
Sample values: "103000"... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the total population and maximum GNP in Asia? | 722 | world_1 | [
"SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many people live in Asia, and what is the largest GNP among them? | 723 | world_1 | [
"SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the average life expectancy in African countries that are republics? | 724 | world_1 | [
"SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the average life expectancy for countries in Africa which are republics? | 725 | world_1 | [
"SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the total surface area of the continents Asia and Europe? | 726 | world_1 | [
"SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the total surface area covered by countries in Asia or Europe. | 727 | world_1 | [
"SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many people live in Gelderland district? | 728 | world_1 | [
"SELECT sum(Population) FROM city WHERE District = \"Gelderland\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Percentage: FLOAT(4,1) - percentage
Sample values: "5.3", "9.5", "76.7", "7.4", "0.9"
countrylanguage.IsOfficial: TEXT - is official
S... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the total population of Gelderland district? | 729 | world_1 | [
"SELECT sum(Population) FROM city WHERE District = \"Gelderland\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the average GNP and total population in all nations whose government is US territory? | 730 | world_1 | [
"SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the mean GNP and total population of nations which are considered US territory. | 731 | world_1 | [
"SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many unique languages are spoken in the world? | 732 | world_1 | [
"SELECT count(DISTINCT LANGUAGE) FROM countrylanguage"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the number of distinct languages used around the world? | 733 | world_1 | [
"SELECT count(DISTINCT LANGUAGE) FROM countrylanguage"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many type of governments are in Africa? | 734 | world_1 | [
"SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many different forms of governments are there in Africa? | 735 | world_1 | [
"SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the total number of languages used in Aruba? | 736 | world_1 | [
"SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many languages are spoken in Aruba? | 737 | world_1 | [
"SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many official languages does Afghanistan have? | 738 | world_1 | [
"SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many official languages are spoken in Afghanistan? | 739 | world_1 | [
"SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is name of the country that speaks the largest number of languages? | 740 | world_1 | [
"SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the name of the nation that uses the greatest amount of languages. | 741 | world_1 | [
"SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Ha", "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian La... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which continent has the most diverse languages? | 742 | world_1 | [
"SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which continent speaks the most languages? | 743 | world_1 | [
"SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many countries speak both English and Dutch? | 744 | world_1 | [
"SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the number of nations that use English and Dutch? | 745 | world_1 | [
"SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of nations speak both English and French? | 746 | world_1 | [
"SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the names of nations that speak both English and French. | 747 | world_1 | [
"SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of nations where both English and French are official languages? | 748 | world_1 | [
"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\""... |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the names of countries with English and French as official languages. | 749 | world_1 | [
"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\""... |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Chinese", "Mandarin Chinese", "Canton Chinese"
countrylanguage.Percentage: FLOAT... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the number of distinct continents where Chinese is spoken? | 750 | world_1 | [
"SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Chinese", "Mandarin Chinese", "Canton Chinese"
countrylanguage.Percentage: FLOAT... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many continents speak Chinese? | 751 | world_1 | [
"SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Dutch", "English", "Creole English", "Samoan-English", "Malay-English"
countryla... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the regions that use English or Dutch? | 752 | world_1 | [
"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\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Dutch", "English", "Creole English", "Samoan-English", "Malay-English"
countryla... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which regions speak Dutch or English? | 753 | world_1 | [
"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\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the countries where either English or Dutch is the official language ? | 754 | world_1 | [
"select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which countries have either English or Dutch as an official language? | 755 | world_1 | [
"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\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which language is the most popular on the Asian continent? | 756 | world_1 | [
"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"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the language that is used by the largest number of Asian nations? | 757 | world_1 | [
"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"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which languages are spoken by only one country in republic governments? | 758 | world_1 | [
"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"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What languages are only used by a single country with a republic government? | 759 | world_1 | [
"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"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "English", "Creole English", "Samoan-English", "Malay-English", "Arabic-French-Engl... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the city with the largest population that uses English. | 760 | world_1 | [
"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"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "English", "Creole English", "Samoan-English", "Malay-English", "Arabic-French-Engl... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the most populace city that speaks English? | 761 | world_1 | [
"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"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the name, population and expected life length of asian country with the largest area? | 762 | world_1 | [
"SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the name, population, and life expectancy of the largest Asian country by land? | 763 | world_1 | [
"SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is average life expectancy in the countries where English is not the official language? | 764 | world_1 | [
"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\")"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the mean life expectancy of countries in which English is not the official language. | 765 | world_1 | [
"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\")"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the total number of people living in the nations that do not use English? | 766 | world_1 | [
"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\")"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many people live in countries that do not speak English? | 767 | world_1 | [
"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\")"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the official language spoken in the country whose head of state is Beatrix? | 768 | world_1 | [
"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the official language used in the country the name of whose head of state is Beatrix. | 769 | world_1 | [
"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the total number of unique official languages spoken in the countries that are founded before 1930? | 770 | world_1 | [
"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\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | For the countries founded before 1930, what is the total number of distinct official languages? | 771 | world_1 | [
"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\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the countries that have greater surface area than any country in Europe? | 772 | world_1 | [
"SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which countries have greater area than that of any country in Europe? | 773 | world_1 | [
"SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the African countries that have a population less than any country in Asia? | 774 | world_1 | [
"SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT max(population) FROM country WHERE Continent = \"Asia\")"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Percentage: FLOAT(4,1) - percentage
Sample values: "5.3", "9.5", "76.7", "7.4", "0.9"
countrylanguage.IsOfficial: TEXT - is official
S... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which African countries have a smaller population than that of any country in Asia? | 775 | world_1 | [
"SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT min(population) FROM country WHERE Continent = \"Asia\")"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Percentage: FLOAT(4,1) - percentage
Sample values: "5.3", "9.5", "76.7", "7.4", "0.9"
countrylanguage.IsOfficial: TEXT - is official
S... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which Asian countries have a population that is larger than any country in Africa? | 776 | world_1 | [
"SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT max(population) FROM country WHERE Continent = \"Africa\")"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Dutch", "English", "Papiamento", "Spanish", "Balochi"
countrylanguage.Percentage... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the Asian countries which have a population larger than that of any country in Africa? | 777 | world_1 | [
"SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT min(population) FROM country WHERE Continent = \"Africa\")"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the country codes for countries that do not speak English? | 778 | world_1 | [
"SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the country codes for countries that do not speak English. | 779 | world_1 | [
"SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the country codes of countries where people use languages other than English? | 780 | world_1 | [
"SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the country codes for countries in which people speak langauges that are not English. | 781 | world_1 | [
"SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the codes of the countries that do not speak English and whose government forms are not Republic? | 782 | world_1 | [
"SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the codes of countries that do not speak English and do not have Republics for governments. | 783 | world_1 | [
"SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "English", "Creole English", "Samoan-English", "Malay-English", "Philippene Languag... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which cities are in European countries where English is not the official language? | 784 | world_1 | [
"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')"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "English", "Creole English", "Samoan-English", "Malay-English", "Philippene Languag... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of cities in Europe for which English is not the official language? | 785 | world_1 | [
"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')"
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Chinese", "Mandarin Chinese", "Canton Chinese", "Philippene Languages", "Indian La... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which unique cities are in Asian countries where Chinese is the official language ? | 786 | world_1 | [
"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\""
] |
spider | dev | Database Schema:
Table countrylanguage
countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode
Sample values: "ABW", "AFG", "AGO", "AIA", "ALB"
countrylanguage.Language: CHAR(30) PRIMARY KEY - language
Sample values: "Chinese", "Mandarin Chinese", "Canton Chinese", "Philippene Languages", "Indian La... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the different names of cities that are in Asia and for which Chinese is the official language. | 787 | world_1 | [
"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\""
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the name, independence year, and surface area of the country with the smallest population? | 788 | world_1 | [
"SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the name, year of independence, and surface area of the country that has the lowest population. | 789 | world_1 | [
"SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the population, name and leader of the country with the largest area? | 790 | world_1 | [
"SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the name, population, and head of state for the country that has the largest area. | 791 | world_1 | [
"SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages. | 792 | world_1 | [
"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"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of countries that speak more than 2 languages, as well as how many languages they speak? | 793 | world_1 | [
"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"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the number of cities in each district whose population is greater than the average population of cities? | 794 | world_1 | [
"SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many cities in each district have a population that is above the average population across all cities? | 795 | world_1 | [
"SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the government form name and total population for each government form whose average life expectancy is longer than 72. | 796 | world_1 | [
"SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | 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? | 797 | world_1 | [
"SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72? | 798 | world_1 | [
"SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72"
] |
spider | dev | Database Schema:
Table country
country.LifeExpectancy: FLOAT(3,1) - life expectancy
Sample values: "78.4", "45.9", "38.3", "76.1", "71.6"
Contains null values: True
country.Population: INTEGER - population
Sample values: "103000", "22720000", "12878000", "8000", "3401200"
country.GovernmentForm: CHAR... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | 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? | 799 | world_1 | [
"SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.