query_id
int64 0
1.03k
| database_id
stringclasses 20
values | table_id
sequencelengths 1
4
| query
stringlengths 18
174
| answer
stringlengths 20
422
| difficulty
stringclasses 4
values |
---|---|---|---|---|---|
1,000 | singer | [
"singer"
] | How many singers are there? | SELECT count(*) FROM singer | easy |
1,001 | singer | [
"singer"
] | What is the count of singers? | SELECT count(*) FROM singer | easy |
1,002 | singer | [
"singer"
] | List the name of singers in ascending order of net worth. | SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC | easy |
1,003 | singer | [
"singer"
] | What are the names of singers ordered by ascending net worth? | SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC | easy |
1,004 | singer | [
"singer"
] | What are the birth year and citizenship of singers? | SELECT Birth_Year , Citizenship FROM singer | medium |
1,005 | singer | [
"singer"
] | What are the birth years and citizenships of the singers? | SELECT Birth_Year , Citizenship FROM singer | medium |
1,006 | singer | [
"singer"
] | List the name of singers whose citizenship is not "France". | SELECT Name FROM singer WHERE Citizenship != "France" | easy |
1,007 | singer | [
"singer"
] | What are the names of the singers who are not French citizens? | SELECT Name FROM singer WHERE Citizenship != "France" | easy |
1,008 | singer | [
"singer"
] | 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 | medium |
1,009 | singer | [
"singer"
] | 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 | medium |
1,010 | singer | [
"singer"
] | What is the name of the singer with the largest net worth? | SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1 | medium |
1,011 | singer | [
"singer"
] | What is the name of the singer who is worth the most? | SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1 | medium |
1,012 | singer | [
"singer"
] | Show different citizenship of singers and the number of singers of each citizenship. | SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship | medium |
1,013 | singer | [
"singer"
] | For each citizenship, how many singers are from that country? | SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship | medium |
1,014 | singer | [
"singer"
] | Please show the most common citizenship of singers. | SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1 | hard |
1,015 | singer | [
"singer"
] | What is the most common singer citizenship ? | select citizenship from singer group by citizenship order by count(*) desc limit 1 | hard |
1,016 | singer | [
"singer"
] | Show different citizenships and the maximum net worth of singers of each citizenship. | SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship | medium |
1,017 | singer | [
"singer"
] | For each citizenship, what is the maximum net worth? | SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship | medium |
1,018 | singer | [
"singer",
"song"
] | 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 | medium |
1,019 | singer | [
"singer",
"song"
] | 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 | medium |
1,020 | singer | [
"singer",
"song"
] | 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 | medium |
1,021 | singer | [
"singer",
"song"
] | 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 | medium |
1,022 | singer | [
"singer",
"song"
] | 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 | medium |
1,023 | singer | [
"singer",
"song"
] | 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 | medium |
1,024 | singer | [
"singer",
"song"
] | 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 | medium |
1,025 | singer | [
"singer",
"song"
] | 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 | medium |
1,026 | singer | [
"singer",
"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) | hard |
1,027 | singer | [
"singer",
"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) | hard |
1,028 | singer | [
"singer"
] | 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 | hard |
1,029 | singer | [
"singer"
] | 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 | hard |
1,030 | real_estate_properties | [
"Other_Available_Features"
] | How many available features are there in total? | SELECT count(*) FROM Other_Available_Features | easy |
1,031 | real_estate_properties | [
"Other_Available_Features",
"Ref_Feature_Types"
] | 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" | medium |
1,032 | real_estate_properties | [
"Ref_Property_Types",
"Properties"
] | 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 | medium |
1,033 | real_estate_properties | [
"Properties"
] | 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 | hard |