how many exhibitions are produced by the art gallery of nsw?
Value
1
class entity
exhibitions.exhibition m.06kgj1
exhibitions.exhibition exhibitions.exhibition_producer
Exhibition art gallery of nsw
count none
exhibitions.exhibition_producer.exhibitions_produced
Exhibitions produced
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 :exhibitions.exhibition . 
VALUES ?x1 { :m.06kgj1 } 
?x1 :exhibitions.exhibition_producer.exhibitions_produced ?x0 . 
FILTER ( ?x0 != ?x1  )
}
}
(COUNT (AND exhibitions.exhibition (JOIN (R exhibitions.exhibition_producer.exhibitions_produced) m.06kgj1)))