Simple Question (Direct)
Simple Question
Q121851
P21
Q290
USER
What is the sex of Hermann Lei ?
(Q121851,P21,c(Q290))
action filter_type
action find
entity Q121851
relation P21
type Q290
['Q121851', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q121851 property:P21 ?m . ?m rdf:type ontology:Q290 }
Hermann Lei
action filter_type
action find
entity Hermann Lei
relation gender
type sex
['Hermann Lei', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Hermann_Lei property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q121851,P21,c(Q290))
action filter_type
action find
entity Q121851
relation P21
type Q290
The sex of Hermann Lei is the [ANSWER]
['Q121851', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q121851 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
The sex of Hermann Lei is the male
male
action filter_type
action find
entity Hermann Lei
relation gender
type sex
['Hermann Lei', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Hermann_Lei property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q121851
P106
Q12737077
USER
Which occupation has Hermann Lei as his/her 's career ?
(Q121851,P106,c(Q12737077))
action filter_type
action find
entity Q121851
relation P106
type Q12737077
['Q121851', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q121851 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Hermann Lei
action filter_type
action find
entity Hermann Lei
relation occupation
type occupation
['Hermann Lei', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Hermann_Lei property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q121851,P106,c(Q12737077))
action filter_type
action find
entity Q121851
relation P106
type Q12737077
Hermann has Lei as his / her's career a [ANSWER]
['Q121851', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q121851 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
politician
Hermann has Lei as his / her's career a politician
politician
action filter_type
action find
entity Hermann Lei
relation occupation
type occupation
['Hermann Lei', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Hermann_Lei property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q434171
Q12737077
USER
And what about Michael William Balfe?
(Q434171,P106,c(Q12737077))
action filter_type
action find
entity Q434171
relation P106
type Q12737077
['Q434171', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q434171 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Michael William Balfe
action filter_type
action find
entity Michael William Balfe
relation occupation
type occupation
['Michael William Balfe', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Michael_William_Balfe property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q2865819 Q36834 Q158852
SYSTEM
opera singer, composer, conductor
Q158852 Q2865819 Q36834 Q753110
(Q434171,P106,c(Q12737077))
action filter_type
action find
entity Q434171
relation P106
type Q12737077
[ANSWERS]
['Q434171', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q434171 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
conductor opera singer composer songwriter
opera singer composer conductor
action filter_type
action find
entity Michael William Balfe
relation occupation
type occupation
['Michael William Balfe', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Michael_William_Balfe property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P425
Q1914636
USER
How many activities are associated with the field of occupation that occupation ?
(Q2865819,P425,c(Q1914636))
['Q2865819', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2865819 property:P425 ?z . ?z rdf:type ontology:Q423229 }
['opera singer', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:opera_singer property:field_of_this_occupation ?z . ?z rdf:type ontology:activity }
[]
activity
Quantitative|Count|Single entity type|Clarification
Q158852
SYSTEM
Did you mean conductor ?
(Q2865819,P425,c(Q1914636)) (Q36834,P425,c(Q1914636)) (Q158852,P425,c(Q1914636))
[ANSWER]
['Q2865819', 'P425', {'concept': 'Q1914636'}] ['Q36834', 'P425', {'concept': 'Q1914636'}] ['Q158852', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2865819 property:P425 ?z . ?z rdf:type ontology:Q423229 }
Did you mean conductor ?
conductor
['opera singer', 'field of this occupation', {'concept': 'activity'}] ['composer', 'field of this occupation', {'concept': 'activity'}] ['conductor', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:opera_singer property:field_of_this_occupation ?z . ?z rdf:type ontology:activity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant opera singer. Could you tell me the answer for that?
(Q2865819,P425,c(Q1914636))
Q2865819
['Q2865819', 'P425', {'concept': 'Q1914636'}]
['opera singer', 'field of this occupation', {'concept': 'activity'}]
[]
SYSTEM
1
Q2956237
(Q2865819,P425,c(Q1914636))
[ANSWER]
['Q2865819', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2865819 property:P425 ?z . ?z rdf:type ontology:Q423229 }
lyric singing
1
['opera singer', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:opera_singer property:field_of_this_occupation ?z . ?z rdf:type ontology:activity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q196157
P417
Q502895 Q12737077
USER
How many people are the patron saint of more number of occupations than Louis of Toulouse ?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q196157
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?i ) WHERE { ?p property:P417 ?c . ?c rdf:type ontology:Q502895 . ?p rdf:type ontology:Q12737077 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { resource:Q196157 property:P417 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?i > ?g ) }
Louis of Toulouse
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Louis of Toulouse
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?i ) WHERE { ?p property:patron_saint ?c . ?c rdf:type ontology:common_name . ?p rdf:type ontology:occupation } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { resource:Louis_of_Toulouse property:patron_saint ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?i > ?g ) }
[]
common name occupation
SYSTEM
54
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q196157
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?i ) WHERE { ?p property:P417 ?c . ?c rdf:type ontology:Q502895 . ?p rdf:type ontology:Q12737077 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { resource:Q196157 property:P417 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?i > ?g ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Louis of Toulouse
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?i ) WHERE { ?p property:patron_saint ?c . ?c rdf:type ontology:common_name . ?p rdf:type ontology:occupation } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { resource:Louis_of_Toulouse property:patron_saint ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?i > ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q121851
P102
Q7210356
USER
Which political organization is Hermann Lei a member of ?
(Q121851,P102,c(Q7210356))
action filter_type
action find
entity Q121851
relation P102
type Q7210356
['Q121851', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q121851 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Hermann Lei
action filter_type
action find
entity Hermann Lei
relation member of political party
type political organization
['Hermann Lei', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Hermann_Lei property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
political organization
Q385258
SYSTEM
Swiss People's Party
Q385258
(Q121851,P102,c(Q7210356))
action filter_type
action find
entity Q121851
relation P102
type Q7210356
[ANSWER] is Hermann Lei a member of
['Q121851', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?a WHERE { resource:Q121851 property:P102 ?a . ?a rdf:type ontology:Q7210356 }
Swiss People's Party
Swiss People's Party is Hermann Lei a member of
Swiss People's Party
action filter_type
action find
entity Hermann Lei
relation member of political party
type political organization
['Hermann Lei', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?a WHERE { resource:Hermann_Lei property:member_of_political_party ?a . ?a rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q385258 Q11564025
P112
Q502895
USER
Was Minamoto no Tsutomu the founder of that political organization ?
(Q385258,P112,Q11564025)
action is_in
entity Q11564025
action find
entity Q385258
relation P112
['Q385258', 'P112', 'Q11564025']
ASK WHERE { resource:Q385258 property:P112 resource:Q11564025 }
Swiss People's Party Minamoto no Tsutomu
action is_in
entity Minamoto no Tsutomu
action find
entity Swiss People's Party
relation founder
["Swiss People's Party", 'founder', 'Minamoto no Tsutomu']
ASK WHERE { resource:Swiss_People's_Party property:founder resource:Minamoto_no_Tsutomu }
[]
common name
SYSTEM
NO
(Q385258,P112,Q11564025)
action is_in
entity Q11564025
action find
entity Q385258
relation P112
[ANSWER]
['Q385258', 'P112', 'Q11564025']
ASK WHERE { resource:Q385258 property:P112 resource:Q11564025 }
No
action is_in
entity Minamoto no Tsutomu
action find
entity Swiss People's Party
relation founder
["Swiss People's Party", 'founder', 'Minamoto no Tsutomu']
ASK WHERE { resource:Swiss_People's_Party property:founder resource:Minamoto_no_Tsutomu }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2865819 Q4610694
P425
Q1914636
USER
Does 2008 Cameroonian anti-government protests have opera singer as the associated field of occupation ?
(Q2865819,P425,Q4610694)
action is_in
entity Q4610694
action find
entity Q2865819
relation P425
['Q2865819', 'P425', 'Q4610694']
ASK WHERE { resource:Q2865819 property:P425 resource:Q4610694 }
opera singer 2008 Cameroonian anti-government protests
action is_in
entity 2008 Cameroonian anti-government protests
action find
entity opera singer
relation field of this occupation
['opera singer', 'field of this occupation', '2008 Cameroonian anti-government protests']
ASK WHERE { resource:opera_singer property:field_of_this_occupation resource:2008_Cameroonian_anti-government_protests }
[]
activity
SYSTEM
NO
(Q2865819,P425,Q4610694)
action is_in
entity Q4610694
action find
entity Q2865819
relation P425
[ANSWER]
['Q2865819', 'P425', 'Q4610694']
ASK WHERE { resource:Q2865819 property:P425 resource:Q4610694 }
No
action is_in
entity 2008 Cameroonian anti-government protests
action find
entity opera singer
relation field of this occupation
['opera singer', 'field of this occupation', '2008 Cameroonian anti-government protests']
ASK WHERE { resource:opera_singer property:field_of_this_occupation resource:2008_Cameroonian_anti-government_protests }
[]