Simple Question (Direct)
Simple Question
Q5973918
P21
Q290
USER
Which sex does Ture Malmgren possess ?
(Q5973918,P21,c(Q290))
action filter_type
action find
entity Q5973918
relation P21
type Q290
['Q5973918', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q5973918 property:P21 ?h }
Ture Malmgren
action filter_type
action find
entity Ture Malmgren
relation gender
type sex
['Ture Malmgren', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Ture_Malmgren property:gender ?h }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5973918,P21,c(Q290))
action filter_type
action find
entity Q5973918
relation P21
type Q290
Ture Malmgren possesses un [ANSWER]
['Q5973918', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q5973918 property:P21 ?h }
male
Ture Malmgren possesses un male
male
action filter_type
action find
entity Ture Malmgren
relation gender
type sex
['Ture Malmgren', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Ture_Malmgren property:gender ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5973918
P509
Q2057971
USER
What caused the death of that person ?
(Q6581097,P509,c(Q2057971))
action filter_type
action find
entity Q5973918
relation P509
type Q2057971
['Q6581097', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?x WHERE { resource:Q5973918 property:P509 ?x . ?x rdf:type ontology:Q2057971 }
Ture Malmgren
action filter_type
action find
entity Ture Malmgren
relation cause of death
type health problem
['male', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?x WHERE { resource:Ture_Malmgren property:cause_of_death ?x . ?x rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q6581097,P509,c(Q2057971))
action filter_type
action find
entity Q5973918
relation P509
type Q2057971
[ANSWER] caused the death of that person
['Q6581097', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?x WHERE { resource:Q5973918 property:P509 ?x . ?x rdf:type ontology:Q2057971 }
myocardial infarction
Myocardial infarction caused the death of that person
myocardial infarction
action filter_type
action find
entity Ture Malmgren
relation cause of death
type health problem
['male', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?x WHERE { resource:Ture_Malmgren property:cause_of_death ?x . ?x rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5973918
P1196
Q1931388
USER
What manner did that person die ?
(Q12152,P1196,c(Q1931388))
action filter_type
action find
entity Q5973918
relation P1196
type Q1931388
['Q12152', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?d WHERE { resource:Q5973918 property:P1196 ?d . ?d rdf:type ontology:Q1931388 }
Ture Malmgren
action filter_type
action find
entity Ture Malmgren
relation manner of death
type cause of death
['myocardial infarction', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?d WHERE { resource:Ture_Malmgren property:manner_of_death ?d . ?d rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q12152,P1196,c(Q1931388))
action filter_type
action find
entity Q5973918
relation P1196
type Q1931388
That person died in [ANSWER]
['Q12152', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?d WHERE { resource:Q5973918 property:P1196 ?d . ?d rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Ture Malmgren
relation manner of death
type cause of death
['myocardial infarction', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?d WHERE { resource:Ture_Malmgren property:manner_of_death ?d . ?d rdf:type ontology:cause_of_death }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q182413
P921
Q2057971 Q191067 Q2342494
USER
How many health problems were discussed in lesser number of articles and collectables than substance dependence ?
(c(Q191067)|c(Q2342494),P921,c(Q2057971))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q191067
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q182413
relation P921
type Q191067
type Q2342494
[[{'concept': 'Q191067'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?o ) WHERE { { ?j property:P921 ?f . ?f rdf:type ontology:Q2057971 . ?j rdf:type ontology:Q2342494 } UNION { ?j property:P921 ?f . ?f rdf:type ontology:Q2057971 . ?j rdf:type ontology:Q191067 } } GROUP BY ?f } . FILTER ( ?o < ?d ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:P921 resource:Q182413 . { VALUES ( ?s ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } . ?q rdf:type ?s } } } }
substance dependence
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type health problem
type article
action find_reverse_tuple_counts
relation main subject
type health problem
type collectable
action count
action filter_multi_types
action find_reverse
entity substance dependence
relation main subject
type article
type collectable
[[{'concept': 'article'}, {'concept': 'collectable'}], 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?o ) WHERE { { ?j property:main_subject ?f . ?f rdf:type ontology:health_problem . ?j rdf:type ontology:collectable } UNION { ?j property:main_subject ?f . ?f rdf:type ontology:health_problem . ?j rdf:type ontology:article } } GROUP BY ?f } . FILTER ( ?o < ?d ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:main_subject resource:substance_dependence . { VALUES ( ?s ) { ( ontology:collectable ) ( ontology:article ) } . ?q rdf:type ?s } } } }
[]
health problem article collectable
SYSTEM
93
Q19001421 Q868137 Q748309 Q637816 Q706845 Q10874 Q154869 Q131755 Q638729 Q3041498 Q18657 Q727096 Q1928978 Q495146 Q35890 Q170990 Q222634 Q1077505 Q2300099 Q154666 Q243257 Q2346415 Q12174 Q929833 Q572695 Q1995526 Q268667 Q213098 Q1137767 Q551085 Q185034 Q652744 Q187255 Q26882978 Q180913 Q205214 Q3378593 Q2475919 Q12152 Q12156 Q2351083 Q202387 Q3025883 Q181257 Q8277 Q30953 Q4116663 Q8071861 Q11072 Q47912 Q448768 Q1030785 Q183548 Q11081 Q132971 Q83030 Q11085 Q40878 Q431643 Q79793 Q159701 Q161790 Q1414765 Q389735 Q1112977 Q18555066 Q12202 Q12206 Q103177 Q134859 Q595010 Q128581 Q18556308 Q219102 Q1992236 Q331283 Q12195 Q326071 Q18123741 Q1358589 Q506616 Q1526645 Q11627066 Q154878 Q33525 Q326638 Q154874 Q280027 Q3184856 Q190965 Q1476525 Q81867 Q2046113
(c(Q191067)|c(Q2342494),P921,c(Q2057971))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q191067
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q182413
relation P921
type Q191067
type Q2342494
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?o ) WHERE { { ?j property:P921 ?f . ?f rdf:type ontology:Q2057971 . ?j rdf:type ontology:Q2342494 } UNION { ?j property:P921 ?f . ?f rdf:type ontology:Q2057971 . ?j rdf:type ontology:Q191067 } } GROUP BY ?f } . FILTER ( ?o < ?d ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:P921 resource:Q182413 . { VALUES ( ?s ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } . ?q rdf:type ?s } } } }
Flavivirus infectious disease coccidioidomycosis Problem gambling occupational disease Lassa fever blindness hepatitis C bipolar disorder autoimmune thrombocytopenic purpura eye disease multiple personality disorder physical disorder viral infectious disease trichinosis extrinsic allergic alveolitis arthritis orofacial cleft Crimean–Congo hemorrhagic fever gastrointestinal system disease variant Creutzfeldt-Jakob disease chikungunya meningoencephalitis obesity rare disease Eisenmenger's syndrome traumatic brain injury atopic dermatitis progeria muscular dystrophy myelitis sickle cell anemia hand, foot and mouth disease rheumatoid arthritis occupational traumatic injury bulimia nervosa Guillain–Barré syndrome drug dependence subacute sclerosing panencephalitis myocardial infarction malaria disease of metabolism post-traumatic stress disorder type 2 diabetes mellitus prostate cancer multiple sclerosis dengue fever musculoskeletal system disease Zika fever amnestic disorder lung cancer alveolar hydatid disease demodicosis voyeurism Alzheimer's disease dyslexia dementia Parkinson's disease diarrhea microcephaly measles glaucoma Asperger syndrome Munchausen by proxy cardiovascular disease syringomyelia relapsing-remitting multiple sclerosis stroke diabetes mellitus severe acute respiratory syndrome pertussis hypertrichosis breast cancer occupational dermatitis Cushing's syndrome enterobiasis leishmaniasis poliomyelitis giardiasis infectious disease HIV/AIDS in Africa drowning Surra West Nile fever toxoplasmosis carcinoma Rift Valley fever yellow fever uveitis substance abuse transsexualism lipid metabolism disorder albino visceral leishmaniasis
93
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type health problem
type article
action find_reverse_tuple_counts
relation main subject
type health problem
type collectable
action count
action filter_multi_types
action find_reverse
entity substance dependence
relation main subject
type article
type collectable
[[{'concept': 'article'}, {'concept': 'collectable'}], 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?o ) WHERE { { ?j property:main_subject ?f . ?f rdf:type ontology:health_problem . ?j rdf:type ontology:collectable } UNION { ?j property:main_subject ?f . ?f rdf:type ontology:health_problem . ?j rdf:type ontology:article } } GROUP BY ?f } . FILTER ( ?o < ?d ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:main_subject resource:substance_dependence . { VALUES ( ?s ) { ( ontology:collectable ) ( ontology:article ) } . ?q rdf:type ?s } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q38404
P921
Q2057971 Q191067 Q2342494
USER
And what about autism?
(c(Q191067)|c(Q2342494),P921,c(Q2057971))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q191067
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q38404
relation P921
type Q191067
type Q2342494
[[{'concept': 'Q191067'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) ?p WHERE { ?r rdf:type ?s . VALUES ( ?s ) { ( ontology:Q191067 ) ( ontology:Q2342494 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { { ?x rdf:type ontology:Q191067 } UNION { ?x rdf:type ontology:Q2342494 } } . ?x property:P921 resource:Q38404 } } . FILTER ( ?w < ?y ) }
autism
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type health problem
type article
action find_reverse_tuple_counts
relation main subject
type health problem
type collectable
action count
action filter_multi_types
action find_reverse
entity autism
relation main subject
type article
type collectable
[[{'concept': 'article'}, {'concept': 'collectable'}], 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) ?p WHERE { ?r rdf:type ?s . VALUES ( ?s ) { ( ontology:article ) ( ontology:collectable ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { { ?x rdf:type ontology:article } UNION { ?x rdf:type ontology:collectable } } . ?x property:main_subject resource:autism } } . FILTER ( ?w < ?y ) }
[]
health problem article collectable
SYSTEM
102
Q19001421 Q868137 Q748309 Q637816 Q706845 Q10874 Q154869 Q131755 Q638729 Q3041498 Q18657 Q727096 Q1928978 Q495146 Q35890 Q170990 Q222634 Q1077505 Q2300099 Q154666 Q243257 Q2346415 Q12174 Q929833 Q3339235 Q572695 Q1995526 Q268667 Q213098 Q191779 Q1137767 Q551085 Q185034 Q652744 Q187255 Q26882978 Q180913 Q1369020 Q205214 Q3378593 Q2475919 Q12152 Q12156 Q2351083 Q202387 Q41571 Q3025883 Q181257 Q8277 Q30953 Q4116663 Q8071861 Q11072 Q47912 Q448768 Q1030785 Q183548 Q42844 Q11081 Q132971 Q83030 Q11085 Q40878 Q182413 Q431643 Q79793 Q159701 Q161790 Q1414765 Q389735 Q1112977 Q18555066 Q12202 Q12206 Q103177 Q134859 Q595010 Q128581 Q18556308 Q219102 Q1992236 Q12199 Q331283 Q12195 Q326071 Q18123741 Q1358589 Q506616 Q1526645 Q11627066 Q154878 Q133823 Q33525 Q326638 Q154874 Q280027 Q8282 Q3184856 Q190965 Q1476525 Q81867 Q2046113
(c(Q191067)|c(Q2342494),P921,c(Q2057971))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q191067
action find_reverse_tuple_counts
relation P921
type Q2057971
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q38404
relation P921
type Q191067
type Q2342494
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) ?p WHERE { ?r rdf:type ?s . VALUES ( ?s ) { ( ontology:Q191067 ) ( ontology:Q2342494 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { { ?x rdf:type ontology:Q191067 } UNION { ?x rdf:type ontology:Q2342494 } } . ?x property:P921 resource:Q38404 } } . FILTER ( ?w < ?y ) }
Flavivirus infectious disease coccidioidomycosis Problem gambling occupational disease Lassa fever blindness hepatitis C bipolar disorder autoimmune thrombocytopenic purpura eye disease multiple personality disorder physical disorder viral infectious disease trichinosis extrinsic allergic alveolitis arthritis orofacial cleft Crimean–Congo hemorrhagic fever gastrointestinal system disease variant Creutzfeldt-Jakob disease chikungunya meningoencephalitis obesity rare disease nervous system disease Eisenmenger's syndrome traumatic brain injury atopic dermatitis progeria Gilles de la Tourette syndrome muscular dystrophy myelitis sickle cell anemia hand, foot and mouth disease rheumatoid arthritis occupational traumatic injury bulimia nervosa von Economo's disease Guillain–Barré syndrome drug dependence subacute sclerosing panencephalitis myocardial infarction malaria disease of metabolism post-traumatic stress disorder epilepsy type 2 diabetes mellitus prostate cancer multiple sclerosis dengue fever musculoskeletal system disease Zika fever amnestic disorder lung cancer alveolar hydatid disease demodicosis voyeurism major depressive disorder Alzheimer's disease dyslexia dementia Parkinson's disease diarrhea substance dependence microcephaly measles glaucoma Asperger syndrome Munchausen by proxy cardiovascular disease syringomyelia relapsing-remitting multiple sclerosis stroke diabetes mellitus severe acute respiratory syndrome pertussis hypertrichosis breast cancer occupational dermatitis Cushing's syndrome enterobiasis acquired immunodeficiency syndrome leishmaniasis poliomyelitis giardiasis infectious disease HIV/AIDS in Africa drowning Surra West Nile fever toxoplasmosis migraine carcinoma Rift Valley fever yellow fever uveitis Addison's disease substance abuse transsexualism lipid metabolism disorder albino visceral leishmaniasis
102
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type health problem
type article
action find_reverse_tuple_counts
relation main subject
type health problem
type collectable
action count
action filter_multi_types
action find_reverse
entity autism
relation main subject
type article
type collectable
[[{'concept': 'article'}, {'concept': 'collectable'}], 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) ?p WHERE { ?r rdf:type ?s . VALUES ( ?s ) { ( ontology:article ) ( ontology:collectable ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { { ?x rdf:type ontology:article } UNION { ?x rdf:type ontology:collectable } } . ?x property:main_subject resource:autism } } . FILTER ( ?w < ?y ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5973918
P106
Q12737077
USER
What do Ture Malmgren do for a living ?
(Q5973918,P106,c(Q12737077))
action filter_type
action find
entity Q5973918
relation P106
type Q12737077
['Q5973918', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q5973918 property:P106 ?x }
Ture Malmgren
action filter_type
action find
entity Ture Malmgren
relation occupation
type occupation
['Ture Malmgren', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Ture_Malmgren property:occupation ?x }
[]
occupation
Q1930187 Q82955 Q2516866
SYSTEM
journalist, politician, publisher
Q1930187 Q82955 Q2516866
(Q5973918,P106,c(Q12737077))
action filter_type
action find
entity Q5973918
relation P106
type Q12737077
Ture Malmgren do for a living a [ANSWERS]
['Q5973918', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q5973918 property:P106 ?x }
journalist politician publisher
Ture Malmgren do for a living a journalist, politician and publisher
journalist politician publisher
action filter_type
action find
entity Ture Malmgren
relation occupation
type occupation
['Ture Malmgren', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Ture_Malmgren property:occupation ?x }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1731124
Q12737077
USER
And how about Karl Friedrich Suter?
(Q1731124,P106,c(Q12737077))
action filter_type
action find
entity Q1731124
relation P106
type Q12737077
['Q1731124', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q1731124 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Karl Friedrich Suter
action filter_type
action find
entity Karl Friedrich Suter
relation occupation
type occupation
['Karl Friedrich Suter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Karl_Friedrich_Suter property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q1622272 Q1792450
SYSTEM
university teacher, art historian
Q1622272 Q1792450
(Q1731124,P106,c(Q12737077))
action filter_type
action find
entity Q1731124
relation P106
type Q12737077
[ANSWERS]
['Q1731124', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q1731124 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
university teacher art historian
university teacher art historian
action filter_type
action find
entity Karl Friedrich Suter
relation occupation
type occupation
['Karl Friedrich Suter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Karl_Friedrich_Suter property:occupation ?u . ?u rdf:type ontology:occupation }
[]