CREATE TABLE school (school_id CLOB, school_name CLOB, location CLOB, mascot CLOB, enrollment NUMBER, ihsaa_class CLOB, ihsaa_football_class CLOB, county CLOB)
CREATE TABLE budget (school_id NUMBER, year NUMBER, budgeted NUMBER, total_budget_percent_budgeted NUMBER, invested NUMBER, total_budget_percent_invested NUMBER, budget_invested_percent CLOB)
CREATE TABLE endowment (endowment_id NUMBER, school_id NUMBER, donator_name CLOB, amount NUMBER)

List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.
SELECT T1.school_name, T1.mascot, T1.ihsaa_football_class FROM school AS T1 JOIN budget AS T2 ON T1.school_id = T2.school_id WHERE budgeted > 6000 OR year < 2003 ORDER BY T2.total_budget_percent_invested, T2.total_budget_percent_budgeted
SELECT "T1"."school_name", "T1"."mascot", "T1"."ihsaa_football_class" FROM "school" "T1" JOIN "budget" "T2" ON "T1"."school_id" = "T2"."school_id" WHERE "budgeted" > 6000 OR "year" < 2003 ORDER BY "T2"."total_budget_percent_invested", "T2"."total_budget_percent_budgeted"