Skip to content

Commit

Permalink
use left join approach for imaging session subquery
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssadai committed Aug 7, 2024
1 parent c7c1839 commit e43a22c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/api/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ def create_query(
{{
SELECT ?subject (count(distinct ?imaging_session) as ?num_matching_imaging_sessions)
WHERE {{
?subject a nb:Subject.
OPTIONAL {{
?subject nb:hasSession ?imaging_session.
?imaging_session a nb:ImagingSession;
Expand Down

0 comments on commit e43a22c

Please sign in to comment.