Simple Question (Direct)
Simple Question
Q287892
P1412
Q34770
USER
Which language can Ana Mato Adrover understand ?
(Q287892,P1412,c(Q34770))
action filter_type
action find
entity Q287892
relation P1412
type Q34770
['Q287892', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q287892 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
Ana Mato Adrover
action filter_type
action find
entity Ana Mato Adrover
relation languages spoken, written or signed
type language
['Ana Mato Adrover', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Ana_Mato_Adrover property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q287892,P1412,c(Q34770))
action filter_type
action find
entity Q287892
relation P1412
type Q34770
Ana Mato Adrover can understand the [ANSWER]
['Q287892', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q287892 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
Spanish
Ana Mato Adrover can understand the Spanish
Spanish
action filter_type
action find
entity Ana Mato Adrover
relation languages spoken, written or signed
type language
['Ana Mato Adrover', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Ana_Mato_Adrover property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q287892
P39
Q12737077
USER
Which occupations were a position held by Ana Mato Adrover ?
(Q287892,P39,c(Q12737077))
action filter_type
action find
entity Q287892
relation P39
type Q12737077
['Q287892', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q287892 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
Ana Mato Adrover
action filter_type
action find
entity Ana Mato Adrover
relation position held
type occupation
['Ana Mato Adrover', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Ana_Mato_Adrover property:position_held ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q22998436 Q18171345 Q27169
SYSTEM
member of the Assembly of Madrid, Member of the Congress of Deputies of Spain, member of the European Parliament
Q22998436 Q18171345 Q27169
(Q287892,P39,c(Q12737077))
action filter_type
action find
entity Q287892
relation P39
type Q12737077
[ANSWERS] were a position held by Ana Mato Adrover
['Q287892', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q287892 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
member of the Assembly of Madrid Member of the Congress of Deputies of Spain member of the European Parliament
Member of the Assembly of Madrid, Member of the Congress of Deputies of Spain and member of the European Parliament were a position held by Ana Mato Adrover
member of the Assembly of Madrid Member of the Congress of Deputies of Spain member of the European Parliament
action filter_type
action find
entity Ana Mato Adrover
relation position held
type occupation
['Ana Mato Adrover', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Ana_Mato_Adrover property:position_held ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6096240
Q12737077
USER
And what about Ivan Foster?
(Q6096240,P39,c(Q12737077))
action filter_type
action find
entity Q6096240
relation P39
type Q12737077
['Q6096240', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q6096240 property:P39 ?x }
Ivan Foster
action filter_type
action find
entity Ivan Foster
relation position held
type occupation
['Ivan Foster', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Ivan_Foster property:position_held ?x }
[]
occupation
Q3272410
SYSTEM
Member of the Legislative Assembly of Northern Ireland
Q3272410
(Q6096240,P39,c(Q12737077))
action filter_type
action find
entity Q6096240
relation P39
type Q12737077
[ANSWER]
['Q6096240', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q6096240 property:P39 ?x }
Member of the Legislative Assembly of Northern Ireland
Member of the Legislative Assembly of Northern Ireland
action filter_type
action find
entity Ivan Foster
relation position held
type occupation
['Ivan Foster', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Ivan_Foster property:position_held ?x }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q3272410 Q145
P17
Q15617994
USER
Is that occupation a part of United Kingdom ?
(Q3272410,P17,Q145)
action is_in
entity Q145
action find
entity Q3272410
relation P17
['Q3272410', 'P17', 'Q145']
ASK WHERE { resource:Q3272410 property:P17 resource:Q145 }
Member of the Legislative Assembly of Northern Ireland United Kingdom
action is_in
entity United Kingdom
action find
entity Member of the Legislative Assembly of Northern Ireland
relation country
['Member of the Legislative Assembly of Northern Ireland', 'country', 'United Kingdom']
ASK WHERE { resource:Member_of_the_Legislative_Assembly_of_Northern_Ireland property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q3272410,P17,Q145)
action is_in
entity Q145
action find
entity Q3272410
relation P17
[ANSWER]
['Q3272410', 'P17', 'Q145']
ASK WHERE { resource:Q3272410 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Member of the Legislative Assembly of Northern Ireland
relation country
['Member of the Legislative Assembly of Northern Ireland', 'country', 'United Kingdom']
ASK WHERE { resource:Member_of_the_Legislative_Assembly_of_Northern_Ireland property:country resource:United_Kingdom }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1418090 Q3272410
P17
Q15617994
USER
Which administrative territories are Member of the Legislative Assembly of Northern Ireland or Imatrankoski situated in ?
OR((Q3272410,P17,c(Q15617994)), (Q1418090,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3272410
relation P17
action find
entity Q1418090
relation P17
type Q15617994
{'OR': [['Q3272410', 'P17', {'concept': 'Q15617994'}], ['Q1418090', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q3272410 property:P17 ?l } UNION { resource:Q1418090 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
Imatrankoski Member of the Legislative Assembly of Northern Ireland
action filter_type
action union
action find
entity Member of the Legislative Assembly of Northern Ireland
relation country
action find
entity Imatrankoski
relation country
type designation for an administrative territorial entity
{'OR': [['Member of the Legislative Assembly of Northern Ireland', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Imatrankoski', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Member_of_the_Legislative_Assembly_of_Northern_Ireland property:country ?l } UNION { resource:Imatrankoski property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q145
SYSTEM
Finland, United Kingdom
Q33 Q145
OR((Q3272410,P17,c(Q15617994)), (Q1418090,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3272410
relation P17
action find
entity Q1418090
relation P17
type Q15617994
Member of the Legislative Assembly of Northern Ireland or Imatrankoski are situated in [ANSWERS]
{'OR': [['Q3272410', 'P17', {'concept': 'Q15617994'}], ['Q1418090', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q3272410 property:P17 ?l } UNION { resource:Q1418090 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
Finland United Kingdom
Member of the Legislative Assembly of Northern Ireland or Imatrankoski are situated in Finland and United Kingdom
Finland United Kingdom
action filter_type
action union
action find
entity Member of the Legislative Assembly of Northern Ireland
relation country
action find
entity Imatrankoski
relation country
type designation for an administrative territorial entity
{'OR': [['Member of the Legislative Assembly of Northern Ireland', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Imatrankoski', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Member_of_the_Legislative_Assembly_of_Northern_Ireland property:country ?l } UNION { resource:Imatrankoski property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q33 Q145
P163
Q14660
USER
Which flags are associated with those administrative territories ?
(Q33,P163,c(Q14660)) (Q145,P163,c(Q14660))
action filter_type
action find
entity prev_answer
relation P163
type Q14660
['Q33', 'P163', {'concept': 'Q14660'}] ['Q145', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?y WHERE { ?h property:P163 ?y . VALUES ( ?h ) { ( resource:Q33 ) ( resource:Q145 ) } . ?y rdf:type ontology:Q14660 }
Finland United Kingdom
action filter_type
action find
entity prev_answer
relation flag
type flag
['Finland', 'flag', {'concept': 'flag'}] ['United Kingdom', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?y WHERE { ?h property:flag ?y . VALUES ( ?h ) { ( resource:Finland ) ( resource:United_Kingdom ) } . ?y rdf:type ontology:flag }
[]
flag
Q47891 Q83278
SYSTEM
Flag of Finland, flag of the United Kingdom
Q47891 Q83278
(Q33,P163,c(Q14660)) (Q145,P163,c(Q14660))
action filter_type
action find
entity prev_answer
relation P163
type Q14660
[ANSWERS] are associated with those administrative territories
['Q33', 'P163', {'concept': 'Q14660'}] ['Q145', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?y WHERE { ?h property:P163 ?y . VALUES ( ?h ) { ( resource:Q33 ) ( resource:Q145 ) } . ?y rdf:type ontology:Q14660 }
Flag of Finland flag of the United Kingdom
Flag of Finland and flag of the United Kingdom are associated with those administrative territories
Flag of Finland flag of the United Kingdom
action filter_type
action find
entity prev_answer
relation flag
type flag
['Finland', 'flag', {'concept': 'flag'}] ['United Kingdom', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?y WHERE { ?h property:flag ?y . VALUES ( ?h ) { ( resource:Finland ) ( resource:United_Kingdom ) } . ?y rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q47891 Q83278
P163
Q15617994
USER
Which administrative territories have their flag named those ones ?
(c(Q15617994),P163,Q47891) (c(Q15617994),P163,Q83278)
action filter_type
action find_reverse
entity prev_answer
relation P163
type Q15617994
[{'concept': 'Q15617994'}, 'P163', 'Q47891'] [{'concept': 'Q15617994'}, 'P163', 'Q83278']
SELECT DISTINCT ?o WHERE { VALUES ( ?z ) { ( resource:Q47891 ) ( resource:Q83278 ) } . ?o rdf:type ontology:Q15617994 . ?o property:P163 ?z }
Flag of Finland flag of the United Kingdom
action filter_type
action find_reverse
entity prev_answer
relation flag
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'flag', 'Flag of Finland'] [{'concept': 'designation for an administrative territorial entity'}, 'flag', 'flag of the United Kingdom']
SELECT DISTINCT ?o WHERE { VALUES ( ?z ) { ( resource:Flag_of_Finland ) ( resource:flag_of_the_United_Kingdom ) } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:flag ?z }
[]
designation for an administrative territorial entity
Q33 Q145
SYSTEM
Finland, United Kingdom
Q33 Q145
(c(Q15617994),P163,Q47891) (c(Q15617994),P163,Q83278)
action filter_type
action find_reverse
entity prev_answer
relation P163
type Q15617994
[ANSWERS] have their flag named those ones
[{'concept': 'Q15617994'}, 'P163', 'Q47891'] [{'concept': 'Q15617994'}, 'P163', 'Q83278']
SELECT DISTINCT ?o WHERE { VALUES ( ?z ) { ( resource:Q47891 ) ( resource:Q83278 ) } . ?o rdf:type ontology:Q15617994 . ?o property:P163 ?z }
Finland United Kingdom
Finland and United Kingdom have their flag named those ones
Finland United Kingdom
action filter_type
action find_reverse
entity prev_answer
relation flag
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'flag', 'Flag of Finland'] [{'concept': 'designation for an administrative territorial entity'}, 'flag', 'flag of the United Kingdom']
SELECT DISTINCT ?o WHERE { VALUES ( ?z ) { ( resource:Flag_of_Finland ) ( resource:flag_of_the_United_Kingdom ) } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:flag ?z }
[]