Correct

上知天文,下知地理

/ shàng zhī tiān wén xià zhī dì lǐ / 
Strokes
https://i.cchatty2.com/filters:format(webp)/fit-in/684x0/img/202102/上知天文下知地理-Chinese-idioms-Cchatty-2148ca1d-91f0-4c53-b934-dac57f20b0ba-1612776175.jpg

Collocation

1
做到上知天文,下知地理
2
上知天文,下知地理的人
3
不可能上知天文,下知地理
4
他这人上知天文,下知地理

Definition

上知天文,下知地理

Literally means:

know both astronomy and geography

Actually means:

very knowledgeable

It means one is very knowledgeable and knows almost everything. Commendatory

形容人知识广博,几乎什么都知道。具有褒义色彩。

Example

Used as predicate; object, attributive or complement. (作谓语、宾语、定语、补语)
1
Zhège
这个
wèntí
问题
nǐ
你
wèn
问
tā
他
bā
吧
  
,
tā
他
kěndìng
肯定
zhīdào
知道
  
,
tā
他
zhè
这
rén
人
shàng
上
zhī
知
tiānwén
天文
  
,
xià
下
zhī
知
dìlǐ
地理
  
,
jīhū
几乎
méiyǒu
没有
bù
不
zhīdào
知道
de
的
  
。

You ask him this question, he must know that he knows astronomy, know geography, almost do not know.

2
Wǒ
我
xiǎng
想
  
,
zuòwéi
作为
biānjí
编辑
rényuán
人员
  
,
rúguǒ
如果
bú
不
shi
是
shàngzhī
上知
tiānwén
天文
  
,
xià
下
zhī
知
dìlǐ
地理
  
,
huì
会
zài
在
gōngzuò
工作
zhōng
中
pèngdào
碰到
hěnduō
很多
kùnnan
困难
  
。

I think, as an editor, if you don't know astronomy, if you know geography, you will encounter a lot of difficulties in your work.

3
Qíshí
其实
  
,
shàng
上
zhī
知
tiānwén
天文
  
,
xià
下
zhī
知
dìlǐ
地理
de
的
rén
人
bìng
并
bù
不
duō
多
  
,
yīnwèi
因为
yī
一
gè
个
rén
人
de
的
shíjiān
时间
  
、
jīnglì
精力
hé
和
jīngyàn
经验
zǒngshì
总是
yǒuxiàn
有限
de
的
  
,
bù
不
kěnéng
可能
shénme
什么
shìqing
事情
dōu
都
zhīdào
知道
  
。

In fact, know astronomy, know geography is not many people, because a person's time, energy and experience is always limited, it is impossible to know everything.