Simple Question (Direct)
Simple Question
Q59534
P58
Q502895
USER
Which people wrote the script for Planet of the Apes ?
(Q59534,P58,c(Q502895))
action filter_type
action find
entity Q59534
relation P58
type Q502895
['Q59534', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q59534 property:P58 ?p . ?p rdf:type ontology:Q502895 }
Planet of the Apes
action filter_type
action find
entity Planet of the Apes
relation screenwriter
type common name
['Planet of the Apes', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Planet_of_the_Apes property:screenwriter ?p . ?p rdf:type ontology:common_name }
[]
common name
Q25871 Q435920
SYSTEM
Michael Wilson, Rod Serling
Q25871 Q435920
(Q59534,P58,c(Q502895))
action filter_type
action find
entity Q59534
relation P58
type Q502895
[ANSWERS] wrote the script for Planet of the Apes
['Q59534', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q59534 property:P58 ?p . ?p rdf:type ontology:Q502895 }
Michael Wilson Rod Serling
Michael Wilson and Rod Serling wrote the script for Planet of the Apes
Michael Wilson Rod Serling
action filter_type
action find
entity Planet of the Apes
relation screenwriter
type common name
['Planet of the Apes', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Planet_of_the_Apes property:screenwriter ?p . ?p rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q25871
P509
Q2057971
USER
What caused the death of that person ?
(Q25871,P509,c(Q2057971))
action filter_type
action find
entity Q25871
relation P509
type Q2057971
['Q25871', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { resource:Q25871 property:P509 ?i . ?i rdf:type ontology:Q2057971 }
Michael Wilson
action filter_type
action find
entity Michael Wilson
relation cause of death
type health problem
['Michael Wilson', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { resource:Michael_Wilson property:cause_of_death ?i . ?i rdf:type ontology:health_problem }
[]
health problem
Clarification for simple ques.
Q25871
SYSTEM
Did you mean Michael Wilson ?
Q25871 Q435920
(Q25871,P509,c(Q2057971)) (Q435920,P509,c(Q2057971))
[ANSWER]
['Q25871', 'P509', {'concept': 'Q2057971'}] ['Q435920', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { resource:Q25871 property:P509 ?i . ?i rdf:type ontology:Q2057971 }
Michael Wilson Rod Serling
Did you mean Michael Wilson ?
Michael Wilson
['Michael Wilson', 'cause of death', {'concept': 'health problem'}] ['Rod Serling', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { resource:Michael_Wilson property:cause_of_death ?i . ?i rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
USER
Yes
(Q25871,P509,c(Q2057971))
['Q25871', 'P509', {'concept': 'Q2057971'}]
['Michael Wilson', 'cause of death', {'concept': 'health problem'}]
[]
Q12152
SYSTEM
myocardial infarction
Q12152
(Q25871,P509,c(Q2057971))
action filter_type
action find
entity Q25871
relation P509
type Q2057971
[ANSWER] caused the death of that person
['Q25871', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { resource:Q25871 property:P509 ?i . ?i rdf:type ontology:Q2057971 }
myocardial infarction
Myocardial infarction caused the death of that person
myocardial infarction
action filter_type
action find
entity Michael Wilson
relation cause of death
type health problem
['Michael Wilson', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { resource:Michael_Wilson property:cause_of_death ?i . ?i rdf:type ontology:health_problem }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P2176
Q8386
USER
How many drugs are used for treating that health problem ?
(Q12152,P2176,c(Q8386))
action count
action filter_type
action find
entity Q12152
relation P2176
type Q8386
['Q12152', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l rdf:type ontology:Q8386 . resource:Q12152 property:P2176 ?l }
action count
action filter_type
action find
entity myocardial infarction
relation drug used for treatment
type drug
['myocardial infarction', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l rdf:type ontology:drug . resource:myocardial_infarction property:drug_used_for_treatment ?l }
[]
drug
SYSTEM
42
Q3617574 Q409468 Q412515 Q2295855 Q412534 Q958087 Q423364 Q367700 Q307088 Q421218 Q416485 Q5383794 Q4919218 Q424952 Q422232 Q411325 Q190012 Q3790542 Q421119 Q19606349 Q1851701 Q410237 Q162867 Q417169 Q425154 Q418139 Q422188 Q413994 Q1644947 Q415411 Q944244 Q4765471 Q410291 Q418857 Q2178381 Q6997373 Q422229 Q207843 Q415366 Q418101 Q417762 Q420542
(Q12152,P2176,c(Q8386))
action count
action filter_type
action find
entity Q12152
relation P2176
type Q8386
[ANSWER]
['Q12152', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l rdf:type ontology:Q8386 . resource:Q12152 property:P2176 ?l }
anisindione metoprolol bisoprolol eptifibatide carvedilol labetalol propranolol Cyclosporine Abciximab fondaparinux sodium Streptokinase Epoetin alfa Bivalirudin nadolol methotrexate atenolol adenosine sufinpyrazone captopril Alteplase Dalteparin clopidogrel nitroglycerin Urokinase Tocilizumab Esmolol spironolactone Timolol Tenecteplase Anakinra penbutolol Anistreplase verapamil acebutolol Darbepoetin alfa Nesiritide diltiazem Nitric Oxide tirofiban pindolol Exenatide ticagrelor
42
action count
action filter_type
action find
entity myocardial infarction
relation drug used for treatment
type drug
['myocardial infarction', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l rdf:type ontology:drug . resource:myocardial_infarction property:drug_used_for_treatment ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12152
P2175
Q8386
USER
Which drugs are used as a medication for myocardial infarction ?
(c(Q8386),P2175,Q12152)
action filter_type
action find_reverse
entity Q12152
relation P2175
type Q8386
[{'concept': 'Q8386'}, 'P2175', 'Q12152']
SELECT DISTINCT ?p WHERE { ?p property:P2175 resource:Q12152 . ?p rdf:type ontology:Q8386 }
myocardial infarction
action filter_type
action find_reverse
entity myocardial infarction
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'myocardial infarction']
SELECT DISTINCT ?p WHERE { ?p property:medical_condition_treated resource:myocardial_infarction . ?p rdf:type ontology:drug }
[]
drug
Q422232 Q367700 Q410291
SYSTEM
methotrexate, Cyclosporine, verapamil
Q3617574 Q409468 Q412515 Q3790542 Q412534 Q958087 Q423364 Q367700 Q2295855 Q307088 Q421218 Q19606349 Q5383794 Q4919218 Q424952 Q422232 Q411325 Q190012 Q4765471 Q421119 Q416485 Q1851701 Q410237 Q162867 Q417169 Q425154 Q418139 Q422188 Q413994 Q1644947 Q415411 Q944244 Q410291 Q418857 Q2178381 Q6997373 Q415366 Q207843 Q422229 Q418101 Q417762 Q420542
(c(Q8386),P2175,Q12152)
action filter_type
action find_reverse
entity Q12152
relation P2175
type Q8386
[ANSWERS] are used as a medication for myocardial infarction
[{'concept': 'Q8386'}, 'P2175', 'Q12152']
SELECT DISTINCT ?p WHERE { ?p property:P2175 resource:Q12152 . ?p rdf:type ontology:Q8386 }
anisindione metoprolol bisoprolol sufinpyrazone carvedilol labetalol propranolol Cyclosporine eptifibatide Abciximab fondaparinux sodium Alteplase Epoetin alfa Bivalirudin nadolol methotrexate atenolol adenosine Anistreplase captopril Streptokinase Dalteparin clopidogrel nitroglycerin Urokinase Tocilizumab Esmolol spironolactone Timolol Tenecteplase Anakinra penbutolol verapamil acebutolol Darbepoetin alfa Nesiritide tirofiban Nitric Oxide diltiazem pindolol Exenatide ticagrelor
Methotrexate, Cyclosporine and verapamil are used as a medication for myocardial infarction
methotrexate Cyclosporine verapamil
action filter_type
action find_reverse
entity myocardial infarction
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'myocardial infarction']
SELECT DISTINCT ?p WHERE { ?p property:medical_condition_treated resource:myocardial_infarction . ?p rdf:type ontology:drug }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12152
P1196
Q502895
USER
Which people have that health problem as death circumstances ?
(c(Q502895),P1196,Q422232) (c(Q502895),P1196,Q367700) (c(Q502895),P1196,Q410291)
action filter_type
action find_reverse
entity Q12152
relation P1196
type Q502895
[{'concept': 'Q502895'}, 'P1196', 'Q422232'] [{'concept': 'Q502895'}, 'P1196', 'Q367700'] [{'concept': 'Q502895'}, 'P1196', 'Q410291']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . ?l property:P1196 resource:Q12152 }
myocardial infarction
action filter_type
action find_reverse
entity myocardial infarction
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'methotrexate'] [{'concept': 'common name'}, 'manner of death', 'Cyclosporine'] [{'concept': 'common name'}, 'manner of death', 'verapamil']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . ?l property:manner_of_death resource:myocardial_infarction }
[]
common name
Q216943 Q5231899
SYSTEM
Jacobo Árbenz, David Burge
Q216943 Q5231899
(c(Q502895),P1196,Q422232) (c(Q502895),P1196,Q367700) (c(Q502895),P1196,Q410291)
action filter_type
action find_reverse
entity Q12152
relation P1196
type Q502895
[ANSWERS] have that health problem as death circumstances
[{'concept': 'Q502895'}, 'P1196', 'Q422232'] [{'concept': 'Q502895'}, 'P1196', 'Q367700'] [{'concept': 'Q502895'}, 'P1196', 'Q410291']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . ?l property:P1196 resource:Q12152 }
Jacobo Árbenz David Burge
Jacobo Árbenz and David Burge have that health problem as death circumstances
Jacobo Árbenz David Burge
action filter_type
action find_reverse
entity myocardial infarction
relation manner of death
type common name
[{'concept': 'common name'}, 'manner of death', 'methotrexate'] [{'concept': 'common name'}, 'manner of death', 'Cyclosporine'] [{'concept': 'common name'}, 'manner of death', 'verapamil']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . ?l property:manner_of_death resource:myocardial_infarction }
[]
Clarification
Simple Question|Single Entity|Indirect
Q216943
P40
Q502895
USER
Who are an offsprings of that one ?
(Q216943,P40,c(Q502895))
action filter_type
action find
entity Q216943
relation P40
type Q502895
['Q216943', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q216943 property:P40 ?g . ?g rdf:type ontology:Q502895 }
Jacobo Árbenz
action filter_type
action find
entity Jacobo Árbenz
relation child
type common name
['Jacobo Árbenz', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Jacobo_Árbenz property:child ?g . ?g rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q216943
SYSTEM
Did you mean Jacobo Árbenz ?
Q216943 Q5231899
(Q216943,P40,c(Q502895)) (Q5231899,P40,c(Q502895))
[ANSWER]
['Q216943', 'P40', {'concept': 'Q502895'}] ['Q5231899', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q216943 property:P40 ?g . ?g rdf:type ontology:Q502895 }
Jacobo Árbenz David Burge
Did you mean Jacobo Árbenz ?
Jacobo Árbenz
['Jacobo Árbenz', 'child', {'concept': 'common name'}] ['David Burge', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Jacobo_Árbenz property:child ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q216943,P40,c(Q502895))
['Q216943', 'P40', {'concept': 'Q502895'}]
['Jacobo Árbenz', 'child', {'concept': 'common name'}]
[]
Q18162229 Q6119696
SYSTEM
Arabella Arbenz, Jacobo Arbenz Villanova
Q18162229 Q6119696
(Q216943,P40,c(Q502895))
action filter_type
action find
entity Q216943
relation P40
type Q502895
Are an offsprings of that one [ANSWERS]
['Q216943', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q216943 property:P40 ?g . ?g rdf:type ontology:Q502895 }
Arabella Arbenz Jacobo Arbenz Villanova
Are an offsprings of that one Arabella Arbenz and Jacobo Arbenz Villanova
Arabella Arbenz Jacobo Arbenz Villanova
action filter_type
action find
entity Jacobo Árbenz
relation child
type common name
['Jacobo Árbenz', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Jacobo_Árbenz property:child ?g . ?g rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by exactly 3 people ?
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?p ) WHERE { ?e property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?p = 3 ) }
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?p ) WHERE { ?e property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?p = 3 ) }
[]
musical instrument common name
SYSTEM
2
Q626035 Q726306
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?p ) WHERE { ?e property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?p = 3 ) }
glockenspiel erhu
2
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?p ) WHERE { ?e property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?p = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18162229
P21
Q290
USER
Which sex does Arabella Arbenz belong to ?
(Q18162229,P21,c(Q290))
action filter_type
action find
entity Q18162229
relation P21
type Q290
['Q18162229', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q18162229 property:P21 ?f . ?f rdf:type ontology:Q290 }
Arabella Arbenz
action filter_type
action find
entity Arabella Arbenz
relation gender
type sex
['Arabella Arbenz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Arabella_Arbenz property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q18162229,P21,c(Q290))
action filter_type
action find
entity Q18162229
relation P21
type Q290
Arabella Arbenz belongs to [ANSWER]
['Q18162229', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q18162229 property:P21 ?f . ?f rdf:type ontology:Q290 }
female
Arabella Arbenz belongs to female
female
action filter_type
action find
entity Arabella Arbenz
relation gender
type sex
['Arabella Arbenz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Arabella_Arbenz property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2074387
Q290
USER
And how about Mariano Moreno?
(Q2074387,P21,c(Q290))
action filter_type
action find
entity Q2074387
relation P21
type Q290
['Q2074387', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q2074387 property:P21 ?q . ?q rdf:type ontology:Q290 }
Mariano Moreno
action filter_type
action find
entity Mariano Moreno
relation gender
type sex
['Mariano Moreno', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Mariano_Moreno property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2074387,P21,c(Q290))
action filter_type
action find
entity Q2074387
relation P21
type Q290
[ANSWER]
['Q2074387', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q2074387 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Mariano Moreno
relation gender
type sex
['Mariano Moreno', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Mariano_Moreno property:gender ?q . ?q rdf:type ontology:sex }
[]