CREATE TABLE "composition_of_the_14th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);

Question: What is the average total 0 are nominated by the Taoiseach and the agricultural panel is greater than 5?
SQL: SELECT AVG("total") FROM "composition_of_the_14th_seanad" WHERE "nominated_by_the_taoiseach"=0 AND "agricultural_panel">5;

Question: What is the total of the cultural and educational panel when the industrial and commercial panel is 0 and the agricultural panel is greater than 0?
SQL: SELECT SUM("cultural_and_educational_panel") FROM "composition_of_the_14th_seanad" WHERE "industrial_and_commercial_panel"=0 AND "agricultural_panel">0;

Question: What is the total for the University of Dublin when 2 are nominated by Taoiseach and the industrial and commercial panel is greater than 0?
SQL: SELECT SUM("university_of_dublin") FROM "composition_of_the_14th_seanad" WHERE "nominated_by_the_taoiseach"=2 AND "industrial_and_commercial_panel">0;

Question: What is the highest labour panel when the university of dublin is less than 2 and the agricultural panel is greater than 5?
SQL: SELECT MAX("labour_panel") FROM "composition_of_the_14th_seanad" WHERE "university_of_dublin"<2 AND "agricultural_panel">5;

Question: What is the average for the university of dublin when the industrial and commercial panel is greater than 4 and the total of the national university of ireland is larger than 3?
SQL: SELECT AVG("university_of_dublin") FROM "composition_of_the_14th_seanad" WHERE "industrial_and_commercial_panel">4 AND "national_university_of_ireland">3;