Simple Question (Direct)
Simple Question
Q6313264
P21
Q290
USER
Which sex does Junior Félix Madrigal have ?
(Q6313264,P21,c(Q290))
action filter_type
action find
entity Q6313264
relation P21
type Q290
['Q6313264', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q6313264 property:P21 ?y . ?y rdf:type ontology:Q290 }
Junior Félix Madrigal
action filter_type
action find
entity Junior Félix Madrigal
relation gender
type sex
['Junior Félix Madrigal', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Junior_Félix_Madrigal property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6313264,P21,c(Q290))
action filter_type
action find
entity Q6313264
relation P21
type Q290
Junior Félix Madrigal has a [ANSWER]
['Q6313264', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q6313264 property:P21 ?y . ?y rdf:type ontology:Q290 }
male
Junior Félix Madrigal has a male
male
action filter_type
action find
entity Junior Félix Madrigal
relation gender
type sex
['Junior Félix Madrigal', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Junior_Félix_Madrigal property:gender ?y . ?y rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3770274 Q6313264
P27
Q15617994
USER
Which administrative territories are Junior Félix Madrigal or Giuseppe Cassia a civilian of ?
OR((Q6313264,P27,c(Q15617994)), (Q3770274,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6313264
relation P27
action find
entity Q3770274
relation P27
type Q15617994
{'OR': [['Q6313264', 'P27', {'concept': 'Q15617994'}], ['Q3770274', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q6313264 property:P27 ?w } UNION { resource:Q3770274 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Giuseppe Cassia Junior Félix Madrigal
action filter_type
action union
action find
entity Junior Félix Madrigal
relation country of citizenship
action find
entity Giuseppe Cassia
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Junior Félix Madrigal', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Giuseppe Cassia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Junior_Félix_Madrigal property:country_of_citizenship ?w } UNION { resource:Giuseppe_Cassia property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96 Q717 Q38
SYSTEM
Mexico, Venezuela, Italy
Q96 Q717 Q38
OR((Q6313264,P27,c(Q15617994)), (Q3770274,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6313264
relation P27
action find
entity Q3770274
relation P27
type Q15617994
[ANSWERS] are Junior Félix Madrigal or Giuseppe Cassia a civilian of
{'OR': [['Q6313264', 'P27', {'concept': 'Q15617994'}], ['Q3770274', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q6313264 property:P27 ?w } UNION { resource:Q3770274 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Mexico Venezuela Italy
Mexico, Venezuela and Italy are Junior Félix Madrigal or Giuseppe Cassia a civilian of
Mexico Venezuela Italy
action filter_type
action union
action find
entity Junior Félix Madrigal
relation country of citizenship
action find
entity Giuseppe Cassia
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Junior Félix Madrigal', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Giuseppe Cassia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Junior_Félix_Madrigal property:country_of_citizenship ?w } UNION { resource:Giuseppe_Cassia property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q155
P530
Q15617994
USER
Do Brazil have diplomatic associations with those ones ?
(Q155,P530,Q96) (Q155,P530,Q717) (Q155,P530,Q38)
action is_in
entity prev_answer
action find
entity Q155
relation P530
['Q155', 'P530', 'Q96'] ['Q155', 'P530', 'Q717'] ['Q155', 'P530', 'Q38']
ASK WHERE { resource:Q155 property:P530 ?q . VALUES ( ?q ) { ( resource:Q96 ) ( resource:Q717 ) ( resource:Q38 ) } }
Brazil
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Mexico'] ['Brazil', 'diplomatic relation', 'Venezuela'] ['Brazil', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Brazil property:diplomatic_relation ?q . VALUES ( ?q ) { ( resource:Mexico ) ( resource:Venezuela ) ( resource:Italy ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q155,P530,Q96) (Q155,P530,Q717) (Q155,P530,Q38)
action is_in
entity prev_answer
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q96'] ['Q155', 'P530', 'Q717'] ['Q155', 'P530', 'Q38']
ASK WHERE { resource:Q155 property:P530 ?q . VALUES ( ?q ) { ( resource:Q96 ) ( resource:Q717 ) ( resource:Q38 ) } }
Yes
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Mexico'] ['Brazil', 'diplomatic relation', 'Venezuela'] ['Brazil', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Brazil property:diplomatic_relation ?q . VALUES ( ?q ) { ( resource:Mexico ) ( resource:Venezuela ) ( resource:Italy ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q96
P276
Q838948
USER
Which works of art have their location as Mexico ?
(c(Q838948),P276,Q96)
action filter_type
action find_reverse
entity Q96
relation P276
type Q838948
[{'concept': 'Q838948'}, 'P276', 'Q96']
SELECT DISTINCT ?q WHERE { ?q property:P276 resource:Q96 . ?q rdf:type ontology:Q838948 }
Mexico
action filter_type
action find_reverse
entity Mexico
relation location
type work of art
[{'concept': 'work of art'}, 'location', 'Mexico']
SELECT DISTINCT ?q WHERE { ?q property:location resource:Mexico . ?q rdf:type ontology:work_of_art }
[]
work of art
Q25409682 Q24943491 Q24943543
SYSTEM
Saint John the Baptist preaching, Danaid, Young mother
Q25409682 Q24943504 Q24943491 Q24588956 Q24943552 Q24943543 Q25415065 Q24553121 Q24556552 Q24943524
(c(Q838948),P276,Q96)
action filter_type
action find_reverse
entity Q96
relation P276
type Q838948
[ANSWERS] have their location as Mexico
[{'concept': 'Q838948'}, 'P276', 'Q96']
SELECT DISTINCT ?q WHERE { ?q property:P276 resource:Q96 . ?q rdf:type ontology:Q838948 }
Saint John the Baptist preaching The awakening of Adonis Danaid The succubus Balzac in the Robe of a Dominican Monk Young mother Glaucus The Falling Man Head of Camille Claudel Standing Mercury
Saint John the Baptist preaching, Danaid and Young mother have their location as Mexico
Saint John the Baptist preaching Danaid Young mother
action filter_type
action find_reverse
entity Mexico
relation location
type work of art
[{'concept': 'work of art'}, 'location', 'Mexico']
SELECT DISTINCT ?q WHERE { ?q property:location resource:Mexico . ?q rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q717
P35
Q502895
USER
Who is elected as the head of state of Venezuela ?
(Q717,P35,c(Q502895))
action filter_type
action find
entity Q717
relation P35
type Q502895
['Q717', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q717 property:P35 ?b . ?b rdf:type ontology:Q502895 }
Venezuela
action filter_type
action find
entity Venezuela
relation head of state
type common name
['Venezuela', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Venezuela property:head_of_state ?b . ?b rdf:type ontology:common_name }
[]
common name
Q58132
SYSTEM
Nicolás Maduro
Q58132
(Q717,P35,c(Q502895))
action filter_type
action find
entity Q717
relation P35
type Q502895
[ANSWER] is elected as the head of state of Venezuela
['Q717', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q717 property:P35 ?b . ?b rdf:type ontology:Q502895 }
Nicolás Maduro
Nicolás Maduro is elected as the head of state of Venezuela
Nicolás Maduro
action filter_type
action find
entity Venezuela
relation head of state
type common name
['Venezuela', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Venezuela property:head_of_state ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5306186
Q502895
USER
And also tell me about Fälldin III Cabinet?
(Q5306186,P35,c(Q502895))
action filter_type
action find
entity Q5306186
relation P35
type Q502895
['Q5306186', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q5306186 property:P35 ?k . ?k rdf:type ontology:Q502895 }
Fälldin III Cabinet
action filter_type
action find
entity Fälldin III Cabinet
relation head of state
type common name
['Fälldin III Cabinet', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Fälldin_III_Cabinet property:head_of_state ?k . ?k rdf:type ontology:common_name }
[]
common name
Q45068
SYSTEM
Carl XVI Gustaf of Sweden
Q45068
(Q5306186,P35,c(Q502895))
action filter_type
action find
entity Q5306186
relation P35
type Q502895
[ANSWER]
['Q5306186', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q5306186 property:P35 ?k . ?k rdf:type ontology:Q502895 }
Carl XVI Gustaf of Sweden
Carl XVI Gustaf of Sweden
action filter_type
action find
entity Fälldin III Cabinet
relation head of state
type common name
['Fälldin III Cabinet', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Fälldin_III_Cabinet property:head_of_state ?k . ?k rdf:type ontology:common_name }
[]