Simple Question (Direct)
Simple Question
Q3057522
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Erwan Bergot ?
(Q3057522,P27,c(Q15617994))
action filter_type
action find
entity Q3057522
relation P27
type Q15617994
['Q3057522', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q3057522 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Erwan Bergot
action filter_type
action find
entity Erwan Bergot
relation country of citizenship
type designation for an administrative territorial entity
['Erwan Bergot', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Erwan_Bergot property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3057522,P27,c(Q15617994))
action filter_type
action find
entity Q3057522
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Erwan Bergot
['Q3057522', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q3057522 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
France
France is the country of citizenship of Erwan Bergot
France
action filter_type
action find
entity Erwan Bergot
relation country of citizenship
type designation for an administrative territorial entity
['Erwan Bergot', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Erwan_Bergot property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P1444
Q2472587
USER
Which people finally halts at that administrative territory ?
(c(Q2472587),P1444,Q142)
action filter_type
action find_reverse
entity Q142
relation P1444
type Q2472587
[{'concept': 'Q2472587'}, 'P1444', 'Q142']
SELECT DISTINCT ?d WHERE { ?d property:P1444 resource:Q142 . ?d rdf:type ontology:Q2472587 }
France
action filter_type
action find_reverse
entity France
relation destination point
type people
[{'concept': 'people'}, 'destination point', 'France']
SELECT DISTINCT ?d WHERE { ?d property:destination_point resource:France . ?d rdf:type ontology:people }
[]
people
Q5548127
SYSTEM
Georgians in France
Q5548127
(c(Q2472587),P1444,Q142)
action filter_type
action find_reverse
entity Q142
relation P1444
type Q2472587
[ANSWER] finally halts at that administrative territory
[{'concept': 'Q2472587'}, 'P1444', 'Q142']
SELECT DISTINCT ?d WHERE { ?d property:P1444 resource:Q142 . ?d rdf:type ontology:Q2472587 }
Georgians in France
Georgians in France finally halts at that administrative territory
Georgians in France
action filter_type
action find_reverse
entity France
relation destination point
type people
[{'concept': 'people'}, 'destination point', 'France']
SELECT DISTINCT ?d WHERE { ?d property:destination_point resource:France . ?d rdf:type ontology:people }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q21747016 Q142
P530 P27
Q15617994
USER
Which administrative territories holds diplomatic relationship with France or are László-Attila Klárik an inhabitant of ?
OR((Q142,P530,c(Q15617994)), (Q21747016,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q142
relation P530
action find
entity Q21747016
relation P27
type Q15617994
{'OR': [['Q142', 'P530', {'concept': 'Q15617994'}], ['Q21747016', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . { { resource:Q142 property:P530 ?b } UNION { resource:Q21747016 property:P27 ?b } } }
László-Attila Klárik France
action filter_type
action union
action find
entity France
relation diplomatic relation
action find
entity László-Attila Klárik
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['László-Attila Klárik', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:France property:diplomatic_relation ?b } UNION { resource:László-Attila_Klárik property:country_of_citizenship ?b } } }
[]
designation for an administrative territorial entity
Q32 Q145 Q155 Q159 Q1011 Q403 Q17 Q30 Q38 Q801
SYSTEM
Some of them are Luxembourg, United Kingdom, Brazil, Russia, Cape Verde, Serbia, Japan, United States of America, Italy, Israel
Q711 Q159 Q222 Q801 Q145 Q155 Q218 Q1011 Q228 Q32 Q17 Q30 Q399 Q27 Q403 Q38
OR((Q142,P530,c(Q15617994)), (Q21747016,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q142
relation P530
action find
entity Q21747016
relation P27
type Q15617994
[ANSWERS] hold diplomatic relationship with France or are László-Attila Klárik an inhabitant of
{'OR': [['Q142', 'P530', {'concept': 'Q15617994'}], ['Q21747016', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . { { resource:Q142 property:P530 ?b } UNION { resource:Q21747016 property:P27 ?b } } }
Mongolia Russia Albania Israel United Kingdom Brazil Romania Cape Verde Andorra Luxembourg Japan United States of America Armenia Ireland Serbia Italy
Luxembourg, United Kingdom, Brazil, Russia, Cape Verde, Serbia, Japan, United States of America, Italy and Israel hold diplomatic relationship with France or are László-Attila Klárik an inhabitant of
Luxembourg United Kingdom Brazil Russia Cape Verde Serbia Japan United States of America Italy Israel
action filter_type
action union
action find
entity France
relation diplomatic relation
action find
entity László-Attila Klárik
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['László-Attila Klárik', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:France property:diplomatic_relation ?b } UNION { resource:László-Attila_Klárik property:country_of_citizenship ?b } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q403
P17
Q15617994
USER
Which administrative territory does that one belong to ?
(Q403,P17,c(Q15617994))
action filter_type
action find
entity Q403
relation P17
type Q15617994
['Q403', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q403 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Serbia
action filter_type
action find
entity Serbia
relation country
type designation for an administrative territorial entity
['Serbia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Serbia property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1011
SYSTEM
Did you mean Cape Verde ?
Q32 Q145 Q155 Q159 Q1011 Q403 Q17 Q30 Q38 Q801
(Q32,P17,c(Q15617994)) (Q145,P17,c(Q15617994)) (Q155,P17,c(Q15617994)) (Q159,P17,c(Q15617994)) (Q1011,P17,c(Q15617994)) (Q403,P17,c(Q15617994)) (Q17,P17,c(Q15617994)) (Q30,P17,c(Q15617994)) (Q38,P17,c(Q15617994)) (Q801,P17,c(Q15617994))
[ANSWER]
['Q32', 'P17', {'concept': 'Q15617994'}] ['Q145', 'P17', {'concept': 'Q15617994'}] ['Q155', 'P17', {'concept': 'Q15617994'}] ['Q159', 'P17', {'concept': 'Q15617994'}] ['Q1011', 'P17', {'concept': 'Q15617994'}] ['Q403', 'P17', {'concept': 'Q15617994'}] ['Q17', 'P17', {'concept': 'Q15617994'}] ['Q30', 'P17', {'concept': 'Q15617994'}] ['Q38', 'P17', {'concept': 'Q15617994'}] ['Q801', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q403 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Luxembourg United Kingdom Brazil Russia Cape Verde Serbia Japan United States of America Italy Israel
Did you mean Cape Verde ?
Cape Verde
['Luxembourg', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United Kingdom', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Brazil', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Russia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Cape Verde', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Serbia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Japan', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Israel', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Serbia property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Serbia. Could you tell me the answer for that?
(Q403,P17,c(Q15617994))
Q403
['Q403', 'P17', {'concept': 'Q15617994'}]
['Serbia', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q403
SYSTEM
Serbia
Q403
(Q403,P17,c(Q15617994))
action filter_type
action find
entity Q403
relation P17
type Q15617994
That one belongs to the [ANSWER]
['Q403', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q403 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Serbia
That one belongs to the Serbia
Serbia
action filter_type
action find
entity Serbia
relation country
type designation for an administrative territorial entity
['Serbia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Serbia property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q403 Q834705
P85
Q484692
USER
Is Székely Himnusz the national anthem of Serbia ?
(Q403,P85,Q834705)
action is_in
entity Q834705
action find
entity Q403
relation P85
['Q403', 'P85', 'Q834705']
ASK WHERE { resource:Q403 property:P85 resource:Q834705 }
Serbia Székely Himnusz
action is_in
entity Székely Himnusz
action find
entity Serbia
relation anthem
['Serbia', 'anthem', 'Székely Himnusz']
ASK WHERE { resource:Serbia property:anthem resource:Székely_Himnusz }
[]
hymn
SYSTEM
NO
(Q403,P85,Q834705)
action is_in
entity Q834705
action find
entity Q403
relation P85
[ANSWER]
['Q403', 'P85', 'Q834705']
ASK WHERE { resource:Q403 property:P85 resource:Q834705 }
No
action is_in
entity Székely Himnusz
action find
entity Serbia
relation anthem
['Serbia', 'anthem', 'Székely Himnusz']
ASK WHERE { resource:Serbia property:anthem resource:Székely_Himnusz }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q26395126 Q38
P530 P17
Q15617994
USER
Which administrative territories have a diplomatic relationship with Italy and are Cengkong located in ?
AND((Q38,P530,c(Q15617994)), (Q26395126,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q26395126
relation P17
type Q15617994
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q26395126', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { resource:Q38 property:P530 ?i . resource:Q26395126 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Cengkong Italy
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Cengkong
relation country
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Cengkong', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { resource:Italy property:diplomatic_relation ?i . resource:Cengkong property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q252
SYSTEM
Indonesia
Q252
AND((Q38,P530,c(Q15617994)), (Q26395126,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q26395126
relation P17
type Q15617994
[ANSWER] have a diplomatic relationship with Italy and are Cengkong located in
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q26395126', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { resource:Q38 property:P530 ?i . resource:Q26395126 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Indonesia
Indonesia have a diplomatic relationship with Italy and are Cengkong located in
Indonesia
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Cengkong
relation country
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Cengkong', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { resource:Italy property:diplomatic_relation ?i . resource:Cengkong property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories have a shared border with that administrative territory ?
(Q252,P47,c(Q15617994))
action count
action filter_type
action find
entity Q252
relation P47
type Q15617994
['Q252', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:Q252 property:P47 ?i . ?i rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity Indonesia
relation shares border with
type designation for an administrative territorial entity
['Indonesia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:Indonesia property:shares_border_with ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
3
Q833 Q928 Q574
(Q252,P47,c(Q15617994))
action count
action filter_type
action find
entity Q252
relation P47
type Q15617994
[ANSWER]
['Q252', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:Q252 property:P47 ?i . ?i rdf:type ontology:Q15617994 }
Malaysia Philippines East Timor
3
action count
action filter_type
action find
entity Indonesia
relation shares border with
type designation for an administrative territorial entity
['Indonesia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:Indonesia property:shares_border_with ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]