SET timezone TO 'Etc/UTC'; CREATE SERVER seadatanet FOREIGN DATA WRAPPER rdf_fdw OPTIONS ( endpoint 'https://edmo.seadatanet.org/sparql/sparql', format 'xml', enable_pushdown 'true' ); CREATE FOREIGN TABLE seadatanet ( identifier rdfnode OPTIONS (variable '?org'), name rdfnode OPTIONS (variable '?name'), modified rdfnode OPTIONS (variable '?modifiedDate') ) SERVER seadatanet OPTIONS (log_sparql 'true', sparql ' PREFIX xsd: SELECT ?org ?name ?modifiedDate WHERE { ?org a ; ?modifiedDate ; ?name . } '); SELECT name, modified::timestamptz FROM seadatanet WHERE modified > '2020-01-01'::timestamptz AND modified < '2021-04-30'::timestamptz ORDER BY modified FETCH FIRST 10 ROWS ONLY; SELECT name, modified::timestamptz FROM seadatanet WHERE modified BETWEEN '2021-04-01'::timestamptz AND '2021-04-30'::timestamp ORDER BY modified FETCH FIRST 15 ROWS ONLY;