db_id stringclasses 66
values | question stringlengths 24 325 | evidence stringlengths 1 673 ⌀ | gold_query stringlengths 23 804 | db_schema stringclasses 66
values |
|---|---|---|---|---|
hockey | How long has the NHL player been playing during the year when he recorded the least number of times being on the ice when a goal is scored for the team versus against the team? Indicate his full name. | NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName | SELECT DISTINCT T3.firstNHL - T1.year, T3.nameGiven , T3.firstName, T3.lastName FROM Scoring AS T1 INNER JOIN Teams AS T2 ON T2.tmID = T1.tmID INNER JOIN Master AS T3 ON T1.playerID = T3.playerID GROUP BY T3.firstName, T3.lastName, T3.nameGiven, T3.firstNHL - T1.year, T3.firstName, T3.lastName ORDER BY SUM(T1.`+/-`) AS... | CREATE TABLE Scoring
(
tmID TEXT, --
PIM INTEGER, --
PostA TEXT, --
GTG TEXT, -- Example Values: `0`, `1`, `3`, `2`, `5` | Value Statics: Total count 28106 - Distinct count 8 - Null count 17861
PostGP TEXT, --
GP INTEGER, --
lgID TEXT, -- Example Values: `NHL`, `WHA`, `PCHA`, `WCHL`, `NHA` | Value S... |
superstore | How many orders in the south superstore with the fastest delivery are items of furniture? | fastest delivery refers to Ship Mode = 'First Class'; furniture refers to Category = 'Furniture' | SELECT COUNT(T1.`Order ID`) FROM south_superstore AS T1 INNER JOIN product AS T2 ON T1.`Product ID` = T2.`Product ID` WHERE T1.`Ship Mode` = 'First Class' AND T2.Category = 'Furniture' | CREATE TABLE west_superstore
(
Profit REAL, --
Region TEXT, -- Example Values: `West` | Value Statics: Total count 6406 - Distinct count 1 - Null count 0
"Product ID" TEXT, --
foreign key ("Product ID", Region) references product("Product ID",Region),
"Order Date" DATE, --
foreign key ("Customer ID", Reg... |
craftbeer | Where in New York can you locate the brewery that makes the bitterest beer? List both the brewery's name and the name of the city. | The more IBU, the more bitter the beer is, bitterest means highest IBU. | SELECT T2.name, T2.city FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T2.state = 'NY' ORDER BY T1.ibu DESC LIMIT 1 | CREATE TABLE beers
(
brewery_id INTEGER not null constraint beers_ibfk_1 references breweries, --
id INTEGER not null primary key,
abv REAL, --
style TEXT, --
ibu REAL, --
name TEXT not null, --
ounces REAL not null, -- Example Values: `12.0`, `16.0`, `24.0`, `19.2`, `8.4` | Value Statics: Total count ... |
hockey | What is the name of the losing team during an exhibition game in 1912? | exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser | SELECT T2.name FROM SeriesPost AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND tmIDLoser = tmID WHERE T1.note = 'EX' AND T2.year = '1912' | CREATE TABLE Scoring
(
tmID TEXT, --
PIM INTEGER, --
PostA TEXT, --
GTG TEXT, -- Example Values: `0`, `1`, `3`, `2`, `5` | Value Statics: Total count 28106 - Distinct count 8 - Null count 17861
PostGP TEXT, --
GP INTEGER, --
lgID TEXT, -- Example Values: `NHL`, `WHA`, `PCHA`, `WCHL`, `NHA` | Value S... |
shooting | Of all male officers, what percentage are black officers? | male refers to gender = 'M'; black refers to race = 'B'; percentage = divide(count(officers where race = 'B'), count(officers)) where gender = 'M' * 100% | SELECT CAST(SUM(race = 'B') AS REAL) * 100 / COUNT(case_number) FROM officers WHERE gender = 'M' | CREATE TABLE officers
(
full_name TEXT not null, --
foreign key (case_number) references incidents (case_number),
case_number TEXT not null, --
last_name TEXT not null, --
first_name TEXT null, --
race TEXT null, -- Example Values: `L`, `W`, `B`, `A` | Value Statics: Total count 366 - Distinct count 4 - N... |
craftbeer | Which distinct state makes beer that has the least amount of bitterness? | null | SELECT DISTINCT T2.state, T1.ibu FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T1.ibu IS NOT NULL AND T1.ibu = ( SELECT MIN(ibu) FROM beers ) | CREATE TABLE beers
(
brewery_id INTEGER not null constraint beers_ibfk_1 references breweries, --
id INTEGER not null primary key,
abv REAL, --
style TEXT, --
ibu REAL, --
name TEXT not null, --
ounces REAL not null, -- Example Values: `12.0`, `16.0`, `24.0`, `19.2`, `8.4` | Value Statics: Total count ... |
hockey | What are the awards won by the coach who coached the team with the most number of victories of all time? Indicate the choach ID. | victories' and 'wins' are synonyms; most number of victories refers to max(w) | SELECT DISTINCT T2.coachID, T1.award FROM AwardsCoaches AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID GROUP BY T2.coachID, T1.award ORDER BY SUM(T2.w) DESC LIMIT 1 | CREATE TABLE Scoring
(
tmID TEXT, --
PIM INTEGER, --
PostA TEXT, --
GTG TEXT, -- Example Values: `0`, `1`, `3`, `2`, `5` | Value Statics: Total count 28106 - Distinct count 8 - Null count 17861
PostGP TEXT, --
GP INTEGER, --
lgID TEXT, -- Example Values: `NHL`, `WHA`, `PCHA`, `WCHL`, `NHA` | Value S... |
student_loan | List the longest duration of absense for a student enlisted in the fire department. | longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department'; | SELECT T1.month FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'fire_department' ORDER BY T1.month DESC LIMIT 1 | CREATE TABLE longest_absense_from_school
(
"name" TEXT default '' not null primary key,
foreign key ("name") references person ("name") on update cascade on delete cascade,
"month" INTEGER default 0 null, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 1000 - Distinct count 10 - Null count 0 ... |
shooting | What is the percentage of subject who are female used the Vehicle as weapon? | female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100% | SELECT CAST(SUM(T1.subject_weapon = 'Vehicle') AS REAL) * 100 / COUNT(T1.case_number) FROM incidents T1 INNER JOIN subjects T2 ON T1.case_number = T2.case_number WHERE T2.gender = 'F' | CREATE TABLE officers
(
full_name TEXT not null, --
foreign key (case_number) references incidents (case_number),
case_number TEXT not null, --
last_name TEXT not null, --
first_name TEXT null, --
race TEXT null, -- Example Values: `L`, `W`, `B`, `A` | Value Statics: Total count 366 - Distinct count 4 - N... |
food_inspection | In businesses with a score lower than 95 and located around the postal code of 94110, what is the percentage of businesses with a risk category of low risk? | DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage; | SELECT CAST(SUM(CASE WHEN T1.risk_category = 'Low Risk' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.risk_category) FROM violations AS T1 INNER JOIN inspections AS T2 ON T1.business_id = T2.business_id INNER JOIN businesses AS T3 ON T2.business_id = T3.business_id WHERE T2.score < 95 AND T3.postal_code = 94110 | CREATE TABLE violations
(
`risk_category` TEXT NOT NULL, -- Example Values: `Moderate Risk`, `Low Risk`, `High Risk` | Value Statics: Total count 36050 - Distinct count 3 - Null count 0
`date` DATE NOT NULL, --
`violation_type_id` TEXT NOT NULL, --
FOREIGN KEY (`business_id`) REFERENCES `businesses` (`busine... |
hockey | What is the power play percentage of the team with the least number of penalty kill chances and to which team were they playing against? Indicate whether the team lost or victorious. | least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa | SELECT SUM(T1.A), T2.firstName, T2.lastName FROM Scoring AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.lgID = 'NHL' GROUP BY T2.firstName, T2.lastName ORDER BY SUM(T1.A) DESC LIMIT 1 | CREATE TABLE Scoring
(
tmID TEXT, --
PIM INTEGER, --
PostA TEXT, --
GTG TEXT, -- Example Values: `0`, `1`, `3`, `2`, `5` | Value Statics: Total count 28106 - Distinct count 8 - Null count 17861
PostGP TEXT, --
GP INTEGER, --
lgID TEXT, -- Example Values: `NHL`, `WHA`, `PCHA`, `WCHL`, `NHA` | Value S... |
student_loan | What is the employment and payment status of student110? | employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the stu... | SELECT T1.bool FROM no_payment_due AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name WHERE T1.name = 'student110' | CREATE TABLE longest_absense_from_school
(
"name" TEXT default '' not null primary key,
foreign key ("name") references person ("name") on update cascade on delete cascade,
"month" INTEGER default 0 null, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 1000 - Distinct count 10 - Null count 0 ... |
shooting | List all cases from the year 2012 in which the subject was deceased | case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased' | SELECT case_number FROM incidents WHERE STRFTIME('%Y', date) > '2011' AND subject_statuses = 'Deceased' | CREATE TABLE officers
(
full_name TEXT not null, --
foreign key (case_number) references incidents (case_number),
case_number TEXT not null, --
last_name TEXT not null, --
first_name TEXT null, --
race TEXT null, -- Example Values: `L`, `W`, `B`, `A` | Value Statics: Total count 366 - Distinct count 4 - N... |
food_inspection | List the business' name and risk category of businesses with a score greater than the 80% of average score of all businesses. | score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections); | SELECT DISTINCT T1.name, T3.risk_category FROM businesses AS T1 INNER JOIN inspections AS T2 ON T1.business_id = T2.business_id INNER JOIN violations AS T3 ON T1.business_id = T3.business_id WHERE T2.score > 0.8 * ( SELECT AVG(score) FROM inspections ) | CREATE TABLE violations
(
`risk_category` TEXT NOT NULL, -- Example Values: `Moderate Risk`, `Low Risk`, `High Risk` | Value Statics: Total count 36050 - Distinct count 3 - Null count 0
`date` DATE NOT NULL, --
`violation_type_id` TEXT NOT NULL, --
FOREIGN KEY (`business_id`) REFERENCES `businesses` (`busine... |
hockey | What is the total amount of assists of the NHL player with the most assists in history? Please indicate his/her full name. | NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A)))) | SELECT SUM(T1.A), T2.firstName, T2.lastName FROM Scoring AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.lgID = 'NHL' GROUP BY T2.firstName, T2.lastName ORDER BY SUM(T1.A) DESC LIMIT 1 | CREATE TABLE Scoring
(
tmID TEXT, --
PIM INTEGER, --
PostA TEXT, --
GTG TEXT, -- Example Values: `0`, `1`, `3`, `2`, `5` | Value Statics: Total count 28106 - Distinct count 8 - Null count 17861
PostGP TEXT, --
GP INTEGER, --
lgID TEXT, -- Example Values: `NHL`, `WHA`, `PCHA`, `WCHL`, `NHA` | Value S... |
student_loan | What is the school and gender of student34? | male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student; | SELECT T1.school , IIF(T3.name IS NULL, 'female', 'male') AS gender FROM enrolled AS T1 INNER JOIN person AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T2.name = T3.name WHERE T2.name = 'student34' | CREATE TABLE longest_absense_from_school
(
"name" TEXT default '' not null primary key,
foreign key ("name") references person ("name") on update cascade on delete cascade,
"month" INTEGER default 0 null, -- Example Values: `0`, `1`, `2`, `3`, `4` | Value Statics: Total count 1000 - Distinct count 10 - Null count 0 ... |
shooting | How many incidents in which the subject's weapon was a vehicle were investigated by a female officer? | subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F' | SELECT COUNT(T1.case_number) FROM incidents AS T1 INNER JOIN officers AS T2 ON T1.case_number = T2.case_number WHERE T1.subject_weapon = 'Vehicle' AND T2.gender = 'F' | CREATE TABLE officers
(
full_name TEXT not null, --
foreign key (case_number) references incidents (case_number),
case_number TEXT not null, --
last_name TEXT not null, --
first_name TEXT null, --
race TEXT null, -- Example Values: `L`, `W`, `B`, `A` | Value Statics: Total count 366 - Distinct count 4 - N... |
books | List the author's name of the books published by Abrams. | "Abrams" is the publisher_name; author's name refers to author_name | SELECT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id INNER JOIN publisher AS T4 ON T4.publisher_id = T1.publisher_id WHERE T4.publisher_name = 'Abrams' | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
sales | Find and list the full name of customers who bought products above-average quantity. | full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity); | SELECT T2.FirstName, T2.MiddleInitial, T2.LastName FROM Sales AS T1 INNER JOIN Customers AS T2 ON T1.CustomerID = T2.CustomerID GROUP BY T1.Quantity HAVING T1.Quantity > ( SELECT AVG(Quantity) FROM Sales ) | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
books | List the title of the books purchased by the customer named Zia Roizin. | null | SELECT T1.title FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T4.first_name = 'Zia' AND T4.last_name = 'Roizin' | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
books | List the email of customers that bought the book titled Switch on the Night. | "Switch on the Night" is the title | SELECT T4.email FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id INNER JOIN cust_order AS T3 ON T3.order_id = T2.order_id INNER JOIN customer AS T4 ON T4.customer_id = T3.customer_id WHERE T1.title = 'Switch on the Night' | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
sales | List the first name of all the customers whose last name is Chen. | null | SELECT FirstName, LastName FROM Customers WHERE LastName = 'Chen' | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
sales | What is the average price of products that cost between 100 and 200? | average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200; | SELECT AVG(Price) FROM Products WHERE Price BETWEEN 100 AND 200 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
books | In books authored by Abraham Lincoln, what is the percentage of the books published in 1992? | "Abraham Lincoln" is the author_name; published in 1992 refers to publication_date LIKE '1992%'; percentage = Divide (Sum(publication_date LIKE '1992%'), Count(publication_date)) * 100 | SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', T1.publication_date) = '1992' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Abraham Lincoln' | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
sales | Of the employees who sold Blade, who has the most amount of sales? | Blade' is name of product; most amount of sales refers to MAX(MULTIPLY(Quantity, Price)); | SELECT T1.FirstName, T1.MiddleInitial, T1.LastName FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID ORDER BY T2.Quantity * T3.Price DESC LIMIT 1 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
books | Who authored the book with greatest number of pages? | greatest number of pages refers to Max(num_pages); who authored refers to author_name | SELECT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id ORDER BY T1.num_pages DESC LIMIT 1 | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
sales | Among the employee names, what is the most common middle initial? | most common middle initial refers to MAX(COUNT(MiddleInitial)); | SELECT MiddleInitial FROM Employees GROUP BY MiddleInitial ORDER BY COUNT(MiddleInitial) DESC LIMIT 1 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
books | Provide the contact email of Moss Zarb. | null | SELECT email FROM customer WHERE first_name = 'Moss' AND last_name = 'Zarb' | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
sales | Give the full name of the customer who bought the most amount of products. | full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price)); | SELECT T3.FirstName, T3.MiddleInitial, T3.LastName FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID ORDER BY T2.Quantity * T1.Price DESC LIMIT 1 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
books | What is the publisher name of the book titled The Illuminati? | "The Illuminati" is the title of book | SELECT T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T1.title = 'The Illuminati' | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
sales | How many chainring bolts were sold under sales ID 551971? | Chainring Bolts' is name of product; | SELECT T1.Quantity FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T2.Name = 'Chainring Bolts' AND T1.SalesID = 551971 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
books | Count the number of books written by Orson Scott Card. | "Orson Scott Card" is the author_name | SELECT COUNT(*) FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Orson Scott Card' | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
sales | Name the product that sold the most quantity. | most quantity refers to MAX(Quantity); | SELECT T2.Name FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID ORDER BY T1.Quantity DESC LIMIT 1 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
sales | What are the full names of the top 3 employees who handled the highest number of sales? | full names of employees = FirstName, MiddleInitital, LastName; highest number of sales refers to MAX(COUNT(SalesID)); | SELECT T1.FirstName, T1.MiddleInitial, T1.LastName FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID GROUP BY T2.SalesPersonID, T1.FirstName, T1.MiddleInitial, T1.LastName ORDER BY COUNT(T2.SalesID) DESC LIMIT 3 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
books | Among the books published in 2004, list the name of the publisher of books with number of pages greater than 70% of the average number of pages of all books. | published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name | SELECT T1.title, T2.publisher_name FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE STRFTIME('%Y', T1.publication_date) = '2004' AND T1.num_pages * 100 > ( SELECT AVG(num_pages) FROM book ) * 70 | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
menu | How many dishes do not have correct data for the year in which it appeared first? | do not have correct data refers to first_appeared < 1851 or first_appeared > 2012; | SELECT COUNT(*) FROM Dish WHERE first_appeared < 1851 OR first_appeared > 2012 | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
books | Which books were released by Orson Scott Card in 2001? | "Orson Scott Card" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title | SELECT T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T3.author_name = 'Orson Scott Card' AND STRFTIME('%Y', T1.publication_date) = '2001' | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
sales | List the full name of customers who spend more than 50,000 in descending order the amount spend. | full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000; | SELECT DISTINCT T3.FirstName, T3.MiddleInitial, T3.LastName FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID WHERE T2.Quantity * T1.Price > 50000 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
books | List the ISBN of the book published in Spanish. | "Spanish" is the language_name; ISBN refers to isbn13 | SELECT T1.isbn13 FROM book AS T1 INNER JOIN book_language AS T2 ON T1.language_id = T2.language_id WHERE T2.language_name = 'Spanish' | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
menu | Among all the dishes that were once free, what is the name of the dish that had appeared on most menus? | dishes that were once free refers to lowest_price = 0; appeared on most menus refers to MAX(menus_appeared); | SELECT name FROM Dish WHERE lowest_price = 0 ORDER BY menus_appeared DESC LIMIT 1 | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | Show the name of the university with the lowest number of students in 2015. | lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name; | SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2015 ORDER BY T1.num_students ASC LIMIT 1 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
books | Who wrote "The Prophet"? | "The Prophet" is the title of the book: who wrote refers to author_name | SELECT T3.author_name FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T1.title = 'The Prophet' | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
sales | Find and list the products that sold below the average quantity. | below the average quantity refers to Quantity < AVG(Quantity); | SELECT DISTINCT T2.Name FROM Sales AS T1 INNER JOIN Products AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Quantity < ( SELECT AVG(Quantity) FROM Sales ) | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
university | Calculate the number of international students of University of Wisconsin-Madison in 2013. | international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013 | SELECT CAST(T1.num_students * T1.pct_international_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2013 AND T2.university_name = 'University of Wisconsin-Madison' | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
menu | Which dish lasted longer, Anchovies or Fresh lobsters in every style? | if (SUBTRACT(last_appeared, first_appeared) WHERE name = 'Anchovies') > (SUBTRACT(last_appeared, first_appeared) WHERE name = 'Fresh lobsters in every style'), it means 'Anchovies' lasted longer; if (SUBTRACT(last_appeared , first_appeared) WHERE name = 'Fresh lobsters in every style') > (SUBTRACT(last_appeared , first... | SELECT CASE WHEN SUM(CASE WHEN name = 'Anchovies' THEN last_appeared - first_appeared ELSE 0 END) - SUM(CASE WHEN name = 'Fresh lobsters in every style' THEN last_appeared - first_appeared ELSE 0 END) > 0 THEN 'Anchovies' ELSE 'Fresh lobsters in every style' END FROM Dish WHERE name IN ('Fresh lobsters in every style',... | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | What was the score for University of Florida in "N and S" in 2014? | University of Florida refers to university_name = 'University of Florida'; in 2014 refers to year = 2014; in "N and S" refers to criteria_name = 'N and S' | SELECT T2.score FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T3.university_name = 'University of Florida' AND T2.year = 2014 AND T1.criteria_name = 'N and S' | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
books | Name the streets in Dallas. | "Dallas" is the city; streets refers to street_name | SELECT street_name FROM address WHERE city = 'Dallas' | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
menu | What is the name of the dish that appeared on the upper left corner on menu page no. 1389? | appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389; | SELECT T1.name FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T2.menu_page_id = 1389 AND T2.xpos < 0.25 AND T2.ypos < 0.25 | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | How many female students were there in Pierre and Marie Curie University in 2015? | female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100); in Pierre and Marie Curie University refers to university_name = 'Pierre and Marie Curie University'; in 2015 refers to year = 2015 | SELECT CAST(T1.num_students * T1.pct_female_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2015 AND T2.university_name = 'Pierre and Marie Curie University' | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
university | Which ranking system is criteria "Total Shanghai" in? | criteria "Total Shanghai" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name | SELECT T1.system_name FROM ranking_system AS T1 INNER JOIN ranking_criteria AS T2 ON T1.id = T2.ranking_system_id WHERE T2.criteria_name = 'Total Shanghai' | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
sales | How many "Mountain-100 Silver, 38" were sold by Stearns MacFeather? | Mountain-100 Silver, 38' is name of product; | SELECT SUM(T2.Quantity) FROM Employees AS T1 INNER JOIN Sales AS T2 ON T1.EmployeeID = T2.SalesPersonID INNER JOIN Products AS T3 ON T2.ProductID = T3.ProductID WHERE T1.FirstName = 'Stearns' AND T1.LastName = 'MacFeather' AND T3.Name = 'Mountain-100 Silver, 38' | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
university | For the University of Southampton in 2015, on which criteria did it score the best? | University of Southampton refers to university_name = 'University of Southampton'; in 2015 refers to year = 2015; score the best refers to MAX(score); which criteria refers to criteria_name | SELECT T1.criteria_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T3.university_name = 'University of Southampton' AND T2.year = 2015 ORDER BY T2.score DESC LIMIT 1 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
menu | Among all the menu pages with the appearance of the dish "Clear green turtle", how many of them have the dish at a stable price? | Clear green turtle is a name of dish; stable price refers to highest_price is null; | SELECT SUM(CASE WHEN T1.name = 'Clear green turtle' THEN 1 ELSE 0 END) FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.highest_price IS NULL | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | What is the percentage of the international students in University of Oslo in 2015? | percentage of the international students refers to pct_international_students; in 2015 refers to year = 2015; in University of Oslo refers to university_name = 'University of Oslo'; | SELECT T2.pct_international_students FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id WHERE T1.university_name = 'University of Oslo' AND T2.year = 2015 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
books | Provide the authors and titles of the books which have more than 3000 pages. | authors refers to author_name; more than 3000 pages refers to num_pages > 3000 | SELECT T3.author_name, T1.title FROM book AS T1 INNER JOIN book_author AS T2 ON T1.book_id = T2.book_id INNER JOIN author AS T3 ON T3.author_id = T2.author_id WHERE T1.num_pages > 3000 | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
menu | How many menus with the name "Waldorf Astoria" have 4 pages? | 4 pages refers to page_count = 4; | SELECT COUNT(*) FROM Menu WHERE name = 'Waldorf Astoria' AND page_count = 4 | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | For Chosun University, what was its score on "Influence Rank" in 2015? | Chosun University refers to university_name = 'Chosun University'; in 2015 refers to year = 2015; on "Influence Rank" refers to criteria_name = 'Influence Rank'; | SELECT T2.score FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T3.university_name = 'Chosun University' AND T1.criteria_name = 'Influence Rank' AND T2.year = 2015 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
menu | Please list the prices of the dish "Clear green turtle" on every menu page it appeared on. | Clear green turtle is a name of dish; | SELECT T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Clear green turtle' | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | How many students were there in University of Michigan in 2011? | in 2011 refers to year 2011; in University of Michigan refers to university_name = 'University of Michigan'; | SELECT COUNT(*) FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id WHERE T1.university_name = 'University of Michigan' AND T2.year = 2011 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
books | How many books were published by Ace Hardcover? | "Ace Hardcover" is the publisher_name | SELECT COUNT(*) FROM book AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.publisher_id WHERE T2.publisher_name = 'Ace Hardcover' | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
menu | Please list the IDs of all the menus in which the dish "Clear green turtle" had appeared. | Clear green turtle is a name of dish; | SELECT T1.menu_id FROM MenuPage AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.menu_page_id INNER JOIN Dish AS T3 ON T2.dish_id = T3.id WHERE T3.name = 'Clear green turtle' | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | Which university had the most students in 2011? Show its name. | in 2011 refers to year 2011; the most students refers to MAX(num_students); which university refers to university_name; | SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 ORDER BY T1.num_students DESC LIMIT 1 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
sales | How many type of products did Dalton M. Coleman purchase? | null | SELECT COUNT(T2.ProductID) FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.FirstName = 'Dalton' AND T1.MiddleInitial = 'M' AND T1.LastName = 'Coleman' | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
university | How many Turkish universities are there in the database? | Turkish universities refers to country_name = 'Turkey'; | SELECT COUNT(*) FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Turkey' | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
university | Which country is McMaster University located in? | McMaster University refers to university_name = 'McMaster University'; which country refers to country_name | SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.university_name = 'McMaster University' | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
books | What is the title of the most expensive book? | most expensive book refers to Max(price) | SELECT T1.title FROM book AS T1 INNER JOIN order_line AS T2 ON T1.book_id = T2.book_id ORDER BY T2.price DESC LIMIT 1 | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
menu | Among the menus in which the dish "Clear green turtle" had appeared, how many of them did not support taking out or booking in advance? | Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null; | SELECT SUM(CASE WHEN T4.name = 'Clear green turtle' THEN 1 ELSE 0 END) FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T3.call_number IS NULL | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | Show the name of country id 66. | name of country refers to country_name | SELECT country_name FROM country WHERE id = 66 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
menu | What is the highest price of the dish "Clear green turtle" on a menu page? | highest price refers to MAX(Price); Clear green turtle is a name of dish; | SELECT T2.price FROM Dish AS T1 INNER JOIN MenuItem AS T2 ON T1.id = T2.dish_id WHERE T1.name = 'Clear green turtle' ORDER BY T2.price DESC LIMIT 1 | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | For the university id 268, show its number of students in 2013. | number of students refers to num_students; in 2013 refers to year = 2013 | SELECT num_students FROM university_year WHERE university_id = 268 AND year = 2013 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
university | Show the id of University of Orléans. | University of Orléans refers to university_name = 'University of Orléans'; | SELECT id FROM university WHERE university_name = 'University of Orléans' | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
university | What is the id of the criteria "Citations Rank"? | criteria "Citations Rank" refers to criteria_name = 'Citations Rank'; | SELECT id FROM ranking_criteria WHERE criteria_name = 'Citations Rank' | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
menu | Among the menus in which the dish "Clear green turtle" had appeared, how many of them used the dollar as their currency? | Clear green turtle is a name of dish; dollar as currency refers to currency = 'Dollars'; | SELECT SUM(CASE WHEN T3.currency = 'Dollars' THEN 1 ELSE 0 END) FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T4.name = 'Clear green turtle' | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | Which country is University of Veterinary Medicine Vienna located in? Give its country id. | University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna'; | SELECT country_id FROM university WHERE university_name = 'University of Veterinary Medicine Vienna' | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
university | Give the id of "Center for World University Rankings". | "Center for World University Rankings" refers to system_name = 'Center for World University Rankings'; | SELECT id FROM ranking_system WHERE system_name = 'Center for World University Rankings' | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
sales | Among the "Mountain-500 Black" product types, which type was purchased the most? | Mountain-500 Black product types refers to Name like 'Mountain-500 Black%'; purchased the most refers to MAX(SUM(Quantity)); | SELECT T1.Name FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name LIKE 'Mountain-500 Black%' GROUP BY T2.Quantity, T1.Name ORDER BY SUM(T2.Quantity) DESC LIMIT 1 | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
university | Among the universities with a score in teaching of over 90 in 2011, what is the percentage of those in the United States of America? | in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America'; percentage refers to DIVIDE(COUNT(country_name = 'United States of America'), COUNT(id)) | SELECT CAST(SUM(CASE WHEN T4.country_name = 'United States of America' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS per FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id INNER JOIN country AS T4 ON T4.id = T3... | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
university | How many female students did Stanford University have in 2011? | in 2011 refers to year 2011; female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100); Stanford University refers to university_name = 'Stanford University'; | SELECT CAST(T1.num_students * T1.pct_female_students AS REAL) / 100 FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 AND T2.university_name = 'Stanford University' | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
sales | Give the product's name brought by Aaron Alexander. | null | SELECT DISTINCT T1.Name FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID WHERE T3.FirstName = 'Aaron' AND T3.LastName = 'Alexander' | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
university | Among the universities in Australia, how many of them have a student staff ratio of over 15 in 2011? | in 2011 refers to year 2011; in Australia refers to country_name = 'Australia'; student staff ratio of over 15 refers to student_staff_ratio > 15 | SELECT COUNT(*) FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Australia' AND T2.student_staff_ratio > 15 AND T2.year = 2011 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
university | Please list the names of all the universities that scored under 60 in teaching in 2011 and are in the United States of America. | scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America'; | SELECT T3.university_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id INNER JOIN country AS T4 ON T4.id = T3.country_id WHERE T4.country_name = 'United States of America' AND T2.year = 2011 AND T2.score < ... | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
menu | Which dish has the highest price on the menu "Zentral Theater Terrace"? Please give its name. | highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu; | SELECT T4.name FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T3.name = 'Zentral Theater Terrace' ORDER BY T1.price DESC LIMIT 1 | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | What are the names of the universities that got 98 in teaching in 2011? | in 2011 refers to year 2011; that got 98 refers to score = 98; in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name | SELECT T3.university_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 AND T2.score = 98 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
sales | How many employees sold "ML Road Frame-W - Yellow, 40"? | ML Road Frame-W - Yellow, 40' is name of product; | SELECT COUNT(T2.SalesPersonID) FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID WHERE T1.Name = 'ML Road Frame-W - Yellow, 40' | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
university | Please list the names of all the ranking criteria of Harvard University in 2011. | in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name | SELECT T1.criteria_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T3.university_name = 'Harvard University' AND T2.year = 2011 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
books | Among the books that cost less than 1 dollar, how many were published by Berkley Trade? | book cost less than 1 dollar refers to price < 1; 'Berkley Trade' is the publisher_name; | SELECT COUNT(*) FROM publisher AS T1 INNER JOIN book AS T2 ON T1.publisher_id = T2.publisher_id INNER JOIN order_line AS T3 ON T3.book_id = T2.book_id WHERE T1.publisher_name = 'Berkley' AND T3.price < 1 | CREATE TABLE order_line
(
book_id INTEGER references book, --
price REAL, --
line_id INTEGER primary key autoincrement,
order_id INTEGER references cust_order, --
);
CREATE TABLE customer
(
customer_id INTEGER primary key,
first_name TEXT, --
last_name TEXT, --
email TEXT, --
);
CREATE TABLE book_... |
menu | Please list the names of all the dishes that appeared on the menu "Zentral Theater Terrace". | Zentral Theater Terrace is a name of menu; | SELECT T4.name FROM MenuItem AS T1 INNER JOIN MenuPage AS T2 ON T1.menu_page_id = T2.id INNER JOIN Menu AS T3 ON T2.menu_id = T3.id INNER JOIN Dish AS T4 ON T1.dish_id = T4.id WHERE T3.name = 'Zentral Theater Terrace' | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | Among the universities with a score in teaching of over 90 in 2011, how many of them are in the United States of America? | in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America'; | SELECT COUNT(*) FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 AND T2.score > 90 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
sales | List the quantity and price of the product bought by Abigail Henderson. | null | SELECT T2.Quantity, T1.Price FROM Products AS T1 INNER JOIN Sales AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Customers AS T3 ON T2.CustomerID = T3.CustomerID WHERE T3.FirstName = 'Abigail' AND T3.LastName = 'Henderson' | CREATE TABLE Sales
(
CustomerID INTEGER not null, --
SalesID INTEGER not null primary key,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
foreign key (SalesPersonID) references Employees (EmployeeID) on update cascade on delete cascade,
SalesPersonID INTEGER no... |
university | Please list the names of the universities with a score in teaching of over 90 in 2011. | in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; name of university refers to university_name; | SELECT T3.university_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 AND T2.score > 90 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
university | What is the name of the university with the highest score in teaching in the year 2011? | with the highest score refers to MAX(score); in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name; | SELECT T3.university_name FROM ranking_criteria AS T1 INNER JOIN university_ranking_year AS T2 ON T1.id = T2.ranking_criteria_id INNER JOIN university AS T3 ON T3.id = T2.university_id WHERE T1.criteria_name = 'Teaching' AND T2.year = 2011 ORDER BY T2.score DESC LIMIT 1 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
menu | Please describe the menu sponsored by Noviomagus physically. | describe the menu physically refers to physical_description; sponsored by Noviomagus refers to sponsor = 'Noviomagus'; | SELECT physical_description FROM Menu WHERE sponsor = 'Noviomagus' | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | Which country is Harvard University in? | Harvard University refers to university_name = 'Harvard University'; which country refers to country_name | SELECT T2.country_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T1.university_name = 'Harvard University' | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
university | Among the universities in Australia, how many of them have more than 15000 students in 2011? | in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia'; | SELECT COUNT(*) FROM university AS T1 INNER JOIN university_year AS T2 ON T1.id = T2.university_id INNER JOIN country AS T3 ON T3.id = T1.country_id WHERE T3.country_name = 'Australia' AND T2.year = 2011 AND T2.num_students > 15000 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
university | Please list the names of all the universities in Australia. | in Australia refers to country_name = 'Australia'; name of university refers to university_name | SELECT T1.university_name FROM university AS T1 INNER JOIN country AS T2 ON T1.country_id = T2.id WHERE T2.country_name = 'Australia' | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
menu | List down the locations of menu sponsored by Norddeutscher Lloyd Bremen. | sponsored by Norddeutscher Lloyd Bremen refers to sponsor = 'Norddeutscher Lloyd Bremen'; | SELECT location FROM Menu WHERE sponsor = 'Norddeutscher Lloyd Bremen' | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | What is the name of the university with the most international students in 2011? | in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); name of university refers to university_id | SELECT T2.university_name FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T1.year = 2011 ORDER BY T1.pct_international_students DESC LIMIT 1 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
university | How many students did Harvard University have in 2011? | in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; | SELECT T1.num_students FROM university_year AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Harvard University' AND T1.year = 2011 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
menu | Where is the place that menu with ID 12472 was created for? | place refers to location; | SELECT location FROM Menu WHERE id = 12472 | CREATE TABLE Dish
(
menus_appeared INTEGER, --
highest_price REAL, --
description TEXT, -- Example Values: `` | Value Statics: Total count 7 - Distinct count 1 - Null count 99993
last_appeared INTEGER, --
name TEXT, --
id INTEGER primary key,
first_appeared INTEGER, --
lowest_price REAL, --
time... |
university | In which year did university ID 1 have the most students? | have the most students refers to MAX(num_students) | SELECT year FROM university_year WHERE university_id = 1 ORDER BY num_students DESC LIMIT 1 | CREATE TABLE ranking_system
(
id INTEGER not null primary key,
system_name TEXT default NULL, -- Example Values: `Times Higher Education World University Ranking`, `Shanghai Ranking`, `Center for World University Rankings` | Value Statics: Total count 3 - Distinct count 3 - Null count 0
);
CREATE TABLE country
(
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.