Simple Question (Direct)
Simple Question
Q10816073
P509
Q2057971
USER
Which health problem was the cause of death of Bill Guttridge ?
(Q10816073,P509,c(Q2057971))
action filter_type
action find
entity Q10816073
relation P509
type Q2057971
['Q10816073', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?y WHERE { resource:Q10816073 property:P509 ?y . ?y rdf:type ontology:Q2057971 }
Bill Guttridge
action filter_type
action find
entity Bill Guttridge
relation cause of death
type health problem
['Bill Guttridge', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?y WHERE { resource:Bill_Guttridge property:cause_of_death ?y . ?y rdf:type ontology:health_problem }
[]
health problem
Q11085
SYSTEM
Parkinson's disease
Q11085
(Q10816073,P509,c(Q2057971))
action filter_type
action find
entity Q10816073
relation P509
type Q2057971
[ANSWER] was the cause of death of Bill Guttridge
['Q10816073', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?y WHERE { resource:Q10816073 property:P509 ?y . ?y rdf:type ontology:Q2057971 }
Parkinson's disease
Parkinson's disease was the cause of death of Bill Guttridge
Parkinson's disease
action filter_type
action find
entity Bill Guttridge
relation cause of death
type health problem
['Bill Guttridge', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?y WHERE { resource:Bill_Guttridge property:cause_of_death ?y . ?y rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10816073
P1050
Q2057971
USER
What is Bill Guttridge affected by ?
(Q10816073,P1050,c(Q2057971))
action filter_type
action find
entity Q10816073
relation P1050
type Q2057971
['Q10816073', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { resource:Q10816073 property:P1050 ?i . ?i rdf:type ontology:Q2057971 }
Bill Guttridge
action filter_type
action find
entity Bill Guttridge
relation medical condition
type health problem
['Bill Guttridge', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { resource:Bill_Guttridge property:medical_condition ?i . ?i rdf:type ontology:health_problem }
[]
health problem
Q11085
SYSTEM
Parkinson's disease
Q11085
(Q10816073,P1050,c(Q2057971))
action filter_type
action find
entity Q10816073
relation P1050
type Q2057971
Bill Guttridge is affected by [ANSWER]
['Q10816073', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { resource:Q10816073 property:P1050 ?i . ?i rdf:type ontology:Q2057971 }
Parkinson's disease
Bill Guttridge is affected by Parkinson's disease
Parkinson's disease
action filter_type
action find
entity Bill Guttridge
relation medical condition
type health problem
['Bill Guttridge', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { resource:Bill_Guttridge property:medical_condition ?i . ?i rdf:type ontology:health_problem }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q11085 Q23139738 Q24389370
P2293
Q863908
USER
Is that health problem genetically associated with putative ABC transporter permease    ECUMN_0538 and Sh3bgrl ?
(Q11085,P2293,Q23139738) (Q11085,P2293,Q24389370)
action is_in
entity Q11085
action intersection
action find_reverse
entity Q23139738
relation P2293
action find_reverse
entity Q24389370
relation P2293
['Q11085', 'P2293', 'Q23139738'] ['Q11085', 'P2293', 'Q24389370']
ASK WHERE { resource:Q11085 property:P2293 resource:Q23139738 . resource:Q11085 property:P2293 resource:Q24389370 }
Parkinson's disease putative ABC transporter permease    ECUMN_0538 Sh3bgrl
action is_in
entity Parkinson's disease
action intersection
action find_reverse
entity putative ABC transporter permease    ECUMN_0538
relation genetic association
action find_reverse
entity Sh3bgrl
relation genetic association
["Parkinson's disease", 'genetic association', 'putative ABC transporter permease    ECUMN_0538'] ["Parkinson's disease", 'genetic association', 'Sh3bgrl']
ASK WHERE { resource:Parkinson's_disease property:genetic_association resource:putative_ABC_transporter_permease____ECUMN_0538 . resource:Parkinson's_disease property:genetic_association resource:Sh3bgrl }
[]
nucleic acid sequence
SYSTEM
NO
(Q11085,P2293,Q23139738) (Q11085,P2293,Q24389370)
action is_in
entity Q11085
action intersection
action find_reverse
entity Q23139738
relation P2293
action find_reverse
entity Q24389370
relation P2293
[ANSWER]
['Q11085', 'P2293', 'Q23139738'] ['Q11085', 'P2293', 'Q24389370']
ASK WHERE { resource:Q11085 property:P2293 resource:Q23139738 . resource:Q11085 property:P2293 resource:Q24389370 }
No
action is_in
entity Parkinson's disease
action intersection
action find_reverse
entity putative ABC transporter permease    ECUMN_0538
relation genetic association
action find_reverse
entity Sh3bgrl
relation genetic association
["Parkinson's disease", 'genetic association', 'putative ABC transporter permease    ECUMN_0538'] ["Parkinson's disease", 'genetic association', 'Sh3bgrl']
ASK WHERE { resource:Parkinson's_disease property:genetic_association resource:putative_ABC_transporter_permease____ECUMN_0538 . resource:Parkinson's_disease property:genetic_association resource:Sh3bgrl }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P828
Q2057971 Q3839081 Q7189713
USER
Which health problems are the causes of max number of disasters or physiological conditions ?
(c(Q3839081)|c(Q7189713),P828,c(Q2057971))
action argmax
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q3839081
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q7189713
[[{'concept': 'Q3839081'}, {'concept': 'Q7189713'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?g WHERE { VALUES ( ?f ) { ( ontology:Q3839081 ) ( ontology:Q7189713 ) } . ?i rdf:type ?f } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) ?v WHERE { { ?t property:P828 ?v . ?v rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q3839081 } UNION { ?v rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q7189713 . ?t property:P828 ?v } } GROUP BY ?v } . FILTER ( ?b = ?r ) }
action argmax
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type disaster
action find_reverse_tuple_counts
relation has cause
type health problem
type physiological condition
[[{'concept': 'disaster'}, {'concept': 'physiological condition'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?g WHERE { VALUES ( ?f ) { ( ontology:disaster ) ( ontology:physiological_condition ) } . ?i rdf:type ?f } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) ?v WHERE { { ?t property:has_cause ?v . ?v rdf:type ontology:health_problem . ?t rdf:type ontology:disaster } UNION { ?v rdf:type ontology:health_problem . ?t rdf:type ontology:physiological_condition . ?t property:has_cause ?v } } GROUP BY ?v } . FILTER ( ?b = ?r ) }
[]
health problem disaster physiological condition
Q2450598
SYSTEM
infective endocarditis
Q2450598
(c(Q3839081)|c(Q7189713),P828,c(Q2057971))
action argmax
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q3839081
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q7189713
[ANSWER] is the causes of max number of disasters or physiological conditions
[[{'concept': 'Q3839081'}, {'concept': 'Q7189713'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?g WHERE { VALUES ( ?f ) { ( ontology:Q3839081 ) ( ontology:Q7189713 ) } . ?i rdf:type ?f } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) ?v WHERE { { ?t property:P828 ?v . ?v rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q3839081 } UNION { ?v rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q7189713 . ?t property:P828 ?v } } GROUP BY ?v } . FILTER ( ?b = ?r ) }
infective endocarditis
Infective endocarditis is the causes of max number of disasters or physiological conditions
infective endocarditis
action argmax
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type disaster
action find_reverse_tuple_counts
relation has cause
type health problem
type physiological condition
[[{'concept': 'disaster'}, {'concept': 'physiological condition'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) ?g WHERE { VALUES ( ?f ) { ( ontology:disaster ) ( ontology:physiological_condition ) } . ?i rdf:type ?f } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) ?v WHERE { { ?t property:has_cause ?v . ?v rdf:type ontology:health_problem . ?t rdf:type ontology:disaster } UNION { ?v rdf:type ontology:health_problem . ?t rdf:type ontology:physiological_condition . ?t property:has_cause ?v } } GROUP BY ?v } . FILTER ( ?b = ?r ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P828
Q7189713 Q2057971
USER
Which physiological conditions are the causes of min number of health problems ?
(c(Q2057971),P828,Q339062)
action argmin
action find_reverse_tuple_counts
relation P828
type Q7189713
type Q2057971
[{'concept': 'Q2057971'}, 'P828', 'Q339062']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?v ) { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?s ) WHERE { ?p rdf:type ontology:Q7189713 . ?a rdf:type ontology:Q2057971 . ?a property:P828 ?p } GROUP BY ?p } } . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q7189713 . ?h property:P828 ?e } GROUP BY ?e } . FILTER ( ?i = ?v ) }
action argmin
action find_reverse_tuple_counts
relation has cause
type physiological condition
type health problem
[{'concept': 'health problem'}, 'has cause', 'decomposition']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?v ) { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?s ) WHERE { ?p rdf:type ontology:physiological_condition . ?a rdf:type ontology:health_problem . ?a property:has_cause ?p } GROUP BY ?p } } . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ontology:health_problem . ?e rdf:type ontology:physiological_condition . ?h property:has_cause ?e } GROUP BY ?e } . FILTER ( ?i = ?v ) }
[]
physiological condition health problem
Q2849606 Q649122 Q339062
SYSTEM
vasospasm, Jugular venous pressure, decomposition
Q2849606 Q649122 Q339062
(c(Q2057971),P828,Q339062)
action argmin
action find_reverse_tuple_counts
relation P828
type Q7189713
type Q2057971
[ANSWERS] are the causes of min number of health problems
[{'concept': 'Q2057971'}, 'P828', 'Q339062']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?v ) { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?s ) WHERE { ?p rdf:type ontology:Q7189713 . ?a rdf:type ontology:Q2057971 . ?a property:P828 ?p } GROUP BY ?p } } . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q7189713 . ?h property:P828 ?e } GROUP BY ?e } . FILTER ( ?i = ?v ) }
vasospasm Jugular venous pressure decomposition
Vasospasm, Jugular venous pressure and decomposition are the causes of min number of health problems
vasospasm Jugular venous pressure decomposition
action argmin
action find_reverse_tuple_counts
relation has cause
type physiological condition
type health problem
[{'concept': 'health problem'}, 'has cause', 'decomposition']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?v ) { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?s ) WHERE { ?p rdf:type ontology:physiological_condition . ?a rdf:type ontology:health_problem . ?a property:has_cause ?p } GROUP BY ?p } } . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?i ) WHERE { ?h rdf:type ontology:health_problem . ?e rdf:type ontology:physiological_condition . ?h property:has_cause ?e } GROUP BY ?e } . FILTER ( ?i = ?v ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q11085
P2175
Q796194 Q8386
USER
How many medical procedures and drugs are prescribed for Parkinson's disease ?
(c(Q796194),P2175,Q11085) (c(Q8386),P2175,Q11085)
action count
action union
action filter_type
action find_reverse
entity Q11085
relation P2175
type Q796194
action filter_type
action find_reverse
entity Q11085
relation P2175
type Q8386
[{'concept': 'Q796194'}, 'P2175', 'Q11085'] [{'concept': 'Q8386'}, 'P2175', 'Q11085']
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { ?b property:P2175 resource:Q11085 . ?b rdf:type ontology:Q796194 } UNION { ?b property:P2175 resource:Q11085 . ?b rdf:type ontology:Q8386 } }
Parkinson's disease
action count
action union
action filter_type
action find_reverse
entity Parkinson's disease
relation medical condition treated
type medical procedure
action filter_type
action find_reverse
entity Parkinson's disease
relation medical condition treated
type drug
[{'concept': 'medical procedure'}, 'medical condition treated', "Parkinson's disease"] [{'concept': 'drug'}, 'medical condition treated', "Parkinson's disease"]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { ?b property:medical_condition_treated resource:Parkinson's_disease . ?b rdf:type ontology:medical_procedure } UNION { ?b property:medical_condition_treated resource:Parkinson's_disease . ?b rdf:type ontology:drug } }
[]
medical procedure drug
SYSTEM
1 medical procedures and 23 drugs
Q3950557 Q423308 Q219957 Q411985 Q414225 Q300989 Q60235 Q3361526 Q411887 Q420590 Q2991856 Q416444 Q3151081 Q414873 Q415752 Q57055 Q409761 Q421304 Q414914 Q868658 Q2195995 Q413840 Q413581 Q417762
(c(Q796194),P2175,Q11085) (c(Q8386),P2175,Q11085)
action count
action union
action filter_type
action find_reverse
entity Q11085
relation P2175
type Q796194
action filter_type
action find_reverse
entity Q11085
relation P2175
type Q8386
[ANSWER]
[{'concept': 'Q796194'}, 'P2175', 'Q11085'] [{'concept': 'Q8386'}, 'P2175', 'Q11085']
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { ?b property:P2175 resource:Q11085 . ?b rdf:type ontology:Q796194 } UNION { ?b property:P2175 resource:Q11085 . ?b rdf:type ontology:Q8386 } }
Sargramostim cabergoline zonisamide rotigotine carbidopa levodopa caffeine pallidectomy rivastigmine ropinirole trihexyphenidyl entacapone Filgrastim Isradipine pergolide paracetamol amantidine pramipexole biperiden perampanel repaglinide tolcapone bromocriptine Exenatide
1 medical procedures and 23 drugs
action count
action union
action filter_type
action find_reverse
entity Parkinson's disease
relation medical condition treated
type medical procedure
action filter_type
action find_reverse
entity Parkinson's disease
relation medical condition treated
type drug
[{'concept': 'medical procedure'}, 'medical condition treated', "Parkinson's disease"] [{'concept': 'drug'}, 'medical condition treated', "Parkinson's disease"]
SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { { ?b property:medical_condition_treated resource:Parkinson's_disease . ?b rdf:type ontology:medical_procedure } UNION { ?b property:medical_condition_treated resource:Parkinson's_disease . ?b rdf:type ontology:drug } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11085
P1196
Q502895
USER
Which person died with Parkinson's disease as its reason ?
(c(Q502895),P1196,Q11085)
action filter_type
action find_reverse
entity Q11085
relation P1196
type Q502895
[{'concept': 'Q502895'}, 'P1196', 'Q11085']
SELECT DISTINCT ?o WHERE { ?o property:P1196 resource:Q11085 . ?o rdf:type ontology:Q502895 }
Parkinson's disease
action filter_type
action find_reverse
entity Parkinson's disease
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', "Parkinson's disease"]
SELECT DISTINCT ?o WHERE { ?o property:manner_of_death resource:Parkinson's_disease . ?o rdf:type ontology:common_name }
[]
common name
Q5486585
SYSTEM
Frank Fernand
Q5486585
(c(Q502895),P1196,Q11085)
action filter_type
action find_reverse
entity Q11085
relation P1196
type Q502895
[ANSWER] died with Parkinson's disease as its reason
[{'concept': 'Q502895'}, 'P1196', 'Q11085']
SELECT DISTINCT ?o WHERE { ?o property:P1196 resource:Q11085 . ?o rdf:type ontology:Q502895 }
Frank Fernand
Frank Fernand died with Parkinson's disease as its reason
Frank Fernand
action filter_type
action find_reverse
entity Parkinson's disease
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', "Parkinson's disease"]
SELECT DISTINCT ?o WHERE { ?o property:manner_of_death resource:Parkinson's_disease . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5486585
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q5486585,P19,c(Q56061))
action filter_type
action find
entity Q5486585
relation P19
type Q56061
['Q5486585', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q5486585 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Frank Fernand
action filter_type
action find
entity Frank Fernand
relation place of birth
type administrative territorial entity
['Frank Fernand', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Frank_Fernand property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1190690
SYSTEM
Curchorem
Q1190690
(Q5486585,P19,c(Q56061))
action filter_type
action find
entity Q5486585
relation P19
type Q56061
That person was born in [ANSWER]
['Q5486585', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q5486585 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Curchorem
That person was born in Curchorem
Curchorem
action filter_type
action find
entity Frank Fernand
relation place of birth
type administrative territorial entity
['Frank Fernand', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Frank_Fernand property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5486585
P21
Q290
USER
What is the sex of Frank Fernand ?
(Q5486585,P21,c(Q290))
action filter_type
action find
entity Q5486585
relation P21
type Q290
['Q5486585', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q5486585 property:P21 ?v . ?v rdf:type ontology:Q290 }
Frank Fernand
action filter_type
action find
entity Frank Fernand
relation gender
type sex
['Frank Fernand', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Frank_Fernand property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5486585,P21,c(Q290))
action filter_type
action find
entity Q5486585
relation P21
type Q290
The sex of Frank Fernand is a [ANSWER]
['Q5486585', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q5486585 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
The sex of Frank Fernand is a male
male
action filter_type
action find
entity Frank Fernand
relation gender
type sex
['Frank Fernand', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Frank_Fernand property:gender ?v . ?v rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5486585
P106
Q28640
USER
Which profession is the profession of Frank Fernand ?
(Q5486585,P106,c(Q28640))
action filter_type
action find
entity Q5486585
relation P106
type Q28640
['Q5486585', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q28640 . resource:Q5486585 property:P106 ?m }
Frank Fernand
action filter_type
action find
entity Frank Fernand
relation occupation
type profession
['Frank Fernand', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:profession . resource:Frank_Fernand property:occupation ?m }
[]
profession
Q2526255
SYSTEM
film director
Q2526255
(Q5486585,P106,c(Q28640))
action filter_type
action find
entity Q5486585
relation P106
type Q28640
The [ANSWER] is the profession of Frank Fernand
['Q5486585', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q28640 . resource:Q5486585 property:P106 ?m }
film director
The film director is the profession of Frank Fernand
film director
action filter_type
action find
entity Frank Fernand
relation occupation
type profession
['Frank Fernand', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:profession . resource:Frank_Fernand property:occupation ?m }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q348122
Q28640
USER
And how about Mark Felt?
(Q348122,P106,c(Q28640))
action filter_type
action find
entity Q348122
relation P106
type Q28640
['Q348122', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?u WHERE { resource:Q348122 property:P106 ?u . ?u rdf:type ontology:Q28640 }
Mark Felt
action filter_type
action find
entity Mark Felt
relation occupation
type profession
['Mark Felt', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?u WHERE { resource:Mark_Felt property:occupation ?u . ?u rdf:type ontology:profession }
[]
profession
Q40348
SYSTEM
lawyer
Q40348
(Q348122,P106,c(Q28640))
action filter_type
action find
entity Q348122
relation P106
type Q28640
[ANSWER]
['Q348122', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?u WHERE { resource:Q348122 property:P106 ?u . ?u rdf:type ontology:Q28640 }
lawyer
lawyer
action filter_type
action find
entity Mark Felt
relation occupation
type profession
['Mark Felt', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?u WHERE { resource:Mark_Felt property:occupation ?u . ?u rdf:type ontology:profession }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q21174292 Q649122
P828 P780
Q2057971
USER
Which health problems are the causes of Jugular venous pressure and can be a sign of ethylene glycol exposure ?
AND((Q649122,P828,c(Q2057971)), (Q21174292,P780,c(Q2057971)))
action filter_type
action intersection
action find
entity Q649122
relation P828
action find
entity Q21174292
relation P780
type Q2057971
{'AND': [['Q649122', 'P828', {'concept': 'Q2057971'}], ['Q21174292', 'P780', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?l WHERE { resource:Q21174292 property:P780 ?l . resource:Q649122 property:P828 ?l . ?l rdf:type ontology:Q2057971 }
ethylene glycol exposure Jugular venous pressure
action filter_type
action intersection
action find
entity Jugular venous pressure
relation has cause
action find
entity ethylene glycol exposure
relation symptoms
type health problem
{'AND': [['Jugular venous pressure', 'has cause', {'concept': 'health problem'}], ['ethylene glycol exposure', 'symptoms', {'concept': 'health problem'}]]}
SELECT DISTINCT ?l WHERE { resource:ethylene_glycol_exposure property:symptoms ?l . resource:Jugular_venous_pressure property:has_cause ?l . ?l rdf:type ontology:health_problem }
[]
health problem
Q181754
SYSTEM
heart failure
Q181754
AND((Q649122,P828,c(Q2057971)), (Q21174292,P780,c(Q2057971)))
action filter_type
action intersection
action find
entity Q649122
relation P828
action find
entity Q21174292
relation P780
type Q2057971
[ANSWER] is the causes of Jugular venous pressure and can be a sign of ethylene glycol exposure
{'AND': [['Q649122', 'P828', {'concept': 'Q2057971'}], ['Q21174292', 'P780', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?l WHERE { resource:Q21174292 property:P780 ?l . resource:Q649122 property:P828 ?l . ?l rdf:type ontology:Q2057971 }
heart failure
Heart failure is the causes of Jugular venous pressure and can be a sign of ethylene glycol exposure
heart failure
action filter_type
action intersection
action find
entity Jugular venous pressure
relation has cause
action find
entity ethylene glycol exposure
relation symptoms
type health problem
{'AND': [['Jugular venous pressure', 'has cause', {'concept': 'health problem'}], ['ethylene glycol exposure', 'symptoms', {'concept': 'health problem'}]]}
SELECT DISTINCT ?l WHERE { resource:ethylene_glycol_exposure property:symptoms ?l . resource:Jugular_venous_pressure property:has_cause ?l . ?l rdf:type ontology:health_problem }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P1995
Q1047113
USER
How many special fields are the medical specialities of that health problem ?
(Q181754,P1995,c(Q1047113))
action count
action filter_type
action find
entity Q181754
relation P1995
type Q1047113
['Q181754', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Q181754 property:P1995 ?z . ?z rdf:type ontology:Q1047113 }
action count
action filter_type
action find
entity heart failure
relation medical specialty
type special field
['heart failure', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:heart_failure property:medical_specialty ?z . ?z rdf:type ontology:special_field }
[]
special field
SYSTEM
1
Q10379
(Q181754,P1995,c(Q1047113))
action count
action filter_type
action find
entity Q181754
relation P1995
type Q1047113
[ANSWER]
['Q181754', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Q181754 property:P1995 ?z . ?z rdf:type ontology:Q1047113 }
cardiology
1
action count
action filter_type
action find
entity heart failure
relation medical specialty
type special field
['heart failure', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:heart_failure property:medical_specialty ?z . ?z rdf:type ontology:special_field }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q2057971 Q169872
USER
Which symptoms do atleast 1 health problem cause ?
(c(Q169872),P828,c(Q2057971))
action atleast
action find_tuple_counts
relation P828
type Q169872
type Q2057971
value 1
[{'concept': 'Q169872'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?u ) WHERE { ?z property:P828 ?k . ?k rdf:type ontology:Q2057971 . ?z rdf:type ontology:Q169872 } GROUP BY ?z } }
action atleast
action find_tuple_counts
relation has cause
type symptom
type health problem
value 1
[{'concept': 'symptom'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?u ) WHERE { ?z property:has_cause ?k . ?k rdf:type ontology:health_problem . ?z rdf:type ontology:symptom } GROUP BY ?z } }
[]
health problem symptom
Q4907742 Q7900395 Q1899331
SYSTEM
Biliary pruritus, Uremic pruritus, mariske
Q4907742 Q7900395 Q1899331
(c(Q169872),P828,c(Q2057971))
action atleast
action find_tuple_counts
relation P828
type Q169872
type Q2057971
value 1
Atleast 1 health problem cause [ANSWERS]
[{'concept': 'Q169872'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?u ) WHERE { ?z property:P828 ?k . ?k rdf:type ontology:Q2057971 . ?z rdf:type ontology:Q169872 } GROUP BY ?z } }
Biliary pruritus Uremic pruritus mariske
Atleast 1 health problem cause Biliary pruritus, Uremic pruritus and mariske
Biliary pruritus Uremic pruritus mariske
action atleast
action find_tuple_counts
relation has cause
type symptom
type health problem
value 1
[{'concept': 'symptom'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?u >= 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?u ) WHERE { ?z property:has_cause ?k . ?k rdf:type ontology:health_problem . ?z rdf:type ontology:symptom } GROUP BY ?z } }
[]