qnli question: The first astrolabe with a mechanical calendar was invented where? sentence: An astrolabe incorporating a mechanical calendar computer and gear-wheels was invented by Abi Bakr of Isfahan, Persia in 1235.