Simple Question (Direct)
Simple Question
Q2875182
P21
Q290
USER
What is the sex of Azize Kabouche ?
(Q2875182,P21,c(Q290))
action filter_type
action find
entity Q2875182
relation P21
type Q290
['Q2875182', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q2875182 property:P21 ?b . ?b rdf:type ontology:Q290 }
Azize Kabouche
action filter_type
action find
entity Azize Kabouche
relation gender
type sex
['Azize Kabouche', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Azize_Kabouche property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2875182,P21,c(Q290))
action filter_type
action find
entity Q2875182
relation P21
type Q290
The sex of Azize Kabouche is the [ANSWER]
['Q2875182', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q2875182 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
The sex of Azize Kabouche is the male
male
action filter_type
action find
entity Azize Kabouche
relation gender
type sex
['Azize Kabouche', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Azize_Kabouche property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2875182
P161
Q838948
USER
Which works of art have Azize Kabouche as actor ?
(c(Q838948),P161,Q2875182)
action filter_type
action find_reverse
entity Q2875182
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q2875182']
SELECT DISTINCT ?d WHERE { ?d property:P161 resource:Q2875182 . ?d rdf:type ontology:Q838948 }
Azize Kabouche
action filter_type
action find_reverse
entity Azize Kabouche
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Azize Kabouche']
SELECT DISTINCT ?d WHERE { ?d property:cast_member resource:Azize_Kabouche . ?d rdf:type ontology:work_of_art }
[]
work of art
Q964375 Q16644217 Q3202954
SYSTEM
A Christmas Tale, J'ai vu tuer Ben Barka, L'enfance de l'art
Q964375 Q16644217 Q3202954
(c(Q838948),P161,Q2875182)
action filter_type
action find_reverse
entity Q2875182
relation P161
type Q838948
[ANSWERS] have Azize Kabouche as actor
[{'concept': 'Q838948'}, 'P161', 'Q2875182']
SELECT DISTINCT ?d WHERE { ?d property:P161 resource:Q2875182 . ?d rdf:type ontology:Q838948 }
A Christmas Tale J'ai vu tuer Ben Barka L'enfance de l'art
A Christmas Tale, J'ai vu tuer Ben Barka and L'enfance de l'art have Azize Kabouche as actor
A Christmas Tale J'ai vu tuer Ben Barka L'enfance de l'art
action filter_type
action find_reverse
entity Azize Kabouche
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Azize Kabouche']
SELECT DISTINCT ?d WHERE { ?d property:cast_member resource:Azize_Kabouche . ?d rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q964375 Q16644217 Q3202954
P57
Q502895
USER
Which people directed A Christmas Tale, J'ai vu tuer Ben Barka and L'enfance de l'art ?
(Q964375,P57,c(Q502895)) (Q16644217,P57,c(Q502895)) (Q3202954,P57,c(Q502895))
action union
action filter_type
action find
entity Q964375
relation P57
type Q502895
action filter_type
action find
entity Q16644217
relation P57
type Q502895
action filter_type
action find
entity Q3202954
relation P57
type Q502895
['Q964375', 'P57', {'concept': 'Q502895'}] ['Q16644217', 'P57', {'concept': 'Q502895'}] ['Q3202954', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { resource:Q16644217 property:P57 ?r . ?r rdf:type ontology:Q502895 } UNION { resource:Q964375 property:P57 ?r . ?r rdf:type ontology:Q502895 } }
A Christmas Tale J'ai vu tuer Ben Barka L'enfance de l'art
action union
action filter_type
action find
entity A Christmas Tale
relation director
type common name
action filter_type
action find
entity J'ai vu tuer Ben Barka
relation director
type common name
action filter_type
action find
entity L'enfance de l'art
relation director
type common name
['A Christmas Tale', 'director', {'concept': 'common name'}] ["J'ai vu tuer Ben Barka", 'director', {'concept': 'common name'}] ["L'enfance de l'art", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { resource:J'ai_vu_tuer_Ben_Barka property:director ?r . ?r rdf:type ontology:common_name } UNION { resource:A_Christmas_Tale property:director ?r . ?r rdf:type ontology:common_name } }
[]
common name
Q691335 Q3479401 Q711984
SYSTEM
Arnaud Desplechin, Serge Le Péron, Francis Girod
Q691335 Q3479401 Q711984
(Q964375,P57,c(Q502895)) (Q16644217,P57,c(Q502895)) (Q3202954,P57,c(Q502895))
action union
action filter_type
action find
entity Q964375
relation P57
type Q502895
action filter_type
action find
entity Q16644217
relation P57
type Q502895
action filter_type
action find
entity Q3202954
relation P57
type Q502895
[ANSWERS] directed A Christmas Tale, J'ai vu tuer Ben Barka and L'enfance de l'art
['Q964375', 'P57', {'concept': 'Q502895'}] ['Q16644217', 'P57', {'concept': 'Q502895'}] ['Q3202954', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { resource:Q16644217 property:P57 ?r . ?r rdf:type ontology:Q502895 } UNION { resource:Q964375 property:P57 ?r . ?r rdf:type ontology:Q502895 } }
Arnaud Desplechin Serge Le Péron Francis Girod
Arnaud Desplechin, Serge Le Péron and Francis Girod directed A Christmas Tale, J'ai vu tuer Ben Barka and L'enfance de l'art
Arnaud Desplechin Serge Le Péron Francis Girod
action union
action filter_type
action find
entity A Christmas Tale
relation director
type common name
action filter_type
action find
entity J'ai vu tuer Ben Barka
relation director
type common name
action filter_type
action find
entity L'enfance de l'art
relation director
type common name
['A Christmas Tale', 'director', {'concept': 'common name'}] ["J'ai vu tuer Ben Barka", 'director', {'concept': 'common name'}] ["L'enfance de l'art", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { resource:J'ai_vu_tuer_Ben_Barka property:director ?r . ?r rdf:type ontology:common_name } UNION { resource:A_Christmas_Tale property:director ?r . ?r rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3479401
P106
Q28640
USER
What are the professions of that person ?
(Q3479401,P106,c(Q28640))
action filter_type
action find
entity Q3479401
relation P106
type Q28640
['Q3479401', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?k WHERE { resource:Q3479401 property:P106 ?k . ?k rdf:type ontology:Q28640 }
Serge Le Péron
action filter_type
action find
entity Serge Le Péron
relation occupation
type profession
['Serge Le Péron', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?k WHERE { resource:Serge_Le_Péron property:occupation ?k . ?k rdf:type ontology:profession }
[]
profession
Clarification for simple ques.
Q3479401
SYSTEM
Did you mean Serge Le Péron ?
Q691335 Q3479401 Q711984
(Q691335,P106,c(Q28640)) (Q3479401,P106,c(Q28640)) (Q711984,P106,c(Q28640))
[ANSWER]
['Q691335', 'P106', {'concept': 'Q28640'}] ['Q3479401', 'P106', {'concept': 'Q28640'}] ['Q711984', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?k WHERE { resource:Q3479401 property:P106 ?k . ?k rdf:type ontology:Q28640 }
Arnaud Desplechin Serge Le Péron Francis Girod
Did you mean Serge Le Péron ?
Serge Le Péron
['Arnaud Desplechin', 'occupation', {'concept': 'profession'}] ['Serge Le Péron', 'occupation', {'concept': 'profession'}] ['Francis Girod', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?k WHERE { resource:Serge_Le_Péron property:occupation ?k . ?k rdf:type ontology:profession }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3479401,P106,c(Q28640))
['Q3479401', 'P106', {'concept': 'Q28640'}]
['Serge Le Péron', 'occupation', {'concept': 'profession'}]
[]
Q2526255 Q28389
SYSTEM
film director, screenwriter
Q2526255 Q28389
(Q3479401,P106,c(Q28640))
action filter_type
action find
entity Q3479401
relation P106
type Q28640
The professions of that person are [ANSWERS]
['Q3479401', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?k WHERE { resource:Q3479401 property:P106 ?k . ?k rdf:type ontology:Q28640 }
film director screenwriter
The professions of that person are film director and screenwriter
film director screenwriter
action filter_type
action find
entity Serge Le Péron
relation occupation
type profession
['Serge Le Péron', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?k WHERE { resource:Serge_Le_Péron property:occupation ?k . ?k rdf:type ontology:profession }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5229364 Q3479401
P19
Q56061
USER
Which administrative territories are the places of birth of Serge Le Péron or Dave McNeil ?
OR((Q3479401,P19,c(Q56061)), (Q5229364,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3479401
relation P19
action find
entity Q5229364
relation P19
type Q56061
{'OR': [['Q3479401', 'P19', {'concept': 'Q56061'}], ['Q5229364', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q3479401 property:P19 ?o } UNION { resource:Q5229364 property:P19 ?o } } . ?o rdf:type ontology:Q56061 }
Dave McNeil Serge Le Péron
action filter_type
action union
action find
entity Serge Le Péron
relation place of birth
action find
entity Dave McNeil
relation place of birth
type administrative territorial entity
{'OR': [['Serge Le Péron', 'place of birth', {'concept': 'administrative territorial entity'}], ['Dave McNeil', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Serge_Le_Péron property:place_of_birth ?o } UNION { resource:Dave_McNeil property:place_of_birth ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q170263 Q90
SYSTEM
Chester, Paris
Q170263 Q90
OR((Q3479401,P19,c(Q56061)), (Q5229364,P19,c(Q56061)))
action filter_type
action union
action find
entity Q3479401
relation P19
action find
entity Q5229364
relation P19
type Q56061
[ANSWERS] are the places of birth of Serge Le Péron or Dave McNeil
{'OR': [['Q3479401', 'P19', {'concept': 'Q56061'}], ['Q5229364', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q3479401 property:P19 ?o } UNION { resource:Q5229364 property:P19 ?o } } . ?o rdf:type ontology:Q56061 }
Chester Paris
Chester and Paris are the places of birth of Serge Le Péron or Dave McNeil
Chester Paris
action filter_type
action union
action find
entity Serge Le Péron
relation place of birth
action find
entity Dave McNeil
relation place of birth
type administrative territorial entity
{'OR': [['Serge Le Péron', 'place of birth', {'concept': 'administrative territorial entity'}], ['Dave McNeil', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Serge_Le_Péron property:place_of_birth ?o } UNION { resource:Dave_McNeil property:place_of_birth ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P6
Q502895
USER
How many people are the head of government of that administrative territory ?
(Q90,P6,c(Q502895))
['Q90', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7137194 property:Q2285706 ?z . ?z rdf:type ontology:Q502895 }
['Paris', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Paris property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q170263
SYSTEM
Did you mean Chester ?
(Q170263,P6,c(Q502895)) (Q90,P6,c(Q502895))
[ANSWER]
['Q170263', 'P6', {'concept': 'Q502895'}] ['Q90', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7137194 property:Q2285706 ?z . ?z rdf:type ontology:Q502895 }
Did you mean Chester ?
Chester
['Chester', 'head of government', {'concept': 'common name'}] ['Paris', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Paris property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Paris. Could you tell me the answer for that?
(Q90,P6,c(Q502895))
Q90
['Q90', 'P6', {'concept': 'Q502895'}]
['Paris', 'head of government', {'concept': 'common name'}]
[]
SYSTEM
16
Q1986521 Q2105 Q289303 Q1685859 Q256294 Q1685102 Q601266 Q2596877 Q677730 Q959708 Q3131449 Q947901 Q2851133 Q656015 Q1684642 Q1685301
(Q90,P6,c(Q502895))
[ANSWER]
['Q90', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7137194 property:Q2285706 ?z . ?z rdf:type ontology:Q502895 }
Nicolas Chambon Jacques Chirac Étienne Arago Jean Tiberi Bertrand Delanoë Jean-Nicolas Pache Louis-Antoine Garnier-Pagès René Boucher Armand Marrast Jules Ferry Henri Lefèvre d'Ormesson Jérôme Pétion de Villeneuve Anne Hidalgo Philibert Borie Jean-Baptiste Fleuriot-Lescot Jean Sylvain Bailly
16
['Paris', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Paris property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5286000 Q5229364
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Dave McNeil or Do Dong-hyun ?
OR((Q5229364,P27,c(Q15617994)), (Q5286000,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5229364
relation P27
action find
entity Q5286000
relation P27
type Q15617994
{'OR': [['Q5229364', 'P27', {'concept': 'Q15617994'}], ['Q5286000', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q5229364 property:P27 ?b } UNION { resource:Q5286000 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Do Dong-hyun Dave McNeil
action filter_type
action union
action find
entity Dave McNeil
relation country of citizenship
action find
entity Do Dong-hyun
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Dave McNeil', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Do Dong-hyun', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Dave_McNeil property:country_of_citizenship ?b } UNION { resource:Do_Dong-hyun property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q884 Q145
SYSTEM
South Korea, United Kingdom
Q884 Q145
OR((Q5229364,P27,c(Q15617994)), (Q5286000,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5229364
relation P27
action find
entity Q5286000
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Dave McNeil or Do Dong-hyun
{'OR': [['Q5229364', 'P27', {'concept': 'Q15617994'}], ['Q5286000', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q5229364 property:P27 ?b } UNION { resource:Q5286000 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
South Korea United Kingdom
South Korea and United Kingdom are the countries of citizenship of Dave McNeil or Do Dong-hyun
South Korea United Kingdom
action filter_type
action union
action find
entity Dave McNeil
relation country of citizenship
action find
entity Do Dong-hyun
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Dave McNeil', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Do Dong-hyun', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Dave_McNeil property:country_of_citizenship ?b } UNION { resource:Do_Dong-hyun property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q46754
P530
Q15617994
USER
Do Vidor have ambassadorial relations with those ones ?
(Q46754,P530,Q884) (Q46754,P530,Q145)
action is_in
entity prev_answer
action find
entity Q46754
relation P530
['Q46754', 'P530', 'Q884'] ['Q46754', 'P530', 'Q145']
ASK WHERE { resource:Q46754 property:P530 ?p . VALUES ( ?p ) { ( resource:Q884 ) ( resource:Q145 ) } }
Vidor
action is_in
entity prev_answer
action find
entity Vidor
relation diplomatic relation
['Vidor', 'diplomatic relation', 'South Korea'] ['Vidor', 'diplomatic relation', 'United Kingdom']
ASK WHERE { resource:Vidor property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:South_Korea ) ( resource:United_Kingdom ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q46754,P530,Q884) (Q46754,P530,Q145)
action is_in
entity prev_answer
action find
entity Q46754
relation P530
[ANSWER]
['Q46754', 'P530', 'Q884'] ['Q46754', 'P530', 'Q145']
ASK WHERE { resource:Q46754 property:P530 ?p . VALUES ( ?p ) { ( resource:Q884 ) ( resource:Q145 ) } }
No
action is_in
entity prev_answer
action find
entity Vidor
relation diplomatic relation
['Vidor', 'diplomatic relation', 'South Korea'] ['Vidor', 'diplomatic relation', 'United Kingdom']
ASK WHERE { resource:Vidor property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:South_Korea ) ( resource:United_Kingdom ) } }
[]