20 tables, 91.9 M rows (2026-10-31 release). Six small areas you can hold in your head one at a time; the joins between them are on the Joining Tables page.
hasEvidenceItems[], and never the reverse. All three kinds of evidence
line (SCV, RCV and VCV) are rows of the one evidenceLine table.
_section column
derived-key join
inside an extensions[] value, not a top-level column
SELECT 'variation' AS section, count(*) n FROM 'variation.parquet' UNION ALL SELECT 'condition', count(*) FROM 'condition.parquet' UNION ALL SELECT 'propositionPathogenicity', count(*) FROM 'propositionPathogenicity.parquet' UNION ALL SELECT 'scv', count(*) FROM 'scv.parquet' UNION ALL SELECT 'rcv', count(*) FROM 'rcv.parquet' UNION ALL SELECT 'vcv', count(*) FROM 'vcv.parquet';
members[] and constraints[] both leave variation. Each member is
{id, section}: section names the table (allele, copyNumberCount,
copyNumberChange), matching the VRS prefix (VA., CN., CX.), and
each branch resolves at 100 %. The green edge is a gene reference by bare ncbigene: id inside the
clinvarGeneList extension, extensions[].value_object_array[].gene.
-- members[] holds {id, section}; section = 'allele' dispatches to allele
SELECT v.id AS variation, v.name AS variation_name,
a.id AS allele, l.id AS location, sr.id AS seqref
FROM 'variation.parquet' v, unnest(v.members) AS t(m)
LEFT JOIN 'allele.parquet' a ON a.id = CASE WHEN m.section = 'allele' THEN m.id END
LEFT JOIN 'location.parquet' l ON l.id = a.location
LEFT JOIN 'sequenceReference.parquet' sr ON sr.id = l.sequenceReference
WHERE v.id = 'clinvar:51592';
conditionSet holds two kinds of row: 5,409 accessioned ClinVar TraitSets and 95,455 sets
minted for VCV-level aggregates. Each concepts[] element is {id, section};
section is condition, or conditionSet for a nested set.
therapyGroup fans out the same way through its concepts[] column, a plain list of
clinvar.therapy: ids.
-- concepts[] holds {id, section}; join to condition, then join the names with ';'
SELECT cs.id, cs.membershipOperator AS op, string_agg(c.name, '; ') AS members
FROM 'conditionSet.parquet' cs, unnest(cs.concepts) AS t(m)
LEFT JOIN 'condition.parquet' c ON c.id = m.id
WHERE cs.id = 'clinvar.conditionset:vcv-50aae75c5e3a7740ab0c2f3ff9ebd970'
GROUP BY cs.id, cs.membershipOperator;
conditionQualifier is on propositionSomaticClinicalImpact only), so read them together
with union_by_name = true. The object slot is the only polymorphic one:
object_section names its table, and every branch resolves. A qualifier is a whole STRUCT;
'ncbigene:' || geneContextQualifier.primaryCoding.code is the gene.id.
-- resolve each object to a name: condition.name, or the set's members joined by ';' WITH set_names AS ( SELECT cs.id, string_agg(c.name, '; ' ORDER BY c.name) AS member_names FROM 'conditionSet.parquet' cs, unnest(cs.concepts) AS t(m) LEFT JOIN 'condition.parquet' c ON c.id = m.id GROUP BY cs.id ) SELECT DISTINCT p.object, coalesce(c.name, sn.member_names) AS condition FROM 'propositionPathogenicity.parquet' p -- CASE keeps each join an equi-join (fast); an AND in ON plans a nested loop LEFT JOIN 'condition.parquet' c ON c.id = CASE WHEN p.object_section = 'condition' THEN p.object END LEFT JOIN set_names sn ON sn.id = CASE WHEN p.object_section = 'conditionSet' THEN p.object END WHERE p.subject = 'clinvar:51592' -- NM_000059.4(BRCA2):c.4090A>C AND coalesce(c.name, sn.member_names) IS NOT NULL ORDER BY condition LIMIT 12;
evidenceLine is one table for all three kinds of line; an SCV's lines are the 1,568 rows whose
id starts clinvar.submission:. For them it is a shared-PK subtype, not a
reference: evidenceLine.id is the scv.id. The table's other rows,
ids VCV… and RCV…, are the aggregate statements' lines. The submitted condition is
in extensions[].value_object and resolves to the accessioned level
(clinvar.trait: / clinvar.traitset:).
-- contributions[].contributor is the submitter id SELECT DISTINCT s.classification.name AS classification, sub.name AS submitter FROM (SELECT classification, contributions FROM 'scv.parquet' -- filter first, then unnest WHERE proposition IN (SELECT id FROM read_parquet('proposition*.parquet', union_by_name = true) WHERE subject = 'clinvar:51592')) s, unnest(s.contributions) AS t(con) JOIN 'submitter.parquet' sub ON sub.id = con.contributor ORDER BY classification, submitter LIMIT 12;
Every count, table, and query output here is from the ClinVar-GKM 2026-10-31 release — figures change between releases, so don't assume they are the latest. See Downloads → Parquet Files for current releases.