db_id
stringclasses
20 values
query
stringlengths
20
422
question
stringlengths
18
174
query_toks
listlengths
4
63
query_toks_no_value
listlengths
4
88
question_toks
listlengths
5
33
schema
stringclasses
20 values
singer
SELECT count(*) FROM singer
How many singers are there?
[ "SELECT", "count", "(", "*", ")", "FROM", "singer" ]
[ "select", "count", "(", "*", ")", "from", "singer" ]
[ "How", "many", "singers", "are", "there", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT count(*) FROM singer
What is the count of singers?
[ "SELECT", "count", "(", "*", ")", "FROM", "singer" ]
[ "select", "count", "(", "*", ")", "from", "singer" ]
[ "What", "is", "the", "count", "of", "singers", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC
List the name of singers in ascending order of net worth.
[ "SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "ASC" ]
[ "select", "name", "from", "singer", "order", "by", "net_worth_millions", "asc" ]
[ "List", "the", "name", "of", "singers", "in", "ascending", "order", "of", "net", "worth", "." ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC
What are the names of singers ordered by ascending net worth?
[ "SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "ASC" ]
[ "select", "name", "from", "singer", "order", "by", "net_worth_millions", "asc" ]
[ "What", "are", "the", "names", "of", "singers", "ordered", "by", "ascending", "net", "worth", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Birth_Year , Citizenship FROM singer
What are the birth year and citizenship of singers?
[ "SELECT", "Birth_Year", ",", "Citizenship", "FROM", "singer" ]
[ "select", "birth_year", ",", "citizenship", "from", "singer" ]
[ "What", "are", "the", "birth", "year", "and", "citizenship", "of", "singers", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Birth_Year , Citizenship FROM singer
What are the birth years and citizenships of the singers?
[ "SELECT", "Birth_Year", ",", "Citizenship", "FROM", "singer" ]
[ "select", "birth_year", ",", "citizenship", "from", "singer" ]
[ "What", "are", "the", "birth", "years", "and", "citizenships", "of", "the", "singers", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Name FROM singer WHERE Citizenship != "France"
List the name of singers whose citizenship is not "France".
[ "SELECT", "Name", "FROM", "singer", "WHERE", "Citizenship", "!", "=", "``", "France", "''" ]
[ "select", "name", "from", "singer", "where", "citizenship", "!", "=", "value" ]
[ "List", "the", "name", "of", "singers", "whose", "citizenship", "is", "not", "``", "France", "''", "." ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Name FROM singer WHERE Citizenship != "France"
What are the names of the singers who are not French citizens?
[ "SELECT", "Name", "FROM", "singer", "WHERE", "Citizenship", "!", "=", "``", "France", "''" ]
[ "select", "name", "from", "singer", "where", "citizenship", "!", "=", "value" ]
[ "What", "are", "the", "names", "of", "the", "singers", "who", "are", "not", "French", "citizens", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949
Show the name of singers whose birth year is either 1948 or 1949?
[ "SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "1948", "OR", "Birth_Year", "=", "1949" ]
[ "select", "name", "from", "singer", "where", "birth_year", "=", "value", "or", "birth_year", "=", "value" ]
[ "Show", "the", "name", "of", "singers", "whose", "birth", "year", "is", "either", "1948", "or", "1949", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949
What are the names of the singers whose birth years are either 1948 or 1949?
[ "SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "1948", "OR", "Birth_Year", "=", "1949" ]
[ "select", "name", "from", "singer", "where", "birth_year", "=", "value", "or", "birth_year", "=", "value" ]
[ "What", "are", "the", "names", "of", "the", "singers", "whose", "birth", "years", "are", "either", "1948", "or", "1949", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1
What is the name of the singer with the largest net worth?
[ "SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "DESC", "LIMIT", "1" ]
[ "select", "name", "from", "singer", "order", "by", "net_worth_millions", "desc", "limit", "value" ]
[ "What", "is", "the", "name", "of", "the", "singer", "with", "the", "largest", "net", "worth", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1
What is the name of the singer who is worth the most?
[ "SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "DESC", "LIMIT", "1" ]
[ "select", "name", "from", "singer", "order", "by", "net_worth_millions", "desc", "limit", "value" ]
[ "What", "is", "the", "name", "of", "the", "singer", "who", "is", "worth", "the", "most", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship
Show different citizenship of singers and the number of singers of each citizenship.
[ "SELECT", "Citizenship", ",", "COUNT", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "Citizenship" ]
[ "select", "citizenship", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "citizenship" ]
[ "Show", "different", "citizenship", "of", "singers", "and", "the", "number", "of", "singers", "of", "each", "citizenship", "." ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship
For each citizenship, how many singers are from that country?
[ "SELECT", "Citizenship", ",", "COUNT", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "Citizenship" ]
[ "select", "citizenship", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "citizenship" ]
[ "For", "each", "citizenship", ",", "how", "many", "singers", "are", "from", "that", "country", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1
Please show the most common citizenship of singers.
[ "SELECT", "Citizenship", "FROM", "singer", "GROUP", "BY", "Citizenship", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "citizenship", "from", "singer", "group", "by", "citizenship", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Please", "show", "the", "most", "common", "citizenship", "of", "singers", "." ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
select citizenship from singer group by citizenship order by count(*) desc limit 1
What is the most common singer citizenship ?
[ "select", "citizenship", "from", "singer", "group", "by", "citizenship", "order", "by", "count", "(", "*", ")", "desc", "limit", "1" ]
[ "select", "citizenship", "from", "singer", "group", "by", "citizenship", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What", "is", "the", "most", "common", "singer", "citizenship", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship
Show different citizenships and the maximum net worth of singers of each citizenship.
[ "SELECT", "Citizenship", ",", "max", "(", "Net_Worth_Millions", ")", "FROM", "singer", "GROUP", "BY", "Citizenship" ]
[ "select", "citizenship", ",", "max", "(", "net_worth_millions", ")", "from", "singer", "group", "by", "citizenship" ]
[ "Show", "different", "citizenships", "and", "the", "maximum", "net", "worth", "of", "singers", "of", "each", "citizenship", "." ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship
For each citizenship, what is the maximum net worth?
[ "SELECT", "Citizenship", ",", "max", "(", "Net_Worth_Millions", ")", "FROM", "singer", "GROUP", "BY", "Citizenship" ]
[ "select", "citizenship", ",", "max", "(", "net_worth_millions", ")", "from", "singer", "group", "by", "citizenship" ]
[ "For", "each", "citizenship", ",", "what", "is", "the", "maximum", "net", "worth", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID
Show titles of songs and names of singers.
[ "SELECT", "T2.Title", ",", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID" ]
[ "select", "t2", ".", "title", ",", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id" ]
[ "Show", "titles", "of", "songs", "and", "names", "of", "singers", "." ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID
What are the song titles and singer names?
[ "SELECT", "T2.Title", ",", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID" ]
[ "select", "t2", ".", "title", ",", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id" ]
[ "What", "are", "the", "song", "titles", "and", "singer", "names", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000
Show distinct names of singers that have songs with sales more than 300000.
[ "SELECT", "DISTINCT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "WHERE", "T2.Sales", ">", "300000" ]
[ "select", "distinct", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "where", "t2", ".", "sales", ">", "value" ]
[ "Show", "distinct", "names", "of", "singers", "that", "have", "songs", "with", "sales", "more", "than", "300000", "." ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000
what are the different names of the singers that have sales more than 300000?
[ "SELECT", "DISTINCT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "WHERE", "T2.Sales", ">", "300000" ]
[ "select", "distinct", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "where", "t2", ".", "sales", ">", "value" ]
[ "what", "are", "the", "different", "names", "of", "the", "singers", "that", "have", "sales", "more", "than", "300000", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1
Show the names of singers that have more than one song.
[ "SELECT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "GROUP", "BY", "T1.Name", "HAVING", "COUNT", "(", "*", ")", ">", "1" ]
[ "select", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "group", "by", "t1", ".", "name", "having", "count", "(", "*", ")", ">", "value" ]
[ "Show", "the", "names", "of", "singers", "that", "have", "more", "than", "one", "song", "." ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1
What are the names of the singers that have more than one songs?
[ "SELECT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "GROUP", "BY", "T1.Name", "HAVING", "COUNT", "(", "*", ")", ">", "1" ]
[ "select", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "group", "by", "t1", ".", "name", "having", "count", "(", "*", ")", ">", "value" ]
[ "What", "are", "the", "names", "of", "the", "singers", "that", "have", "more", "than", "one", "songs", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name
Show the names of singers and the total sales of their songs.
[ "SELECT", "T1.Name", ",", "sum", "(", "T2.Sales", ")", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "GROUP", "BY", "T1.Name" ]
[ "select", "t1", ".", "name", ",", "sum", "(", "t2", ".", "sales", ")", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "group", "by", "t1", ".", "name" ]
[ "Show", "the", "names", "of", "singers", "and", "the", "total", "sales", "of", "their", "songs", "." ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name
For each singer name, what is the total sales for their songs?
[ "SELECT", "T1.Name", ",", "sum", "(", "T2.Sales", ")", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "GROUP", "BY", "T1.Name" ]
[ "select", "t1", ".", "name", ",", "sum", "(", "t2", ".", "sales", ")", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "group", "by", "t1", ".", "name" ]
[ "For", "each", "singer", "name", ",", "what", "is", "the", "total", "sales", "for", "their", "songs", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)
List the name of singers that do not have any song.
[ "SELECT", "Name", "FROM", "singer", "WHERE", "Singer_ID", "NOT", "IN", "(", "SELECT", "Singer_ID", "FROM", "song", ")" ]
[ "select", "name", "from", "singer", "where", "singer_id", "not", "in", "(", "select", "singer_id", "from", "song", ")" ]
[ "List", "the", "name", "of", "singers", "that", "do", "not", "have", "any", "song", "." ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)
What is the sname of every sing that does not have any song?
[ "SELECT", "Name", "FROM", "singer", "WHERE", "Singer_ID", "NOT", "IN", "(", "SELECT", "Singer_ID", "FROM", "song", ")" ]
[ "select", "name", "from", "singer", "where", "singer_id", "not", "in", "(", "select", "singer_id", "from", "song", ")" ]
[ "What", "is", "the", "sname", "of", "every", "sing", "that", "does", "not", "have", "any", "song", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955
Show the citizenship shared by singers with birth year before 1945 and after 1955.
[ "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", "<", "1945", "INTERSECT", "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", ">", "1955" ]
[ "select", "citizenship", "from", "singer", "where", "birth_year", "<", "value", "intersect", "select", "citizenship", "from", "singer", "where", "birth_year", ">", "value" ]
[ "Show", "the", "citizenship", "shared", "by", "singers", "with", "birth", "year", "before", "1945", "and", "after", "1955", "." ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
singer
SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955
What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?
[ "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", "<", "1945", "INTERSECT", "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", ">", "1955" ]
[ "select", "citizenship", "from", "singer", "where", "birth_year", "<", "value", "intersect", "select", "citizenship", "from", "singer", "where", "birth_year", ">", "value" ]
[ "What", "are", "the", "citizenships", "that", "are", "shared", "by", "singers", "with", "a", "birth", "year", "before", "1945", "and", "after", "1955", "?" ]
CREATE TABLE singer ( Singer_ID NUMBER PRIMARY KEY, Name TEXT, Birth_Year NUMBER, Net_Worth_Millions NUMBER, Citizenship TEXT ); CREATE TABLE song ( Song_ID NUMBER PRIMARY KEY, Title TEXT, Singer_ID NUMBER, Sales NUMBER, Highest_Position NUMBER, FOREIGN KEY (Singer_ID) REFERENCES singer(Singer_ID...
real_estate_properties
SELECT count(*) FROM Other_Available_Features
How many available features are there in total?
[ "SELECT", "count", "(", "*", ")", "FROM", "Other_Available_Features" ]
[ "select", "count", "(", "*", ")", "from", "other_available_features" ]
[ "How", "many", "available", "features", "are", "there", "in", "total", "?" ]
CREATE TABLE Ref_Feature_Types ( feature_type_code TEXT PRIMARY KEY, feature_type_name TEXT ); CREATE TABLE Ref_Property_Types ( property_type_code TEXT PRIMARY KEY, property_type_description TEXT ); CREATE TABLE Other_Available_Features ( feature_id NUMBER PRIMARY KEY, feature_type_code TEXT, feature_n...
real_estate_properties
SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = "AirCon"
What is the feature type name of feature AirCon?
[ "SELECT", "T2.feature_type_name", "FROM", "Other_Available_Features", "AS", "T1", "JOIN", "Ref_Feature_Types", "AS", "T2", "ON", "T1.feature_type_code", "=", "T2.feature_type_code", "WHERE", "T1.feature_name", "=", "``", "AirCon", "''" ]
[ "select", "t2", ".", "feature_type_name", "from", "other_available_features", "as", "t1", "join", "ref_feature_types", "as", "t2", "on", "t1", ".", "feature_type_code", "=", "t2", ".", "feature_type_code", "where", "t1", ".", "feature_name", "=", "value" ]
[ "What", "is", "the", "feature", "type", "name", "of", "feature", "AirCon", "?" ]
CREATE TABLE Ref_Feature_Types ( feature_type_code TEXT PRIMARY KEY, feature_type_name TEXT ); CREATE TABLE Ref_Property_Types ( property_type_code TEXT PRIMARY KEY, property_type_description TEXT ); CREATE TABLE Other_Available_Features ( feature_id NUMBER PRIMARY KEY, feature_type_code TEXT, feature_n...
real_estate_properties
SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code
Show the property type descriptions of properties belonging to that code.
[ "SELECT", "T2.property_type_description", "FROM", "Properties", "AS", "T1", "JOIN", "Ref_Property_Types", "AS", "T2", "ON", "T1.property_type_code", "=", "T2.property_type_code", "GROUP", "BY", "T1.property_type_code" ]
[ "select", "t2", ".", "property_type_description", "from", "properties", "as", "t1", "join", "ref_property_types", "as", "t2", "on", "t1", ".", "property_type_code", "=", "t2", ".", "property_type_code", "group", "by", "t1", ".", "property_type_code" ]
[ "Show", "the", "property", "type", "descriptions", "of", "properties", "belonging", "to", "that", "code", "." ]
CREATE TABLE Ref_Feature_Types ( feature_type_code TEXT PRIMARY KEY, feature_type_name TEXT ); CREATE TABLE Ref_Property_Types ( property_type_code TEXT PRIMARY KEY, property_type_description TEXT ); CREATE TABLE Other_Available_Features ( feature_id NUMBER PRIMARY KEY, feature_type_code TEXT, feature_n...
real_estate_properties
SELECT property_name FROM Properties WHERE property_type_code = "House" UNION SELECT property_name FROM Properties WHERE property_type_code = "Apartment" AND room_count > 1
What are the names of properties that are either houses or apartments with more than 1 room?
[ "SELECT", "property_name", "FROM", "Properties", "WHERE", "property_type_code", "=", "``", "House", "''", "UNION", "SELECT", "property_name", "FROM", "Properties", "WHERE", "property_type_code", "=", "``", "Apartment", "''", "AND", "room_count", ">", "1" ]
[ "select", "property_name", "from", "properties", "where", "property_type_code", "=", "value", "union", "select", "property_name", "from", "properties", "where", "property_type_code", "=", "value", "and", "room_count", ">", "value" ]
[ "What", "are", "the", "names", "of", "properties", "that", "are", "either", "houses", "or", "apartments", "with", "more", "than", "1", "room", "?" ]
CREATE TABLE Ref_Feature_Types ( feature_type_code TEXT PRIMARY KEY, feature_type_name TEXT ); CREATE TABLE Ref_Property_Types ( property_type_code TEXT PRIMARY KEY, property_type_description TEXT ); CREATE TABLE Other_Available_Features ( feature_id NUMBER PRIMARY KEY, feature_type_code TEXT, feature_n...