diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 8ccb3a5a999..4bb54614843 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -11733,7 +11733,7 @@ table2-mapping
A path expression can be a Boolean predicate, although the SQL/JSON
standard allows predicates only in filters. This is necessary for
implementation of the @@ operator. For example,
- the followingjsonpath expression is valid in
+ the following jsonpath expression is valid in
PostgreSQL:
'$.track.segments[*].HR < 70'
@@ -12995,7 +12995,7 @@ table2-mapping
- select * jsonb_path_query('{"a":[1,2,3,4,5]}', '$.a[*] ? (@ >= $min && @ <= $max)', '{"min":2,"max":4}');
+ select * from jsonb_path_query('{"a":[1,2,3,4,5]}', '$.a[*] ? (@ >= $min && @ <= $max)', '{"min":2,"max":4}');