how many automobile companies are a public limited companies?
Value
4
class entity
automotive.company m.068qh
automotive.company business.company_type
Automobile Company public limited companies
count none
business.company_type.companies_of_this_type
Organizations
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (COUNT(?x0) AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :automotive.company . 
VALUES ?x1 { :m.068qh } 
?x1 :business.company_type.companies_of_this_type ?x0 . 
FILTER ( ?x0 != ?x1  )
}
}
(COUNT (AND automotive.company (JOIN (R business.company_type.companies_of_this_type) m.068qh)))