Simple Question (Direct)
Simple Question
Q887391
P106
Q12737077
USER
What does Oreste Zamor do for a living ?
(Q887391,P106,c(Q12737077))
action filter_type
action find
entity Q887391
relation P106
type Q12737077
['Q887391', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q887391 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Oreste Zamor
action filter_type
action find
entity Oreste Zamor
relation occupation
type occupation
['Oreste Zamor', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Oreste_Zamor property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q887391,P106,c(Q12737077))
action filter_type
action find
entity Q887391
relation P106
type Q12737077
Oreste Zamor does a [ANSWER] for a living
['Q887391', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q887391 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
politician
Oreste Zamor does a politician for a living
politician
action filter_type
action find
entity Oreste Zamor
relation occupation
type occupation
['Oreste Zamor', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Oreste_Zamor property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q887391
P1196
Q1914636
USER
Which situation led to the death of Oreste Zamor ?
(Q887391,P1196,c(Q1914636))
action filter_type
action find
entity Q887391
relation P1196
type Q1914636
['Q887391', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?k WHERE { resource:Q887391 property:P1196 ?k . ?k rdf:type ontology:Q1914636 }
Oreste Zamor
action filter_type
action find
entity Oreste Zamor
relation manner of death
type activity
['Oreste Zamor', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?k WHERE { resource:Oreste_Zamor property:manner_of_death ?k . ?k rdf:type ontology:activity }
[]
activity
Q149086
SYSTEM
homicide
Q149086
(Q887391,P1196,c(Q1914636))
action filter_type
action find
entity Q887391
relation P1196
type Q1914636
[ANSWER] led to the death of Oreste Zamor
['Q887391', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?k WHERE { resource:Q887391 property:P1196 ?k . ?k rdf:type ontology:Q1914636 }
homicide
Homicide led to the death of Oreste Zamor
homicide
action filter_type
action find
entity Oreste Zamor
relation manner of death
type activity
['Oreste Zamor', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?k WHERE { resource:Oreste_Zamor property:manner_of_death ?k . ?k rdf:type ontology:activity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q887391
P20
Q515
USER
Which city is the place of death of Oreste Zamor ?
(Q887391,P20,c(Q515))
action filter_type
action find
entity Q887391
relation P20
type Q515
['Q887391', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q515 . resource:Q887391 property:P20 ?y }
Oreste Zamor
action filter_type
action find
entity Oreste Zamor
relation place of death
type city
['Oreste Zamor', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:city . resource:Oreste_Zamor property:place_of_death ?y }
[]
city
Q34261
SYSTEM
Port-au-Prince
Q34261
(Q887391,P20,c(Q515))
action filter_type
action find
entity Q887391
relation P20
type Q515
[ANSWER] is the place of death of Oreste Zamor
['Q887391', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q515 . resource:Q887391 property:P20 ?y }
Port-au-Prince
Port-au-Prince is the place of death of Oreste Zamor
Port-au-Prince
action filter_type
action find
entity Oreste Zamor
relation place of death
type city
['Oreste Zamor', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:city . resource:Oreste_Zamor property:place_of_death ?y }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q5850625 Q887391
P20
Q515
USER
Or Eugenio de Matta Vargas?
OR((Q887391,P20,c(Q515)), (Q5850625,P20,c(Q515)))
action filter_type
action union
action find
entity Q887391
relation P20
action find
entity Q5850625
relation P20
type Q515
{'OR': [['Q887391', 'P20', {'concept': 'Q515'}], ['Q5850625', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?c WHERE { { ?r property:P20 ?c . VALUES ( ?r ) { ( resource:Q887391 ) ( resource:Q5850625 ) } } . ?c rdf:type ontology:Q515 }
Eugenio de Matta Vargas Oreste Zamor
action filter_type
action union
action find
entity Oreste Zamor
relation place of death
action find
entity Eugenio de Matta Vargas
relation place of death
type city
{'OR': [['Oreste Zamor', 'place of death', {'concept': 'city'}], ['Eugenio de Matta Vargas', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?c WHERE { { ?r property:place_of_death ?c . VALUES ( ?r ) { ( resource:Oreste_Zamor ) ( resource:Eugenio_de_Matta_Vargas ) } } . ?c rdf:type ontology:city }
[]
city
Q2887 Q34261
SYSTEM
Santiago, Port-au-Prince
Q2887 Q34261
OR((Q887391,P20,c(Q515)), (Q5850625,P20,c(Q515)))
action filter_type
action union
action find
entity Q887391
relation P20
action find
entity Q5850625
relation P20
type Q515
[ANSWERS]
{'OR': [['Q887391', 'P20', {'concept': 'Q515'}], ['Q5850625', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?c WHERE { { ?r property:P20 ?c . VALUES ( ?r ) { ( resource:Q887391 ) ( resource:Q5850625 ) } } . ?c rdf:type ontology:Q515 }
Santiago Port-au-Prince
Santiago Port-au-Prince
action filter_type
action union
action find
entity Oreste Zamor
relation place of death
action find
entity Eugenio de Matta Vargas
relation place of death
type city
{'OR': [['Oreste Zamor', 'place of death', {'concept': 'city'}], ['Eugenio de Matta Vargas', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?c WHERE { { ?r property:place_of_death ?c . VALUES ( ?r ) { ( resource:Oreste_Zamor ) ( resource:Eugenio_de_Matta_Vargas ) } } . ?c rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1630641
P190
Q515
USER
Are Hostomice twin town of those ones ?
(Q1630641,P190,Q2887) (Q1630641,P190,Q34261)
action is_in
entity prev_answer
action find
entity Q1630641
relation P190
['Q1630641', 'P190', 'Q2887'] ['Q1630641', 'P190', 'Q34261']
ASK WHERE { VALUES ( ?r ) { ( resource:Q2887 ) ( resource:Q34261 ) } . resource:Q1630641 property:P190 ?r }
Hostomice
action is_in
entity prev_answer
action find
entity Hostomice
relation sister city
['Hostomice', 'sister city', 'Santiago'] ['Hostomice', 'sister city', 'Port-au-Prince']
ASK WHERE { VALUES ( ?r ) { ( resource:Santiago ) ( resource:Port-au-Prince ) } . resource:Hostomice property:sister_city ?r }
[]
city
SYSTEM
NO
(Q1630641,P190,Q2887) (Q1630641,P190,Q34261)
action is_in
entity prev_answer
action find
entity Q1630641
relation P190
[ANSWER]
['Q1630641', 'P190', 'Q2887'] ['Q1630641', 'P190', 'Q34261']
ASK WHERE { VALUES ( ?r ) { ( resource:Q2887 ) ( resource:Q34261 ) } . resource:Q1630641 property:P190 ?r }
No
action is_in
entity prev_answer
action find
entity Hostomice
relation sister city
['Hostomice', 'sister city', 'Santiago'] ['Hostomice', 'sister city', 'Port-au-Prince']
ASK WHERE { VALUES ( ?r ) { ( resource:Santiago ) ( resource:Port-au-Prince ) } . resource:Hostomice property:sister_city ?r }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q1829 Q2887
P190
Q56061
USER
Which administrative territories are sister towns of Santiago but not Kaliningrad ?
AND((Q2887,P190,c(Q56061)), NOT((Q1829,P190,c(Q56061))))
action filter_type
action difference
action find
entity Q2887
relation P190
action find
entity Q1829
relation P190
type Q56061
{'AND': [['Q2887', 'P190', {'concept': 'Q56061'}], {'NOT': [['Q1829', 'P190', {'concept': 'Q56061'}]]}]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q2887 property:P190 ?u . MINUS { resource:Q1829 property:P190 ?u } }
Kaliningrad Santiago
action filter_type
action difference
action find
entity Santiago
relation sister city
action find
entity Kaliningrad
relation sister city
type administrative territorial entity
{'AND': [['Santiago', 'sister city', {'concept': 'administrative territorial entity'}], {'NOT': [['Kaliningrad', 'sister city', {'concept': 'administrative territorial entity'}]]}]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Santiago property:sister_city ?u . MINUS { resource:Kaliningrad property:sister_city ?u } }
[]
administrative territorial entity
Q956 Q2807 Q1491 Q43509 Q174 Q1524 Q3070 Q685509 Q3640 Q241767
SYSTEM
Some of them are Beijing, Madrid, La Paz, Guayaquil, São Paulo, Athens, San José, Santiago de Veraguas, Ankara, Plasencia
Q3070 Q1524 Q685509 Q34820 Q43509 Q2807 Q956 Q241767 Q3640 Q1491 Q174
AND((Q2887,P190,c(Q56061)), NOT((Q1829,P190,c(Q56061))))
action filter_type
action difference
action find
entity Q2887
relation P190
action find
entity Q1829
relation P190
type Q56061
[ANSWERS] are sister towns of Santiago but not Kaliningrad
{'AND': [['Q2887', 'P190', {'concept': 'Q56061'}], {'NOT': [['Q1829', 'P190', {'concept': 'Q56061'}]]}]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q2887 property:P190 ?u . MINUS { resource:Q1829 property:P190 ?u } }
San José Athens Santiago de Veraguas Santo Domingo Guayaquil Madrid Beijing Plasencia Ankara La Paz São Paulo
Beijing, Madrid, La Paz, Guayaquil, São Paulo, Athens, San José, Santiago de Veraguas, Ankara and Plasencia are sister towns of Santiago but not Kaliningrad
Beijing Madrid La Paz Guayaquil São Paulo Athens San José Santiago de Veraguas Ankara Plasencia
action filter_type
action difference
action find
entity Santiago
relation sister city
action find
entity Kaliningrad
relation sister city
type administrative territorial entity
{'AND': [['Santiago', 'sister city', {'concept': 'administrative territorial entity'}], {'NOT': [['Kaliningrad', 'sister city', {'concept': 'administrative territorial entity'}]]}]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Santiago property:sister_city ?u . MINUS { resource:Kaliningrad property:sister_city ?u } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P417
Q1445650 Q502895 Q56061
USER
How many administrative territories have greater number of holidays and people as their patron saint than that administrative territory ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { ?z property:Q28914 ?j . VALUES ( ?j ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q502895 }
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { ?z property:patron_saint ?j . VALUES ( ?j ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday . ?x rdf:type ontology:common_name }
[]
holiday common name administrative territorial entity
Comparative|Count over More/Less|Mult. entity type|Clarification
Q43509
SYSTEM
Did you mean Guayaquil ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { ?z property:Q28914 ?j . VALUES ( ?j ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q502895 }
Did you mean Guayaquil ?
Guayaquil
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { ?z property:patron_saint ?j . VALUES ( ?j ) { ( ?y ) ( ?x ) } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday . ?x rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Madrid. Could you tell me the answer for that?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
Q2807
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
[]
SYSTEM
2
Q39519 Q220
(c(Q56061),P417,c(Q1445650)|c(Q502895))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 . ?x rdf:type ontology:Q502895 }
Brinzio Rome
2
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday . ?x rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2887
P937
Q502895
USER
Who are an people who works at Santiago ?
(c(Q502895),P937,Q2887)
action filter_type
action find_reverse
entity Q2887
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q2887']
SELECT DISTINCT ?q WHERE { ?q property:P937 resource:Q2887 . ?q rdf:type ontology:Q502895 }
Santiago
action filter_type
action find_reverse
entity Santiago
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Santiago']
SELECT DISTINCT ?q WHERE { ?q property:work_location resource:Santiago . ?q rdf:type ontology:common_name }
[]
common name
Q2033964 Q16856329 Q616169
SYSTEM
Oskar Schmieder, Roberto Yáñez, Jorge Oteiza
Q605194 Q85228 Q16856329 Q443777 Q2693251 Q100529 Q523843 Q994198 Q616169 Q1491364 Q729817 Q65843 Q2033964 Q1162033 Q1220466 Q100681 Q1579794
(c(Q502895),P937,Q2887)
action filter_type
action find_reverse
entity Q2887
relation P937
type Q502895
An people works at Santiago are [ANSWERS]
[{'concept': 'Q502895'}, 'P937', 'Q2887']
SELECT DISTINCT ?q WHERE { ?q property:P937 resource:Q2887 . ?q rdf:type ontology:Q502895 }
Antonio Skármeta Emil Körner Roberto Yáñez Orlando Letelier Estéban Eitler Rudolf Lenz Andrés Arteaga Manieu José Toribio Medina Jorge Oteiza Horst von Rom Pepo Uwe Schmidt Oskar Schmieder Daniel Passent Diego Irarrázaval August Tafelmacher Hans Gerd Kübel
An people works at Santiago are Oskar Schmieder, Roberto Yáñez and Jorge Oteiza
Oskar Schmieder Roberto Yáñez Jorge Oteiza
action filter_type
action find_reverse
entity Santiago
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Santiago']
SELECT DISTINCT ?q WHERE { ?q property:work_location resource:Santiago . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2033964
P607
Q198
USER
What was the war that Oskar Schmieder took part in
(Q2033964,P607,c(Q198))
action filter_type
action find
entity Q2033964
relation P607
type Q198
['Q2033964', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?u WHERE { resource:Q2033964 property:P607 ?u . ?u rdf:type ontology:Q198 }
Oskar Schmieder
action filter_type
action find
entity Oskar Schmieder
relation conflict
type war
['Oskar Schmieder', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?u WHERE { resource:Oskar_Schmieder property:conflict ?u . ?u rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q2033964,P607,c(Q198))
action filter_type
action find
entity Q2033964
relation P607
type Q198
The war that Oskar Schmieder took part in was during [ANSWER]
['Q2033964', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?u WHERE { resource:Q2033964 property:P607 ?u . ?u rdf:type ontology:Q198 }
World War I
The war that Oskar Schmieder took part in was during World War I
World War I
action filter_type
action find
entity Oskar Schmieder
relation conflict
type war
['Oskar Schmieder', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?u WHERE { resource:Oskar_Schmieder property:conflict ?u . ?u rdf:type ontology:war }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7605599
Q198
USER
And what about Stedman Prescott?
(Q7605599,P607,c(Q198))
action filter_type
action find
entity Q7605599
relation P607
type Q198
['Q7605599', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?k WHERE { resource:Q7605599 property:P607 ?k . ?k rdf:type ontology:Q198 }
Stedman Prescott
action filter_type
action find
entity Stedman Prescott
relation conflict
type war
['Stedman Prescott', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?k WHERE { resource:Stedman_Prescott property:conflict ?k . ?k rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q7605599,P607,c(Q198))
action filter_type
action find
entity Q7605599
relation P607
type Q198
[ANSWER]
['Q7605599', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?k WHERE { resource:Q7605599 property:P607 ?k . ?k rdf:type ontology:Q198 }
World War I
World War I
action filter_type
action find
entity Stedman Prescott
relation conflict
type war
['Stedman Prescott', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?k WHERE { resource:Stedman_Prescott property:conflict ?k . ?k rdf:type ontology:war }
[]