what number of drug legal statuses does potassium bicarbonate 25 effervescent tablet have?
Value
2
class entity
medicine.drug_legal_status m.0hqt7s9
medicine.drug_legal_status medicine.drug_formulation
Drug legal status Potassium bicarbonate 25 effervescent tablet
count none
medicine.drug_formulation.legal_status
Legal status
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 :medicine.drug_legal_status . 
VALUES ?x1 { :m.0hqt7s9 } 
?x1 :medicine.drug_formulation.legal_status ?x0 . 
FILTER ( ?x0 != ?x1  )
}
}
(COUNT (AND medicine.drug_legal_status (JOIN (R medicine.drug_formulation.legal_status) m.0hqt7s9)))