query
stringlengths 24
325
| positive
stringlengths 1
580
| negative
stringlengths 1
580
|
---|---|---|
Among the employees in Adventure Works, calculate the percentage of them working as sales representatives.
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
type of employee refers to PersonType;
|
Among the employees in Adventure Works, calculate the percentage of them working as sales representatives.
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;
|
Among the employees in Adventure Works, calculate the percentage of them working as sales representatives.
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'
|
Among the employees in Adventure Works, calculate the percentage of them working as sales representatives.
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);
|
Among the employees in Adventure Works, calculate the percentage of them working as sales representatives.
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)
|
Among the employees in Adventure Works, calculate the percentage of them working as sales representatives.
|
percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%
|
store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;
|
What is the average life expentancy of countries that speak Arabic?
|
average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';
|
Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);
|
What is the average life expentancy of countries that speak Arabic?
|
average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';
|
capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);
|
What is the average life expentancy of countries that speak Arabic?
|
average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';
|
English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));
|
What is the average life expentancy of countries that speak Arabic?
|
average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';
|
surface area greater than 7000000 refers to SurfaceArea > 7000000;
|
What is the average life expentancy of countries that speak Arabic?
|
average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';
|
highest population refers to MAX(Population);
|
What is the average life expentancy of countries that speak Arabic?
|
average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';
|
most crowded city refers to MAX(Population);
|
What is the average life expentancy of countries that speak Arabic?
|
average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';
|
smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);
|
What is the average life expentancy of countries that speak Arabic?
|
average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';
|
Europe refers to Continent = 'Europe';
|
What is the average life expentancy of countries that speak Arabic?
|
average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';
|
Belize is a name of country;
|
What is the average life expentancy of countries that speak Arabic?
|
average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';
|
official language refers to IsOfficial = 'T'; Greece is a name of country;
|
Who is the head of the state where the most crowded city belongs?
|
head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
|
most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));
|
Who is the head of the state where the most crowded city belongs?
|
head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
|
average population = AVG(Population);
|
Who is the head of the state where the most crowded city belongs?
|
head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
|
largest population refers to MAX(Population);
|
Who is the head of the state where the most crowded city belongs?
|
head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
|
Malaysia is a name of country;
|
Who is the head of the state where the most crowded city belongs?
|
head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
|
smallest population refers to MIN(Population);
|
Who is the head of the state where the most crowded city belongs?
|
head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
|
Zaanstad is a name of city;
|
Who is the head of the state where the most crowded city belongs?
|
head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
|
Europe refers to Continent = 'Europe';
|
Who is the head of the state where the most crowded city belongs?
|
head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
|
average surface area = AVG(SurfaceArea);
|
Who is the head of the state where the most crowded city belongs?
|
head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
|
smallest surface area refers to MIN(smallest surface area);
|
Who is the head of the state where the most crowded city belongs?
|
head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
|
England refers to District = 'England';
|
List down languages used in Malaysia.
|
Malaysia is a name of country;
|
largest population refers to MAX(Population);
|
List down languages used in Malaysia.
|
Malaysia is a name of country;
|
official language refers to IsOfficial = 'T'; China is a name of country;
|
List down languages used in Malaysia.
|
Malaysia is a name of country;
|
England refers to District = 'England';
|
List down languages used in Malaysia.
|
Malaysia is a name of country;
|
headed by Adolf Ogi refers to HeadOfState = 'Adolf Ogi';
|
List down languages used in Malaysia.
|
Malaysia is a name of country;
|
surface area greater than 7000000 refers to SurfaceArea > 7000000;
|
List down languages used in Malaysia.
|
Malaysia is a name of country;
|
highest population refers to MAX(Population);
|
List down languages used in Malaysia.
|
Malaysia is a name of country;
|
English refers to Language = 'English'; Australia is a name of country;
|
List down languages used in Malaysia.
|
Malaysia is a name of country;
|
declared independence in 1994 refers to IndepYear = 1994;
|
List down languages used in Malaysia.
|
Malaysia is a name of country;
|
Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);
|
List down languages used in Malaysia.
|
Malaysia is a name of country;
|
no GNP refers to GNP = 0;
|
How many countries have no GNP?
|
no GNP refers to GNP = 0;
|
official language refers to IsOfficial = 'T'; Greece is a name of country;
|
How many countries have no GNP?
|
no GNP refers to GNP = 0;
|
average population = AVG(Population);
|
How many countries have no GNP?
|
no GNP refers to GNP = 0;
|
head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
|
How many countries have no GNP?
|
no GNP refers to GNP = 0;
|
largest population refers to MAX(Population);
|
How many countries have no GNP?
|
no GNP refers to GNP = 0;
|
officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);
|
How many countries have no GNP?
|
no GNP refers to GNP = 0;
|
smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);
|
How many countries have no GNP?
|
no GNP refers to GNP = 0;
|
high life expectancy at birth refers to MAX(LifeExpectancy);
|
How many countries have no GNP?
|
no GNP refers to GNP = 0;
|
Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';
|
How many countries have no GNP?
|
no GNP refers to GNP = 0;
|
English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));
|
How many countries have no GNP?
|
no GNP refers to GNP = 0;
|
Zaanstad is a name of city;
|
List all the languages used in Europe.
|
Europe refers to Continent = 'Europe';
|
average surface area = AVG(SurfaceArea);
|
List all the languages used in Europe.
|
Europe refers to Continent = 'Europe';
|
head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
|
List all the languages used in Europe.
|
Europe refers to Continent = 'Europe';
|
high life expectancy at birth refers to MAX(LifeExpectancy);
|
List all the languages used in Europe.
|
Europe refers to Continent = 'Europe';
|
capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);
|
List all the languages used in Europe.
|
Europe refers to Continent = 'Europe';
|
GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';
|
List all the languages used in Europe.
|
Europe refers to Continent = 'Europe';
|
capital city refers to Capital; San Marino is a name of country;
|
List all the languages used in Europe.
|
Europe refers to Continent = 'Europe';
|
largest population refers to MAX(Population);
|
List all the languages used in Europe.
|
Europe refers to Continent = 'Europe';
|
Portuguese refers to `Language` = 'Portuguese';
|
List all the languages used in Europe.
|
Europe refers to Continent = 'Europe';
|
most crowded city refers to MAX(Population);
|
List all the languages used in Europe.
|
Europe refers to Continent = 'Europe';
|
most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));
|
List down the cities belongs to the country that has surface area greater than 7000000.
|
surface area greater than 7000000 refers to SurfaceArea > 7000000;
|
English is the official language refers to Language = 'English' AND IsOfficial = 'T';
|
List down the cities belongs to the country that has surface area greater than 7000000.
|
surface area greater than 7000000 refers to SurfaceArea > 7000000;
|
English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';
|
List down the cities belongs to the country that has surface area greater than 7000000.
|
surface area greater than 7000000 refers to SurfaceArea > 7000000;
|
no GNP refers to GNP = 0;
|
List down the cities belongs to the country that has surface area greater than 7000000.
|
surface area greater than 7000000 refers to SurfaceArea > 7000000;
|
smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);
|
List down the cities belongs to the country that has surface area greater than 7000000.
|
surface area greater than 7000000 refers to SurfaceArea > 7000000;
|
uses Japanese as their language refers to `Language` = 'Japanese';
|
List down the cities belongs to the country that has surface area greater than 7000000.
|
surface area greater than 7000000 refers to SurfaceArea > 7000000;
|
official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';
|
List down the cities belongs to the country that has surface area greater than 7000000.
|
surface area greater than 7000000 refers to SurfaceArea > 7000000;
|
capital city refers to Capital; San Marino is a name of country;
|
List down the cities belongs to the country that has surface area greater than 7000000.
|
surface area greater than 7000000 refers to SurfaceArea > 7000000;
|
smallest surface area refers to MIN(smallest surface area);
|
List down the cities belongs to the country that has surface area greater than 7000000.
|
surface area greater than 7000000 refers to SurfaceArea > 7000000;
|
Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';
|
List down the cities belongs to the country that has surface area greater than 7000000.
|
surface area greater than 7000000 refers to SurfaceArea > 7000000;
|
smallest surface area refers to MIN(smallest surface area);
|
Which country has the smallest surface area?
|
smallest surface area refers to MIN(smallest surface area);
|
unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;
|
Which country has the smallest surface area?
|
smallest surface area refers to MIN(smallest surface area);
|
Portuguese refers to `Language` = 'Portuguese';
|
Which country has the smallest surface area?
|
smallest surface area refers to MIN(smallest surface area);
|
officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);
|
Which country has the smallest surface area?
|
smallest surface area refers to MIN(smallest surface area);
|
official language refers to IsOfficial = 'T'; China is a name of country;
|
Which country has the smallest surface area?
|
smallest surface area refers to MIN(smallest surface area);
|
surface area greater than 7000000 refers to SurfaceArea > 7000000;
|
Which country has the smallest surface area?
|
smallest surface area refers to MIN(smallest surface area);
|
England refers to District = 'England';
|
Which country has the smallest surface area?
|
smallest surface area refers to MIN(smallest surface area);
|
official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';
|
Which country has the smallest surface area?
|
smallest surface area refers to MIN(smallest surface area);
|
English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));
|
Which country has the smallest surface area?
|
smallest surface area refers to MIN(smallest surface area);
|
average population = AVG(Population);
|
Which country has the smallest surface area?
|
smallest surface area refers to MIN(smallest surface area);
|
head of the state refers to HeadOfState; most crowded city refers to MAX(Population);
|
How many countries use Portuguese?
|
Portuguese refers to `Language` = 'Portuguese';
|
GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';
|
How many countries use Portuguese?
|
Portuguese refers to `Language` = 'Portuguese';
|
smallest surface area refers to MIN(smallest surface area);
|
How many countries use Portuguese?
|
Portuguese refers to `Language` = 'Portuguese';
|
official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';
|
How many countries use Portuguese?
|
Portuguese refers to `Language` = 'Portuguese';
|
use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';
|
How many countries use Portuguese?
|
Portuguese refers to `Language` = 'Portuguese';
|
capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);
|
How many countries use Portuguese?
|
Portuguese refers to `Language` = 'Portuguese';
|
average surface area = AVG(SurfaceArea);
|
How many countries use Portuguese?
|
Portuguese refers to `Language` = 'Portuguese';
|
Europe refers to Continent = 'Europe';
|
How many countries use Portuguese?
|
Portuguese refers to `Language` = 'Portuguese';
|
capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);
|
How many countries use Portuguese?
|
Portuguese refers to `Language` = 'Portuguese';
|
English refers to Language = 'English'; Australia is a name of country;
|
How many countries use Portuguese?
|
Portuguese refers to `Language` = 'Portuguese';
|
GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';
|
Provide the language used in the country ruled by Pierre Buyoya.
|
ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';
|
unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;
|
Provide the language used in the country ruled by Pierre Buyoya.
|
ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';
|
English is the official language refers to Language = 'English' AND IsOfficial = 'T';
|
Provide the language used in the country ruled by Pierre Buyoya.
|
ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';
|
England refers to District = 'England';
|
Provide the language used in the country ruled by Pierre Buyoya.
|
ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';
|
declared independence in 1994 refers to IndepYear = 1994;
|
Provide the language used in the country ruled by Pierre Buyoya.
|
ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';
|
GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';
|
Provide the language used in the country ruled by Pierre Buyoya.
|
ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';
|
Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';
|
Provide the language used in the country ruled by Pierre Buyoya.
|
ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';
|
GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';
|
Provide the language used in the country ruled by Pierre Buyoya.
|
ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';
|
English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));
|
Provide the language used in the country ruled by Pierre Buyoya.
|
ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';
|
average population = AVG(Population);
|
Provide the language used in the country ruled by Pierre Buyoya.
|
ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';
|
Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);
|
What are the official languages used in Greece?
|
official language refers to IsOfficial = 'T'; Greece is a name of country;
|
unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;
|
What are the official languages used in Greece?
|
official language refers to IsOfficial = 'T'; Greece is a name of country;
|
smallest population refers to MIN(Population);
|
What are the official languages used in Greece?
|
official language refers to IsOfficial = 'T'; Greece is a name of country;
|
independence year between 1980 to 1995 refers to IndepYear BETWEEN 1980 AND 1995;
|
What are the official languages used in Greece?
|
official language refers to IsOfficial = 'T'; Greece is a name of country;
|
officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.