CREATE TABLE Catalogs (catalog_id NUMBER, catalog_name VARCHAR2, catalog_publisher VARCHAR2, date_of_publication DATETIME, date_of_latest_revision DATETIME)
CREATE TABLE Catalog_Contents (catalog_entry_id NUMBER, catalog_level_number NUMBER, parent_entry_id NUMBER, previous_entry_id NUMBER, next_entry_id NUMBER, catalog_entry_name VARCHAR2, product_stock_number VARCHAR2, price_in_dollars DOUBLE PRECISION, price_in_euros DOUBLE PRECISION, price_in_pounds DOUBLE PRECISION, capacity VARCHAR2, length VARCHAR2, height VARCHAR2, width VARCHAR2)
CREATE TABLE Catalog_Structure (catalog_level_number NUMBER, catalog_id NUMBER, catalog_level_name VARCHAR2)
CREATE TABLE Catalog_Contents_Additional_Attributes (catalog_entry_id NUMBER, catalog_level_number NUMBER, attribute_id NUMBER, attribute_value VARCHAR2)
CREATE TABLE Attribute_Definitions (attribute_id NUMBER, attribute_name VARCHAR2, attribute_data_type VARCHAR2)

Which attribute definitions have attribute value 0? Give me the number of attributes in each attribute name, and show total number from low to high order.
SELECT attribute_name, COUNT(attribute_name) FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0 GROUP BY attribute_name ORDER BY COUNT(attribute_name)
SELECT "attribute_name", COUNT("attribute_name") FROM "Attribute_Definitions" "t1" JOIN "Catalog_Contents_Additional_Attributes" "t2" ON "t1"."attribute_id" = "t2"."attribute_id" AND "t2"."attribute_value" = 0 GROUP BY "attribute_name" ORDER BY COUNT("attribute_name")