Simple Question (Direct)
Simple Question
Q349211
P53
Q8436
USER
What is the family that Leka, Crown Prince of Albania belongs to ?
(Q349211,P53,c(Q8436))
action filter_type
action find
entity Q349211
relation P53
type Q8436
['Q349211', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q8436 . resource:Q349211 property:P53 ?p }
Leka, Crown Prince of Albania
action filter_type
action find
entity Leka, Crown Prince of Albania
relation noble family
type family
['Leka, Crown Prince of Albania', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:family . resource:Leka,_Crown_Prince_of_Albania property:noble_family ?p }
[]
family
Q2427192
SYSTEM
House of Zogu
Q2427192
(Q349211,P53,c(Q8436))
action filter_type
action find
entity Q349211
relation P53
type Q8436
The family that Leka , Crown Prince of Albania belongs to is the [ANSWER]
['Q349211', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q8436 . resource:Q349211 property:P53 ?p }
House of Zogu
The family that Leka , Crown Prince of Albania belongs to is the House of Zogu
House of Zogu
action filter_type
action find
entity Leka, Crown Prince of Albania
relation noble family
type family
['Leka, Crown Prince of Albania', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:family . resource:Leka,_Crown_Prince_of_Albania property:noble_family ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q349211
P140
Q874405
USER
Which social group does that person relate to ?
(Q2427192,P140,c(Q874405))
action filter_type
action find
entity Q349211
relation P140
type Q874405
['Q2427192', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?z WHERE { resource:Q349211 property:P140 ?z . ?z rdf:type ontology:Q874405 }
Leka, Crown Prince of Albania
action filter_type
action find
entity Leka, Crown Prince of Albania
relation religion
type social group
['House of Zogu', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?z WHERE { resource:Leka,_Crown_Prince_of_Albania property:religion ?z . ?z rdf:type ontology:social_group }
[]
social group
Q432
SYSTEM
Islam
Q432
(Q2427192,P140,c(Q874405))
action filter_type
action find
entity Q349211
relation P140
type Q874405
That person relates to [ANSWER]
['Q2427192', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?z WHERE { resource:Q349211 property:P140 ?z . ?z rdf:type ontology:Q874405 }
Islam
That person relates to Islam
Islam
action filter_type
action find
entity Leka, Crown Prince of Albania
relation religion
type social group
['House of Zogu', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?z WHERE { resource:Leka,_Crown_Prince_of_Albania property:religion ?z . ?z rdf:type ontology:social_group }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P140
Q874405 Q502895
USER
How many social groups are the religious affiliation of lesser number of people than that social group ?
(c(Q502895),P140,c(Q874405))
action count
action less
action find_reverse_tuple_counts
relation P140
type Q874405
type Q502895
action count
action filter_type
action find_reverse
entity Q432
relation P140
type Q502895
[{'concept': 'Q502895'}, 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:P140 ?e . ?e rdf:type ontology:Q874405 . ?f rdf:type ontology:Q502895 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:P140 resource:Q432 . ?i rdf:type ontology:Q502895 } } . FILTER ( ?o < ?m ) }
action count
action less
action find_reverse_tuple_counts
relation religion
type social group
type common name
action count
action filter_type
action find_reverse
entity Islam
relation religion
type common name
[{'concept': 'common name'}, 'religion', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:religion ?e . ?e rdf:type ontology:social_group . ?f rdf:type ontology:common_name } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:religion resource:Islam . ?i rdf:type ontology:common_name } } . FILTER ( ?o < ?m ) }
[]
social group common name
SYSTEM
47
Q3268181 Q893252 Q737323 Q29536 Q9163 Q7307527 Q447131 Q59774 Q43004 Q748 Q395233 Q797944 Q23540 Q1022860 Q812767 Q16727242 Q747802 Q9089 Q9268 Q7340 Q1820380 Q275051 Q837605 Q5043 Q540754 Q106687 Q101462 Q133363 Q9316 Q9232 Q210540 Q18670106 Q16055034 Q1086440 Q101849 Q1426400 Q463420 Q75809 Q131165 Q21747520 Q234953 Q1755789 Q9601 Q620629 Q1275961 Q752660 Q369557
(c(Q502895),P140,c(Q874405))
action count
action less
action find_reverse_tuple_counts
relation P140
type Q874405
type Q502895
action count
action filter_type
action find_reverse
entity Q432
relation P140
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:P140 ?e . ?e rdf:type ontology:Q874405 . ?f rdf:type ontology:Q502895 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:P140 resource:Q432 . ?i rdf:type ontology:Q502895 } } . FILTER ( ?o < ?m ) }
Presbyterian Church in the United States Universalist Church of America Tenrikyo paganism polytheism Reformed Presbyterian Church religion of ancient Egypt Wicca animism Buddhism Agon Shu Babylonian religion Protestantism Tablighi Jamaat Shinto Bathouism Mormonism Hinduism Judaism Discordianism Church of Scientology Sumerian religion Tengrism Christianity Anglican Church in Aotearoa, New Zealand and Polynesia Unitarianism Rastafari movement satanism Sikhism Jainism Syriac Orthodox Church Yezidism undenominationalism Yoruba religion Calvinism Homaranismo Triratna Buddhist Community Lutheranism manichaeism interdenominational organization Shaivism The New Church Zoroastrianism deism Cult of Reason Candomblé Methodist Episcopal Church
47
action count
action less
action find_reverse_tuple_counts
relation religion
type social group
type common name
action count
action filter_type
action find_reverse
entity Islam
relation religion
type common name
[{'concept': 'common name'}, 'religion', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:religion ?e . ?e rdf:type ontology:social_group . ?f rdf:type ontology:common_name } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:religion resource:Islam . ?i rdf:type ontology:common_name } } . FILTER ( ?o < ?m ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3383023
P1066
Q502895
USER
Which person is a pupil of Pierre-François Brice ?
(c(Q502895),P1066,Q3383023)
action filter_type
action find_reverse
entity Q3383023
relation P1066
type Q502895
[{'concept': 'Q502895'}, 'P1066', 'Q3383023']
SELECT DISTINCT ?z WHERE { ?z property:P1066 resource:Q3383023 . ?z rdf:type ontology:Q502895 }
Pierre-François Brice
action filter_type
action find_reverse
entity Pierre-François Brice
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Pierre-François Brice']
SELECT DISTINCT ?z WHERE { ?z property:student_of resource:Pierre-François_Brice . ?z rdf:type ontology:common_name }
[]
common name
Q2853739
SYSTEM
Antoine Brice
Q2853739
(c(Q502895),P1066,Q3383023)
action filter_type
action find_reverse
entity Q3383023
relation P1066
type Q502895
[ANSWER] is a pupil of Pierre-François Brice
[{'concept': 'Q502895'}, 'P1066', 'Q3383023']
SELECT DISTINCT ?z WHERE { ?z property:P1066 resource:Q3383023 . ?z rdf:type ontology:Q502895 }
Antoine Brice
Antoine Brice is a pupil of Pierre-François Brice
Antoine Brice
action filter_type
action find_reverse
entity Pierre-François Brice
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Pierre-François Brice']
SELECT DISTINCT ?z WHERE { ?z property:student_of resource:Pierre-François_Brice . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2853739
P19
Q515
USER
Which city was that person born at ?
(Q2853739,P19,c(Q515))
action filter_type
action find
entity Q2853739
relation P19
type Q515
['Q2853739', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?o WHERE { resource:Q2853739 property:P19 ?o . ?o rdf:type ontology:Q515 }
Antoine Brice
action filter_type
action find
entity Antoine Brice
relation place of birth
type city
['Antoine Brice', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?o WHERE { resource:Antoine_Brice property:place_of_birth ?o . ?o rdf:type ontology:city }
[]
city
Q9005
SYSTEM
Brussels
Q9005
(Q2853739,P19,c(Q515))
action filter_type
action find
entity Q2853739
relation P19
type Q515
That person was born in [ANSWER]
['Q2853739', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?o WHERE { resource:Q2853739 property:P19 ?o . ?o rdf:type ontology:Q515 }
Brussels
That person was born in Brussels
Brussels
action filter_type
action find
entity Antoine Brice
relation place of birth
type city
['Antoine Brice', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?o WHERE { resource:Antoine_Brice property:place_of_birth ?o . ?o rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2853739
P106
Q12737077
USER
Which occupation has Antoine Brice as his/her 's career ?
(Q2853739,P106,c(Q12737077))
action filter_type
action find
entity Q2853739
relation P106
type Q12737077
['Q2853739', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q12737077 . resource:Q2853739 property:P106 ?d }
Antoine Brice
action filter_type
action find
entity Antoine Brice
relation occupation
type occupation
['Antoine Brice', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:occupation . resource:Antoine_Brice property:occupation ?d }
[]
occupation
Q1028181
SYSTEM
painter
Q1028181
(Q2853739,P106,c(Q12737077))
action filter_type
action find
entity Q2853739
relation P106
type Q12737077
The [ANSWER] has Antoine Brice as his/her 's career
['Q2853739', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q12737077 . resource:Q2853739 property:P106 ?d }
painter
The painter has Antoine Brice as his/her 's career
painter
action filter_type
action find
entity Antoine Brice
relation occupation
type occupation
['Antoine Brice', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:occupation . resource:Antoine_Brice property:occupation ?d }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1028181 Q16058462 Q11598085
P417
Q502895
USER
Does that occupation have Fred Evans and Hiroaki Tateishi as their patron saint ?
(Q1028181,P417,Q16058462) (Q1028181,P417,Q11598085)
action is_in
entity Q1028181
action intersection
action find_reverse
entity Q16058462
relation P417
action find_reverse
entity Q11598085
relation P417
['Q1028181', 'P417', 'Q16058462'] ['Q1028181', 'P417', 'Q11598085']
ASK WHERE { resource:Q1028181 property:P417 resource:Q16058462 . resource:Q1028181 property:P417 resource:Q11598085 }
painter Fred Evans Hiroaki Tateishi
action is_in
entity painter
action intersection
action find_reverse
entity Fred Evans
relation patron saint
action find_reverse
entity Hiroaki Tateishi
relation patron saint
['painter', 'patron saint', 'Fred Evans'] ['painter', 'patron saint', 'Hiroaki Tateishi']
ASK WHERE { resource:painter property:patron_saint resource:Fred_Evans . resource:painter property:patron_saint resource:Hiroaki_Tateishi }
[]
common name
SYSTEM
NO
(Q1028181,P417,Q16058462) (Q1028181,P417,Q11598085)
action is_in
entity Q1028181
action intersection
action find_reverse
entity Q16058462
relation P417
action find_reverse
entity Q11598085
relation P417
[ANSWER]
['Q1028181', 'P417', 'Q16058462'] ['Q1028181', 'P417', 'Q11598085']
ASK WHERE { resource:Q1028181 property:P417 resource:Q16058462 . resource:Q1028181 property:P417 resource:Q11598085 }
No
action is_in
entity painter
action intersection
action find_reverse
entity Fred Evans
relation patron saint
action find_reverse
entity Hiroaki Tateishi
relation patron saint
['painter', 'patron saint', 'Fred Evans'] ['painter', 'patron saint', 'Hiroaki Tateishi']
ASK WHERE { resource:painter property:patron_saint resource:Fred_Evans . resource:painter property:patron_saint resource:Hiroaki_Tateishi }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1766715 Q16058462
P47 P27
Q1048835
USER
Which political territories are the native countriesof Fred Evans or are bordered by Viana de Cega ?
OR((Q16058462,P27,c(Q1048835)), (Q1766715,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q16058462
relation P27
action find
entity Q1766715
relation P47
type Q1048835
{'OR': [['Q16058462', 'P27', {'concept': 'Q1048835'}], ['Q1766715', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q16058462 property:P27 ?y } UNION { resource:Q1766715 property:P47 ?y } } . ?y rdf:type ontology:Q1048835 }
Viana de Cega Fred Evans
action filter_type
action union
action find
entity Fred Evans
relation country of citizenship
action find
entity Viana de Cega
relation shares border with
type political territorial entity
{'OR': [['Fred Evans', 'country of citizenship', {'concept': 'political territorial entity'}], ['Viana de Cega', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Fred_Evans property:country_of_citizenship ?y } UNION { resource:Viana_de_Cega property:shares_border_with ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q949199 Q1651722 Q1651735 Q408 Q664 Q1766688
SYSTEM
Boecillo, Villanueva de Duero, La Pedraja de Portillo, Australia, New Zealand, Valdestillas
Q949199 Q1651722 Q1651735 Q408 Q664 Q1766688
OR((Q16058462,P27,c(Q1048835)), (Q1766715,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q16058462
relation P27
action find
entity Q1766715
relation P47
type Q1048835
[ANSWERS] are the native countriesof Fred Evans or are bordered by Viana de Cega
{'OR': [['Q16058462', 'P27', {'concept': 'Q1048835'}], ['Q1766715', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q16058462 property:P27 ?y } UNION { resource:Q1766715 property:P47 ?y } } . ?y rdf:type ontology:Q1048835 }
Boecillo Villanueva de Duero La Pedraja de Portillo Australia New Zealand Valdestillas
Boecillo, Villanueva de Duero, La Pedraja de Portillo, Australia, New Zealand and Valdestillas are the native countriesof Fred Evans or are bordered by Viana de Cega
Boecillo Villanueva de Duero La Pedraja de Portillo Australia New Zealand Valdestillas
action filter_type
action union
action find
entity Fred Evans
relation country of citizenship
action find
entity Viana de Cega
relation shares border with
type political territorial entity
{'OR': [['Fred Evans', 'country of citizenship', {'concept': 'political territorial entity'}], ['Viana de Cega', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Fred_Evans property:country_of_citizenship ?y } UNION { resource:Viana_de_Cega property:shares_border_with ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q408
P530
Q183366 Q56061
USER
How many territories and administrative territories have tactful political relations with Australia ?
(c(Q183366),P530,Q408) (c(Q56061),P530,Q408)
action count
action union
action filter_type
action find_reverse
entity Q408
relation P530
type Q183366
action filter_type
action find_reverse
entity Q408
relation P530
type Q56061
[{'concept': 'Q183366'}, 'P530', 'Q408'] [{'concept': 'Q56061'}, 'P530', 'Q408']
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { ?j property:P530 resource:Q408 . ?j rdf:type ontology:Q183366 } UNION { ?j property:P530 resource:Q408 . ?j rdf:type ontology:Q56061 } }
Australia
action count
action union
action filter_type
action find_reverse
entity Australia
relation diplomatic relation
type territory
action filter_type
action find_reverse
entity Australia
relation diplomatic relation
type administrative territorial entity
[{'concept': 'territory'}, 'diplomatic relation', 'Australia'] [{'concept': 'administrative territorial entity'}, 'diplomatic relation', 'Australia']
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { ?j property:diplomatic_relation resource:Australia . ?j rdf:type ontology:territory } UNION { ?j property:diplomatic_relation resource:Australia . ?j rdf:type ontology:administrative_territorial_entity } }
[]
territory administrative territorial entity
SYSTEM
1 territories and 1 administrative territories
Q334 Q846
(c(Q183366),P530,Q408) (c(Q56061),P530,Q408)
action count
action union
action filter_type
action find_reverse
entity Q408
relation P530
type Q183366
action filter_type
action find_reverse
entity Q408
relation P530
type Q56061
[ANSWER]
[{'concept': 'Q183366'}, 'P530', 'Q408'] [{'concept': 'Q56061'}, 'P530', 'Q408']
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { ?j property:P530 resource:Q408 . ?j rdf:type ontology:Q183366 } UNION { ?j property:P530 resource:Q408 . ?j rdf:type ontology:Q56061 } }
Singapore Qatar
1 territories and 1 administrative territories
action count
action union
action filter_type
action find_reverse
entity Australia
relation diplomatic relation
type territory
action filter_type
action find_reverse
entity Australia
relation diplomatic relation
type administrative territorial entity
[{'concept': 'territory'}, 'diplomatic relation', 'Australia'] [{'concept': 'administrative territorial entity'}, 'diplomatic relation', 'Australia']
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { ?j property:diplomatic_relation resource:Australia . ?j rdf:type ontology:territory } UNION { ?j property:diplomatic_relation resource:Australia . ?j rdf:type ontology:administrative_territorial_entity } }
[]