Simple Question (Direct)
Simple Question
Q537224
P106
Q12737077
USER
What do Charles Helou do for a living ?
(Q537224,P106,c(Q12737077))
action filter_type
action find
entity Q537224
relation P106
type Q12737077
['Q537224', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q537224 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Charles Helou
action filter_type
action find
entity Charles Helou
relation occupation
type occupation
['Charles Helou', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Charles_Helou property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q193391 Q1930187 Q82955
SYSTEM
diplomat, journalist, politician
Q193391 Q1930187 Q82955
(Q537224,P106,c(Q12737077))
action filter_type
action find
entity Q537224
relation P106
type Q12737077
Charles Helou do for a living a [ANSWERS]
['Q537224', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q537224 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
diplomat journalist politician
Charles Helou do for a living a diplomat, journalist and politician
diplomat journalist politician
action filter_type
action find
entity Charles Helou
relation occupation
type occupation
['Charles Helou', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Charles_Helou property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q193391 Q1930187 Q82955
P39
Q502895
USER
Who were responsible for occupying the position of diplomat, journalist and politician ?
(c(Q502895),P39,Q193391) (c(Q502895),P39,Q1930187) (c(Q502895),P39,Q82955)
action union
action filter_type
action find_reverse
entity Q193391
relation P39
type Q502895
action filter_type
action find_reverse
entity Q1930187
relation P39
type Q502895
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q193391'] [{'concept': 'Q502895'}, 'P39', 'Q1930187'] [{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?z WHERE { { ?z property:P39 resource:Q193391 . ?z rdf:type ontology:Q502895 } UNION { ?z property:P39 resource:Q1930187 . ?z rdf:type ontology:Q502895 } }
diplomat journalist politician
action union
action filter_type
action find_reverse
entity diplomat
relation position held
type common name
action filter_type
action find_reverse
entity journalist
relation position held
type common name
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'diplomat'] [{'concept': 'common name'}, 'position held', 'journalist'] [{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?z WHERE { { ?z property:position_held resource:diplomat . ?z rdf:type ontology:common_name } UNION { ?z property:position_held resource:journalist . ?z rdf:type ontology:common_name } }
[]
common name
Q2844607 Q2844607 Q723621
SYSTEM
Amé-Thérèse-Joseph Masclet for 1st, 2nd, Paul Nizan for 3rd
Q699131 Q19828328 Q16912378 Q2844607 Q2844607 Q20920104 Q20920104 Q723621 Q16912378 Q5945149 Q26215129
(c(Q502895),P39,Q193391) (c(Q502895),P39,Q1930187) (c(Q502895),P39,Q82955)
action union
action filter_type
action find_reverse
entity Q193391
relation P39
type Q502895
action filter_type
action find_reverse
entity Q1930187
relation P39
type Q502895
action filter_type
action find_reverse
entity Q82955
relation P39
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P39', 'Q193391'] [{'concept': 'Q502895'}, 'P39', 'Q1930187'] [{'concept': 'Q502895'}, 'P39', 'Q82955']
SELECT DISTINCT ?z WHERE { { ?z property:P39 resource:Q193391 . ?z rdf:type ontology:Q502895 } UNION { ?z property:P39 resource:Q1930187 . ?z rdf:type ontology:Q502895 } }
Xiong Xianghui Antonio Caselli Alexandre Melnik Amé-Thérèse-Joseph Masclet Amé-Thérèse-Joseph Masclet Pierre Barthélémy Pierre Barthélémy Paul Nizan Alexandre Melnik José Rocamora Morteza Azari
Amé-Thérèse-Joseph Masclet, Amé-Thérèse-Joseph Masclet and Paul Nizan were responsible for occupying the position of diplomat, journalist and politician
Amé-Thérèse-Joseph Masclet Amé-Thérèse-Joseph Masclet Paul Nizan
action union
action filter_type
action find_reverse
entity diplomat
relation position held
type common name
action filter_type
action find_reverse
entity journalist
relation position held
type common name
action filter_type
action find_reverse
entity politician
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'diplomat'] [{'concept': 'common name'}, 'position held', 'journalist'] [{'concept': 'common name'}, 'position held', 'politician']
SELECT DISTINCT ?z WHERE { { ?z property:position_held resource:diplomat . ?z rdf:type ontology:common_name } UNION { ?z property:position_held resource:journalist . ?z rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2844607
P21
Q290
USER
Which sex does that person have ?
(Q2844607,P21,c(Q290))
action filter_type
action find
entity Q2844607
relation P21
type Q290
['Q2844607', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q2844607 property:P21 ?w . ?w rdf:type ontology:Q290 }
Amé-Thérèse-Joseph Masclet
action filter_type
action find
entity Amé-Thérèse-Joseph Masclet
relation gender
type sex
['Amé-Thérèse-Joseph Masclet', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Amé-Thérèse-Joseph_Masclet property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q2844607
SYSTEM
Did you mean Amé-Thérèse-Joseph Masclet ?
Q2844607 Q2844607 Q723621
(Q2844607,P21,c(Q290)) (Q2844607,P21,c(Q290)) (Q723621,P21,c(Q290))
[ANSWER]
['Q2844607', 'P21', {'concept': 'Q290'}] ['Q2844607', 'P21', {'concept': 'Q290'}] ['Q723621', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q2844607 property:P21 ?w . ?w rdf:type ontology:Q290 }
Amé-Thérèse-Joseph Masclet Amé-Thérèse-Joseph Masclet Paul Nizan
Did you mean Amé-Thérèse-Joseph Masclet ?
Amé-Thérèse-Joseph Masclet
['Amé-Thérèse-Joseph Masclet', 'gender', {'concept': 'sex'}] ['Amé-Thérèse-Joseph Masclet', 'gender', {'concept': 'sex'}] ['Paul Nizan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Amé-Thérèse-Joseph_Masclet property:gender ?w . ?w rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
Yes
(Q2844607,P21,c(Q290))
['Q2844607', 'P21', {'concept': 'Q290'}]
['Amé-Thérèse-Joseph Masclet', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q2844607,P21,c(Q290))
action filter_type
action find
entity Q2844607
relation P21
type Q290
That person has a [ANSWER]
['Q2844607', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q2844607 property:P21 ?w . ?w rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Amé-Thérèse-Joseph Masclet
relation gender
type sex
['Amé-Thérèse-Joseph Masclet', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Amé-Thérèse-Joseph_Masclet property:gender ?w . ?w rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2844607
P22
Q502895
USER
Who was the dad of Amé-Thérèse-Joseph Masclet ?
(Q2844607,P22,c(Q502895))
action filter_type
action find
entity Q2844607
relation P22
type Q502895
['Q2844607', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q2844607 property:P22 ?t . ?t rdf:type ontology:Q502895 }
Amé-Thérèse-Joseph Masclet
action filter_type
action find
entity Amé-Thérèse-Joseph Masclet
relation father
type common name
['Amé-Thérèse-Joseph Masclet', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Amé-Thérèse-Joseph_Masclet property:father ?t . ?t rdf:type ontology:common_name }
[]
common name
Q26721523
SYSTEM
Pierre-François-Joseph Masclet
Q26721523
(Q2844607,P22,c(Q502895))
action filter_type
action find
entity Q2844607
relation P22
type Q502895
The dad of Amé-Thérèse-Joseph Masclet was named [ANSWER]
['Q2844607', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q2844607 property:P22 ?t . ?t rdf:type ontology:Q502895 }
Pierre-François-Joseph Masclet
The dad of Amé-Thérèse-Joseph Masclet was named Pierre-François-Joseph Masclet
Pierre-François-Joseph Masclet
action filter_type
action find
entity Amé-Thérèse-Joseph Masclet
relation father
type common name
['Amé-Thérèse-Joseph Masclet', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Amé-Thérèse-Joseph_Masclet property:father ?t . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q26721523 Q167395
P27
Q15617994
USER
How many administrative territories do Pierre-François-Joseph Masclet or Jassic people belong to ?
(Q26721523,P27,c(Q15617994)) (Q167395,P27,c(Q15617994))
action count
action union
action filter_type
action find
entity Q26721523
relation P27
type Q15617994
action filter_type
action find
entity Q167395
relation P27
type Q15617994
['Q26721523', 'P27', {'concept': 'Q15617994'}] ['Q167395', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { { ?r rdf:type ontology:Q15617994 . resource:Q26721523 property:P27 ?r } UNION { resource:Q167395 property:P27 ?r . ?r rdf:type ontology:Q15617994 } }
Pierre-François-Joseph Masclet Jassic people
action count
action union
action filter_type
action find
entity Pierre-François-Joseph Masclet
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Jassic people
relation country of citizenship
type designation for an administrative territorial entity
['Pierre-François-Joseph Masclet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Jassic people', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Pierre-François-Joseph_Masclet property:country_of_citizenship ?r } UNION { resource:Jassic_people property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q142 Q28
(Q26721523,P27,c(Q15617994)) (Q167395,P27,c(Q15617994))
action count
action union
action filter_type
action find
entity Q26721523
relation P27
type Q15617994
action filter_type
action find
entity Q167395
relation P27
type Q15617994
[ANSWER]
['Q26721523', 'P27', {'concept': 'Q15617994'}] ['Q167395', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { { ?r rdf:type ontology:Q15617994 . resource:Q26721523 property:P27 ?r } UNION { resource:Q167395 property:P27 ?r . ?r rdf:type ontology:Q15617994 } }
France Hungary
2
action count
action union
action filter_type
action find
entity Pierre-François-Joseph Masclet
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Jassic people
relation country of citizenship
type designation for an administrative territorial entity
['Pierre-François-Joseph Masclet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Jassic people', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Pierre-François-Joseph_Masclet property:country_of_citizenship ?r } UNION { resource:Jassic_people property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2844607
P69
Q13226383 Q2385804
USER
How many facilities or educational institutions are the alma mater of Amé-Thérèse-Joseph Masclet ?
(Q2844607,P69,c(Q13226383)) (Q2844607,P69,c(Q2385804))
action count
action union
action filter_type
action find
entity Q2844607
relation P69
type Q13226383
action filter_type
action find
entity Q2844607
relation P69
type Q2385804
['Q2844607', 'P69', {'concept': 'Q13226383'}] ['Q2844607', 'P69', {'concept': 'Q2385804'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { { ?l rdf:type ontology:Q2385804 . resource:Q2844607 property:P69 ?l } UNION { resource:Q2844607 property:P69 ?l . ?l rdf:type ontology:Q13226383 } }
Amé-Thérèse-Joseph Masclet
action count
action union
action filter_type
action find
entity Amé-Thérèse-Joseph Masclet
relation educated at
type facility
action filter_type
action find
entity Amé-Thérèse-Joseph Masclet
relation educated at
type educational institution
['Amé-Thérèse-Joseph Masclet', 'educated at', {'concept': 'facility'}] ['Amé-Thérèse-Joseph Masclet', 'educated at', {'concept': 'educational institution'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { { ?l rdf:type ontology:educational_institution . resource:Amé-Thérèse-Joseph_Masclet property:educated_at ?l } UNION { resource:Amé-Thérèse-Joseph_Masclet property:educated_at ?l . ?l rdf:type ontology:facility } }
[]
facility educational institution
SYSTEM
2
Q2983723 Q1110014
(Q2844607,P69,c(Q13226383)) (Q2844607,P69,c(Q2385804))
action count
action union
action filter_type
action find
entity Q2844607
relation P69
type Q13226383
action filter_type
action find
entity Q2844607
relation P69
type Q2385804
[ANSWER]
['Q2844607', 'P69', {'concept': 'Q13226383'}] ['Q2844607', 'P69', {'concept': 'Q2385804'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { { ?l rdf:type ontology:Q2385804 . resource:Q2844607 property:P69 ?l } UNION { resource:Q2844607 property:P69 ?l . ?l rdf:type ontology:Q13226383 } }
Collège d'Anchin Collège des Grassins
2
action count
action union
action filter_type
action find
entity Amé-Thérèse-Joseph Masclet
relation educated at
type facility
action filter_type
action find
entity Amé-Thérèse-Joseph Masclet
relation educated at
type educational institution
['Amé-Thérèse-Joseph Masclet', 'educated at', {'concept': 'facility'}] ['Amé-Thérèse-Joseph Masclet', 'educated at', {'concept': 'educational institution'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { { ?l rdf:type ontology:educational_institution . resource:Amé-Thérèse-Joseph_Masclet property:educated_at ?l } UNION { resource:Amé-Thérèse-Joseph_Masclet property:educated_at ?l . ?l rdf:type ontology:facility } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2844607
P7
Q502895
USER
Who are Amé-Thérèse-Joseph Masclet a sibling of ?
(Q2844607,P7,c(Q502895))
action filter_type
action find
entity Q2844607
relation P7
type Q502895
['Q2844607', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q2844607 property:P7 ?p . ?p rdf:type ontology:Q502895 }
Amé-Thérèse-Joseph Masclet
action filter_type
action find
entity Amé-Thérèse-Joseph Masclet
relation brother
type common name
['Amé-Thérèse-Joseph Masclet', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Amé-Thérèse-Joseph_Masclet property:brother ?p . ?p rdf:type ontology:common_name }
[]
common name
Q26821175 Q26721517 Q11717210
SYSTEM
Jean-Pierre-Joseph Masclet, Hippolyte Masclet, Jean-Baptiste Masclet
Q26821175 Q26721517 Q11717210
(Q2844607,P7,c(Q502895))
action filter_type
action find
entity Q2844607
relation P7
type Q502895
[ANSWERS] are Amé-Thérèse-Joseph Masclet a sibling of
['Q2844607', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q2844607 property:P7 ?p . ?p rdf:type ontology:Q502895 }
Jean-Pierre-Joseph Masclet Hippolyte Masclet Jean-Baptiste Masclet
Jean-Pierre-Joseph Masclet, Hippolyte Masclet and Jean-Baptiste Masclet are Amé-Thérèse-Joseph Masclet a sibling of
Jean-Pierre-Joseph Masclet Hippolyte Masclet Jean-Baptiste Masclet
action filter_type
action find
entity Amé-Thérèse-Joseph Masclet
relation brother
type common name
['Amé-Thérèse-Joseph Masclet', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Amé-Thérèse-Joseph_Masclet property:brother ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21282352
Q502895
USER
And how about Kevin O'Donnell?
(Q21282352,P7,c(Q502895))
action filter_type
action find
entity Q21282352
relation P7
type Q502895
['Q21282352', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q21282352 property:P7 ?f . ?f rdf:type ontology:Q502895 }
Kevin O'Donnell
action filter_type
action find
entity Kevin O'Donnell
relation brother
type common name
["Kevin O'Donnell", 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Kevin_O'Donnell property:brother ?f . ?f rdf:type ontology:common_name }
[]
common name
Q21282353 Q21282350
SYSTEM
Mark O'Donnell, Kenneth O'Donnell, jr.
Q21282353 Q21282350
(Q21282352,P7,c(Q502895))
action filter_type
action find
entity Q21282352
relation P7
type Q502895
[ANSWERS]
['Q21282352', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q21282352 property:P7 ?f . ?f rdf:type ontology:Q502895 }
Mark O'Donnell Kenneth O'Donnell, jr.
Mark O'Donnell Kenneth O'Donnell, jr.
action filter_type
action find
entity Kevin O'Donnell
relation brother
type common name
["Kevin O'Donnell", 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Kevin_O'Donnell property:brother ?f . ?f rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q21282354
P7
Q502895
USER
Are those ones a brother of Helen O'Donnell ?
(Q21282354,P7,Q21282353) (Q21282354,P7,Q21282350)
action is_in
entity prev_answer
action find
entity Q21282354
relation P7
['Q21282354', 'P7', 'Q21282353'] ['Q21282354', 'P7', 'Q21282350']
ASK WHERE { VALUES ( ?j ) { ( resource:Q21282353 ) ( resource:Q21282350 ) } . resource:Q21282354 property:P7 ?j }
Helen O'Donnell
action is_in
entity prev_answer
action find
entity Helen O'Donnell
relation brother
["Helen O'Donnell", 'brother', "Mark O'Donnell"] ["Helen O'Donnell", 'brother', "Kenneth O'Donnell, jr."]
ASK WHERE { VALUES ( ?j ) { ( resource:Mark_O'Donnell ) ( resource:Kenneth_O'Donnell,_jr. ) } . resource:Helen_O'Donnell property:brother ?j }
[]
common name
SYSTEM
YES
(Q21282354,P7,Q21282353) (Q21282354,P7,Q21282350)
action is_in
entity prev_answer
action find
entity Q21282354
relation P7
[ANSWER]
['Q21282354', 'P7', 'Q21282353'] ['Q21282354', 'P7', 'Q21282350']
ASK WHERE { VALUES ( ?j ) { ( resource:Q21282353 ) ( resource:Q21282350 ) } . resource:Q21282354 property:P7 ?j }
Yes
action is_in
entity prev_answer
action find
entity Helen O'Donnell
relation brother
["Helen O'Donnell", 'brother', "Mark O'Donnell"] ["Helen O'Donnell", 'brother', "Kenneth O'Donnell, jr."]
ASK WHERE { VALUES ( ?j ) { ( resource:Mark_O'Donnell ) ( resource:Kenneth_O'Donnell,_jr. ) } . resource:Helen_O'Donnell property:brother ?j }
[]