Database schema:

CREATE TABLE "Answer" (
	"AnswerText" TEXT -- example: ['44', '37'],
	"SurveyID" INTEGER -- example: ['2014', '2016'],
	"UserID" INTEGER -- example: ['2', '1'],
	"QuestionID" INTEGER -- example: ['2', '1'],
	PRIMARY KEY ("UserID", "QuestionID"), 
	CONSTRAINT fk_answer_question FOREIGN KEY("QuestionID") REFERENCES "Question" (questionid),
	CONSTRAINT fk_answer_survey FOREIGN KEY("SurveyID") REFERENCES "Survey" ("SurveyID")
)


CREATE TABLE "Question" (
	questiontext TEXT -- example: ['What is your age?', 'What is your gender?'],
	questionid INTEGER -- example: ['2', '1'],
	PRIMARY KEY (questionid)
)


CREATE TABLE "Survey" (
	"SurveyID" INTEGER -- example: ['2014', '2016'],
	"Description" TEXT -- example: ['mental health survey for 2014', 'mental health survey for 2016'],
	PRIMARY KEY ("SurveyID")
)

Question: For all the users who have been asked "Have you ever been diagnosed with a mental health disorder?", how many of them said "Yes"?
Evidence: have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'

SQL:
SELECT COUNT(T1.UserID) FROM Answer AS T1 INNER JOIN Question AS T2 ON T1.QuestionID = T2.questionid WHERE T2.questiontext LIKE 'Have you ever been diagnosed with a mental health disorder?' AND T1.AnswerText = 'Yes'