Simple Question (Direct)
Simple Question
Q1313779
P19
Q56061
USER
Which administrative territory was Robert Finch born in ?
(Q1313779,P19,c(Q56061))
action filter_type
action find
entity Q1313779
relation P19
type Q56061
['Q1313779', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q1313779 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Robert Finch
action filter_type
action find
entity Robert Finch
relation place of birth
type administrative territorial entity
['Robert Finch', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Robert_Finch property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q51685
SYSTEM
Tempe
Q51685
(Q1313779,P19,c(Q56061))
action filter_type
action find
entity Q1313779
relation P19
type Q56061
Robert Finch was born in [ANSWER]
['Q1313779', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q1313779 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Tempe
Robert Finch was born in Tempe
Tempe
action filter_type
action find
entity Robert Finch
relation place of birth
type administrative territorial entity
['Robert Finch', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Robert_Finch property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1313779
P102
Q7210356
USER
Which party is Robert Finch affiliated with ?
(Q1313779,P102,c(Q7210356))
action filter_type
action find
entity Q1313779
relation P102
type Q7210356
['Q1313779', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?g WHERE { resource:Q1313779 property:P102 ?g . ?g rdf:type ontology:Q7210356 }
Robert Finch
action filter_type
action find
entity Robert Finch
relation member of political party
type political organization
['Robert Finch', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?g WHERE { resource:Robert_Finch property:member_of_political_party ?g . ?g rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q1313779,P102,c(Q7210356))
action filter_type
action find
entity Q1313779
relation P102
type Q7210356
Robert Finch is affiliated with [ANSWER]
['Q1313779', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?g WHERE { resource:Q1313779 property:P102 ?g . ?g rdf:type ontology:Q7210356 }
Republican Party
Robert Finch is affiliated with Republican Party
Republican Party
action filter_type
action find
entity Robert Finch
relation member of political party
type political organization
['Robert Finch', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?g WHERE { resource:Robert_Finch property:member_of_political_party ?g . ?g rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q29468 Q91 Q1381928
P112
Q502895
USER
Was that political organization founded by Abraham Lincoln and Lawrence Dallaglio ?
(Q29468,P112,Q91) (Q29468,P112,Q1381928)
action is_in
entity Q29468
action intersection
action find_reverse
entity Q91
relation P112
action find_reverse
entity Q1381928
relation P112
['Q29468', 'P112', 'Q91'] ['Q29468', 'P112', 'Q1381928']
ASK WHERE { resource:Q29468 property:P112 resource:Q91 . resource:Q29468 property:P112 resource:Q1381928 }
Republican Party Abraham Lincoln Lawrence Dallaglio
action is_in
entity Republican Party
action intersection
action find_reverse
entity Abraham Lincoln
relation founder
action find_reverse
entity Lawrence Dallaglio
relation founder
['Republican Party', 'founder', 'Abraham Lincoln'] ['Republican Party', 'founder', 'Lawrence Dallaglio']
ASK WHERE { resource:Republican_Party property:founder resource:Abraham_Lincoln . resource:Republican_Party property:founder resource:Lawrence_Dallaglio }
[]
common name
SYSTEM
YES and NO respectively
(Q29468,P112,Q91) (Q29468,P112,Q1381928)
action is_in
entity Q29468
action intersection
action find_reverse
entity Q91
relation P112
action find_reverse
entity Q1381928
relation P112
[ANSWER]
['Q29468', 'P112', 'Q91'] ['Q29468', 'P112', 'Q1381928']
ASK WHERE { resource:Q29468 property:P112 resource:Q91 . resource:Q29468 property:P112 resource:Q1381928 }
YES and NO respectively
action is_in
entity Republican Party
action intersection
action find_reverse
entity Abraham Lincoln
relation founder
action find_reverse
entity Lawrence Dallaglio
relation founder
['Republican Party', 'founder', 'Abraham Lincoln'] ['Republican Party', 'founder', 'Lawrence Dallaglio']
ASK WHERE { resource:Republican_Party property:founder resource:Abraham_Lincoln . resource:Republican_Party property:founder resource:Lawrence_Dallaglio }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1313779 Q12152
P509
Q2057971
USER
Was myocardial infarction the cause of death of that person ?
(Q1313779,P509,Q12152)
action is_in
entity Q12152
action find
entity Q1313779
relation P509
['Q1313779', 'P509', 'Q12152']
ASK WHERE { resource:Q1313779 property:P509 resource:Q12152 }
Robert Finch myocardial infarction
action is_in
entity myocardial infarction
action find
entity Robert Finch
relation cause of death
['Robert Finch', 'cause of death', 'myocardial infarction']
ASK WHERE { resource:Robert_Finch property:cause_of_death resource:myocardial_infarction }
[]
health problem
SYSTEM
YES
(Q1313779,P509,Q12152)
action is_in
entity Q12152
action find
entity Q1313779
relation P509
[ANSWER]
['Q1313779', 'P509', 'Q12152']
ASK WHERE { resource:Q1313779 property:P509 resource:Q12152 }
Yes
action is_in
entity myocardial infarction
action find
entity Robert Finch
relation cause of death
['Robert Finch', 'cause of death', 'myocardial infarction']
ASK WHERE { resource:Robert_Finch property:cause_of_death resource:myocardial_infarction }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q29468 Q4752079
P112
Q502895
USER
Was Anatole Marie Nkou the founder of Republican Party ?
(Q29468,P112,Q4752079)
action is_in
entity Q4752079
action find
entity Q29468
relation P112
['Q29468', 'P112', 'Q4752079']
ASK WHERE { resource:Q29468 property:P112 resource:Q4752079 }
Republican Party Anatole Marie Nkou
action is_in
entity Anatole Marie Nkou
action find
entity Republican Party
relation founder
['Republican Party', 'founder', 'Anatole Marie Nkou']
ASK WHERE { resource:Republican_Party property:founder resource:Anatole_Marie_Nkou }
[]
common name
SYSTEM
NO
(Q29468,P112,Q4752079)
action is_in
entity Q4752079
action find
entity Q29468
relation P112
[ANSWER]
['Q29468', 'P112', 'Q4752079']
ASK WHERE { resource:Q29468 property:P112 resource:Q4752079 }
No
action is_in
entity Anatole Marie Nkou
action find
entity Republican Party
relation founder
['Republican Party', 'founder', 'Anatole Marie Nkou']
ASK WHERE { resource:Republican_Party property:founder resource:Anatole_Marie_Nkou }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3575395 Q1313779
P509 P1050
Q2057971
USER
Which health problems caused the death of Robert Finch or do Zhao Liang suffer from ?
OR((Q1313779,P509,c(Q2057971)), (Q3575395,P1050,c(Q2057971)))
action filter_type
action union
action find
entity Q1313779
relation P509
action find
entity Q3575395
relation P1050
type Q2057971
{'OR': [['Q1313779', 'P509', {'concept': 'Q2057971'}], ['Q3575395', 'P1050', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1313779 property:P509 ?s } UNION { resource:Q3575395 property:P1050 ?s } } . ?s rdf:type ontology:Q2057971 }
Zhao Liang Robert Finch
action filter_type
action union
action find
entity Robert Finch
relation cause of death
action find
entity Zhao Liang
relation medical condition
type health problem
{'OR': [['Robert Finch', 'cause of death', {'concept': 'health problem'}], ['Zhao Liang', 'medical condition', {'concept': 'health problem'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Robert_Finch property:cause_of_death ?s } UNION { resource:Zhao_Liang property:medical_condition ?s } } . ?s rdf:type ontology:health_problem }
[]
health problem
Q501829 Q12152
SYSTEM
gigantism, myocardial infarction
Q501829 Q12152
OR((Q1313779,P509,c(Q2057971)), (Q3575395,P1050,c(Q2057971)))
action filter_type
action union
action find
entity Q1313779
relation P509
action find
entity Q3575395
relation P1050
type Q2057971
[ANSWERS] caused the death of Robert Finch or do Zhao Liang suffer from
{'OR': [['Q1313779', 'P509', {'concept': 'Q2057971'}], ['Q3575395', 'P1050', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1313779 property:P509 ?s } UNION { resource:Q3575395 property:P1050 ?s } } . ?s rdf:type ontology:Q2057971 }
gigantism myocardial infarction
Gigantism and myocardial infarction caused the death of Robert Finch or do Zhao Liang suffer from
gigantism myocardial infarction
action filter_type
action union
action find
entity Robert Finch
relation cause of death
action find
entity Zhao Liang
relation medical condition
type health problem
{'OR': [['Robert Finch', 'cause of death', {'concept': 'health problem'}], ['Zhao Liang', 'medical condition', {'concept': 'health problem'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Robert_Finch property:cause_of_death ?s } UNION { resource:Zhao_Liang property:medical_condition ?s } } . ?s rdf:type ontology:health_problem }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P1050
Q2057971 Q502895
USER
Which health problems are lesser number of people affected by than that health problem ?
(c(Q502895),P1050,c(Q2057971))
[{'concept': 'Q502895'}, 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?y WHERE { ?z property:P1050 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q2057971 }
[{'concept': 'common name'}, 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?y WHERE { ?z property:medical_condition ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:health_problem }
[]
health problem common name
Comparative|More/Less|Single entity type|Clarification
Q501829
SYSTEM
Did you mean gigantism ?
(c(Q502895),P1050,c(Q2057971))
[ANSWER]
[{'concept': 'Q502895'}, 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?y WHERE { ?z property:P1050 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q2057971 }
Did you mean gigantism ?
gigantism
[{'concept': 'common name'}, 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?y WHERE { ?z property:medical_condition ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:health_problem }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q502895),P1050,c(Q2057971))
[{'concept': 'Q502895'}, 'P1050', {'concept': 'Q2057971'}]
[{'concept': 'common name'}, 'medical condition', {'concept': 'health problem'}]
[]
Q12174 Q187255 Q128581
SYSTEM
obesity, rheumatoid arthritis, breast cancer
Q6052272 Q372701 Q83319 Q1151507 Q18553829 Q794457 Q1198391 Q749409 Q4692280 Q68833 Q18554922 Q160649 Q500695 Q282142 Q3280669 Q16501 Q2425407 Q173022 Q2290446 Q35869 Q12199 Q7578960 Q36956 Q3025883 Q177254 Q658873 Q470427 Q18657 Q727096 Q16483 Q478389 Q2307256 Q41083 Q155098 Q727153 Q170990 Q222634 Q1143025 Q147778 Q938205 Q1209744 Q12174 Q623031 Q954625 Q857667 Q1282114 Q2035074 Q572169 Q1165179 Q202837 Q844935 Q131742 Q16499 Q212021 Q18556125 Q847057 Q178190 Q134649 Q213098 Q191779 Q1137767 Q207855 Q1016605 Q185034 Q12167 Q223591 Q1216998 Q18556035 Q180614 Q2562598 Q187255 Q1378921 Q1436063 Q208414 Q644318 Q190564 Q118418 Q622427 Q1138590 Q916398 Q1364270 Q168403 Q12152 Q1451877 Q48143 Q536269 Q244438 Q188874 Q944758 Q18555055 Q134003 Q549534 Q18556938 Q159701 Q653200 Q11088 Q156050 Q206901 Q939364 Q190805 Q199804 Q653078 Q202387 Q1331905 Q616087 Q4117241 Q1365309 Q8388 Q625164 Q152100 Q181257 Q180664 Q8277 Q38404 Q844717 Q180266 Q938983 Q568865 Q4677938 Q11072 Q504775 Q47912 Q2836 Q671776 Q131755 Q133696 Q124292 Q12156 Q925092 Q744790 Q42844 Q5445 Q10860654 Q132971 Q15283847 Q189580 Q18556385 Q181754 Q5282843 Q753904 Q189588 Q264118 Q18555369 Q220570 Q580290 Q3281322 Q182413 Q2500124 Q684924 Q12135 Q131749 Q1755568 Q161790 Q572111 Q3144986 Q2868696 Q3041498 Q418418 Q174857 Q340594 Q154874 Q281115 Q1112977 Q18555066 Q693519 Q181923 Q12202 Q12206 Q1161568 Q18555947 Q18555946 Q595010 Q133087 Q272436 Q18554893 Q128581 Q18553852 Q1607658 Q193894 Q39222 Q47715 Q12214 Q2406697 Q207133 Q18556115 Q124407 Q476921 Q12192 Q1209150 Q4839317 Q1362453 Q29496 Q467635 Q18554997 Q1066311 Q194101 Q210427 Q1410831 Q208562 Q188605 Q7162621 Q653318 Q186676 Q2606101 Q729735 Q2840 Q81867 Q1141499 Q83030
(c(Q502895),P1050,c(Q2057971))
[ANSWERS] are lesser number of people affected by than that health problem
[{'concept': 'Q502895'}, 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?y WHERE { ?z property:P1050 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q2057971 }
Mozart ear esophageal cancer typhoid fever dermatitis herpetiformis prostate carcinoma Locked-in syndrome intracranial aneurysm osteogenesis imperfecta natural killer cell leukemia bone fracture jaw cancer typhus retinoblastoma glioblastoma multiforme brain injury hypothyroidisms Acute tubular necrosis bronchitis idiopathic pulmonary fibrosis asthma acquired immunodeficiency syndrome Spondyloepiphyseal dysplasia congenita leprosy type 2 diabetes mellitus hyperopia Radiation burn refractive error multiple personality disorder physical disorder toxic diffuse goiter kyphosis neuritis syphilis leptospirosis hiatus hernia arthritis orofacial cleft oral cavity cancer liver cirrhosis neuroblastoma uterine cancer obesity liver cancer myelodysplastic syndrome pulmonary edema speech disorder Paget's disease of bone Seckel syndrome Kallmann syndrome cardiac arrest coronary artery disease hepatitis hyperthyroidism kleptomania adrenal carcinoma retinitis pigmentosa obsessive-compulsive disorder diphtheria progeria Gilles de la Tourette syndrome muscular dystrophy amblyopia Burkitt lymphoma sickle cell anemia malnutrition gastroesophageal reflux disease neoplasm cervical adenocarcinoma melanoma hemophilia B rheumatoid arthritis euthyroid sick syndrome autism spectrum disorder lymphoma vasculitis Huntington's disease antisocial personality disorder ptosis non-Hodgkin lymphoma lymphedema hypertrophic cardiomyopathy myopia myocardial infarction embryonal carcinoma meningitis phaeochromocytoma prosopagnosia colorectal cancer Tetraplegia colon adenocarcinoma inherited blood coagulation disease osteosarcoma embryonal testis carcinoma glaucoma flat feet problems celiac disease brucellosis amyotrophic lateral sclerosis congenital heart disease heart disease chronic obstructive pulmonary disease Whipple disease post-traumatic stress disorder dementia with Lewy bodies aortic valve insufficiency autoimmune polyendocrine syndrome type 2 glioma pedophilia retinal detachment nicotine addiction prostate cancer acute lymphocytic leukemia multiple sclerosis autism spina bifida scarlet fever osteomyelitis cherubism acute monocytic leukemia amnestic disorder urinary bladder cancer lung cancer aphasia mutism bipolar disorder color blindness cholangiocarcinoma malaria Wolff-Parkinson-White syndrome Treacher Collins syndrome major depressive disorder anemia Iron overload dyslexia knee injury acromegaly lung large cell carcinoma heart failure Distal muscular dystrophy rheumatic fever stomach cancer acute myeloid leukemia teratocarcinoma pulmonary embolism Spinal muscular atrophy peroxisomal disease substance dependence Urbach–Wiethe disease rheumatism mental disorder anorexia nervosa osteopetrosis Asperger syndrome anterograde amnesia Alcoholic hepatitis pain agnosia eye disease ankylosis scoliosis achondroplasia yellow fever Proteus syndrome syringomyelia relapsing-remitting multiple sclerosis essential tremor attention deficit hyperactivity disorder stroke diabetes mellitus Granulomatosis with polyangiits breast carcinoma breast adenocarcinoma hypertrichosis gout allergic rhinitis ocular melanoma breast cancer lymphoblastic leukemia hepatoblastoma sarcoidosis rabies Down syndrome smallpox Tetraamelie Klinefelter's syndrome lung adenocarcinoma type 1 diabetes mellitus kidney failure pneumonia cerebral infarction back injury fibrosarcoma leukemia multiple myeloma vulva squamous cell carcinoma complex regional pain syndrome dwarfism cerebral palsy fibrodysplasia ossificans progressiva Marfan syndrome pulmonary emphysema penetrating trauma silicosis stuttering Paranoid schizophrenia chronic myeloid leukemia influenza albino Ehlers–Danlos syndrome dementia
Obesity, rheumatoid arthritis and breast cancer are lesser number of people affected by than that health problem
obesity rheumatoid arthritis breast cancer
[{'concept': 'common name'}, 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?y WHERE { ?z property:medical_condition ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:health_problem }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q7189713 Q2057971
USER
How many physiological conditions causes atleast 1 health problem ?
(c(Q2057971),P828,c(Q7189713))
action count
action atleast
action find_reverse_tuple_counts
relation P828
type Q7189713
type Q2057971
value 1
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q7189713'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?n ) WHERE { ?m property:P828 ?y . ?y rdf:type ontology:Q7189713 . ?m rdf:type ontology:Q2057971 } GROUP BY ?y } . FILTER ( ?n >= 1 ) }
action count
action atleast
action find_reverse_tuple_counts
relation has cause
type physiological condition
type health problem
value 1
[{'concept': 'health problem'}, 'has cause', {'concept': 'physiological condition'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?n ) WHERE { ?m property:has_cause ?y . ?y rdf:type ontology:physiological_condition . ?m rdf:type ontology:health_problem } GROUP BY ?y } . FILTER ( ?n >= 1 ) }
[]
physiological condition health problem
SYSTEM
2
Q193078 Q1478321
(c(Q2057971),P828,c(Q7189713))
action count
action atleast
action find_reverse_tuple_counts
relation P828
type Q7189713
type Q2057971
value 1
[ANSWER]
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q7189713'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?n ) WHERE { ?m property:P828 ?y . ?y rdf:type ontology:Q7189713 . ?m rdf:type ontology:Q2057971 } GROUP BY ?y } . FILTER ( ?n >= 1 ) }
trauma Spinal stenosis
2
action count
action atleast
action find_reverse_tuple_counts
relation has cause
type physiological condition
type health problem
value 1
[{'concept': 'health problem'}, 'has cause', {'concept': 'physiological condition'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?m ) AS ?n ) WHERE { ?m property:has_cause ?y . ?y rdf:type ontology:physiological_condition . ?m rdf:type ontology:health_problem } GROUP BY ?y } . FILTER ( ?n >= 1 ) }
[]