SELECT `question`.`question_id`, `question`.`question`, `question`.`url_slug`, `answer`.`answer`, `answer`.`answer_id`, `answer`.`status`, `answer`.`source`, `question`.`generate_from`, `answer`.`created_date` FROM `question` JOIN `answer` ON `question`.`question_id` = `answer`.`question_id` WHERE `question`.`generate_from` LIKE '%concept-history-essays%' ESCAPE '!' AND `question`.`question` LIKE '%concept-history-essays%' ESCAPE '!' AND `question`.`url_slug` != '' AND (`answer`.`status` LIKE 'a' OR `answer`.`answer` LIKE '%concept-history-essays%')