Simple Question (Direct)
Simple Question
Q1064894
P509
Q2057971
USER
Which health problem was the cause of death of Charles Horace Mayo ?
(Q1064894,P509,c(Q2057971))
action filter_type
action find
entity Q1064894
relation P509
type Q2057971
['Q1064894', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?f WHERE { resource:Q1064894 property:P509 ?f . ?f rdf:type ontology:Q2057971 }
Charles Horace Mayo
action filter_type
action find
entity Charles Horace Mayo
relation cause of death
type health problem
['Charles Horace Mayo', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?f WHERE { resource:Charles_Horace_Mayo property:cause_of_death ?f . ?f rdf:type ontology:health_problem }
[]
health problem
Q12192
SYSTEM
pneumonia
Q12192
(Q1064894,P509,c(Q2057971))
action filter_type
action find
entity Q1064894
relation P509
type Q2057971
[ANSWER] was the cause of death of Charles Horace Mayo
['Q1064894', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?f WHERE { resource:Q1064894 property:P509 ?f . ?f rdf:type ontology:Q2057971 }
pneumonia
Pneumonia was the cause of death of Charles Horace Mayo
pneumonia
action filter_type
action find
entity Charles Horace Mayo
relation cause of death
type health problem
['Charles Horace Mayo', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?f WHERE { resource:Charles_Horace_Mayo property:cause_of_death ?f . ?f rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12192
P2176
Q8386
USER
Which drugs are used to cure that health problem ?
(Q12192,P2176,c(Q8386))
action filter_type
action find
entity Q12192
relation P2176
type Q8386
['Q12192', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ?h WHERE { resource:Q12192 property:P2176 ?h . ?h rdf:type ontology:Q8386 }
pneumonia
action filter_type
action find
entity pneumonia
relation drug used for treatment
type drug
['pneumonia', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ?h WHERE { resource:pneumonia property:drug_used_for_treatment ?h . ?h rdf:type ontology:drug }
[]
drug
Q670131 Q976559 Q139347
SYSTEM
simvastatin, Sparfloxacin, Cholecalciferol
Q424972 Q420394 Q139347 Q976559 Q420542 Q418546 Q375613 Q670131
(Q12192,P2176,c(Q8386))
action filter_type
action find
entity Q12192
relation P2176
type Q8386
[ANSWERS] are used to cure that health problem
['Q12192', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ?h WHERE { resource:Q12192 property:P2176 ?h . ?h rdf:type ontology:Q8386 }
prednisone sucralfate Cholecalciferol Sparfloxacin ticagrelor Aztreonam RK-0202 simvastatin
Simvastatin, Sparfloxacin and Cholecalciferol are used to cure that health problem
simvastatin Sparfloxacin Cholecalciferol
action filter_type
action find
entity pneumonia
relation drug used for treatment
type drug
['pneumonia', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ?h WHERE { resource:pneumonia property:drug_used_for_treatment ?h . ?h rdf:type ontology:drug }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q670131
P2175
Q2057971
USER
Which health problems are treated with simvastatin ?
(Q670131,P2175,c(Q2057971))
action filter_type
action find
entity Q670131
relation P2175
type Q2057971
['Q670131', 'P2175', {'concept': 'Q2057971'}]
SELECT DISTINCT ?h WHERE { resource:Q670131 property:P2175 ?h . ?h rdf:type ontology:Q2057971 }
simvastatin
action filter_type
action find
entity simvastatin
relation medical condition treated
type health problem
['simvastatin', 'medical condition treated', {'concept': 'health problem'}]
SELECT DISTINCT ?h WHERE { resource:simvastatin property:medical_condition_treated ?h . ?h rdf:type ontology:health_problem }
[]
health problem
Q128581 Q844935 Q131755
SYSTEM
breast cancer, coronary artery disease, bipolar disorder
Q3041498 Q998273 Q18554145 Q389735 Q18555066 Q183344 Q1088156 Q185034 Q18556697 Q500816 Q128581 Q131755 Q35869 Q1128595 Q815819 Q844935 Q184559 Q18556113 Q12192 Q2397009 Q18965511 Q189588 Q180152 Q2661464 Q133823 Q11088 Q18968224 Q199804 Q18556932
(Q670131,P2175,c(Q2057971))
action filter_type
action find
entity Q670131
relation P2175
type Q2057971
And [ANSWERS] are treated with simvastatin
['Q670131', 'P2175', {'concept': 'Q2057971'}]
SELECT DISTINCT ?h WHERE { resource:Q670131 property:P2175 ?h . ?h rdf:type ontology:Q2057971 }
eye disease Smith–Lemli–Opitz syndrome familial hyperlipidemia cardiovascular disease relapsing-remitting multiple sclerosis sinusitis chronic lymphocytic leukemia sickle cell anemia human immunodeficiency virus infectious disease polycystic ovary syndrome breast cancer bipolar disorder asthma pulmonary hypertension atrial fibrillation coronary artery disease arteriosclerosis non-small cell lung carcinoma pneumonia choroideremia secondary progressive multiple sclerosis stomach cancer Vitiligo glucose intolerance migraine celiac disease rectum cancer chronic obstructive pulmonary disease large intestine cancer
And breast cancer, coronary artery disease and bipolar disorder are treated with simvastatin
breast cancer coronary artery disease bipolar disorder
action filter_type
action find
entity simvastatin
relation medical condition treated
type health problem
['simvastatin', 'medical condition treated', {'concept': 'health problem'}]
SELECT DISTINCT ?h WHERE { resource:simvastatin property:medical_condition_treated ?h . ?h rdf:type ontology:health_problem }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q670131
Q12136
USER
And which disease?
(Q670131,P2175,c(Q12136))
action filter_type
action find
entity Q670131
relation P2175
type Q12136
['Q670131', 'P2175', {'concept': 'Q12136'}]
SELECT DISTINCT ?z WHERE { resource:Q670131 property:P2175 ?z . ?z rdf:type ontology:Q12136 }
simvastatin
action filter_type
action find
entity simvastatin
relation medical condition treated
type disease
['simvastatin', 'medical condition treated', {'concept': 'disease'}]
SELECT DISTINCT ?z WHERE { resource:simvastatin property:medical_condition_treated ?z . ?z rdf:type ontology:disease }
[]
disease
Q6717002 Q1869874 Q5326566
SYSTEM
MODY 2, insomnia, Early-onset Alzheimer's disease
Q1467339 Q1869874 Q6717002 Q5326566
(Q670131,P2175,c(Q12136))
action filter_type
action find
entity Q670131
relation P2175
type Q12136
[ANSWERS]
['Q670131', 'P2175', {'concept': 'Q12136'}]
SELECT DISTINCT ?z WHERE { resource:Q670131 property:P2175 ?z . ?z rdf:type ontology:Q12136 }
hypertriglyceridemia insomnia MODY 2 Early-onset Alzheimer's disease
MODY 2 insomnia Early-onset Alzheimer's disease
action filter_type
action find
entity simvastatin
relation medical condition treated
type disease
['simvastatin', 'medical condition treated', {'concept': 'disease'}]
SELECT DISTINCT ?z WHERE { resource:simvastatin property:medical_condition_treated ?z . ?z rdf:type ontology:disease }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q736715
P828
Q2057971 Q12136
USER
How many health problems causes greater number of diseases than chronic kidney disease ?
(c(Q12136),P828,c(Q2057971))
action count
action greater
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action count
action filter_type
action find
entity Q736715
relation P828
type Q2057971
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?w ) WHERE { ?o rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q12136 . ?e property:P828 ?o } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { resource:Q736715 property:P828 ?g . ?g rdf:type ontology:Q2057971 } } . FILTER ( ?w > ?d ) }
chronic kidney disease
action count
action greater
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action count
action filter_type
action find
entity chronic kidney disease
relation has cause
type health problem
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?w ) WHERE { ?o rdf:type ontology:health_problem . ?e rdf:type ontology:disease . ?e property:has_cause ?o } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { resource:chronic_kidney_disease property:has_cause ?g . ?g rdf:type ontology:health_problem } } . FILTER ( ?w > ?d ) }
[]
health problem disease
SYSTEM
24
Q972514 Q18554545 Q1485 Q1186703 Q1899576 Q8084905 Q12156 Q2351083 Q199804 Q13365776 Q7331102 Q847057 Q3043158 Q5384031 Q3087172 Q68833 Q1601794 Q159701 Q12204 Q12206 Q4862390 Q12199 Q124407 Q133823
(c(Q12136),P828,c(Q2057971))
action count
action greater
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action count
action filter_type
action find
entity Q736715
relation P828
type Q2057971
[ANSWER]
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?w ) WHERE { ?o rdf:type ontology:Q2057971 . ?e rdf:type ontology:Q12136 . ?e property:P828 ?o } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { resource:Q736715 property:P828 ?g . ?g rdf:type ontology:Q2057971 } } . FILTER ( ?w > ?d ) }
optic neuritis angle-closure glaucoma systemic lupus erythematosus demyelinating disease Vasa praevia autoimmune neuromuscular disease malaria disease of metabolism chronic obstructive pulmonary disease uremia alcohol abuse retinitis pigmentosa mevalonic aciduria Epstein–Barr virus infection developmental disorder of mental health bone fracture parasitic infectious disease glaucoma tuberculosis diabetes mellitus brain ischemia acquired immunodeficiency syndrome type 1 diabetes mellitus migraine
24
action count
action greater
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action count
action filter_type
action find
entity chronic kidney disease
relation has cause
type health problem
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?w ) WHERE { ?o rdf:type ontology:health_problem . ?e rdf:type ontology:disease . ?e property:has_cause ?o } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { resource:chronic_kidney_disease property:has_cause ?g . ?g rdf:type ontology:health_problem } } . FILTER ( ?w > ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q767485
P828
Q2057971 Q12136
USER
And also tell me about respiratory failure?
(c(Q12136),P828,c(Q2057971))
action count
action greater
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action count
action filter_type
action find
entity Q767485
relation P828
type Q2057971
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:P828 ?p . ?u rdf:type ontology:Q12136 . ?p rdf:type ontology:Q2057971 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h rdf:type ontology:Q2057971 . resource:Q767485 property:P828 ?h } } . FILTER ( ?j > ?f ) }
respiratory failure
action count
action greater
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action count
action filter_type
action find
entity respiratory failure
relation has cause
type health problem
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:has_cause ?p . ?u rdf:type ontology:disease . ?p rdf:type ontology:health_problem } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h rdf:type ontology:health_problem . resource:respiratory_failure property:has_cause ?h } } . FILTER ( ?j > ?f ) }
[]
health problem disease
SYSTEM
24
Q972514 Q18554545 Q1485 Q1186703 Q1899576 Q8084905 Q12156 Q2351083 Q199804 Q13365776 Q7331102 Q847057 Q3043158 Q5384031 Q3087172 Q68833 Q1601794 Q159701 Q12204 Q12206 Q4862390 Q12199 Q124407 Q133823
(c(Q12136),P828,c(Q2057971))
action count
action greater
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action count
action filter_type
action find
entity Q767485
relation P828
type Q2057971
[ANSWER]
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:P828 ?p . ?u rdf:type ontology:Q12136 . ?p rdf:type ontology:Q2057971 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h rdf:type ontology:Q2057971 . resource:Q767485 property:P828 ?h } } . FILTER ( ?j > ?f ) }
optic neuritis angle-closure glaucoma systemic lupus erythematosus demyelinating disease Vasa praevia autoimmune neuromuscular disease malaria disease of metabolism chronic obstructive pulmonary disease uremia alcohol abuse retinitis pigmentosa mevalonic aciduria Epstein–Barr virus infection developmental disorder of mental health bone fracture parasitic infectious disease glaucoma tuberculosis diabetes mellitus brain ischemia acquired immunodeficiency syndrome type 1 diabetes mellitus migraine
24
action count
action greater
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action count
action filter_type
action find
entity respiratory failure
relation has cause
type health problem
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:has_cause ?p . ?u rdf:type ontology:disease . ?p rdf:type ontology:health_problem } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h rdf:type ontology:health_problem . resource:respiratory_failure property:has_cause ?h } } . FILTER ( ?j > ?f ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1869874
P780
Q12136
USER
What does presence of insomnia indicate ?
(c(Q12136),P780,Q1869874)
action filter_type
action find_reverse
entity Q1869874
relation P780
type Q12136
[{'concept': 'Q12136'}, 'P780', 'Q1869874']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12136 . ?l property:P780 resource:Q1869874 }
insomnia
action filter_type
action find_reverse
entity insomnia
relation symptoms
type disease
[{'concept': 'disease'}, 'symptoms', 'insomnia']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:disease . ?l property:symptoms resource:insomnia }
[]
disease
Q110315
SYSTEM
lead poisoning
Q110315
(c(Q12136),P780,Q1869874)
action filter_type
action find_reverse
entity Q1869874
relation P780
type Q12136
Presence of insomnia indicates the [ANSWER]
[{'concept': 'Q12136'}, 'P780', 'Q1869874']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12136 . ?l property:P780 resource:Q1869874 }
lead poisoning
Presence of insomnia indicates the lead poisoning
lead poisoning
action filter_type
action find_reverse
entity insomnia
relation symptoms
type disease
[{'concept': 'disease'}, 'symptoms', 'insomnia']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:disease . ?l property:symptoms resource:insomnia }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q110315
P1050
Q502895
USER
Who suffers from that disease ?
(c(Q502895),P1050,Q110315)
action filter_type
action find_reverse
entity Q110315
relation P1050
type Q502895
[{'concept': 'Q502895'}, 'P1050', 'Q110315']
SELECT DISTINCT ?h WHERE { ?h property:P1050 resource:Q110315 . ?h rdf:type ontology:Q502895 }
lead poisoning
action filter_type
action find_reverse
entity lead poisoning
relation medical condition
type common name
[{'concept': 'common name'}, 'medical condition', 'lead poisoning']
SELECT DISTINCT ?h WHERE { ?h property:medical_condition resource:lead_poisoning . ?h rdf:type ontology:common_name }
[]
common name
Q255
SYSTEM
Ludwig van Beethoven
Q255
(c(Q502895),P1050,Q110315)
action filter_type
action find_reverse
entity Q110315
relation P1050
type Q502895
[ANSWER] suffers from that disease
[{'concept': 'Q502895'}, 'P1050', 'Q110315']
SELECT DISTINCT ?h WHERE { ?h property:P1050 resource:Q110315 . ?h rdf:type ontology:Q502895 }
Ludwig van Beethoven
Ludwig van Beethoven suffers from that disease
Ludwig van Beethoven
action filter_type
action find_reverse
entity lead poisoning
relation medical condition
type common name
[{'concept': 'common name'}, 'medical condition', 'lead poisoning']
SELECT DISTINCT ?h WHERE { ?h property:medical_condition resource:lead_poisoning . ?h rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P485
Q3947 Q2668072
USER
How many houses and collections are the locations of archive of that person ?
(Q255,P485,c(Q3947)) (Q255,P485,c(Q2668072)) (Q255,P485,c(Q3947)) (Q255,P485,c(Q2668072))
action count
action union
action filter_type
action find
entity Q255
relation P485
type Q3947
action filter_type
action find
entity Q255
relation P485
type Q2668072
['Q255', 'P485', {'concept': 'Q3947'}] ['Q255', 'P485', {'concept': 'Q2668072'}] ['Q255', 'P485', {'concept': 'Q3947'}] ['Q255', 'P485', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { resource:Q255 property:P485 ?d . ?d rdf:type ontology:Q3947 } UNION { resource:Q255 property:P485 ?d . ?d rdf:type ontology:Q2668072 } }
action count
action union
action filter_type
action find
entity Ludwig van Beethoven
relation archives at
type house
action filter_type
action find
entity Ludwig van Beethoven
relation archives at
type collection
['Ludwig van Beethoven', 'archives at', {'concept': 'house'}] ['Ludwig van Beethoven', 'archives at', {'concept': 'collection'}] ['Ludwig van Beethoven', 'archives at', {'concept': 'house'}] ['Ludwig van Beethoven', 'archives at', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { resource:Ludwig_van_Beethoven property:archives_at ?d . ?d rdf:type ontology:house } UNION { resource:Ludwig_van_Beethoven property:archives_at ?d . ?d rdf:type ontology:collection } }
[]
house collection
SYSTEM
1 houses and 1 collections
Q318084 Q15630017
(Q255,P485,c(Q3947)) (Q255,P485,c(Q2668072)) (Q255,P485,c(Q3947)) (Q255,P485,c(Q2668072))
action count
action union
action filter_type
action find
entity Q255
relation P485
type Q3947
action filter_type
action find
entity Q255
relation P485
type Q2668072
[ANSWER]
['Q255', 'P485', {'concept': 'Q3947'}] ['Q255', 'P485', {'concept': 'Q2668072'}] ['Q255', 'P485', {'concept': 'Q3947'}] ['Q255', 'P485', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { resource:Q255 property:P485 ?d . ?d rdf:type ontology:Q3947 } UNION { resource:Q255 property:P485 ?d . ?d rdf:type ontology:Q2668072 } }
Beethoven House Staatsbibliothek Berlin
1 houses and 1 collections
action count
action union
action filter_type
action find
entity Ludwig van Beethoven
relation archives at
type house
action filter_type
action find
entity Ludwig van Beethoven
relation archives at
type collection
['Ludwig van Beethoven', 'archives at', {'concept': 'house'}] ['Ludwig van Beethoven', 'archives at', {'concept': 'collection'}] ['Ludwig van Beethoven', 'archives at', {'concept': 'house'}] ['Ludwig van Beethoven', 'archives at', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { resource:Ludwig_van_Beethoven property:archives_at ?d . ?d rdf:type ontology:house } UNION { resource:Ludwig_van_Beethoven property:archives_at ?d . ?d rdf:type ontology:collection } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q255
P937
Q56061
USER
How many administrative territories did Ludwig van Beethoven work ?
(Q255,P937,c(Q56061))
action count
action filter_type
action find
entity Q255
relation P937
type Q56061
['Q255', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { resource:Q255 property:P937 ?f . ?f rdf:type ontology:Q56061 }
Ludwig van Beethoven
action count
action filter_type
action find
entity Ludwig van Beethoven
relation work location
type administrative territorial entity
['Ludwig van Beethoven', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { resource:Ludwig_van_Beethoven property:work_location ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
2
Q1741 Q586
(Q255,P937,c(Q56061))
action count
action filter_type
action find
entity Q255
relation P937
type Q56061
[ANSWER]
['Q255', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { resource:Q255 property:P937 ?f . ?f rdf:type ontology:Q56061 }
Vienna Bonn
2
action count
action filter_type
action find
entity Ludwig van Beethoven
relation work location
type administrative territorial entity
['Ludwig van Beethoven', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { resource:Ludwig_van_Beethoven property:work_location ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q255
P50
Q234460
USER
Which text is written by that person ?
action filter_type
action find_reverse
entity Q255
relation P50
type Q234460
SELECT DISTINCT ?b WHERE { ?b property:P50 resource:Q255 . ?b rdf:type ontology:Q234460 }
Ludwig van Beethoven
action filter_type
action find_reverse
entity Ludwig van Beethoven
relation author
type text
SELECT DISTINCT ?b WHERE { ?b property:author resource:Ludwig_van_Beethoven . ?b rdf:type ontology:text }
[]
text
Q11613006
SYSTEM
music manuscript
Q11613006
action filter_type
action find_reverse
entity Q255
relation P50
type Q234460
[ANSWER] is written by that person
SELECT DISTINCT ?b WHERE { ?b property:P50 resource:Q255 . ?b rdf:type ontology:Q234460 }
music manuscript
Music manuscript is written by that person
music manuscript
action filter_type
action find_reverse
entity Ludwig van Beethoven
relation author
type text
SELECT DISTINCT ?b WHERE { ?b property:author resource:Ludwig_van_Beethoven . ?b rdf:type ontology:text }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1064894
P22
Q502895
USER
Which male person has a child named Charles Horace Mayo ?
(Q1064894,P22,c(Q502895))
action filter_type
action find
entity Q1064894
relation P22
type Q502895
['Q1064894', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1064894 property:P22 ?j . ?j rdf:type ontology:Q502895 }
Charles Horace Mayo
action filter_type
action find
entity Charles Horace Mayo
relation father
type common name
['Charles Horace Mayo', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Charles_Horace_Mayo property:father ?j . ?j rdf:type ontology:common_name }
[]
common name
Q904681
SYSTEM
William Worrall Mayo
Q904681
(Q1064894,P22,c(Q502895))
action filter_type
action find
entity Q1064894
relation P22
type Q502895
And [ANSWER] has a child named Charles Horace Mayo
['Q1064894', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1064894 property:P22 ?j . ?j rdf:type ontology:Q502895 }
William Worrall Mayo
And William Worrall Mayo has a child named Charles Horace Mayo
William Worrall Mayo
action filter_type
action find
entity Charles Horace Mayo
relation father
type common name
['Charles Horace Mayo', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Charles_Horace_Mayo property:father ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q904681
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q904681,P19,c(Q56061))
action filter_type
action find
entity Q904681
relation P19
type Q56061
['Q904681', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q904681 property:P19 ?e . ?e rdf:type ontology:Q56061 }
William Worrall Mayo
action filter_type
action find
entity William Worrall Mayo
relation place of birth
type administrative territorial entity
['William Worrall Mayo', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:William_Worrall_Mayo property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q47952
SYSTEM
Salford
Q47952
(Q904681,P19,c(Q56061))
action filter_type
action find
entity Q904681
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q904681', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q904681 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Salford
Salford is the birthplace of that person
Salford
action filter_type
action find
entity William Worrall Mayo
relation place of birth
type administrative territorial entity
['William Worrall Mayo', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:William_Worrall_Mayo property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P780
Q2057971 Q12136 Q2057971
USER
Which health problems are a sign of min number of diseases or health problems ?
(c(Q12136)|c(Q2057971),P780,c(Q2057971))
action argmin
action union
action find_reverse_tuple_counts
relation P780
type Q2057971
type Q12136
action find_reverse_tuple_counts
relation P780
type Q2057971
type Q2057971
[[{'concept': 'Q12136'}, {'concept': 'Q2057971'}], 'P780', {'concept': 'Q2057971'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?v ) { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?s ) WHERE { { ?o rdf:type ontology:Q2057971 . ?a rdf:type ontology:Q12136 . ?a property:P780 ?o } UNION { ?o rdf:type ontology:Q2057971 . ?a rdf:type ontology:Q2057971 . ?a property:P780 ?o } } GROUP BY ?o } } . { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?d ) WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:Q12136 ) ( ontology:Q2057971 ) } } GROUP BY ?f } . FILTER ( ?d = ?v ) }
action argmin
action union
action find_reverse_tuple_counts
relation symptoms
type health problem
type disease
action find_reverse_tuple_counts
relation symptoms
type health problem
type health problem
[[{'concept': 'disease'}, {'concept': 'health problem'}], 'symptoms', {'concept': 'health problem'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?v ) { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?s ) WHERE { { ?o rdf:type ontology:health_problem . ?a rdf:type ontology:disease . ?a property:symptoms ?o } UNION { ?o rdf:type ontology:health_problem . ?a rdf:type ontology:health_problem . ?a property:symptoms ?o } } GROUP BY ?o } } . { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?d ) WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:disease ) ( ontology:health_problem ) } } GROUP BY ?f } . FILTER ( ?d = ?v ) }
[]
health problem disease health problem
Q844935 Q35869 Q221668
SYSTEM
coronary artery disease, asthma, acute cystitis
Q19275831 Q972514 Q5958765 Q18554331 Q2085267 Q271759 Q864868 Q21117568 Q3513968 Q1598200 Q684383 Q16501 Q173022 Q7048905 Q147778 Q35869 Q1956682 Q5062120 Q177254 Q5062122 Q2879095 Q18642366 Q21117572 Q935293 Q1527888 Q1553850 Q21111998 Q857667 Q4330029 Q3339235 Q21110191 Q911386 Q48143 Q1500373 Q131742 Q846316 Q279330 Q468433 Q2306782 Q677449 Q783903 Q55998 Q570197 Q505142 Q1531991 Q16242752 Q2681162 Q10863074 Q21112607 Q21116779 Q1502312 Q1193870 Q18556080 Q183130 Q202837 Q12192 Q268594 Q5090486 Q612681 Q1153419 Q1264268 Q1131786 Q18553940 Q199804 Q622427 Q690210 Q21112593 Q684810 Q18556920 Q21109267 Q183344 Q1018652 Q1534492 Q42982 Q1294912 Q979168 Q11072 Q134003 Q170082 Q1145668 Q767485 Q21112038 Q662298 Q21504914 Q1628473 Q188605 Q1507609 Q181754 Q18553993 Q105688 Q906492 Q3042175 Q220570 Q883863 Q221668 Q936382 Q2906693 Q1623006 Q572111 Q2868696 Q838145 Q501561 Q179951 Q114085 Q203601 Q170518 Q344873 Q18554311 Q950591 Q794072 Q21128620 Q401402 Q5171111 Q1194557 Q21118423 Q32446 Q18967474 Q738153 Q748442 Q794086 Q21109048 Q2638851 Q5712565 Q844935 Q734512 Q1036696 Q651223 Q5309747 Q476921 Q18558124 Q18558125 Q187440 Q757838 Q5251081 Q202758 Q21109885 Q4116448 Q664174 Q1320276 Q648982 Q14509067 Q7259546 Q18556164 Q5090456 Q21109216
(c(Q12136)|c(Q2057971),P780,c(Q2057971))
action argmin
action union
action find_reverse_tuple_counts
relation P780
type Q2057971
type Q12136
action find_reverse_tuple_counts
relation P780
type Q2057971
type Q2057971
[ANSWERS] are a sign of min number of diseases or health problems
[[{'concept': 'Q12136'}, {'concept': 'Q2057971'}], 'P780', {'concept': 'Q2057971'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?v ) { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?s ) WHERE { { ?o rdf:type ontology:Q2057971 . ?a rdf:type ontology:Q12136 . ?a property:P780 ?o } UNION { ?o rdf:type ontology:Q2057971 . ?a rdf:type ontology:Q2057971 . ?a property:P780 ?o } } GROUP BY ?o } } . { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?d ) WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:Q12136 ) ( ontology:Q2057971 ) } } GROUP BY ?f } . FILTER ( ?d = ?v ) }
choking optic neuritis hypersensitivity retinal perforation pharyngitis porphyria bone marrow suppression skin granuloma corneal opacity metabolic acidosis exophthalmos hypothyroidisms bronchitis Non-epileptic seizure liver cirrhosis asthma myoglobinuria central nervous system depression hyperopia central nervous system disease optic nerve disease intoxication lung granuloma purpura pancreatitis hemoglobinuria fingernail damage pulmonary edema airway obstruction nervous system disease diffuse nodular fibrosis stomatitis meningitis lactic acidosis hepatitis aplastic anemia bronchial disease anosmia hypochromic anemia aspiration pneumonia contact dermatitis pleurisy proteinuria eosinophilia Parkinsonian syndrome allergic contact dermatitis eye injury fatty liver disease leg paresthesia scaling dermatitis polyneuropathy multiple organ dysfunction syndrome cranial nerve palsy gastritis cardiac arrest pneumonia stupor toxic pneumonitis anuria interstitial lung disease stannosis Cor pulmonale gastric ulcer chronic obstructive pulmonary disease ptosis dysosmia hand paresis berylliosis diffuse pulmonary fibrosis fibrotic pneumoconiosis sinusitis byssinosis microhematuria type I hypersensitivity endophthalmitis brain edema amnestic disorder inherited blood coagulation disease psychotic disorder hemolytic anemia respiratory failure granulomatous pneumonitis ectropion wooden chest syndrome corneal ulcer pulmonary emphysema Ochronosis heart failure corneal edema hypoxia dystonia corneal dystrophy pulmonary embolism blepharospasm acute cystitis Hypocalcaemia baritosis keratoconjunctivitis anterograde amnesia pain agnosia leukoplakia pericarditis strabismus rhinitis pneumothorax burn adult respiratory distress syndrome corneal degeneration scotoma Azotemia spleen injury nephritis corneal perforation laryngitis auditory nerve damage pulmonary fibrosis pulmonary congestion and hypostasis ileus methemoglobinemia hypokalemia acute hemorrhagic cystitis Oligospermia hemorrhagic cystitis coronary artery disease bronchopneumonia hypothermia pneumoconiosis dryness kidney failure allergic asthma intracranial hypertension urticaria keratitis Defatting hypoglycemia chronic respiratory disease tracheal stenosis asbestosis hypovolemia argyria exanthem Pulmonary toxicity granulomatous gastritis Chemical eye injury benign pneumoconiosis
Coronary artery disease, asthma and acute cystitis are a sign of min number of diseases or health problems
coronary artery disease asthma acute cystitis
action argmin
action union
action find_reverse_tuple_counts
relation symptoms
type health problem
type disease
action find_reverse_tuple_counts
relation symptoms
type health problem
type health problem
[[{'concept': 'disease'}, {'concept': 'health problem'}], 'symptoms', {'concept': 'health problem'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?v ) { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?s ) WHERE { { ?o rdf:type ontology:health_problem . ?a rdf:type ontology:disease . ?a property:symptoms ?o } UNION { ?o rdf:type ontology:health_problem . ?a rdf:type ontology:health_problem . ?a property:symptoms ?o } } GROUP BY ?o } } . { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?d ) WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:disease ) ( ontology:health_problem ) } } GROUP BY ?f } . FILTER ( ?d = ?v ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q844935 Q35869 Q221668
P2175
Q8386
USER
Which drugs are used to cure those health problems ?
(c(Q8386),P2175,Q844935) (c(Q8386),P2175,Q35869) (c(Q8386),P2175,Q221668)
action filter_type
action find_reverse
entity prev_answer
relation P2175
type Q8386
[{'concept': 'Q8386'}, 'P2175', 'Q844935'] [{'concept': 'Q8386'}, 'P2175', 'Q35869'] [{'concept': 'Q8386'}, 'P2175', 'Q221668']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q8386 . VALUES ( ?j ) { ( resource:Q19275831 ) ( resource:Q972514 ) ( resource:Q5958765 ) } . ?w property:P2175 ?j }
coronary artery disease asthma acute cystitis
action filter_type
action find_reverse
entity prev_answer
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'coronary artery disease'] [{'concept': 'drug'}, 'medical condition treated', 'asthma'] [{'concept': 'drug'}, 'medical condition treated', 'acute cystitis']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:drug . VALUES ( ?j ) { ( resource:choking ) ( resource:optic_neuritis ) ( resource:hypersensitivity ) } . ?w property:medical_condition_treated ?j }
[]
drug
Q670131 Q670131 Q424940
SYSTEM
Moxifloxacin for 3rd, simvastatin for 1st, 2nd
Q420542 Q417740 Q670131 Q418666 Q415366 Q3294635 Q1318776 Q418006 Q668093 Q258591 Q190012 Q1240093 Q417997 Q10354103 Q417942 Q907104 Q18216 Q5268499 Q419724 Q60235 Q411347 Q7307897 Q899036 Q384295 Q15623825 Q4919218 Q3790542 Q423439 Q4726914 Q410237 Q2295855 Q2701912 Q415392 Q417767 Q407308 Q417740 Q670131 Q202998 Q422212 Q421475 Q58614 Q263958 Q20817199 Q3746835 Q32921 Q693482 Q7127523 Q2450337 Q1073333 Q422252 Q132621 Q410789 Q928378 Q1087499 Q11426176 Q424972 Q424952 Q8564098 Q219626 Q424340 Q5104342 Q1236526 Q417222 Q637247 Q424333 Q419769 Q4918914 Q471763 Q410358 Q2166700 Q190875 Q2697833 Q5119448 Q413879 Q410237 Q7444755 Q3306175 Q422232 Q425152 Q281082 Q423787 Q3307752 Q418725 Q418546 Q7636169 Q422219 Q1050019 Q256602 Q2365016 Q422482 Q367700 Q216935 Q1639616 Q422669 Q203618 Q2313471 Q417968 Q421713 Q424193 Q2601832 Q2325775 Q2602246 Q415843 Q412223 Q244150 Q5119441 Q201928 Q3976824 Q415167 Q2878140 Q1082945 Q163901 Q411417 Q417897 Q1638852 Q424940 Q415739 Q411447 Q808845 Q2736402 Q422665 Q421670 Q183554 Q413728 Q348260 Q1758380 Q2555060 Q2319020 Q2552927 Q1639595 Q372598 Q1639588 Q20817140 Q2601530
(c(Q8386),P2175,Q844935) (c(Q8386),P2175,Q35869) (c(Q8386),P2175,Q221668)
action filter_type
action find_reverse
entity prev_answer
relation P2175
type Q8386
[ANSWERS]
[{'concept': 'Q8386'}, 'P2175', 'Q844935'] [{'concept': 'Q8386'}, 'P2175', 'Q35869'] [{'concept': 'Q8386'}, 'P2175', 'Q221668']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q8386 . VALUES ( ?j ) { ( resource:Q19275831 ) ( resource:Q972514 ) ( resource:Q5958765 ) } . ?w property:P2175 ?j }
ticagrelor lovastatin simvastatin tranexamic acid tirofiban Colestipol testosterone Colestyramine Atorvastatin cilostazol adenosine Pravastatin ezetimibe probucol Fluvastatin ranolazine acetylsalicylic acid dextrothyroxine fenofibrate caffeine amlodipine regadenoson Colesevelam gemfibrozil Evolocumab Bivalirudin sufinpyrazone cerivastatin Alirocumab clopidogrel eptifibatide clofibrate Omalizumab montelukast theophylline lovastatin simvastatin zileuton budesonide beclometasone dipropionate loxapine pseudoephedrine Ephedra Flunisolide halothane roflumilast Palifermin Interferon beta-1a dyphylline dexamethasone (-)-adrenaline ambrisentan zafirlukast Troleandomycin prednisolone prednisone nadolol fluticasone propionate (-)-ephedrine terbutaline Oxtriphylline pirbuterol methylprednisolone formoterol salmeterol bosentan Bitolterol Aminophylline salbutamol Fluticasone furoate cortisol Abatacept ciclesonide golimumab clopidogrel Secukinumab Mepolizumab methotrexate Imipenem Nalidixic Acid Piperacillin Mezlocillin Oxacillin Aztreonam Sulfacytine Cloxacillin Carbenicillin Ciprofloxacin Gatifloxacin gentamicin Cyclosporine lidocaine enoxacin Nitrofurantoin Lomefloxacin Dicloxacillin Cefotaxime ceftriaxone Levofloxacin Ticarcillin cefoperazone Cefotetan Sulfamethoxazole Amphotericin B Ampicillin cyclacillin Amoxicillin Sulfamethizole Cefaclor Bacampicillin Ceftizoxime Cefixime cephalexin Norfloxacin Nafcillin Moxifloxacin Cefazolin Ofloxacin Ceftazidime Demeclocycline Trimethoprim Meropenem Fosfomycin Cefuroxime Adalimumab Tobramycin Sulfadiazine cefadroxil Cefepime Gemifloxacin Sulfisoxazole Cinoxacin Colistimethate Cefamandole
Simvastatin, simvastatin and Moxifloxacin are used to cure those health problems
simvastatin simvastatin Moxifloxacin
action filter_type
action find_reverse
entity prev_answer
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'coronary artery disease'] [{'concept': 'drug'}, 'medical condition treated', 'asthma'] [{'concept': 'drug'}, 'medical condition treated', 'acute cystitis']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:drug . VALUES ( ?j ) { ( resource:choking ) ( resource:optic_neuritis ) ( resource:hypersensitivity ) } . ?w property:medical_condition_treated ?j }
[]
Clarification
Simple Question|Single Entity|Indirect
Q670131
P769
Q8386
USER
What shows a significant interaction with that one ?
(Q670131,P769,c(Q8386))
action filter_type
action find
entity Q670131
relation P769
type Q8386
['Q670131', 'P769', {'concept': 'Q8386'}]
SELECT DISTINCT ?g WHERE { resource:Q670131 property:P769 ?g . ?g rdf:type ontology:Q8386 }
simvastatin
action filter_type
action find
entity simvastatin
relation significant drug interaction
type drug
['simvastatin', 'significant drug interaction', {'concept': 'drug'}]
SELECT DISTINCT ?g WHERE { resource:simvastatin property:significant_drug_interaction ?g . ?g rdf:type ontology:drug }
[]
drug
Clarification for simple ques.
Q670131
SYSTEM
Did you mean simvastatin ?
Q670131 Q670131 Q424940
(Q670131,P769,c(Q8386)) (Q670131,P769,c(Q8386)) (Q424940,P769,c(Q8386))
[ANSWER]
['Q670131', 'P769', {'concept': 'Q8386'}] ['Q670131', 'P769', {'concept': 'Q8386'}] ['Q424940', 'P769', {'concept': 'Q8386'}]
SELECT DISTINCT ?g WHERE { resource:Q670131 property:P769 ?g . ?g rdf:type ontology:Q8386 }
simvastatin simvastatin Moxifloxacin
Did you mean simvastatin ?
simvastatin
['simvastatin', 'significant drug interaction', {'concept': 'drug'}] ['simvastatin', 'significant drug interaction', {'concept': 'drug'}] ['Moxifloxacin', 'significant drug interaction', {'concept': 'drug'}]
SELECT DISTINCT ?g WHERE { resource:simvastatin property:significant_drug_interaction ?g . ?g rdf:type ontology:drug }
[]
Simple Question (Coreferenced)
USER
Yes
(Q670131,P769,c(Q8386))
['Q670131', 'P769', {'concept': 'Q8386'}]
['simvastatin', 'significant drug interaction', {'concept': 'drug'}]
[]
Q410061 Q213511 Q118551
SYSTEM
amiodarone, Erythromycin, Clarithromycin
Q422198 Q3765251 Q422229 Q416632 Q411478 Q422654 Q411229 Q213511 Q407883 Q423366 Q118551 Q422618 Q423404 Q410291 Q410061 Q2736135 Q422585 Q423467
(Q670131,P769,c(Q8386))
action filter_type
action find
entity Q670131
relation P769
type Q8386
[ANSWERS] show a significant interaction with that one
['Q670131', 'P769', {'concept': 'Q8386'}]
SELECT DISTINCT ?g WHERE { resource:Q670131 property:P769 ?g . ?g rdf:type ontology:Q8386 }
Amprenavir Darunavir diltiazem nefazodone Fluconazole saquinavir Itraconazole Erythromycin Ketoconazole Nelfinavir Clarithromycin ritonavir Tipranavir verapamil amiodarone Telithromycin Lopinavir Atazanavir
Amiodarone, Erythromycin and Clarithromycin show a significant interaction with that one
amiodarone Erythromycin Clarithromycin
action filter_type
action find
entity simvastatin
relation significant drug interaction
type drug
['simvastatin', 'significant drug interaction', {'concept': 'drug'}]
SELECT DISTINCT ?g WHERE { resource:simvastatin property:significant_drug_interaction ?g . ?g rdf:type ontology:drug }
[]