Simple Question (Direct)
Simple Question
Q18636685
P108
Q484652
USER
Which international organizations employ Inger Andersen, environmentalist ?
(Q18636685,P108,c(Q484652))
action filter_type
action find
entity Q18636685
relation P108
type Q484652
['Q18636685', 'P108', {'concept': 'Q484652'}]
SELECT DISTINCT ?k WHERE { resource:Q18636685 property:P108 ?k . ?k rdf:type ontology:Q484652 }
Inger Andersen, environmentalist
action filter_type
action find
entity Inger Andersen, environmentalist
relation employer
type international organization
['Inger Andersen, environmentalist', 'employer', {'concept': 'international organization'}]
SELECT DISTINCT ?k WHERE { resource:Inger_Andersen,_environmentalist property:employer ?k . ?k rdf:type ontology:international_organization }
[]
international organization
Q7164 Q1065
SYSTEM
World Bank, United Nations
Q7164 Q1065
(Q18636685,P108,c(Q484652))
action filter_type
action find
entity Q18636685
relation P108
type Q484652
[ANSWERS] employ Inger Andersen, environmentalist
['Q18636685', 'P108', {'concept': 'Q484652'}]
SELECT DISTINCT ?k WHERE { resource:Q18636685 property:P108 ?k . ?k rdf:type ontology:Q484652 }
World Bank United Nations
World Bank and United Nations employ Inger Andersen, environmentalist
World Bank United Nations
action filter_type
action find
entity Inger Andersen, environmentalist
relation employer
type international organization
['Inger Andersen, environmentalist', 'employer', {'concept': 'international organization'}]
SELECT DISTINCT ?k WHERE { resource:Inger_Andersen,_environmentalist property:employer ?k . ?k rdf:type ontology:international_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18636685
P106
Q12737077
USER
What is the profession of that person ?
(Q7164,P106,c(Q12737077)) (Q1065,P106,c(Q12737077))
action filter_type
action find
entity Q18636685
relation P106
type Q12737077
['Q7164', 'P106', {'concept': 'Q12737077'}] ['Q1065', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q18636685 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Inger Andersen, environmentalist
action filter_type
action find
entity Inger Andersen, environmentalist
relation occupation
type occupation
['World Bank', 'occupation', {'concept': 'occupation'}] ['United Nations', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Inger_Andersen,_environmentalist property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q188094
SYSTEM
economist
Q188094
(Q7164,P106,c(Q12737077)) (Q1065,P106,c(Q12737077))
action filter_type
action find
entity Q18636685
relation P106
type Q12737077
The profession of that person is an [ANSWER]
['Q7164', 'P106', {'concept': 'Q12737077'}] ['Q1065', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q18636685 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
economist
The profession of that person is an economist
economist
action filter_type
action find
entity Inger Andersen, environmentalist
relation occupation
type occupation
['World Bank', 'occupation', {'concept': 'occupation'}] ['United Nations', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Inger_Andersen,_environmentalist property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18636685
P21
Q290
USER
Which sex does Inger Andersen, environmentalist possess ?
(Q18636685,P21,c(Q290))
action filter_type
action find
entity Q18636685
relation P21
type Q290
['Q18636685', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q18636685 property:P21 ?h }
Inger Andersen, environmentalist
action filter_type
action find
entity Inger Andersen, environmentalist
relation gender
type sex
['Inger Andersen, environmentalist', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Inger_Andersen,_environmentalist property:gender ?h }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q18636685,P21,c(Q290))
action filter_type
action find
entity Q18636685
relation P21
type Q290
Inger Andersen , environmentalist possesses a [ANSWER]
['Q18636685', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . resource:Q18636685 property:P21 ?h }
female
Inger Andersen , environmentalist possesses a female
female
action filter_type
action find
entity Inger Andersen, environmentalist
relation gender
type sex
['Inger Andersen, environmentalist', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . resource:Inger_Andersen,_environmentalist property:gender ?h }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26715050
Q290
USER
And also tell me about Jacques-Nicolas-René Gastineau?
(Q26715050,P21,c(Q290))
action filter_type
action find
entity Q26715050
relation P21
type Q290
['Q26715050', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q26715050 property:P21 ?g . ?g rdf:type ontology:Q290 }
Jacques-Nicolas-René Gastineau
action filter_type
action find
entity Jacques-Nicolas-René Gastineau
relation gender
type sex
['Jacques-Nicolas-René Gastineau', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Jacques-Nicolas-René_Gastineau property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q26715050,P21,c(Q290))
action filter_type
action find
entity Q26715050
relation P21
type Q290
[ANSWER]
['Q26715050', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q26715050 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Jacques-Nicolas-René Gastineau
relation gender
type sex
['Jacques-Nicolas-René Gastineau', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Jacques-Nicolas-René_Gastineau property:gender ?g . ?g rdf:type ontology:sex }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P21
Q290 Q502895
USER
Which sexes are the sex of less number of people than that sex ?
(c(Q502895),P21,c(Q290))
action less
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q502895
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:P21 ?p . ?p rdf:type ontology:Q290 . ?g rdf:type ontology:Q502895 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z property:P21 resource:Q6581097 . ?z rdf:type ontology:Q502895 } } . FILTER ( ?m < ?q ) }
action less
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find_reverse
entity male
relation gender
type common name
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:gender ?p . ?p rdf:type ontology:sex . ?g rdf:type ontology:common_name } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z property:gender resource:male . ?z rdf:type ontology:common_name } } . FILTER ( ?m < ?q ) }
[]
sex common name
Q6581072
SYSTEM
female
Q6581072
(c(Q502895),P21,c(Q290))
action less
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] is the sex of less number of people than that sex
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:P21 ?p . ?p rdf:type ontology:Q290 . ?g rdf:type ontology:Q502895 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z property:P21 resource:Q6581097 . ?z rdf:type ontology:Q502895 } } . FILTER ( ?m < ?q ) }
female
Female is the sex of less number of people than that sex
female
action less
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find_reverse
entity male
relation gender
type common name
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?m ) WHERE { ?g property:gender ?p . ?p rdf:type ontology:sex . ?g rdf:type ontology:common_name } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z property:gender resource:male . ?z rdf:type ontology:common_name } } . FILTER ( ?m < ?q ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581072 Q4947542
P21
Q502895
USER
Does Liten Falkeholm have the gender as that sex ?
(Q4947542,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q4947542
relation P21
['Q4947542', 'P21', 'Q6581072']
ASK WHERE { resource:Q4947542 property:P21 resource:Q6581072 }
female Liten Falkeholm
action is_in
entity female
action find
entity Liten Falkeholm
relation gender
['Liten Falkeholm', 'gender', 'female']
ASK WHERE { resource:Liten_Falkeholm property:gender resource:female }
[]
common name
SYSTEM
YES
(Q4947542,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q4947542
relation P21
[ANSWER]
['Q4947542', 'P21', 'Q6581072']
ASK WHERE { resource:Q4947542 property:P21 resource:Q6581072 }
Yes
action is_in
entity female
action find
entity Liten Falkeholm
relation gender
['Liten Falkeholm', 'gender', 'female']
ASK WHERE { resource:Liten_Falkeholm property:gender resource:female }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the names of the patron saint of atleast 3 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:P417 ?x . ?i rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?p >= 3 ) }
action count
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:patron_saint ?x . ?i rdf:type ontology:occupation . ?x rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?p >= 3 ) }
[]
common name occupation
SYSTEM
6
Q128538 Q192816 Q43982 Q179718 Q43600 Q200895
(c(Q12737077),P417,c(Q502895))
action count
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:P417 ?x . ?i rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?p >= 3 ) }
Luke the Evangelist Saint Barbara Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle Agatha of Sicily
6
action count
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?p ) WHERE { ?i property:patron_saint ?x . ?i rdf:type ontology:occupation . ?x rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?p >= 3 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the names of the patron saint of approximately 2 occupations ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?t ) WHERE { ?h rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 . ?n property:P417 ?h } GROUP BY ?h } . FILTER ( ?t = 2 ) }
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?t ) WHERE { ?h rdf:type ontology:common_name . ?n rdf:type ontology:occupation . ?n property:patron_saint ?h } GROUP BY ?h } . FILTER ( ?t = 2 ) }
[]
common name occupation
Q166876 Q229190 Q44248
SYSTEM
Isidore of Seville, Catherine of Siena, Jerome
Q229190 Q328804 Q166876 Q170547 Q183240 Q196653 Q44265 Q744884 Q151967 Q44248
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[ANSWERS] are the names of the patron saint of approximately 2 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?t ) WHERE { ?h rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 . ?n property:P417 ?h } GROUP BY ?h } . FILTER ( ?t = 2 ) }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Saint Lucy Saint Veronica Benedict of Nursia Zita Saint Blaise Jerome
Isidore of Seville, Catherine of Siena and Jerome are the names of the patron saint of approximately 2 occupations
Isidore of Seville Catherine of Siena Jerome
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?n ) AS ?t ) WHERE { ?h rdf:type ontology:common_name . ?n rdf:type ontology:occupation . ?n property:patron_saint ?h } GROUP BY ?h } . FILTER ( ?t = 2 ) }
[]