Simple Question (Direct)
Simple Question
Q5806352
P1412
Q34770
USER
Which language can Diego Martínez understand ?
(Q5806352,P1412,c(Q34770))
action filter_type
action find
entity Q5806352
relation P1412
type Q34770
['Q5806352', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q5806352 property:P1412 ?n . ?n rdf:type ontology:Q34770 }
Diego Martínez
action filter_type
action find
entity Diego Martínez
relation languages spoken, written or signed
type language
['Diego Martínez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Diego_Martínez property:languages_spoken,_written_or_signed ?n . ?n rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q5806352,P1412,c(Q34770))
action filter_type
action find
entity Q5806352
relation P1412
type Q34770
Diego Martínez can understand the [ANSWER]
['Q5806352', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q5806352 property:P1412 ?n . ?n rdf:type ontology:Q34770 }
Spanish
Diego Martínez can understand the Spanish
Spanish
action filter_type
action find
entity Diego Martínez
relation languages spoken, written or signed
type language
['Diego Martínez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Diego_Martínez property:languages_spoken,_written_or_signed ?n . ?n rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5806352
P19
Q56061
USER
Which administrative territory was Diego Martínez born at ?
(Q5806352,P19,c(Q56061))
action filter_type
action find
entity Q5806352
relation P19
type Q56061
['Q5806352', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q5806352 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Diego Martínez
action filter_type
action find
entity Diego Martínez
relation place of birth
type administrative territorial entity
['Diego Martínez', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Diego_Martínez property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5532089
SYSTEM
General Pacheco
Q5532089
(Q5806352,P19,c(Q56061))
action filter_type
action find
entity Q5806352
relation P19
type Q56061
Diego Martínez was born to [ANSWER]
['Q5806352', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q5806352 property:P19 ?u . ?u rdf:type ontology:Q56061 }
General Pacheco
Diego Martínez was born to General Pacheco
General Pacheco
action filter_type
action find
entity Diego Martínez
relation place of birth
type administrative territorial entity
['Diego Martínez', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Diego_Martínez property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17540868
Q56061
USER
And also tell me about Franz Baring?
(Q17540868,P19,c(Q56061))
action filter_type
action find
entity Q17540868
relation P19
type Q56061
['Q17540868', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q17540868 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Franz Baring
action filter_type
action find
entity Franz Baring
relation place of birth
type administrative territorial entity
['Franz Baring', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Franz_Baring property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3322237
SYSTEM
Venlo
Q3322237
(Q17540868,P19,c(Q56061))
action filter_type
action find
entity Q17540868
relation P19
type Q56061
[ANSWER]
['Q17540868', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q17540868 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Venlo
Venlo
action filter_type
action find
entity Franz Baring
relation place of birth
type administrative territorial entity
['Franz Baring', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Franz_Baring property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16265277 Q5806352
P27
Q15617994
USER
Which administrative territories do Diego Martínez or Takahiro Katō belong to ?
OR((Q5806352,P27,c(Q15617994)), (Q16265277,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5806352
relation P27
action find
entity Q16265277
relation P27
type Q15617994
{'OR': [['Q5806352', 'P27', {'concept': 'Q15617994'}], ['Q16265277', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?g ) { ( resource:Q5806352 ) ( resource:Q16265277 ) } . ?g property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
Takahiro Katō Diego Martínez
action filter_type
action union
action find
entity Diego Martínez
relation country of citizenship
action find
entity Takahiro Katō
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Diego Martínez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Takahiro Katō', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?g ) { ( resource:Diego_Martínez ) ( resource:Takahiro_Katō ) } . ?g property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q414
SYSTEM
Japan, Argentina
Q17 Q414
OR((Q5806352,P27,c(Q15617994)), (Q16265277,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5806352
relation P27
action find
entity Q16265277
relation P27
type Q15617994
Diego Martínez or Takahiro Katō belong to [ANSWERS]
{'OR': [['Q5806352', 'P27', {'concept': 'Q15617994'}], ['Q16265277', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?g ) { ( resource:Q5806352 ) ( resource:Q16265277 ) } . ?g property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
Japan Argentina
Diego Martínez or Takahiro Katō belong to Japan and Argentina
Japan Argentina
action filter_type
action union
action find
entity Diego Martínez
relation country of citizenship
action find
entity Takahiro Katō
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Diego Martínez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Takahiro Katō', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?g ) { ( resource:Diego_Martínez ) ( resource:Takahiro_Katō ) } . ?g property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4957758
P530
Q15617994
USER
Do Brascote have diplomatic associations with those ones ?
(Q4957758,P530,Q17) (Q4957758,P530,Q414)
action is_in
entity prev_answer
action find
entity Q4957758
relation P530
['Q4957758', 'P530', 'Q17'] ['Q4957758', 'P530', 'Q414']
ASK WHERE { resource:Q4957758 property:P530 ?x . VALUES ( ?x ) { ( resource:Q17 ) ( resource:Q414 ) } }
Brascote
action is_in
entity prev_answer
action find
entity Brascote
relation diplomatic relation
['Brascote', 'diplomatic relation', 'Japan'] ['Brascote', 'diplomatic relation', 'Argentina']
ASK WHERE { resource:Brascote property:diplomatic_relation ?x . VALUES ( ?x ) { ( resource:Japan ) ( resource:Argentina ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4957758,P530,Q17) (Q4957758,P530,Q414)
action is_in
entity prev_answer
action find
entity Q4957758
relation P530
[ANSWER]
['Q4957758', 'P530', 'Q17'] ['Q4957758', 'P530', 'Q414']
ASK WHERE { resource:Q4957758 property:P530 ?x . VALUES ( ?x ) { ( resource:Q17 ) ( resource:Q414 ) } }
No
action is_in
entity prev_answer
action find
entity Brascote
relation diplomatic relation
['Brascote', 'diplomatic relation', 'Japan'] ['Brascote', 'diplomatic relation', 'Argentina']
ASK WHERE { resource:Brascote property:diplomatic_relation ?x . VALUES ( ?x ) { ( resource:Japan ) ( resource:Argentina ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5532089 Q2567507
P17
Q15617994
USER
Is General Pacheco present in Arno ?
(Q5532089,P17,Q2567507)
action is_in
entity Q2567507
action find
entity Q5532089
relation P17
['Q5532089', 'P17', 'Q2567507']
ASK WHERE { resource:Q5532089 property:P17 resource:Q2567507 }
General Pacheco Arno
action is_in
entity Arno
action find
entity General Pacheco
relation country
['General Pacheco', 'country', 'Arno']
ASK WHERE { resource:General_Pacheco property:country resource:Arno }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5532089,P17,Q2567507)
action is_in
entity Q2567507
action find
entity Q5532089
relation P17
[ANSWER]
['Q5532089', 'P17', 'Q2567507']
ASK WHERE { resource:Q5532089 property:P17 resource:Q2567507 }
No
action is_in
entity Arno
action find
entity General Pacheco
relation country
['General Pacheco', 'country', 'Arno']
ASK WHERE { resource:General_Pacheco property:country resource:Arno }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q17 Q227 Q51451
P530
Q15617994
USER
Does Japan have diplomatic relations with Azerbaijan and Isola del Gran Sasso d'Italia ?
(Q17,P530,Q227) (Q17,P530,Q51451)
action is_in
entity Q17
action intersection
action find_reverse
entity Q227
relation P530
action find_reverse
entity Q51451
relation P530
['Q17', 'P530', 'Q227'] ['Q17', 'P530', 'Q51451']
ASK WHERE { resource:Q17 property:P530 resource:Q227 . resource:Q17 property:P530 resource:Q51451 }
Japan Azerbaijan Isola del Gran Sasso d'Italia
action is_in
entity Japan
action intersection
action find_reverse
entity Azerbaijan
relation diplomatic relation
action find_reverse
entity Isola del Gran Sasso d'Italia
relation diplomatic relation
['Japan', 'diplomatic relation', 'Azerbaijan'] ['Japan', 'diplomatic relation', "Isola del Gran Sasso d'Italia"]
ASK WHERE { resource:Japan property:diplomatic_relation resource:Azerbaijan . resource:Japan property:diplomatic_relation resource:Isola_del_Gran_Sasso_d'Italia }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q17,P530,Q227) (Q17,P530,Q51451)
action is_in
entity Q17
action intersection
action find_reverse
entity Q227
relation P530
action find_reverse
entity Q51451
relation P530
[ANSWER]
['Q17', 'P530', 'Q227'] ['Q17', 'P530', 'Q51451']
ASK WHERE { resource:Q17 property:P530 resource:Q227 . resource:Q17 property:P530 resource:Q51451 }
YES and NO respectively
action is_in
entity Japan
action intersection
action find_reverse
entity Azerbaijan
relation diplomatic relation
action find_reverse
entity Isola del Gran Sasso d'Italia
relation diplomatic relation
['Japan', 'diplomatic relation', 'Azerbaijan'] ['Japan', 'diplomatic relation', "Isola del Gran Sasso d'Italia"]
ASK WHERE { resource:Japan property:diplomatic_relation resource:Azerbaijan . resource:Japan property:diplomatic_relation resource:Isola_del_Gran_Sasso_d'Italia }
[]