including the 3rd parliament of upper canada, how many governmental bodies have sessions?
Value
1
class entity
government.governmental_body m.08rypw
government.governmental_body government.legislative_session
Governmental Body 3rd Parliament of Upper Canada
count none
government.governmental_body.sessions
Sessions
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 :government.governmental_body . 
VALUES ?x1 { :m.08rypw } 
?x0 :government.governmental_body.sessions ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(COUNT (AND government.governmental_body (JOIN government.governmental_body.sessions m.08rypw)))