Simple Question (Direct)
Simple Question
Q854484
P20
Q56061
USER
Which administrative territory is the place of death of István Bényei ?
(Q854484,P20,c(Q56061))
action filter_type
action find
entity Q854484
relation P20
type Q56061
['Q854484', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q854484 property:P20 ?h }
István Bényei
action filter_type
action find
entity István Bényei
relation place of death
type administrative territorial entity
['István Bényei', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:István_Bényei property:place_of_death ?h }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q854484,P20,c(Q56061))
action filter_type
action find
entity Q854484
relation P20
type Q56061
[ANSWER] is the place of death of István Bényei
['Q854484', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q854484 property:P20 ?h }
Budapest
Budapest is the place of death of István Bényei
Budapest
action filter_type
action find
entity István Bényei
relation place of death
type administrative territorial entity
['István Bényei', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:István_Bényei property:place_of_death ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q854484
P21
Q290
USER
What is the sex of István Bényei ?
(Q854484,P21,c(Q290))
action filter_type
action find
entity Q854484
relation P21
type Q290
['Q854484', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q854484 property:P21 ?o . ?o rdf:type ontology:Q290 }
István Bényei
action filter_type
action find
entity István Bényei
relation gender
type sex
['István Bényei', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:István_Bényei property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q854484,P21,c(Q290))
action filter_type
action find
entity Q854484
relation P21
type Q290
The sex of István Bényei is the [ANSWER]
['Q854484', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q854484 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
The sex of István Bényei is the male
male
action filter_type
action find
entity István Bényei
relation gender
type sex
['István Bényei', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:István_Bényei property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q854484
P106
Q12737077
USER
What are the professions of that person ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q854484
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q854484 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
István Bényei
action filter_type
action find
entity István Bényei
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:István_Bényei property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q33999 Q36180 Q1776724
SYSTEM
actor, writer, theatre manager
Q33999 Q36180 Q1776724
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q854484
relation P106
type Q12737077
The professions of that person are [ANSWERS]
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q854484 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
actor writer theatre manager
The professions of that person are actor, writer and theatre manager
actor writer theatre manager
action filter_type
action find
entity István Bényei
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:István_Bényei property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1605331
P106
Q502895
USER
Do Horst Brie have a job as those occupations ?
(Q1605331,P106,Q33999) (Q1605331,P106,Q36180) (Q1605331,P106,Q1776724)
action is_in
entity prev_answer
action find
entity Q1605331
relation P106
['Q1605331', 'P106', 'Q33999'] ['Q1605331', 'P106', 'Q36180'] ['Q1605331', 'P106', 'Q1776724']
ASK WHERE { VALUES ( ?q ) { ( resource:Q33999 ) ( resource:Q36180 ) ( resource:Q1776724 ) } . resource:Q1605331 property:P106 ?q }
Horst Brie
action is_in
entity prev_answer
action find
entity Horst Brie
relation occupation
['Horst Brie', 'occupation', 'actor'] ['Horst Brie', 'occupation', 'writer'] ['Horst Brie', 'occupation', 'theatre manager']
ASK WHERE { VALUES ( ?q ) { ( resource:actor ) ( resource:writer ) ( resource:theatre_manager ) } . resource:Horst_Brie property:occupation ?q }
[]
common name
SYSTEM
NO
(Q1605331,P106,Q33999) (Q1605331,P106,Q36180) (Q1605331,P106,Q1776724)
action is_in
entity prev_answer
action find
entity Q1605331
relation P106
[ANSWER]
['Q1605331', 'P106', 'Q33999'] ['Q1605331', 'P106', 'Q36180'] ['Q1605331', 'P106', 'Q1776724']
ASK WHERE { VALUES ( ?q ) { ( resource:Q33999 ) ( resource:Q36180 ) ( resource:Q1776724 ) } . resource:Q1605331 property:P106 ?q }
No
action is_in
entity prev_answer
action find
entity Horst Brie
relation occupation
['Horst Brie', 'occupation', 'actor'] ['Horst Brie', 'occupation', 'writer'] ['Horst Brie', 'occupation', 'theatre manager']
ASK WHERE { VALUES ( ?q ) { ( resource:actor ) ( resource:writer ) ( resource:theatre_manager ) } . resource:Horst_Brie property:occupation ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q854484
P27
Q15617994
USER
Which administrative territory is István Bényei an inhabitant of ?
(Q854484,P27,c(Q15617994))
action filter_type
action find
entity Q854484
relation P27
type Q15617994
['Q854484', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q854484 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
István Bényei
action filter_type
action find
entity István Bényei
relation country of citizenship
type designation for an administrative territorial entity
['István Bényei', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:István_Bényei property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q854484,P27,c(Q15617994))
action filter_type
action find
entity Q854484
relation P27
type Q15617994
[ANSWER] is István Bényei an inhabitant of
['Q854484', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q854484 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Hungary
Hungary is István Bényei an inhabitant of
Hungary
action filter_type
action find
entity István Bényei
relation country of citizenship
type designation for an administrative territorial entity
['István Bényei', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:István_Bényei property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16239795
Q15617994
USER
And how about Liu Yang?
(Q16239795,P27,c(Q15617994))
action filter_type
action find
entity Q16239795
relation P27
type Q15617994
['Q16239795', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q16239795 property:P27 ?f }
Liu Yang
action filter_type
action find
entity Liu Yang
relation country of citizenship
type designation for an administrative territorial entity
['Liu Yang', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Liu_Yang property:country_of_citizenship ?f }
[]
designation for an administrative territorial entity
Q148
SYSTEM
People's Republic of China
Q148
(Q16239795,P27,c(Q15617994))
action filter_type
action find
entity Q16239795
relation P27
type Q15617994
[ANSWER]
['Q16239795', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q16239795 property:P27 ?f }
People's Republic of China
People's Republic of China
action filter_type
action find
entity Liu Yang
relation country of citizenship
type designation for an administrative territorial entity
['Liu Yang', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Liu_Yang property:country_of_citizenship ?f }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q148 Q408 Q2102493
P530
Q1048835
USER
Does that administrative territory have ambassadorial relations with Australia and Alvorada ?
(Q148,P530,Q408) (Q148,P530,Q2102493)
action is_in
entity Q148
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q2102493
relation P530
['Q148', 'P530', 'Q408'] ['Q148', 'P530', 'Q2102493']
ASK WHERE { resource:Q148 property:P530 resource:Q408 . resource:Q148 property:P530 resource:Q2102493 }
People's Republic of China Australia Alvorada
action is_in
entity People's Republic of China
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Alvorada
relation diplomatic relation
["People's Republic of China", 'diplomatic relation', 'Australia'] ["People's Republic of China", 'diplomatic relation', 'Alvorada']
ASK WHERE { resource:People's_Republic_of_China property:diplomatic_relation resource:Australia . resource:People's_Republic_of_China property:diplomatic_relation resource:Alvorada }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q148,P530,Q408) (Q148,P530,Q2102493)
action is_in
entity Q148
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q2102493
relation P530
[ANSWER]
['Q148', 'P530', 'Q408'] ['Q148', 'P530', 'Q2102493']
ASK WHERE { resource:Q148 property:P530 resource:Q408 . resource:Q148 property:P530 resource:Q2102493 }
YES and NO respectively
action is_in
entity People's Republic of China
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Alvorada
relation diplomatic relation
["People's Republic of China", 'diplomatic relation', 'Australia'] ["People's Republic of China", 'diplomatic relation', 'Alvorada']
ASK WHERE { resource:People's_Republic_of_China property:diplomatic_relation resource:Australia . resource:People's_Republic_of_China property:diplomatic_relation resource:Alvorada }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q153494 Q2102493
P190 P17
Q15617994
USER
Which administrative territories are Alvorada a part of or are twin towns of Rothenburg ob der Tauber ?
OR((Q2102493,P17,c(Q15617994)), (Q153494,P190,c(Q15617994)))
action filter_type
action union
action find
entity Q2102493
relation P17
action find
entity Q153494
relation P190
type Q15617994
{'OR': [['Q2102493', 'P17', {'concept': 'Q15617994'}], ['Q153494', 'P190', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q2102493 property:P17 ?f } UNION { resource:Q153494 property:P190 ?f } } . ?f rdf:type ontology:Q15617994 }
Rothenburg ob der Tauber Alvorada
action filter_type
action union
action find
entity Alvorada
relation country
action find
entity Rothenburg ob der Tauber
relation sister city
type designation for an administrative territorial entity
{'OR': [['Alvorada', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Rothenburg ob der Tauber', 'sister city', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Alvorada property:country ?f } UNION { resource:Rothenburg_ob_der_Tauber property:sister_city ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q34605
SYSTEM
Brazil, Montagnana
Q155 Q34605
OR((Q2102493,P17,c(Q15617994)), (Q153494,P190,c(Q15617994)))
action filter_type
action union
action find
entity Q2102493
relation P17
action find
entity Q153494
relation P190
type Q15617994
[ANSWERS] are Alvorada a part of or are twin towns of Rothenburg ob der Tauber
{'OR': [['Q2102493', 'P17', {'concept': 'Q15617994'}], ['Q153494', 'P190', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q2102493 property:P17 ?f } UNION { resource:Q153494 property:P190 ?f } } . ?f rdf:type ontology:Q15617994 }
Brazil Montagnana
Brazil and Montagnana are Alvorada a part of or are twin towns of Rothenburg ob der Tauber
Brazil Montagnana
action filter_type
action union
action find
entity Alvorada
relation country
action find
entity Rothenburg ob der Tauber
relation sister city
type designation for an administrative territorial entity
{'OR': [['Alvorada', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Rothenburg ob der Tauber', 'sister city', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Alvorada property:country ?f } UNION { resource:Rothenburg_ob_der_Tauber property:sister_city ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q34605
P47
Q15617994
USER
Which administrative territories are adjacent to that one ?
(Q34605,P47,c(Q15617994))
action filter_type
action find
entity Q34605
relation P47
type Q15617994
['Q34605', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q34605 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
Montagnana
action filter_type
action find
entity Montagnana
relation shares border with
type designation for an administrative territorial entity
['Montagnana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Montagnana property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q155
SYSTEM
Did you mean Brazil ?
Q155 Q34605
(Q155,P47,c(Q15617994)) (Q34605,P47,c(Q15617994))
[ANSWER]
['Q155', 'P47', {'concept': 'Q15617994'}] ['Q34605', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q34605 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
Brazil Montagnana
Did you mean Brazil ?
Brazil
['Brazil', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Montagnana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Montagnana property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Montagnana. Could you tell me the answer for that?
(Q34605,P47,c(Q15617994))
Q34605
['Q34605', 'P47', {'concept': 'Q15617994'}]
['Montagnana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
Q34406 Q47860 Q34401
SYSTEM
Urbana, Minerbe, Saletto
Q34406 Q34295 Q34401 Q47860 Q47849 Q47639 Q34354 Q47479
(Q34605,P47,c(Q15617994))
action filter_type
action find
entity Q34605
relation P47
type Q15617994
[ANSWERS] are adjacent to that one
['Q34605', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q34605 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
Urbana Megliadino San Fidenzio Saletto Minerbe Roveredo di Guà Pressana Casale di Scodosia Bevilacqua
Urbana, Minerbe and Saletto are adjacent to that one
Urbana Minerbe Saletto
action filter_type
action find
entity Montagnana
relation shares border with
type designation for an administrative territorial entity
['Montagnana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Montagnana property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]