I'm missing one piece to my puzzle here.. I want to get entity_id, product name, and filter it by the products being configurable, websiteid being 2 and by excluding a specific attribute set name.
Problem: what table to join to, in order to exclude attribute_set_id=22(in my case)
SELECT e.entity_id AS product_id, var.value AS product_name,var.store_id,e.type_id,c.website_id
FROM catalog_product_entity e, eav_attribute eav, catalog_product_entity_varchar var,catalog_product_website c
WHERE
e.entity_type_id = eav.entity_type_id
AND eav.attribute_code = 'name'
AND eav.attribute_id = var.attribute_id
AND var.entity_id = e.entity_id
AND var.entity_id=c.product_id
AND e.type_id='configurable'
AND c.website_id=2