added carbon queries and tests