Simple Question (Direct)
Simple Question
Q565510
P26
Q502895
USER
Which person is the spouse of Maurice Elvey ?
(Q565510,P26,c(Q502895))
action filter_type
action find
entity Q565510
relation P26
type Q502895
['Q565510', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q565510 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Maurice Elvey
action filter_type
action find
entity Maurice Elvey
relation spouse
type common name
['Maurice Elvey', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Maurice_Elvey property:spouse ?r . ?r rdf:type ontology:common_name }
[]
common name
Q450061
SYSTEM
Isobel Elsom
Q450061
(Q565510,P26,c(Q502895))
action filter_type
action find
entity Q565510
relation P26
type Q502895
[ANSWER] is the spouse of Maurice Elvey
['Q565510', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q565510 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Isobel Elsom
Isobel Elsom is the spouse of Maurice Elvey
Isobel Elsom
action filter_type
action find
entity Maurice Elvey
relation spouse
type common name
['Maurice Elvey', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Maurice_Elvey property:spouse ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q450061
P21
Q290
USER
Which sex does that person have ?
(Q450061,P21,c(Q290))
action filter_type
action find
entity Q450061
relation P21
type Q290
['Q450061', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q450061 property:P21 ?d }
Isobel Elsom
action filter_type
action find
entity Isobel Elsom
relation gender
type sex
['Isobel Elsom', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Isobel_Elsom property:gender ?d }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q450061,P21,c(Q290))
action filter_type
action find
entity Q450061
relation P21
type Q290
That person has a [ANSWER]
['Q450061', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q450061 property:P21 ?d }
female
That person has a female
female
action filter_type
action find
entity Isobel Elsom
relation gender
type sex
['Isobel Elsom', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Isobel_Elsom property:gender ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q450061
P161
Q838948
USER
Which works of art stars that person as actor ?
(c(Q838948),P161,Q6581072)
action filter_type
action find_reverse
entity Q450061
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q6581072']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q838948 . ?p property:P161 resource:Q450061 }
Isobel Elsom
action filter_type
action find_reverse
entity Isobel Elsom
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'female']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:work_of_art . ?p property:cast_member resource:Isobel_Elsom }
[]
work of art
Q201215 Q3203198 Q1423854
SYSTEM
My Fair Lady, Eagle Squadron, Lust for Life
Q3057860 Q1192737 Q1446533 Q2940808 Q7748972 Q1200457 Q584716 Q714941 Q1214687 Q1262492 Q637153 Q2870390 Q1423854 Q1102739 Q7997277 Q1219965 Q572440 Q7728153 Q3221969 Q3282759 Q7621637 Q3983426 Q2415066 Q506638 Q1198665 Q3576935 Q1647525 Q6691785 Q945470 Q1304578 Q201215 Q3203198
(c(Q838948),P161,Q6581072)
action filter_type
action find_reverse
entity Q450061
relation P161
type Q838948
[ANSWERS] star that person as actor
[{'concept': 'Q838948'}, 'P161', 'Q6581072']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q838948 . ?p property:P161 resource:Q450061 }
Escape Me Never The Errand Boy The Young Philadelphians Casanova Brown The Love Story of Aliette Brunton The King's Thief Who's Minding the Store? Love Is a Many-Splendored Thing The Miracle You Were Never Lovelier The White Cliffs of Dover Deep in My Heart Lust for Life Mayerling Who Is the Man? The Two Mrs. Carrolls Monsieur Verdoux The Crooked Lady Ivy Of Human Bondage Stranglehold Ladies in Retirement The War Against Mrs. Hadley The Paradine Case The Secret Garden 23 Paces to Baker Street Rock-A-Bye Baby Love from a Stranger Désirée The Ghost and Mrs. Muir My Fair Lady Eagle Squadron
My Fair Lady, Eagle Squadron and Lust for Life star that person as actor
My Fair Lady Eagle Squadron Lust for Life
action filter_type
action find_reverse
entity Isobel Elsom
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'female']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:work_of_art . ?p property:cast_member resource:Isobel_Elsom }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q201215 Q3203198 Q1423854
P161
Q502895
USER
Who starred in My Fair Lady, Eagle Squadron and Lust for Life ?
(Q201215,P161,c(Q502895)) (Q3203198,P161,c(Q502895)) (Q1423854,P161,c(Q502895))
action union
action filter_type
action find
entity Q201215
relation P161
type Q502895
action filter_type
action find
entity Q3203198
relation P161
type Q502895
action filter_type
action find
entity Q1423854
relation P161
type Q502895
['Q201215', 'P161', {'concept': 'Q502895'}] ['Q3203198', 'P161', {'concept': 'Q502895'}] ['Q1423854', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { resource:Q201215 property:P161 ?a . ?a rdf:type ontology:Q502895 } UNION { resource:Q3203198 property:P161 ?a . ?a rdf:type ontology:Q502895 } }
My Fair Lady Eagle Squadron Lust for Life
action union
action filter_type
action find
entity My Fair Lady
relation cast member
type common name
action filter_type
action find
entity Eagle Squadron
relation cast member
type common name
action filter_type
action find
entity Lust for Life
relation cast member
type common name
['My Fair Lady', 'cast member', {'concept': 'common name'}] ['Eagle Squadron', 'cast member', {'concept': 'common name'}] ['Lust for Life', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { resource:My_Fair_Lady property:cast_member ?a . ?a rdf:type ontology:common_name } UNION { resource:Eagle_Squadron property:cast_member ?a . ?a rdf:type ontology:common_name } }
[]
common name
Q104027 Q42786 Q83484
SYSTEM
Kirk Douglas, Audrey Hepburn, Anthony Quinn
Q1334296 Q297384 Q181887 Q42786 Q215721 Q549287 Q235299 Q3087644 Q450061 Q1943941 Q2903350 Q585953 Q1232794 Q443538 Q447017 Q367905 Q540613 Q6224047 Q3099595 Q345517 Q26935551 Q2148362 Q728050 Q450061 Q1700875 Q16222684 Q355153 Q313046 Q555672 Q9068560 Q444125 Q640093 Q346833 Q373306 Q258393 Q3142135 Q684226 Q3047429 Q3414024 Q2348329 Q7082960 Q235299 Q3496859 Q3045703 Q3087184 Q2982621 Q200840 Q325781 Q151567 Q1520157 Q3218851 Q83484 Q451879 Q1231608 Q600233 Q940924 Q450061 Q453977 Q7364630 Q1369906 Q3048766 Q104027
(Q201215,P161,c(Q502895)) (Q3203198,P161,c(Q502895)) (Q1423854,P161,c(Q502895))
action union
action filter_type
action find
entity Q201215
relation P161
type Q502895
action filter_type
action find
entity Q3203198
relation P161
type Q502895
action filter_type
action find
entity Q1423854
relation P161
type Q502895
[ANSWERS] starred in My Fair Lady, Eagle Squadron and Lust for Life
['Q201215', 'P161', {'concept': 'Q502895'}] ['Q3203198', 'P161', {'concept': 'Q502895'}] ['Q1423854', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { resource:Q201215 property:P161 ?a . ?a rdf:type ontology:Q502895 } UNION { resource:Q3203198 property:P161 ?a . ?a rdf:type ontology:Q502895 } }
Wilfrid Hyde-White Jeremy Brett Rex Harrison Audrey Hepburn Theodore Bikel Stanley Holloway Gladys Cooper Marni Nixon Isobel Elsom Mona Washbourne Bill Shirley Jon Hall Leif Erickson Evelyn Ankers Peggy Ann Garner Irene Tedrow Gene Reynolds John Burton Gavin Muir Peter Lawford Stanley Smith Rhys Williams Nigel Bruce Isobel Elsom John Loder Charles Irwin Robert Stack Eddie Albert Robert Warwick Rex Lease Diana Barrymore Alan Hale, Jr. Ian Wolfe Alan Napier Jill Esmond Roland Varno Richard Fraser Edgar Barrier Queenie Leonard Audrey Long Olaf Hytten Gladys Cooper Stanley Ridges Paul Cavanagh Frederick Worlock Colin Kenny Noel Purcell Betty Blythe James Donald Niall MacGinnis Laurence Badie Anthony Quinn Madge Kennedy Laurence Naismith Everett Sloane Lionel Jeffries Isobel Elsom Pamela Brown Ronald Adam Henry Daniell Jill Bennett Kirk Douglas
Kirk Douglas, Audrey Hepburn and Anthony Quinn starred in My Fair Lady, Eagle Squadron and Lust for Life
Kirk Douglas Audrey Hepburn Anthony Quinn
action union
action filter_type
action find
entity My Fair Lady
relation cast member
type common name
action filter_type
action find
entity Eagle Squadron
relation cast member
type common name
action filter_type
action find
entity Lust for Life
relation cast member
type common name
['My Fair Lady', 'cast member', {'concept': 'common name'}] ['Eagle Squadron', 'cast member', {'concept': 'common name'}] ['Lust for Life', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { resource:My_Fair_Lady property:cast_member ?a . ?a rdf:type ontology:common_name } UNION { resource:Eagle_Squadron property:cast_member ?a . ?a rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q42786
P39
Q12737077
USER
What was the position held by that person ?
(Q42786,P39,c(Q12737077))
action filter_type
action find
entity Q42786
relation P39
type Q12737077
['Q42786', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q42786 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Audrey Hepburn
action filter_type
action find
entity Audrey Hepburn
relation position held
type occupation
['Audrey Hepburn', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Audrey_Hepburn property:position_held ?f . ?f rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q83484
SYSTEM
Did you mean Anthony Quinn ?
Q104027 Q42786 Q83484
(Q104027,P39,c(Q12737077)) (Q42786,P39,c(Q12737077)) (Q83484,P39,c(Q12737077))
[ANSWER]
['Q104027', 'P39', {'concept': 'Q12737077'}] ['Q42786', 'P39', {'concept': 'Q12737077'}] ['Q83484', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q42786 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Kirk Douglas Audrey Hepburn Anthony Quinn
Did you mean Anthony Quinn ?
Anthony Quinn
['Kirk Douglas', 'position held', {'concept': 'occupation'}] ['Audrey Hepburn', 'position held', {'concept': 'occupation'}] ['Anthony Quinn', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Audrey_Hepburn property:position_held ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Audrey Hepburn. Could you tell me the answer for that?
(Q42786,P39,c(Q12737077))
Q42786
['Q42786', 'P39', {'concept': 'Q12737077'}]
['Audrey Hepburn', 'position held', {'concept': 'occupation'}]
[]
Q19969187
SYSTEM
UNICEF Goodwill Ambassador
Q19969187
(Q42786,P39,c(Q12737077))
action filter_type
action find
entity Q42786
relation P39
type Q12737077
The position held by that person was the [ANSWER]
['Q42786', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q42786 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
UNICEF Goodwill Ambassador
The position held by that person was the UNICEF Goodwill Ambassador
UNICEF Goodwill Ambassador
action filter_type
action find
entity Audrey Hepburn
relation position held
type occupation
['Audrey Hepburn', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Audrey_Hepburn property:position_held ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q42786
P509
Q2057971
USER
What lead to the death of Audrey Hepburn ?
(Q42786,P509,c(Q2057971))
action filter_type
action find
entity Q42786
relation P509
type Q2057971
['Q42786', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?f WHERE { resource:Q42786 property:P509 ?f . ?f rdf:type ontology:Q2057971 }
Audrey Hepburn
action filter_type
action find
entity Audrey Hepburn
relation cause of death
type health problem
['Audrey Hepburn', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?f WHERE { resource:Audrey_Hepburn property:cause_of_death ?f . ?f rdf:type ontology:health_problem }
[]
health problem
Q188874
SYSTEM
colorectal cancer
Q188874
(Q42786,P509,c(Q2057971))
action filter_type
action find
entity Q42786
relation P509
type Q2057971
[ANSWER] lead to the death of Audrey Hepburn
['Q42786', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?f WHERE { resource:Q42786 property:P509 ?f . ?f rdf:type ontology:Q2057971 }
colorectal cancer
Colorectal cancer lead to the death of Audrey Hepburn
colorectal cancer
action filter_type
action find
entity Audrey Hepburn
relation cause of death
type health problem
['Audrey Hepburn', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?f WHERE { resource:Audrey_Hepburn property:cause_of_death ?f . ?f rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q188874
P1995
Q1047113
USER
What is the medical speciality of that health problem ?
(Q188874,P1995,c(Q1047113))
action filter_type
action find
entity Q188874
relation P1995
type Q1047113
['Q188874', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?b WHERE { resource:Q188874 property:P1995 ?b . ?b rdf:type ontology:Q1047113 }
colorectal cancer
action filter_type
action find
entity colorectal cancer
relation medical specialty
type special field
['colorectal cancer', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?b WHERE { resource:colorectal_cancer property:medical_specialty ?b . ?b rdf:type ontology:special_field }
[]
special field
Q162555
SYSTEM
oncology
Q162555
(Q188874,P1995,c(Q1047113))
action filter_type
action find
entity Q188874
relation P1995
type Q1047113
The medical speciality of that health problem is the [ANSWER]
['Q188874', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?b WHERE { resource:Q188874 property:P1995 ?b . ?b rdf:type ontology:Q1047113 }
oncology
The medical speciality of that health problem is the oncology
oncology
action filter_type
action find
entity colorectal cancer
relation medical specialty
type special field
['colorectal cancer', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?b WHERE { resource:colorectal_cancer property:medical_specialty ?b . ?b rdf:type ontology:special_field }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q162555 Q1348374
P1995
Q2057971
USER
Does tinea favosa have that special field as the associated medical proficiency ?
(Q1348374,P1995,Q162555)
action is_in
entity Q1348374
action find
entity Q162555
relation P1995
['Q1348374', 'P1995', 'Q162555']
ASK WHERE { resource:Q162555 property:P1995 resource:Q1348374 }
oncology tinea favosa
action is_in
entity tinea favosa
action find
entity oncology
relation medical specialty
['tinea favosa', 'medical specialty', 'oncology']
ASK WHERE { resource:oncology property:medical_specialty resource:tinea_favosa }
[]
health problem
SYSTEM
NO
(Q1348374,P1995,Q162555)
action is_in
entity Q1348374
action find
entity Q162555
relation P1995
[ANSWER]
['Q1348374', 'P1995', 'Q162555']
ASK WHERE { resource:Q162555 property:P1995 resource:Q1348374 }
No
action is_in
entity tinea favosa
action find
entity oncology
relation medical specialty
['tinea favosa', 'medical specialty', 'oncology']
ASK WHERE { resource:oncology property:medical_specialty resource:tinea_favosa }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q188874
P2293
Q863908
USER
How many nucleic acid sequences have genetic correlation with colorectal cancer ?
(Q188874,P2293,c(Q863908))
action count
action filter_type
action find
entity Q188874
relation P2293
type Q863908
['Q188874', 'P2293', {'concept': 'Q863908'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Q188874 property:P2293 ?n . ?n rdf:type ontology:Q863908 }
colorectal cancer
action count
action filter_type
action find
entity colorectal cancer
relation genetic association
type nucleic acid sequence
['colorectal cancer', 'genetic association', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:colorectal_cancer property:genetic_association ?n . ?n rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
SYSTEM
18
Q14913892 Q18048027 Q18041678 Q18028450 Q18055322 Q18045643 Q18031866 Q18041733 Q18053900 Q5198271 Q18031583 Q18035617 Q18038668 Q17859787 Q14904375 Q17914420 Q18028460 Q18042141
(Q188874,P2293,c(Q863908))
action count
action filter_type
action find
entity Q188874
relation P2293
type Q863908
[ANSWER]
['Q188874', 'P2293', {'concept': 'Q863908'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Q188874 property:P2293 ?n . ?n rdf:type ontology:Q863908 }
TCF7L2 RHPN2 PNMAL1 LAMA5 CCDC190 NXN TBX3 ACOXL HSPA12A CCND2 SLC22A3 POLD3 MORC1 CDH1 SMAD7 DPP6 LAMC1 MYNN
18
action count
action filter_type
action find
entity colorectal cancer
relation genetic association
type nucleic acid sequence
['colorectal cancer', 'genetic association', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:colorectal_cancer property:genetic_association ?n . ?n rdf:type ontology:nucleic_acid_sequence }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q12174
Q863908
USER
And also tell me about obesity?
(Q12174,P2293,c(Q863908))
action count
action filter_type
action find
entity Q12174
relation P2293
type Q863908
['Q12174', 'P2293', {'concept': 'Q863908'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Q12174 property:P2293 ?k . ?k rdf:type ontology:Q863908 }
obesity
action count
action filter_type
action find
entity obesity
relation genetic association
type nucleic acid sequence
['obesity', 'genetic association', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:obesity property:genetic_association ?k . ?k rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
SYSTEM
362
(Q12174,P2293,c(Q863908))
action count
action filter_type
action find
entity Q12174
relation P2293
type Q863908
[ANSWER]
['Q12174', 'P2293', {'concept': 'Q863908'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Q12174 property:P2293 ?k . ?k rdf:type ontology:Q863908 }
362
action count
action filter_type
action find
entity obesity
relation genetic association
type nucleic acid sequence
['obesity', 'genetic association', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:obesity property:genetic_association ?k . ?k rdf:type ontology:nucleic_acid_sequence }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P361
Q1047113 Q1047113
USER
Which special fields are max number of special fields a portion of ?
(c(Q1047113),P361,Q200253)
action argmax
action find_reverse_tuple_counts
relation P361
type Q1047113
type Q1047113
[{'concept': 'Q1047113'}, 'P361', 'Q200253']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?o ) { SELECT DISTINCT ?a ( COUNT ( ?g ) AS ?p ) WHERE { ?g property:P361 ?a . ?a rdf:type ontology:Q1047113 . ?g rdf:type ontology:Q1047113 } GROUP BY ?a } } . { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:P361 ?n . ?n rdf:type ontology:Q1047113 . ?u rdf:type ontology:Q1047113 } GROUP BY ?n } . FILTER ( ?q = ?o ) }
action argmax
action find_reverse_tuple_counts
relation part of
type special field
type special field
[{'concept': 'special field'}, 'part of', 'traditional Chinese medicine']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?o ) { SELECT DISTINCT ?a ( COUNT ( ?g ) AS ?p ) WHERE { ?g property:part_of ?a . ?a rdf:type ontology:special_field . ?g rdf:type ontology:special_field } GROUP BY ?a } } . { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:part_of ?n . ?n rdf:type ontology:special_field . ?u rdf:type ontology:special_field } GROUP BY ?n } . FILTER ( ?q = ?o ) }
[]
special field special field
Q40821
SYSTEM
surgery
Q40821
(c(Q1047113),P361,Q200253)
action argmax
action find_reverse_tuple_counts
relation P361
type Q1047113
type Q1047113
[ANSWER] is max number of special fields a portion of
[{'concept': 'Q1047113'}, 'P361', 'Q200253']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?o ) { SELECT DISTINCT ?a ( COUNT ( ?g ) AS ?p ) WHERE { ?g property:P361 ?a . ?a rdf:type ontology:Q1047113 . ?g rdf:type ontology:Q1047113 } GROUP BY ?a } } . { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:P361 ?n . ?n rdf:type ontology:Q1047113 . ?u rdf:type ontology:Q1047113 } GROUP BY ?n } . FILTER ( ?q = ?o ) }
surgery
Surgery is max number of special fields a portion of
surgery
action argmax
action find_reverse_tuple_counts
relation part of
type special field
type special field
[{'concept': 'special field'}, 'part of', 'traditional Chinese medicine']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?o ) { SELECT DISTINCT ?a ( COUNT ( ?g ) AS ?p ) WHERE { ?g property:part_of ?a . ?a rdf:type ontology:special_field . ?g rdf:type ontology:special_field } GROUP BY ?a } } . { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:part_of ?n . ?n rdf:type ontology:special_field . ?u rdf:type ontology:special_field } GROUP BY ?n } . FILTER ( ?q = ?o ) }
[]