add: a query to select all distinct properties
add: a query to select all distinct classes