How many {official language} are for {Patna} ?
What is Patna's official language?
What's the official language for Patna?
SELECT ( COUNT ( ?o ) AS ?s ) { resource:Patna property:official_language ?o }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q80484> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P37> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q80484 wdt:P37 ?obj }
4