Simple Question (Direct)
Simple Question
Q4755318
P509
Q2057971
USER
What lead to the death of Andrea West ?
(Q4755318,P509,c(Q2057971))
action filter_type
action find
entity Q4755318
relation P509
type Q2057971
['Q4755318', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q2057971 . resource:Q4755318 property:P509 ?k }
Andrea West
action filter_type
action find
entity Andrea West
relation cause of death
type health problem
['Andrea West', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:health_problem . resource:Andrea_West property:cause_of_death ?k }
[]
health problem
Q128581
SYSTEM
breast cancer
Q128581
(Q4755318,P509,c(Q2057971))
action filter_type
action find
entity Q4755318
relation P509
type Q2057971
[ANSWER] lead to the death of Andrea West
['Q4755318', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q2057971 . resource:Q4755318 property:P509 ?k }
breast cancer
Breast cancer lead to the death of Andrea West
breast cancer
action filter_type
action find
entity Andrea West
relation cause of death
type health problem
['Andrea West', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:health_problem . resource:Andrea_West property:cause_of_death ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4755318
P1196
Q1931388
USER
What manner did that person die ?
(Q128581,P1196,c(Q1931388))
action filter_type
action find
entity Q4755318
relation P1196
type Q1931388
['Q128581', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1931388 . resource:Q4755318 property:P1196 ?v }
Andrea West
action filter_type
action find
entity Andrea West
relation manner of death
type cause of death
['breast cancer', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:cause_of_death . resource:Andrea_West property:manner_of_death ?v }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q128581,P1196,c(Q1931388))
action filter_type
action find
entity Q4755318
relation P1196
type Q1931388
That person died in [ANSWER]
['Q128581', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1931388 . resource:Q4755318 property:P1196 ?v }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Andrea West
relation manner of death
type cause of death
['breast cancer', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:cause_of_death . resource:Andrea_West property:manner_of_death ?v }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q128581 Q81938
P2176
Q8386
USER
How many drugs are used as an antidote for breast cancer and pain ?
(Q128581,P2176,c(Q8386)) (Q81938,P2176,c(Q8386))
action count
action intersection
action filter_type
action find
entity Q128581
relation P2176
type Q8386
action filter_type
action find
entity Q81938
relation P2176
type Q8386
['Q128581', 'P2176', {'concept': 'Q8386'}] ['Q81938', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:Q128581 property:P2176 ?y . ?y rdf:type ontology:Q8386 . resource:Q81938 property:P2176 ?y . ?y rdf:type ontology:Q8386 }
breast cancer pain
action count
action intersection
action filter_type
action find
entity breast cancer
relation drug used for treatment
type drug
action filter_type
action find
entity pain
relation drug used for treatment
type drug
['breast cancer', 'drug used for treatment', {'concept': 'drug'}] ['pain', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:breast_cancer property:drug_used_for_treatment ?y . ?y rdf:type ontology:drug . resource:pain property:drug_used_for_treatment ?y . ?y rdf:type ontology:drug }
[]
drug
SYSTEM
11
Q1215575 Q408801 Q409587 Q18216 Q239426 Q422806 Q422252 Q218507 Q424049 Q216935 Q670131
(Q128581,P2176,c(Q8386)) (Q81938,P2176,c(Q8386))
action count
action intersection
action filter_type
action find
entity Q128581
relation P2176
type Q8386
action filter_type
action find
entity Q81938
relation P2176
type Q8386
[ANSWER]
['Q128581', 'P2176', {'concept': 'Q8386'}] ['Q81938', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:Q128581 property:P2176 ?y . ?y rdf:type ontology:Q8386 . resource:Q81938 property:P2176 ?y . ?y rdf:type ontology:Q8386 }
naproxen celecoxib naltrexone acetylsalicylic acid mitoxantrone bupivacaine dexamethasone zoledronic acid loratadine lidocaine simvastatin
11
action count
action intersection
action filter_type
action find
entity breast cancer
relation drug used for treatment
type drug
action filter_type
action find
entity pain
relation drug used for treatment
type drug
['breast cancer', 'drug used for treatment', {'concept': 'drug'}] ['pain', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:breast_cancer property:drug_used_for_treatment ?y . ?y rdf:type ontology:drug . resource:pain property:drug_used_for_treatment ?y . ?y rdf:type ontology:drug }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P828
Q2057971 Q3839081
USER
Which disasters are caused by min number of health problems ?
(c(Q3839081),P828,c(Q2057971))
action argmin
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?y ) { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?z ) WHERE { ?n property:P828 ?t . ?n rdf:type ontology:Q3839081 . ?t rdf:type ontology:Q2057971 } GROUP BY ?n } } . { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?j ) WHERE { ?l property:P828 ?q . ?l rdf:type ontology:Q3839081 . ?q rdf:type ontology:Q2057971 } GROUP BY ?l } . FILTER ( ?j = ?y ) }
action argmin
action find_tuple_counts
relation has cause
type disaster
type health problem
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?y ) { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?z ) WHERE { ?n property:has_cause ?t . ?n rdf:type ontology:disaster . ?t rdf:type ontology:health_problem } GROUP BY ?n } } . { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?j ) WHERE { ?l property:has_cause ?q . ?l rdf:type ontology:disaster . ?q rdf:type ontology:health_problem } GROUP BY ?l } . FILTER ( ?j = ?y ) }
[]
health problem disaster
Q223288 Q11971365 Q783597
SYSTEM
Tenerife airport disaster, Førdesveten plane crash, American Airlines Flight 1420
Q783597 Q671297 Q1582992 Q18147604 Q5150534 Q4919790 Q3960716 Q251039 Q171178 Q858734 Q7672526 Q977367 Q223288 Q2475745 Q11890853 Q11971365 Q8068 Q381183 Q5587844 Q858145
(c(Q3839081),P828,c(Q2057971))
action argmin
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
[ANSWERS] are caused by min number of health problems
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?y ) { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?z ) WHERE { ?n property:P828 ?t . ?n rdf:type ontology:Q3839081 . ?t rdf:type ontology:Q2057971 } GROUP BY ?n } } . { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?j ) WHERE { ?l property:P828 ?q . ?l rdf:type ontology:Q3839081 . ?q rdf:type ontology:Q2057971 } GROUP BY ?l } . FILTER ( ?j = ?y ) }
American Airlines Flight 1420 1983 West Bank fainting epidemic Tanganyika laughter epidemic Aero Flight 217 Comandante Ferraz Antarctic Base fire Thai Airways International Flight 311 Silvertown explosion US Airways Flight 1549 Fukushima nuclear accident Superga air disaster TWA Flight 841 chemical accident Tenerife airport disaster Siberia Airlines Flight 1812 1978 Finnish Air Force DC-3 crash Førdesveten plane crash flood Aero Flight 311 Gothenburg discothèque fire Space Shuttle Challenger disaster
Tenerife airport disaster, Førdesveten plane crash and American Airlines Flight 1420 are caused by min number of health problems
Tenerife airport disaster Førdesveten plane crash American Airlines Flight 1420
action argmin
action find_tuple_counts
relation has cause
type disaster
type health problem
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?y ) { SELECT DISTINCT ?n ( COUNT ( ?t ) AS ?z ) WHERE { ?n property:has_cause ?t . ?n rdf:type ontology:disaster . ?t rdf:type ontology:health_problem } GROUP BY ?n } } . { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?j ) WHERE { ?l property:has_cause ?q . ?l rdf:type ontology:disaster . ?q rdf:type ontology:health_problem } GROUP BY ?l } . FILTER ( ?j = ?y ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q22318518 Q128581
P702 P2293
Q863908
USER
Which nucleic acid sequences have hereditary association with breast cancer or are the gene that encodes inner membrane protein    PP_1156 ?
OR((Q128581,P2293,c(Q863908)), (Q22318518,P702,c(Q863908)))
action filter_type
action union
action find
entity Q128581
relation P2293
action find
entity Q22318518
relation P702
type Q863908
{'OR': [['Q128581', 'P2293', {'concept': 'Q863908'}], ['Q22318518', 'P702', {'concept': 'Q863908'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q22318518 property:P702 ?s } UNION { resource:Q128581 property:P2293 ?s } } . ?s rdf:type ontology:Q863908 }
inner membrane protein    PP_1156 breast cancer
action filter_type
action union
action find
entity breast cancer
relation genetic association
action find
entity inner membrane protein    PP_1156
relation encoded by
type nucleic acid sequence
{'OR': [['breast cancer', 'genetic association', {'concept': 'nucleic acid sequence'}], ['inner membrane protein    PP_1156', 'encoded by', {'concept': 'nucleic acid sequence'}]]}
SELECT DISTINCT ?s WHERE { { { resource:inner_membrane_protein____PP_1156 property:encoded_by ?s } UNION { resource:breast_cancer property:genetic_association ?s } } . ?s rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Q18030362 Q18034329 Q14911644 Q18031496 Q18047337 Q18030468 Q15315135 Q14902310 Q17927651 Q18038782
SYSTEM
Some of them are PBX1, SLC4A7, FGFR2, SIAH2, C10orf11, PEX14, TERT, ESR1, FBN1, TOX3
Q18058362 Q18029021 Q18047762 Q18042957 Q18047337 Q14881725 Q18030586 Q18061762 Q15315135 Q14902310 Q17917202 Q18030409 Q18049567 Q18030468 Q14913379 Q14913892 Q18036570 Q18041257 Q18038782 Q18031496 Q18034329 Q18051831 Q22311622 Q14911644 Q18028981 Q18030362 Q18047180 Q18026498 Q17927651 Q18047281 Q18034082 Q18036114 Q18043183 Q17915128 Q14911585
OR((Q128581,P2293,c(Q863908)), (Q22318518,P702,c(Q863908)))
action filter_type
action union
action find
entity Q128581
relation P2293
action find
entity Q22318518
relation P702
type Q863908
[ANSWERS] have hereditary association with breast cancer or are the gene that encodes inner membrane protein PP_1156
{'OR': [['Q128581', 'P2293', {'concept': 'Q863908'}], ['Q22318518', 'P702', {'concept': 'Q863908'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q22318518 property:P702 ?s } UNION { resource:Q128581 property:P2293 ?s } } . ?s rdf:type ontology:Q863908 }
CCDC88C MAP3K1 ZNF577 ZMIZ1 C10orf11 COL1A1 PLCG2 DIRC3 TERT ESR1 ERBB4 PDE4D CDYL2 PEX14 ABCC4 TCF7L2 ZNF365 TET2 TOX3 SIAH2 SLC4A7 SYT6 inner membrane protein    PP_1156 FGFR2 MDM4 PBX1 CHST9 GRIK1 FBN1 ROPN1L NTN1 ADAM29 MKL1 EBF1 TGFBR2
PBX1, SLC4A7, FGFR2, SIAH2, C10orf11, PEX14, TERT, ESR1, FBN1 and TOX3 have hereditary association with breast cancer or are the gene that encodes inner membrane protein PP_1156
PBX1 SLC4A7 FGFR2 SIAH2 C10orf11 PEX14 TERT ESR1 FBN1 TOX3
action filter_type
action union
action find
entity breast cancer
relation genetic association
action find
entity inner membrane protein    PP_1156
relation encoded by
type nucleic acid sequence
{'OR': [['breast cancer', 'genetic association', {'concept': 'nucleic acid sequence'}], ['inner membrane protein    PP_1156', 'encoded by', {'concept': 'nucleic acid sequence'}]]}
SELECT DISTINCT ?s WHERE { { { resource:inner_membrane_protein____PP_1156 property:encoded_by ?s } UNION { resource:breast_cancer property:genetic_association ?s } } . ?s rdf:type ontology:nucleic_acid_sequence }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q420207 Q14902310
P2293 P2176
Q2057971
USER
Which health problems are genetically associated with ESR1 and require capecitabine in their treatment ?
AND((c(Q2057971),P2293,Q14902310), (c(Q2057971),P2176,Q420207))
action filter_type
action intersection
action find_reverse
entity Q14902310
relation P2293
action find_reverse
entity Q420207
relation P2176
type Q2057971
{'AND': [[{'concept': 'Q2057971'}, 'P2293', 'Q14902310'], [{'concept': 'Q2057971'}, 'P2176', 'Q420207']]}
SELECT DISTINCT ?k WHERE { ?k property:P2293 resource:Q14902310 . ?k property:P2176 resource:Q420207 . ?k rdf:type ontology:Q2057971 }
capecitabine ESR1
action filter_type
action intersection
action find_reverse
entity ESR1
relation genetic association
action find_reverse
entity capecitabine
relation drug used for treatment
type health problem
{'AND': [[{'concept': 'health problem'}, 'genetic association', 'ESR1'], [{'concept': 'health problem'}, 'drug used for treatment', 'capecitabine']]}
SELECT DISTINCT ?k WHERE { ?k property:genetic_association resource:ESR1 . ?k property:drug_used_for_treatment resource:capecitabine . ?k rdf:type ontology:health_problem }
[]
health problem
Q128581
SYSTEM
breast cancer
Q128581
AND((c(Q2057971),P2293,Q14902310), (c(Q2057971),P2176,Q420207))
action filter_type
action intersection
action find_reverse
entity Q14902310
relation P2293
action find_reverse
entity Q420207
relation P2176
type Q2057971
[ANSWER] is genetically associated with ESR1 and require capecitabine in their treatment
{'AND': [[{'concept': 'Q2057971'}, 'P2293', 'Q14902310'], [{'concept': 'Q2057971'}, 'P2176', 'Q420207']]}
SELECT DISTINCT ?k WHERE { ?k property:P2293 resource:Q14902310 . ?k property:P2176 resource:Q420207 . ?k rdf:type ontology:Q2057971 }
breast cancer
Breast cancer is genetically associated with ESR1 and require capecitabine in their treatment
breast cancer
action filter_type
action intersection
action find_reverse
entity ESR1
relation genetic association
action find_reverse
entity capecitabine
relation drug used for treatment
type health problem
{'AND': [[{'concept': 'health problem'}, 'genetic association', 'ESR1'], [{'concept': 'health problem'}, 'drug used for treatment', 'capecitabine']]}
SELECT DISTINCT ?k WHERE { ?k property:genetic_association resource:ESR1 . ?k property:drug_used_for_treatment resource:capecitabine . ?k rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18030362
P684
Q863908
USER
Which nucleic acid sequence is an orthologous gene for PBX1 ?
(Q18030362,P684,c(Q863908))
action filter_type
action find
entity Q18030362
relation P684
type Q863908
['Q18030362', 'P684', {'concept': 'Q863908'}]
SELECT DISTINCT ?n WHERE { resource:Q18030362 property:P684 ?n . ?n rdf:type ontology:Q863908 }
PBX1
action filter_type
action find
entity PBX1
relation ortholog
type nucleic acid sequence
['PBX1', 'ortholog', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?n WHERE { resource:PBX1 property:ortholog ?n . ?n rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Q18252902
SYSTEM
Pbx1
Q18252902
(Q18030362,P684,c(Q863908))
action filter_type
action find
entity Q18030362
relation P684
type Q863908
[ANSWER] is an orthologous gene for PBX1
['Q18030362', 'P684', {'concept': 'Q863908'}]
SELECT DISTINCT ?n WHERE { resource:Q18030362 property:P684 ?n . ?n rdf:type ontology:Q863908 }
Pbx1
Pbx1 is an orthologous gene for PBX1
Pbx1
action filter_type
action find
entity PBX1
relation ortholog
type nucleic acid sequence
['PBX1', 'ortholog', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?n WHERE { resource:PBX1 property:ortholog ?n . ?n rdf:type ontology:nucleic_acid_sequence }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18030362
P688
Q181394
USER
Which nutrients are PBX1 an encoding of ?
(Q18030362,P688,c(Q181394))
action filter_type
action find
entity Q18030362
relation P688
type Q181394
['Q18030362', 'P688', {'concept': 'Q181394'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q181394 . resource:Q18030362 property:P688 ?c }
PBX1
action filter_type
action find
entity PBX1
relation encodes
type nutrient
['PBX1', 'encodes', {'concept': 'nutrient'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:nutrient . resource:PBX1 property:encodes ?c }
[]
nutrient
Q21108588 Q21117767
SYSTEM
Pre-B-cell leukemia transcription factor 1, Pre-B-cell leukemia transcription factor 1
Q21108588 Q21117767
(Q18030362,P688,c(Q181394))
action filter_type
action find
entity Q18030362
relation P688
type Q181394
[ANSWERS] are PBX1 an encoding of
['Q18030362', 'P688', {'concept': 'Q181394'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q181394 . resource:Q18030362 property:P688 ?c }
Pre-B-cell leukemia transcription factor 1 Pre-B-cell leukemia transcription factor 1
Pre-B-cell leukemia transcription factor 1 and Pre-B-cell leukemia transcription factor 1 are PBX1 an encoding of
Pre-B-cell leukemia transcription factor 1 Pre-B-cell leukemia transcription factor 1
action filter_type
action find
entity PBX1
relation encodes
type nutrient
['PBX1', 'encodes', {'concept': 'nutrient'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:nutrient . resource:PBX1 property:encodes ?c }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18262363
Q181394
USER
And how about Lsm1?
(Q18262363,P688,c(Q181394))
action filter_type
action find
entity Q18262363
relation P688
type Q181394
['Q18262363', 'P688', {'concept': 'Q181394'}]
SELECT DISTINCT ?t WHERE { resource:Q18262363 property:P688 ?t . ?t rdf:type ontology:Q181394 }
Lsm1
action filter_type
action find
entity Lsm1
relation encodes
type nutrient
['Lsm1', 'encodes', {'concept': 'nutrient'}]
SELECT DISTINCT ?t WHERE { resource:Lsm1 property:encodes ?t . ?t rdf:type ontology:nutrient }
[]
nutrient
Q21987206
SYSTEM
U6 snRNA-associated Sm-like protein LSm1
Q21987206
(Q18262363,P688,c(Q181394))
action filter_type
action find
entity Q18262363
relation P688
type Q181394
[ANSWER]
['Q18262363', 'P688', {'concept': 'Q181394'}]
SELECT DISTINCT ?t WHERE { resource:Q18262363 property:P688 ?t . ?t rdf:type ontology:Q181394 }
U6 snRNA-associated Sm-like protein LSm1
U6 snRNA-associated Sm-like protein LSm1
action filter_type
action find
entity Lsm1
relation encodes
type nutrient
['Lsm1', 'encodes', {'concept': 'nutrient'}]
SELECT DISTINCT ?t WHERE { resource:Lsm1 property:encodes ?t . ?t rdf:type ontology:nutrient }
[]