Skip to content

Global X ETFs

Global X US ETF product facts and current fund holdings as SQL tables

Connector software
Free and open source
Service credentials
Not needed
Query Farm hosting
Not available yet
Use with an agent

Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.

npx skills add Query-farm/vgi-skills --skill orchard

Copy this request into your coding agent to get started.

Use https://query.farm/products/orchard/connectors/etf-globalx/index.md to help me query Global X ETFs with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.

largest_etfs

Example output · captured
Connector release
v0.5.0
Engine
2.0.1
VGI protocol
3.4.0
SELECT ticker, fund_name, net_assets
FROM globalx.main.products
ORDER BY net_assets DESC
LIMIT 5;
Result
ticker fund_name net_assets
PAVE U.S. Infrastructure Development ETF 13,139,466,000
AIQ Artificial Intelligence & Technology ETF 9,145,401,400
QYLD Nasdaq 100® Covered Call ETF 7,490,430,200
SHLD Defense Tech ETF 5,002,949,300
COPX Copper Miners ETF 4,709,425,500

Quick start

Choose where to run Global X ETFs, then follow the steps below.

The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.

1. Install the vgi extension

Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.

setup.sql
SET allow_extension_repositories = 'allowed';

CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
    WITH PREFIX 'https://duckdb-extensions.query.farm';

INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;

2. Attach the connector

Attach the release directly

Downloads the latest release for your platform and caches it locally.

ATTACH 'globalx' AS globalx (
  TYPE vgi,
  LOCATION 'github-auto://Query-farm/vgi-etf-globalx'
);

3. Run a query

query.sql
SELECT ticker, fund_name, net_assets
FROM globalx.main.products
ORDER BY net_assets DESC
LIMIT 5;
More example queries →
Technical details
Verified connector release
v0.5.0
Engine
2.0.1
VGI protocol
3.4.0
Verified on
December 1, 2026
Release notes on GitHub
Pin a version for production

When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.

Attach the release directly

Uses the verified release each time you attach the connector.

ATTACH 'globalx' AS globalx (
  TYPE vgi,
  LOCATION 'github-auto://Query-farm/[email protected]'
);

Overview

Global X US ETF data as DuckDB tables: products (catalog) & holdings (ticker-partitioned, current holdings) — vgi-etf-globalx

Catalog

Everything globalx exposes once attached — read straight from the worker's released build.

globalx 1 schema
main 2 tables · 1 function

Global X fund data: the ETF catalog and detailed current holdings.

Schema examples (6)
Examples (6)

Ten largest Global X ETFs by net assets

SELECT ticker, fund_name, net_assets
FROM globalx.main.products
ORDER BY net_assets DESC
LIMIT 10;

Top holdings of QYLD

SELECT name, ticker, weight_percent
FROM globalx.main.holdings
WHERE fund_ticker = 'QYLD'
ORDER BY weight_percent DESC
LIMIT 10;

Join a fund's catalog facts to its top holdings (fund_ticker = products.ticker)

SELECT p.fund_name, p.net_assets, h.name AS holding, h.weight_percent
FROM globalx.main.products p
JOIN globalx.main.holdings h ON h.fund_ticker = p.ticker
WHERE p.ticker = 'QYLD'
ORDER BY h.weight_percent DESC
LIMIT 5;

The ten Global X ETFs with the largest dollar position in NVIDIA, with each fund's name and sub-theme from products (scans every fund's holdings, so it takes a few seconds)

SELECT h.fund_ticker, p.fund_name, p.sub_theme, h.weight_percent,
  h.market_value
FROM globalx.main.holdings h
JOIN globalx.main.products p ON p.ticker = h.fund_ticker
WHERE h.ticker = 'NVDA'
ORDER BY h.market_value DESC
LIMIT 10;
2 more examples

Portfolio overlap of QYLD (Nasdaq-100) and XYLD (S&P 500): how many constituents both hold (matched on SEDOL) and the overlap weight, the sum of the smaller weight of each shared holding

SELECT count(*) AS shared_constituents,
  round(sum(least(q.weight_percent, x.weight_percent)), 2) AS overlap_weight_percent
FROM globalx.main.holdings q
JOIN globalx.main.holdings x ON x.sedol = q.sedol
WHERE q.fund_ticker = 'QYLD' AND x.fund_ticker = 'XYLD' AND q.sedol <> '';

The most concentrated Thematic ETFs: weight in each fund's top 10 ticker-bearing holdings (cash and other untickered lines excluded), its number of such holdings, and its gross expense ratio (scans every fund's holdings, so it takes a few seconds)

WITH ranked AS (SELECT fund_ticker, weight_percent, row_number() OVER (PARTITION BY fund_ticker ORDER BY weight_percent DESC) AS rnk FROM globalx.main.holdings WHERE ticker IS NOT NULL) SELECT p.ticker, p.fund_name, p.gross_expense_ratio_percent, count(*) AS constituents, round(sum(r.weight_percent) FILTER (WHERE r.rnk <= 10), 2) AS top10_weight_percent
FROM globalx.main.products p
JOIN ranked r ON r.fund_ticker = p.ticker
WHERE p.sub_theme = 'Thematic'
GROUP BY ALL
ORDER BY top10_weight_percent DESC
LIMIT 10;
Tables
holdings 5 examples9 cols

Detailed current fund holdings, hive-partitioned by fund_ticker (filter WHERE fund_ticker = … for one fund, or scan unfiltered for all). Global X publishes current holdings only (no historical dates).

Columns
fund_tickernot null VARCHAR
The fund's ticker (e.g. QYLD) — the hive partition key; constant for every row of a fund. Filter on it to pick funds; omit to stream all.
as_of_date DATE
Holdings as-of date (the published file's own date; current holdings only).
weight_percent DOUBLE
Percent of the fund's net assets, in percent points (0.74 = 0.74%; weights sum to ~100).
ticker VARCHAR
Constituent ticker (may carry an exchange suffix like '6104 JP'; NULL for cash/derivative lines).
namenot null VARCHAR
Constituent / issue name. Part of the (fund_ticker, name, sedol) primary key; never blank.
sedolnot null VARCHAR
Constituent SEDOL identifier; empty string for cash/derivative lines that carry none. Part of the (fund_ticker, name, sedol) primary key.
market_price DOUBLE
Market price per unit of the constituent, in USD.
shares_held DOUBLE
Number of shares / units held.
market_value DOUBLE
Market value of the position, in USD.
ConstraintsPRIMARY KEY (fund_ticker, name, sedol)
Examples (5)

Top 10 current holdings of QYLD

SELECT name, ticker, weight_percent
FROM globalx.main.holdings
WHERE fund_ticker = 'QYLD'
ORDER BY weight_percent DESC
LIMIT 10;

The largest positions of the Copper Miners ETF

SELECT name, weight_percent, market_value
FROM globalx.main.holdings
WHERE fund_ticker = 'COPX'
ORDER BY weight_percent DESC
LIMIT 10;

Two funds at once (partition fan-out)

SELECT fund_ticker, name, weight_percent
FROM globalx.main.holdings
WHERE fund_ticker IN ('QYLD', 'COPX');
2 more examples

The ten Global X ETFs with the largest dollar position in NVIDIA, with each fund's name and sub-theme from products (scans every fund's holdings, so it takes a few seconds)

SELECT h.fund_ticker, p.fund_name, p.sub_theme, h.weight_percent,
  h.market_value
FROM globalx.main.holdings h
JOIN globalx.main.products p ON p.ticker = h.fund_ticker
WHERE h.ticker = 'NVDA'
ORDER BY h.market_value DESC
LIMIT 10;

Portfolio overlap of QYLD (Nasdaq-100) and XYLD (S&P 500): how many constituents both hold (matched on SEDOL) and the overlap weight, the sum of the smaller weight of each shared holding

SELECT count(*) AS shared_constituents,
  round(sum(least(q.weight_percent, x.weight_percent)), 2) AS overlap_weight_percent
FROM globalx.main.holdings q
JOIN globalx.main.holdings x ON x.sedol = q.sedol
WHERE q.fund_ticker = 'QYLD' AND x.fund_ticker = 'XYLD' AND q.sedol <> '';
Link
products 5 examples20 cols

Every Global X US ETF with its key facts, one row per fund. Query directly (no arguments) and filter with WHERE; percent columns are in percent points.

Columns
ticker VARCHAR
Exchange ticker (e.g. QYLD).
fund_name VARCHAR
Full fund name as marketed, e.g. 'Nasdaq 100® Covered Call ETF'.
theme VARCHAR
Top-level theme (Equity, Fixed Income, Alternatives & Specialty Equity).
sub_theme VARCHAR
Sub-theme / category (Income, Thematic, Commodities, International, Core, Real Assets, Structured, Digital Assets).
inception_date DATE
Fund inception date.
as_of_date DATE
As-of date for the pricing fields (net_assets, nav).
performance_as_of DATE
Month-end as-of date for the return columns.
nav DOUBLE
Net asset value per share, in USD (null: no longer published on Global X's Explore page).
net_assets DOUBLE
Total net assets (fund AUM), in USD.
gross_expense_ratio_percent DOUBLE
Gross expense ratio, percent points (0.60 = 0.60%).
net_expense_ratio_percent DOUBLE
Net expense ratio after fee waivers, percent points (null when equal to gross).
return_1m_percent DOUBLE
1-month cumulative return, percent points (null: no longer published on the Explore page).
return_3m_percent DOUBLE
3-month cumulative return, percent points (null: no longer published on the Explore page).
ytd_return_percent DOUBLE
Year-to-date cumulative return, percent points (null: no longer published on the Explore page).
return_1y_percent DOUBLE
1-year return at market price, percent points.
return_3y_percent DOUBLE
Annualized 3-year return, percent points (null: no longer published on the Explore page).
return_5y_percent DOUBLE
Annualized 5-year return, percent points (null: no longer published on the Explore page).
return_10y_percent DOUBLE
Annualized 10-year return, percent points (null: no longer published on the Explore page).
return_since_inception_percent DOUBLE
Annualized since-inception return, percent points (null: no longer published on the Explore page).
fact_sheet_url VARCHAR
URL of the fund's PDF fact sheet.
ConstraintsPRIMARY KEY (ticker)
Examples (5)

Ten largest Global X ETFs by net assets

SELECT ticker, fund_name, net_assets
FROM globalx.main.products
ORDER BY net_assets DESC
LIMIT 10;

Cheapest funds by gross expense ratio

SELECT ticker, fund_name, gross_expense_ratio_percent
FROM globalx.main.products
ORDER BY gross_expense_ratio_percent
LIMIT 10;

Look up a single fund by ticker

SELECT ticker, fund_name, gross_expense_ratio_percent
FROM globalx.main.products
WHERE ticker = 'QYLD';
2 more examples

Join a fund's catalog facts to its top holdings (fund_ticker = products.ticker)

SELECT p.fund_name, p.net_assets, h.name AS holding, h.weight_percent
FROM globalx.main.products p
JOIN globalx.main.holdings h ON h.fund_ticker = p.ticker
WHERE p.ticker = 'QYLD'
ORDER BY h.weight_percent DESC
LIMIT 5;

The most concentrated Thematic ETFs: weight in each fund's top 10 ticker-bearing holdings (cash and other untickered lines excluded), its number of such holdings, and its gross expense ratio (scans every fund's holdings, so it takes a few seconds)

WITH ranked AS (SELECT fund_ticker, weight_percent, row_number() OVER (PARTITION BY fund_ticker ORDER BY weight_percent DESC) AS rnk FROM globalx.main.holdings WHERE ticker IS NOT NULL) SELECT p.ticker, p.fund_name, p.gross_expense_ratio_percent, count(*) AS constituents, round(sum(r.weight_percent) FILTER (WHERE r.rnk <= 10), 2) AS top10_weight_percent
FROM globalx.main.products p
JOIN ranked r ON r.fund_ticker = p.ticker
WHERE p.sub_theme = 'Thematic'
GROUP BY ALL
ORDER BY top10_weight_percent DESC
LIMIT 10;
Link
Table functions
holdings_scan (fund_ticker := VARCHAR) 2 examples

Backing scan for the holdings table — prefer the holdings table. Returns detailed fund holdings, hive-partitioned by fund_ticker, weight-descending. Pass a single fund's ticker to scan just that fund, or call with no argument to stream every fund's holdings. weight_percent is in percent points; Global X publishes current holdings only.

Named arguments
fund_ticker := VARCHAR
A Global X fund's exchange ticker to scan, e.g. QYLD. Case-insensitive. Omit (or pass NULL) to stream every fund's holdings. · default null
Returns columns
fund_ticker VARCHAR
The fund's ticker — the partition filter.
as_of_date DATE
The holdings as-of date (the published file's own date).
weight_percent DOUBLE
Percent of the fund's net assets, in percent points (0.74 = 0.74%).
ticker VARCHAR
Constituent ticker (may carry an exchange suffix; NULL for cash/derivative lines).
name VARCHAR
Constituent / issue name (never blank; part of the row's identity).
sedol VARCHAR
Constituent SEDOL; empty string for cash/derivative lines that carry none.
market_price DOUBLE
Market price per unit of the constituent, in USD.
shares_held DOUBLE
Number of shares / units held.
market_value DOUBLE
Market value of the position, in USD.
Examples (2)

Top 10 holdings of QYLD, passing the fund ticker as the argument

SELECT name, weight_percent
FROM globalx.main.holdings_scan(fund_ticker => 'QYLD')
ORDER BY weight_percent DESC
LIMIT 10;

Two funds at once via a pushed IN filter on the no-argument scan

SELECT fund_ticker, count(*)
FROM globalx.main.holdings_scan()
WHERE fund_ticker IN ('QYLD', 'COPX')
GROUP BY fund_ticker;
Link

Try these queries

top_holdings — The top holdings of the Global X Nasdaq 100 Covered Call ETF

SELECT name, ticker, weight_percent
FROM globalx.main.holdings
WHERE fund_ticker = 'QYLD'
ORDER BY weight_percent DESC
LIMIT 5;

Uses holdings

Ten largest Global X ETFs by net assets

SELECT ticker, fund_name, net_assets
FROM globalx.main.products
ORDER BY net_assets DESC
LIMIT 10

Uses products

Top holdings of QYLD

SELECT name, ticker, weight_percent
FROM globalx.main.holdings
WHERE fund_ticker = 'QYLD'
ORDER BY weight_percent DESC
LIMIT 10

Uses holdings

Join a fund's catalog facts to its top holdings (fund_ticker = products.ticker)

SELECT p.fund_name, p.net_assets, h.name AS holding, h.weight_percent
FROM globalx.main.products p
JOIN globalx.main.holdings h ON h.fund_ticker = p.ticker
WHERE p.ticker = 'QYLD'
ORDER BY h.weight_percent DESC
LIMIT 5

Uses productsholdings

The ten Global X ETFs with the largest dollar position in NVIDIA, with each fund's name and sub-theme from products (scans every fund's holdings, so it takes a few seconds)

SELECT h.fund_ticker, p.fund_name, p.sub_theme, h.weight_percent,
  h.market_value
FROM globalx.main.holdings h
JOIN globalx.main.products p ON p.ticker = h.fund_ticker
WHERE h.ticker = 'NVDA'
ORDER BY h.market_value DESC
LIMIT 10

Uses holdingsproducts

Top 10 holdings of QYLD, passing the fund ticker as the argument

SELECT name, weight_percent
FROM globalx.main.holdings_scan(fund_ticker => 'QYLD')
ORDER BY weight_percent DESC
LIMIT 10

Uses holdings_scan

7 more examples in the Catalog, each listed under the table or function it uses.

Questions it can answer

Plain-English questions from the worker's agent test tasks. An AI agent with this catalog attached should answer each one with SQL.

  • Does Global X offer an ETF with the ticker QYLD, and what is it called?
  • What is the gross expense ratio of the Global X Nasdaq 100 Covered Call ETF (QYLD)?
  • What is the single largest holding of the Global X Nasdaq 100 Covered Call ETF (QYLD) right now?
  • Using the holdings backing scan function with the fund ticker as its argument, list a few QYLD constituents by weight.

Global X ETFs is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.