Simple Question (Direct)
Simple Question
Q18604341
P19
Q56061
USER
Where was Jože Udovič born ?
(Q18604341,P19,c(Q56061))
action filter_type
action find
entity Q18604341
relation P19
type Q56061
['Q18604341', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q18604341 property:P19 ?s . ?s rdf:type ontology:Q56061 }
Jože Udovič
action filter_type
action find
entity Jože Udovič
relation place of birth
type administrative territorial entity
['Jože Udovič', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Jože_Udovič property:place_of_birth ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q15860
SYSTEM
Cerknica
Q15860
(Q18604341,P19,c(Q56061))
action filter_type
action find
entity Q18604341
relation P19
type Q56061
Jože Udovič was born in [ANSWER]
['Q18604341', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q18604341 property:P19 ?s . ?s rdf:type ontology:Q56061 }
Cerknica
Jože Udovič was born in Cerknica
Cerknica
action filter_type
action find
entity Jože Udovič
relation place of birth
type administrative territorial entity
['Jože Udovič', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Jože_Udovič property:place_of_birth ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15860
P20
Q502895
USER
Which people expired at that administrative territory ?
(c(Q502895),P20,Q15860)
action filter_type
action find_reverse
entity Q15860
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q15860']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?y property:P20 resource:Q15860 }
Cerknica
action filter_type
action find_reverse
entity Cerknica
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Cerknica']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?y property:place_of_death resource:Cerknica }
[]
common name
Q697765 Q18487929
SYSTEM
Rudolf Maister, Adolf Obreza
Q697765 Q18487929
(c(Q502895),P20,Q15860)
action filter_type
action find_reverse
entity Q15860
relation P20
type Q502895
[ANSWERS] expired at that administrative territory
[{'concept': 'Q502895'}, 'P20', 'Q15860']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?y property:P20 resource:Q15860 }
Rudolf Maister Adolf Obreza
Rudolf Maister and Adolf Obreza expired at that administrative territory
Rudolf Maister Adolf Obreza
action filter_type
action find_reverse
entity Cerknica
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Cerknica']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?y property:place_of_death resource:Cerknica }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q697765 Q18487929
P21
Q290
USER
Which sexes do Rudolf Maister and Adolf Obreza belong to ?
(Q697765,P21,c(Q290)) (Q18487929,P21,c(Q290))
action union
action filter_type
action find
entity Q697765
relation P21
type Q290
action filter_type
action find
entity Q18487929
relation P21
type Q290
['Q697765', 'P21', {'concept': 'Q290'}] ['Q18487929', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?e property:P21 ?j . VALUES ( ?e ) { ( resource:Q697765 ) ( resource:Q18487929 ) } }
Rudolf Maister Adolf Obreza
action union
action filter_type
action find
entity Rudolf Maister
relation gender
type sex
action filter_type
action find
entity Adolf Obreza
relation gender
type sex
['Rudolf Maister', 'gender', {'concept': 'sex'}] ['Adolf Obreza', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?e property:gender ?j . VALUES ( ?e ) { ( resource:Rudolf_Maister ) ( resource:Adolf_Obreza ) } }
[]
sex
Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097
(Q697765,P21,c(Q290)) (Q18487929,P21,c(Q290))
action union
action filter_type
action find
entity Q697765
relation P21
type Q290
action filter_type
action find
entity Q18487929
relation P21
type Q290
Rudolf Maister and Adolf Obreza belong to [ANSWER] and [ANSWER]
['Q697765', 'P21', {'concept': 'Q290'}] ['Q18487929', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { ?e property:P21 ?j . VALUES ( ?e ) { ( resource:Q697765 ) ( resource:Q18487929 ) } }
male male
Rudolf Maister and Adolf Obreza belong to male and male
male male
action union
action filter_type
action find
entity Rudolf Maister
relation gender
type sex
action filter_type
action find
entity Adolf Obreza
relation gender
type sex
['Rudolf Maister', 'gender', {'concept': 'sex'}] ['Adolf Obreza', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { ?e property:gender ?j . VALUES ( ?e ) { ( resource:Rudolf_Maister ) ( resource:Adolf_Obreza ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q697765
P607
Q198
USER
Which war did Rudolf Maister take part in ?
(Q6581097,P607,c(Q198)) (Q6581097,P607,c(Q198))
action filter_type
action find
entity Q697765
relation P607
type Q198
['Q6581097', 'P607', {'concept': 'Q198'}] ['Q6581097', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?t WHERE { resource:Q697765 property:P607 ?t . ?t rdf:type ontology:Q198 }
Rudolf Maister
action filter_type
action find
entity Rudolf Maister
relation conflict
type war
['male', 'conflict', {'concept': 'war'}] ['male', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?t WHERE { resource:Rudolf_Maister property:conflict ?t . ?t rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q6581097,P607,c(Q198)) (Q6581097,P607,c(Q198))
action filter_type
action find
entity Q697765
relation P607
type Q198
Rudolf Maister took part in [ANSWER]
['Q6581097', 'P607', {'concept': 'Q198'}] ['Q6581097', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?t WHERE { resource:Q697765 property:P607 ?t . ?t rdf:type ontology:Q198 }
World War I
Rudolf Maister took part in World War I
World War I
action filter_type
action find
entity Rudolf Maister
relation conflict
type war
['male', 'conflict', {'concept': 'war'}] ['male', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?t WHERE { resource:Rudolf_Maister property:conflict ?t . ?t rdf:type ontology:war }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q361 Q6793848
P607
Q502895
USER
Did that war take part in Maurizio Massimiani ?
(Q6793848,P607,Q361)
action is_in
entity Q6793848
action find
entity Q361
relation P607
['Q6793848', 'P607', 'Q361']
ASK WHERE { resource:Q361 property:P607 resource:Q6793848 }
World War I Maurizio Massimiani
action is_in
entity Maurizio Massimiani
action find
entity World War I
relation conflict
['Maurizio Massimiani', 'conflict', 'World War I']
ASK WHERE { resource:World_War_I property:conflict resource:Maurizio_Massimiani }
[]
common name
SYSTEM
NO
(Q6793848,P607,Q361)
action is_in
entity Q6793848
action find
entity Q361
relation P607
[ANSWER]
['Q6793848', 'P607', 'Q361']
ASK WHERE { resource:Q361 property:P607 resource:Q6793848 }
No
action is_in
entity Maurizio Massimiani
action find
entity World War I
relation conflict
['Maurizio Massimiani', 'conflict', 'World War I']
ASK WHERE { resource:World_War_I property:conflict resource:Maurizio_Massimiani }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q15860 Q546363 Q215
P17
Q15617994
USER
Is Cerknica present in Hemdingen and Slovenia ?
(Q15860,P17,Q546363) (Q15860,P17,Q215)
action is_in
entity Q15860
action intersection
action find_reverse
entity Q546363
relation P17
action find_reverse
entity Q215
relation P17
['Q15860', 'P17', 'Q546363'] ['Q15860', 'P17', 'Q215']
ASK WHERE { resource:Q15860 property:P17 resource:Q546363 . resource:Q15860 property:P17 resource:Q215 }
Cerknica Hemdingen Slovenia
action is_in
entity Cerknica
action intersection
action find_reverse
entity Hemdingen
relation country
action find_reverse
entity Slovenia
relation country
['Cerknica', 'country', 'Hemdingen'] ['Cerknica', 'country', 'Slovenia']
ASK WHERE { resource:Cerknica property:country resource:Hemdingen . resource:Cerknica property:country resource:Slovenia }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q15860,P17,Q546363) (Q15860,P17,Q215)
action is_in
entity Q15860
action intersection
action find_reverse
entity Q546363
relation P17
action find_reverse
entity Q215
relation P17
[ANSWER]
['Q15860', 'P17', 'Q546363'] ['Q15860', 'P17', 'Q215']
ASK WHERE { resource:Q15860 property:P17 resource:Q546363 . resource:Q15860 property:P17 resource:Q215 }
NO and YES respectively
action is_in
entity Cerknica
action intersection
action find_reverse
entity Hemdingen
relation country
action find_reverse
entity Slovenia
relation country
['Cerknica', 'country', 'Hemdingen'] ['Cerknica', 'country', 'Slovenia']
ASK WHERE { resource:Cerknica property:country resource:Hemdingen . resource:Cerknica property:country resource:Slovenia }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9612303 Q6793848
P27
Q15617994
USER
Which administrative territories are the native countriesof Maurizio Massimiani or Ana Mafalda ?
OR((Q6793848,P27,c(Q15617994)), (Q9612303,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6793848
relation P27
action find
entity Q9612303
relation P27
type Q15617994
{'OR': [['Q6793848', 'P27', {'concept': 'Q15617994'}], ['Q9612303', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { VALUES ( ?e ) { ( resource:Q6793848 ) ( resource:Q9612303 ) } . ?e property:P27 ?x } }
Ana Mafalda Maurizio Massimiani
action filter_type
action union
action find
entity Maurizio Massimiani
relation country of citizenship
action find
entity Ana Mafalda
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Maurizio Massimiani', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ana Mafalda', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?e ) { ( resource:Maurizio_Massimiani ) ( resource:Ana_Mafalda ) } . ?e property:country_of_citizenship ?x } }
[]
designation for an administrative territorial entity
Q38 Q45
SYSTEM
Italy, Portugal
Q38 Q45
OR((Q6793848,P27,c(Q15617994)), (Q9612303,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6793848
relation P27
action find
entity Q9612303
relation P27
type Q15617994
[ANSWERS] are the native countriesof Maurizio Massimiani or Ana Mafalda
{'OR': [['Q6793848', 'P27', {'concept': 'Q15617994'}], ['Q9612303', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { VALUES ( ?e ) { ( resource:Q6793848 ) ( resource:Q9612303 ) } . ?e property:P27 ?x } }
Italy Portugal
Italy and Portugal are the native countriesof Maurizio Massimiani or Ana Mafalda
Italy Portugal
action filter_type
action union
action find
entity Maurizio Massimiani
relation country of citizenship
action find
entity Ana Mafalda
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Maurizio Massimiani', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ana Mafalda', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?e ) { ( resource:Maurizio_Massimiani ) ( resource:Ana_Mafalda ) } . ?e property:country_of_citizenship ?x } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q389511
P495
Q838948
USER
Does Sostiene Pereira originate at those administrative territories ?
(Q389511,P495,Q38) (Q389511,P495,Q45)
action is_in
entity prev_answer
action find
entity Q389511
relation P495
['Q389511', 'P495', 'Q38'] ['Q389511', 'P495', 'Q45']
ASK WHERE { VALUES ( ?y ) { ( resource:Q38 ) ( resource:Q45 ) } . resource:Q389511 property:P495 ?y }
Sostiene Pereira
action is_in
entity prev_answer
action find
entity Sostiene Pereira
relation country of origin
['Sostiene Pereira', 'country of origin', 'Italy'] ['Sostiene Pereira', 'country of origin', 'Portugal']
ASK WHERE { VALUES ( ?y ) { ( resource:Italy ) ( resource:Portugal ) } . resource:Sostiene_Pereira property:country_of_origin ?y }
[]
work of art
SYSTEM
YES
(Q389511,P495,Q38) (Q389511,P495,Q45)
action is_in
entity prev_answer
action find
entity Q389511
relation P495
[ANSWER]
['Q389511', 'P495', 'Q38'] ['Q389511', 'P495', 'Q45']
ASK WHERE { VALUES ( ?y ) { ( resource:Q38 ) ( resource:Q45 ) } . resource:Q389511 property:P495 ?y }
Yes
action is_in
entity prev_answer
action find
entity Sostiene Pereira
relation country of origin
['Sostiene Pereira', 'country of origin', 'Italy'] ['Sostiene Pereira', 'country of origin', 'Portugal']
ASK WHERE { VALUES ( ?y ) { ( resource:Italy ) ( resource:Portugal ) } . resource:Sostiene_Pereira property:country_of_origin ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q697765
P410
Q4189293
USER
Which title has Rudolf Maister achieved ?
(Q697765,P410,c(Q4189293))
action filter_type
action find
entity Q697765
relation P410
type Q4189293
['Q697765', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?b WHERE { resource:Q697765 property:P410 ?b . ?b rdf:type ontology:Q4189293 }
Rudolf Maister
action filter_type
action find
entity Rudolf Maister
relation military rank
type title
['Rudolf Maister', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?b WHERE { resource:Rudolf_Maister property:military_rank ?b . ?b rdf:type ontology:title }
[]
title
Q2487961
SYSTEM
divisional general
Q2487961
(Q697765,P410,c(Q4189293))
action filter_type
action find
entity Q697765
relation P410
type Q4189293
Rudolf Maister has achieved rank [ANSWER]
['Q697765', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?b WHERE { resource:Q697765 property:P410 ?b . ?b rdf:type ontology:Q4189293 }
divisional general
Rudolf Maister has achieved rank divisional general
divisional general
action filter_type
action find
entity Rudolf Maister
relation military rank
type title
['Rudolf Maister', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?b WHERE { resource:Rudolf_Maister property:military_rank ?b . ?b rdf:type ontology:title }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7052535
Q4189293
USER
And what about Norman MacEwen?
(Q7052535,P410,c(Q4189293))
action filter_type
action find
entity Q7052535
relation P410
type Q4189293
['Q7052535', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?y WHERE { resource:Q7052535 property:P410 ?y . ?y rdf:type ontology:Q4189293 }
Norman MacEwen
action filter_type
action find
entity Norman MacEwen
relation military rank
type title
['Norman MacEwen', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?y WHERE { resource:Norman_MacEwen property:military_rank ?y . ?y rdf:type ontology:title }
[]
title
Q3106078
SYSTEM
air vice-marshal
Q3106078
(Q7052535,P410,c(Q4189293))
action filter_type
action find
entity Q7052535
relation P410
type Q4189293
[ANSWER]
['Q7052535', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?y WHERE { resource:Q7052535 property:P410 ?y . ?y rdf:type ontology:Q4189293 }
air vice-marshal
air vice-marshal
action filter_type
action find
entity Norman MacEwen
relation military rank
type title
['Norman MacEwen', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?y WHERE { resource:Norman_MacEwen property:military_rank ?y . ?y rdf:type ontology:title }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q3106078 Q25937205
P410
Q502895
USER
Does Victor Gomes hold a military rank named that title ?
(Q25937205,P410,Q3106078)
action is_in
entity Q25937205
action find
entity Q3106078
relation P410
['Q25937205', 'P410', 'Q3106078']
ASK WHERE { resource:Q3106078 property:P410 resource:Q25937205 }
air vice-marshal Victor Gomes
action is_in
entity Victor Gomes
action find
entity air vice-marshal
relation military rank
['Victor Gomes', 'military rank', 'air vice-marshal']
ASK WHERE { resource:air_vice-marshal property:military_rank resource:Victor_Gomes }
[]
common name
SYSTEM
NO
(Q25937205,P410,Q3106078)
action is_in
entity Q25937205
action find
entity Q3106078
relation P410
[ANSWER]
['Q25937205', 'P410', 'Q3106078']
ASK WHERE { resource:Q3106078 property:P410 resource:Q25937205 }
No
action is_in
entity Victor Gomes
action find
entity air vice-marshal
relation military rank
['Victor Gomes', 'military rank', 'air vice-marshal']
ASK WHERE { resource:air_vice-marshal property:military_rank resource:Victor_Gomes }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P607
Q198 Q502895 Q2235308
USER
Which wars did exactly 1 people or ship types take part in ?
(c(Q502895)|c(Q2235308),P607,c(Q198))
action equal
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
value 1
[[{'concept': 'Q502895'}, {'concept': 'Q2235308'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?t ) WHERE { VALUES ( ?x ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } . ?m rdf:type ?x } GROUP BY ?a } . FILTER ( ?t = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation conflict
type war
type common name
action find_reverse_tuple_counts
relation conflict
type war
type ship type
value 1
[[{'concept': 'common name'}, {'concept': 'ship type'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?t ) WHERE { VALUES ( ?x ) { ( ontology:common_name ) ( ontology:ship_type ) } . ?m rdf:type ?x } GROUP BY ?a } . FILTER ( ?t = 1 ) }
[]
war common name ship type
Q2658255 Q1021160 Q3778746
SYSTEM
Byzantine civil war of 1341–1347, Armagnac–Burgundian Civil War, Sioux Wars
Q1006311 Q3778746 Q1021160 Q633862 Q2105495 Q2658255 Q2086498 Q75984 Q1021172 Q1052332 Q1070890
(c(Q502895)|c(Q2235308),P607,c(Q198))
action equal
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
value 1
Part exactly 1 people or ship types took in the [ANSWERS]
[[{'concept': 'Q502895'}, {'concept': 'Q2235308'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?t ) WHERE { VALUES ( ?x ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } . ?m rdf:type ?x } GROUP BY ?a } . FILTER ( ?t = 1 ) }
war of national liberation Sioux Wars Armagnac–Burgundian Civil War Cold War 1383-85 Portuguese Interregnum Byzantine civil war of 1341–1347 First Barons' War Dirty War Republic of the Congo Civil War War in Somalia Georgian Civil War
Part exactly 1 people or ship types took in the Byzantine civil war of 1341–1347, Armagnac–Burgundian Civil War and Sioux Wars
Byzantine civil war of 1341–1347 Armagnac–Burgundian Civil War Sioux Wars
action equal
action union
action find_reverse_tuple_counts
relation conflict
type war
type common name
action find_reverse_tuple_counts
relation conflict
type war
type ship type
value 1
[[{'concept': 'common name'}, {'concept': 'ship type'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?t ) WHERE { VALUES ( ?x ) { ( ontology:common_name ) ( ontology:ship_type ) } . ?m rdf:type ?x } GROUP BY ?a } . FILTER ( ?t = 1 ) }
[]