Simple Question (Direct)
Simple Question
Q4702789
P162
Q502895
USER
Which person produced Al-Malak al-Zalem ?
(Q4702789,P162,c(Q502895))
action filter_type
action find
entity Q4702789
relation P162
type Q502895
['Q4702789', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q4702789 property:P162 ?k . ?k rdf:type ontology:Q502895 }
Al-Malak al-Zalem
action filter_type
action find
entity Al-Malak al-Zalem
relation producer
type common name
['Al-Malak al-Zalem', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Al-Malak_al-Zalem property:producer ?k . ?k rdf:type ontology:common_name }
[]
common name
Q4119412
SYSTEM
Hassan al-Imam
Q4119412
(Q4702789,P162,c(Q502895))
action filter_type
action find
entity Q4702789
relation P162
type Q502895
[ANSWER] produced Al-Malak al-Zalem
['Q4702789', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q4702789 property:P162 ?k . ?k rdf:type ontology:Q502895 }
Hassan al-Imam
Hassan al-Imam produced Al-Malak al-Zalem
Hassan al-Imam
action filter_type
action find
entity Al-Malak al-Zalem
relation producer
type common name
['Al-Malak al-Zalem', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Al-Malak_al-Zalem property:producer ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4119412
P57
Q838948
USER
Which works of art are that person a director of ?
(c(Q838948),P57,Q4119412)
action filter_type
action find_reverse
entity Q4119412
relation P57
type Q838948
[{'concept': 'Q838948'}, 'P57', 'Q4119412']
SELECT DISTINCT ?s WHERE { ?s property:P57 resource:Q4119412 . ?s rdf:type ontology:Q838948 }
Hassan al-Imam
action filter_type
action find_reverse
entity Hassan al-Imam
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Hassan al-Imam']
SELECT DISTINCT ?s WHERE { ?s property:director resource:Hassan_al-Imam . ?s rdf:type ontology:work_of_art }
[]
work of art
Q4703359 Q4702789
SYSTEM
Al-Yateematain, Al-Malak al-Zalem
Q4703359 Q4702789
(c(Q838948),P57,Q4119412)
action filter_type
action find_reverse
entity Q4119412
relation P57
type Q838948
[ANSWERS] are that person a director of
[{'concept': 'Q838948'}, 'P57', 'Q4119412']
SELECT DISTINCT ?s WHERE { ?s property:P57 resource:Q4119412 . ?s rdf:type ontology:Q838948 }
Al-Yateematain Al-Malak al-Zalem
Al-Yateematain and Al-Malak al-Zalem are that person a director of
Al-Yateematain Al-Malak al-Zalem
action filter_type
action find_reverse
entity Hassan al-Imam
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Hassan al-Imam']
SELECT DISTINCT ?s WHERE { ?s property:director resource:Hassan_al-Imam . ?s rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4703359
P136
Q1792379
USER
What can be considered as category for Al-Yateematain ?
(Q4703359,P136,c(Q1792379))
action filter_type
action find
entity Q4703359
relation P136
type Q1792379
['Q4703359', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?h WHERE { resource:Q4703359 property:P136 ?h . ?h rdf:type ontology:Q1792379 }
Al-Yateematain
action filter_type
action find
entity Al-Yateematain
relation genre
type art genre
['Al-Yateematain', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?h WHERE { resource:Al-Yateematain property:genre ?h . ?h rdf:type ontology:art_genre }
[]
art genre
Q130232
SYSTEM
drama film
Q130232
(Q4703359,P136,c(Q1792379))
action filter_type
action find
entity Q4703359
relation P136
type Q1792379
The [ANSWER] can be considered as category for Al-Yateematain
['Q4703359', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?h WHERE { resource:Q4703359 property:P136 ?h . ?h rdf:type ontology:Q1792379 }
drama film
The drama film can be considered as category for Al-Yateematain
drama film
action filter_type
action find
entity Al-Yateematain
relation genre
type art genre
['Al-Yateematain', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?h WHERE { resource:Al-Yateematain property:genre ?h . ?h rdf:type ontology:art_genre }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q130232 Q2132335
P136
Q838948
USER
Does One Nite in Mongkok a that art genre as its type ?
(Q2132335,P136,Q130232)
action is_in
entity Q130232
action find
entity Q2132335
relation P136
['Q2132335', 'P136', 'Q130232']
ASK WHERE { resource:Q2132335 property:P136 resource:Q130232 }
drama film One Nite in Mongkok
action is_in
entity drama film
action find
entity One Nite in Mongkok
relation genre
['One Nite in Mongkok', 'genre', 'drama film']
ASK WHERE { resource:One_Nite_in_Mongkok property:genre resource:drama_film }
[]
work of art
SYSTEM
YES
(Q2132335,P136,Q130232)
action is_in
entity Q130232
action find
entity Q2132335
relation P136
[ANSWER]
['Q2132335', 'P136', 'Q130232']
ASK WHERE { resource:Q2132335 property:P136 resource:Q130232 }
Yes
action is_in
entity drama film
action find
entity One Nite in Mongkok
relation genre
['One Nite in Mongkok', 'genre', 'drama film']
ASK WHERE { resource:One_Nite_in_Mongkok property:genre resource:drama_film }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4703359
P161
Q502895
USER
Which person starred in Al-Yateematain ?
(Q4703359,P161,c(Q502895))
action filter_type
action find
entity Q4703359
relation P161
type Q502895
['Q4703359', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q4703359 property:P161 ?f . ?f rdf:type ontology:Q502895 }
Al-Yateematain
action filter_type
action find
entity Al-Yateematain
relation cast member
type common name
['Al-Yateematain', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Al-Yateematain property:cast_member ?f . ?f rdf:type ontology:common_name }
[]
common name
Q2424957
SYSTEM
Faten Hamama
Q2424957
(Q4703359,P161,c(Q502895))
action filter_type
action find
entity Q4703359
relation P161
type Q502895
[ANSWER] starred in Al-Yateematain
['Q4703359', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q4703359 property:P161 ?f . ?f rdf:type ontology:Q502895 }
Faten Hamama
Faten Hamama starred in Al-Yateematain
Faten Hamama
action filter_type
action find
entity Al-Yateematain
relation cast member
type common name
['Al-Yateematain', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Al-Yateematain property:cast_member ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2424957
P26
Q502895
USER
Which people are the life partner of that one ?
(c(Q502895),P26,Q2424957)
action filter_type
action find
entity Q2424957
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q2424957']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q2424957 property:P26 ?x }
Faten Hamama
action filter_type
action find
entity Faten Hamama
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Faten Hamama']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:Faten_Hamama property:spouse ?x }
[]
common name
Q170515 Q3380886
SYSTEM
Omar Sharif, Ezzel Dine Zulficar
Q170515 Q3380886
(c(Q502895),P26,Q2424957)
action filter_type
action find
entity Q2424957
relation P26
type Q502895
[ANSWERS] are the life partner of that one
[{'concept': 'Q502895'}, 'P26', 'Q2424957']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q2424957 property:P26 ?x }
Omar Sharif Ezzel Dine Zulficar
Omar Sharif and Ezzel Dine Zulficar are the life partner of that one
Omar Sharif Ezzel Dine Zulficar
action filter_type
action find
entity Faten Hamama
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Faten Hamama']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:Faten_Hamama property:spouse ?x }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q2424957
P26 P21
Q502895
USER
Which people are the life partner of Faten Hamama and have the gender as male ?
AND((c(Q502895),P26,Q2424957), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q2424957
relation P26
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q2424957'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?u WHERE { ?u property:P26 resource:Q2424957 . ?u property:P21 resource:Q6581097 . ?u rdf:type ontology:Q502895 }
male Faten Hamama
action filter_type
action intersection
action find_reverse
entity Faten Hamama
relation spouse
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Faten Hamama'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?u WHERE { ?u property:spouse resource:Faten_Hamama . ?u property:gender resource:male . ?u rdf:type ontology:common_name }
[]
common name
Q170515 Q3380886
SYSTEM
Omar Sharif, Ezzel Dine Zulficar
Q170515 Q3380886
AND((c(Q502895),P26,Q2424957), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q2424957
relation P26
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] are the life partner of Faten Hamama and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q2424957'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?u WHERE { ?u property:P26 resource:Q2424957 . ?u property:P21 resource:Q6581097 . ?u rdf:type ontology:Q502895 }
Omar Sharif Ezzel Dine Zulficar
Omar Sharif and Ezzel Dine Zulficar are the life partner of Faten Hamama and have the gender as male
Omar Sharif Ezzel Dine Zulficar
action filter_type
action intersection
action find_reverse
entity Faten Hamama
relation spouse
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Faten Hamama'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?u WHERE { ?u property:spouse resource:Faten_Hamama . ?u property:gender resource:male . ?u rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q511644
P26
Q502895
USER
Do Master of Signa have those ones as spouse ?
(Q511644,P26,Q170515) (Q511644,P26,Q3380886)
action is_in
entity prev_answer
action find
entity Q511644
relation P26
['Q511644', 'P26', 'Q170515'] ['Q511644', 'P26', 'Q3380886']
ASK WHERE { VALUES ( ?j ) { ( resource:Q170515 ) ( resource:Q3380886 ) } . resource:Q511644 property:P26 ?j }
Master of Signa
action is_in
entity prev_answer
action find
entity Master of Signa
relation spouse
['Master of Signa', 'spouse', 'Omar Sharif'] ['Master of Signa', 'spouse', 'Ezzel Dine Zulficar']
ASK WHERE { VALUES ( ?j ) { ( resource:Omar_Sharif ) ( resource:Ezzel_Dine_Zulficar ) } . resource:Master_of_Signa property:spouse ?j }
[]
common name
SYSTEM
NO
(Q511644,P26,Q170515) (Q511644,P26,Q3380886)
action is_in
entity prev_answer
action find
entity Q511644
relation P26
[ANSWER]
['Q511644', 'P26', 'Q170515'] ['Q511644', 'P26', 'Q3380886']
ASK WHERE { VALUES ( ?j ) { ( resource:Q170515 ) ( resource:Q3380886 ) } . resource:Q511644 property:P26 ?j }
No
action is_in
entity prev_answer
action find
entity Master of Signa
relation spouse
['Master of Signa', 'spouse', 'Omar Sharif'] ['Master of Signa', 'spouse', 'Ezzel Dine Zulficar']
ASK WHERE { VALUES ( ?j ) { ( resource:Omar_Sharif ) ( resource:Ezzel_Dine_Zulficar ) } . resource:Master_of_Signa property:spouse ?j }
[]