Simple Question (Direct)
Simple Question
Q4716360
P27
Q15617994
USER
Which administrative territory is the native country of Alessandro Ligi ?
(Q4716360,P27,c(Q15617994))
action filter_type
action find
entity Q4716360
relation P27
type Q15617994
['Q4716360', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q4716360 property:P27 ?g }
Alessandro Ligi
action filter_type
action find
entity Alessandro Ligi
relation country of citizenship
type designation for an administrative territorial entity
['Alessandro Ligi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Alessandro_Ligi property:country_of_citizenship ?g }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q4716360,P27,c(Q15617994))
action filter_type
action find
entity Q4716360
relation P27
type Q15617994
[ANSWER] is the native country of Alessandro Ligi
['Q4716360', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q4716360 property:P27 ?g }
Italy
Italy is the native country of Alessandro Ligi
Italy
action filter_type
action find
entity Alessandro Ligi
relation country of citizenship
type designation for an administrative territorial entity
['Alessandro Ligi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Alessandro_Ligi property:country_of_citizenship ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4716360
P21
Q290
USER
What is the sex of that person ?
(Q38,P21,c(Q290))
action filter_type
action find
entity Q4716360
relation P21
type Q290
['Q38', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q4716360 property:P21 ?e . ?e rdf:type ontology:Q290 }
Alessandro Ligi
action filter_type
action find
entity Alessandro Ligi
relation gender
type sex
['Italy', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Alessandro_Ligi property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q38,P21,c(Q290))
action filter_type
action find
entity Q4716360
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q38', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q4716360 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Alessandro Ligi
relation gender
type sex
['Italy', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Alessandro_Ligi property:gender ?e . ?e rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q6960050 Q4716360
P21
Q290
USER
Or Najmieh Batmanglij?
OR((Q4716360,P21,c(Q290)), (Q6960050,P21,c(Q290)))
action filter_type
action union
action find
entity Q4716360
relation P21
action find
entity Q6960050
relation P21
type Q290
{'OR': [['Q4716360', 'P21', {'concept': 'Q290'}], ['Q6960050', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?t ) { ( resource:Q4716360 ) ( resource:Q6960050 ) } . ?t property:P21 ?k } . ?k rdf:type ontology:Q290 }
Najmieh Batmanglij Alessandro Ligi
action filter_type
action union
action find
entity Alessandro Ligi
relation gender
action find
entity Najmieh Batmanglij
relation gender
type sex
{'OR': [['Alessandro Ligi', 'gender', {'concept': 'sex'}], ['Najmieh Batmanglij', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?t ) { ( resource:Alessandro_Ligi ) ( resource:Najmieh_Batmanglij ) } . ?t property:gender ?k } . ?k rdf:type ontology:sex }
[]
sex
Q6581097 Q6581072
SYSTEM
male, female
Q6581097 Q6581072
OR((Q4716360,P21,c(Q290)), (Q6960050,P21,c(Q290)))
action filter_type
action union
action find
entity Q4716360
relation P21
action find
entity Q6960050
relation P21
type Q290
[ANSWERS]
{'OR': [['Q4716360', 'P21', {'concept': 'Q290'}], ['Q6960050', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?t ) { ( resource:Q4716360 ) ( resource:Q6960050 ) } . ?t property:P21 ?k } . ?k rdf:type ontology:Q290 }
male female
male female
action filter_type
action union
action find
entity Alessandro Ligi
relation gender
action find
entity Najmieh Batmanglij
relation gender
type sex
{'OR': [['Alessandro Ligi', 'gender', {'concept': 'sex'}], ['Najmieh Batmanglij', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?t ) { ( resource:Alessandro_Ligi ) ( resource:Najmieh_Batmanglij ) } . ?t property:gender ?k } . ?k rdf:type ontology:sex }
[]