Simple Question (Direct)
Simple Question
Q2838349
P27
Q1048835
USER
Which political territory is Allister Grosart a civilian of ?
(Q2838349,P27,c(Q1048835))
action filter_type
action find
entity Q2838349
relation P27
type Q1048835
['Q2838349', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1048835 . resource:Q2838349 property:P27 ?a }
Allister Grosart
action filter_type
action find
entity Allister Grosart
relation country of citizenship
type political territorial entity
['Allister Grosart', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Allister_Grosart property:country_of_citizenship ?a }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q2838349,P27,c(Q1048835))
action filter_type
action find
entity Q2838349
relation P27
type Q1048835
[ANSWER] is Allister Grosart a civilian of
['Q2838349', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1048835 . resource:Q2838349 property:P27 ?a }
Canada
Canada is Allister Grosart a civilian of
Canada
action filter_type
action find
entity Allister Grosart
relation country of citizenship
type political territorial entity
['Allister Grosart', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:political_territorial_entity . resource:Allister_Grosart property:country_of_citizenship ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P163
Q14660
USER
What is associated with that political territory ?
(Q16,P163,c(Q14660))
action filter_type
action find
entity Q16
relation P163
type Q14660
['Q16', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q14660 . resource:Q16 property:P163 ?r }
Canada
action filter_type
action find
entity Canada
relation flag
type flag
['Canada', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:flag . resource:Canada property:flag ?r }
[]
flag
Q80110
SYSTEM
flag of Canada
Q80110
(Q16,P163,c(Q14660))
action filter_type
action find
entity Q16
relation P163
type Q14660
Canada [ANSWER] is associated with that political territory
['Q16', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q14660 . resource:Q16 property:P163 ?r }
flag of Canada
Canada flag of Canada is associated with that political territory
flag of Canada
action filter_type
action find
entity Canada
relation flag
type flag
['Canada', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:flag . resource:Canada property:flag ?r }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q971 Q16
P163
Q14660
USER
Or Republic of the Congo?
OR((Q16,P163,c(Q14660)), (Q971,P163,c(Q14660)))
action filter_type
action union
action find
entity Q16
relation P163
action find
entity Q971
relation P163
type Q14660
{'OR': [['Q16', 'P163', {'concept': 'Q14660'}], ['Q971', 'P163', {'concept': 'Q14660'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?w ) { ( resource:Q16 ) ( resource:Q971 ) } . ?w property:P163 ?f } . ?f rdf:type ontology:Q14660 }
Republic of the Congo Canada
action filter_type
action union
action find
entity Canada
relation flag
action find
entity Republic of the Congo
relation flag
type flag
{'OR': [['Canada', 'flag', {'concept': 'flag'}], ['Republic of the Congo', 'flag', {'concept': 'flag'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?w ) { ( resource:Canada ) ( resource:Republic_of_the_Congo ) } . ?w property:flag ?f } . ?f rdf:type ontology:flag }
[]
flag
Q80110 Q163333
SYSTEM
flag of Canada, Flag of the Republic of the Congo
Q80110 Q163333
OR((Q16,P163,c(Q14660)), (Q971,P163,c(Q14660)))
action filter_type
action union
action find
entity Q16
relation P163
action find
entity Q971
relation P163
type Q14660
[ANSWERS]
{'OR': [['Q16', 'P163', {'concept': 'Q14660'}], ['Q971', 'P163', {'concept': 'Q14660'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?w ) { ( resource:Q16 ) ( resource:Q971 ) } . ?w property:P163 ?f } . ?f rdf:type ontology:Q14660 }
flag of Canada Flag of the Republic of the Congo
flag of Canada Flag of the Republic of the Congo
action filter_type
action union
action find
entity Canada
relation flag
action find
entity Republic of the Congo
relation flag
type flag
{'OR': [['Canada', 'flag', {'concept': 'flag'}], ['Republic of the Congo', 'flag', {'concept': 'flag'}]]}
SELECT DISTINCT ?f WHERE { { VALUES ( ?w ) { ( resource:Canada ) ( resource:Republic_of_the_Congo ) } . ?w property:flag ?f } . ?f rdf:type ontology:flag }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P1001
Q56061 Q14660
USER
How many flags apply to jurisdiction over greater number of administrative territories than that flag ?
(c(Q14660),P1001,c(Q56061))
[{'concept': 'Q14660'}, 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1001 ?y . ?z rdf:type ontology:Q14660 . ?y rdf:type ontology:Q56061 }
[{'concept': 'flag'}, 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:applies_to_jurisdiction ?y . ?z rdf:type ontology:flag . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity flag
Comparative|Count over More/Less|Single entity type|Clarification
Q163333
SYSTEM
Did you mean Flag of the Republic of the Congo ?
(c(Q14660),P1001,c(Q56061))
[ANSWER]
[{'concept': 'Q14660'}, 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1001 ?y . ?z rdf:type ontology:Q14660 . ?y rdf:type ontology:Q56061 }
Did you mean Flag of the Republic of the Congo ?
Flag of the Republic of the Congo
[{'concept': 'flag'}, 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:applies_to_jurisdiction ?y . ?z rdf:type ontology:flag . ?y rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant flag of Canada. Could you tell me the answer for that?
(c(Q14660),P1001,c(Q56061))
Q80110
[{'concept': 'Q14660'}, 'P1001', {'concept': 'Q56061'}]
[{'concept': 'flag'}, 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
0
(c(Q14660),P1001,c(Q56061))
[ANSWER]
[{'concept': 'Q14660'}, 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1001 ?y . ?z rdf:type ontology:Q14660 . ?y rdf:type ontology:Q56061 }
0
[{'concept': 'flag'}, 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:applies_to_jurisdiction ?y . ?z rdf:type ontology:flag . ?y rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18937478 Q16
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relations with Canada or are Anna Blamanhof situated in ?
OR((Q16,P530,c(Q15617994)), (Q18937478,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16
relation P530
action find
entity Q18937478
relation P17
type Q15617994
{'OR': [['Q16', 'P530', {'concept': 'Q15617994'}], ['Q18937478', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q16 property:P530 ?k } UNION { resource:Q18937478 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
Anna Blamanhof Canada
action filter_type
action union
action find
entity Canada
relation diplomatic relation
action find
entity Anna Blamanhof
relation country
type designation for an administrative territorial entity
{'OR': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Anna Blamanhof', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Canada property:diplomatic_relation ?k } UNION { resource:Anna_Blamanhof property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q77 Q843 Q878 Q33 Q212 Q423 Q928 Q145 Q36 Q1029
SYSTEM
Some of them are Uruguay, Pakistan, United Arab Emirates, Finland, Ukraine, North Korea, Philippines, United Kingdom, Poland, Mozambique
Q804 Q801 Q843 Q1029 Q1028 Q55 Q145 Q229 Q33 Q30 Q36 Q79 Q34 Q928 Q39 Q38 Q878 Q739 Q833 Q711 Q1030 Q851 Q29999 Q77 Q115 Q258 Q212 Q159 Q43 Q155 Q218 Q20 Q423 Q252 Q884
OR((Q16,P530,c(Q15617994)), (Q18937478,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16
relation P530
action find
entity Q18937478
relation P17
type Q15617994
[ANSWERS] have diplomatic relations with Canada or are Anna Blamanhof situated in
{'OR': [['Q16', 'P530', {'concept': 'Q15617994'}], ['Q18937478', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q16 property:P530 ?k } UNION { resource:Q18937478 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
Panama Israel Pakistan Mozambique Morocco Netherlands United Kingdom Cyprus Finland United States of America Poland Egypt Sweden Philippines Switzerland Italy United Arab Emirates Colombia Malaysia Mongolia Namibia Saudi Arabia Kingdom of the Netherlands Uruguay Ethiopia South Africa Ukraine Russia Turkey Brazil Romania Norway North Korea Indonesia South Korea
Uruguay, Pakistan, United Arab Emirates, Finland, Ukraine, North Korea, Philippines, United Kingdom, Poland and Mozambique have diplomatic relations with Canada or are Anna Blamanhof situated in
Uruguay Pakistan United Arab Emirates Finland Ukraine North Korea Philippines United Kingdom Poland Mozambique
action filter_type
action union
action find
entity Canada
relation diplomatic relation
action find
entity Anna Blamanhof
relation country
type designation for an administrative territorial entity
{'OR': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Anna Blamanhof', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Canada property:diplomatic_relation ?k } UNION { resource:Anna_Blamanhof property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7210882
P530
Q1048835
USER
Do Serhiivka have diplomatic relations with those administrative territories ?
(Q7210882,P530,Q77) (Q7210882,P530,Q843) (Q7210882,P530,Q878) (Q7210882,P530,Q33) (Q7210882,P530,Q212) (Q7210882,P530,Q423) (Q7210882,P530,Q928) (Q7210882,P530,Q145) (Q7210882,P530,Q36) (Q7210882,P530,Q1029)
action is_in
entity prev_answer
action find
entity Q7210882
relation P530
['Q7210882', 'P530', 'Q77'] ['Q7210882', 'P530', 'Q843'] ['Q7210882', 'P530', 'Q878'] ['Q7210882', 'P530', 'Q33'] ['Q7210882', 'P530', 'Q212'] ['Q7210882', 'P530', 'Q423'] ['Q7210882', 'P530', 'Q928'] ['Q7210882', 'P530', 'Q145'] ['Q7210882', 'P530', 'Q36'] ['Q7210882', 'P530', 'Q1029']
ASK WHERE { resource:Q7210882 property:P530 ?b . VALUES ( ?b ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q843 ) } }
Serhiivka
action is_in
entity prev_answer
action find
entity Serhiivka
relation diplomatic relation
['Serhiivka', 'diplomatic relation', 'Uruguay'] ['Serhiivka', 'diplomatic relation', 'Pakistan'] ['Serhiivka', 'diplomatic relation', 'United Arab Emirates'] ['Serhiivka', 'diplomatic relation', 'Finland'] ['Serhiivka', 'diplomatic relation', 'Ukraine'] ['Serhiivka', 'diplomatic relation', 'North Korea'] ['Serhiivka', 'diplomatic relation', 'Philippines'] ['Serhiivka', 'diplomatic relation', 'United Kingdom'] ['Serhiivka', 'diplomatic relation', 'Poland'] ['Serhiivka', 'diplomatic relation', 'Mozambique']
ASK WHERE { resource:Serhiivka property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Panama ) ( resource:Israel ) ( resource:Pakistan ) } }
[]
political territorial entity
SYSTEM
NO
(Q7210882,P530,Q77) (Q7210882,P530,Q843) (Q7210882,P530,Q878) (Q7210882,P530,Q33) (Q7210882,P530,Q212) (Q7210882,P530,Q423) (Q7210882,P530,Q928) (Q7210882,P530,Q145) (Q7210882,P530,Q36) (Q7210882,P530,Q1029)
action is_in
entity prev_answer
action find
entity Q7210882
relation P530
[ANSWER]
['Q7210882', 'P530', 'Q77'] ['Q7210882', 'P530', 'Q843'] ['Q7210882', 'P530', 'Q878'] ['Q7210882', 'P530', 'Q33'] ['Q7210882', 'P530', 'Q212'] ['Q7210882', 'P530', 'Q423'] ['Q7210882', 'P530', 'Q928'] ['Q7210882', 'P530', 'Q145'] ['Q7210882', 'P530', 'Q36'] ['Q7210882', 'P530', 'Q1029']
ASK WHERE { resource:Q7210882 property:P530 ?b . VALUES ( ?b ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q843 ) } }
No
action is_in
entity prev_answer
action find
entity Serhiivka
relation diplomatic relation
['Serhiivka', 'diplomatic relation', 'Uruguay'] ['Serhiivka', 'diplomatic relation', 'Pakistan'] ['Serhiivka', 'diplomatic relation', 'United Arab Emirates'] ['Serhiivka', 'diplomatic relation', 'Finland'] ['Serhiivka', 'diplomatic relation', 'Ukraine'] ['Serhiivka', 'diplomatic relation', 'North Korea'] ['Serhiivka', 'diplomatic relation', 'Philippines'] ['Serhiivka', 'diplomatic relation', 'United Kingdom'] ['Serhiivka', 'diplomatic relation', 'Poland'] ['Serhiivka', 'diplomatic relation', 'Mozambique']
ASK WHERE { resource:Serhiivka property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Panama ) ( resource:Israel ) ( resource:Pakistan ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q16 Q212
P530
Q15617994
USER
Does Ukraine hold diplomatic relationship with Canada ?
(Q16,P530,Q212)
action is_in
entity Q212
action find
entity Q16
relation P530
['Q16', 'P530', 'Q212']
ASK WHERE { resource:Q16 property:P530 resource:Q212 }
Canada Ukraine
action is_in
entity Ukraine
action find
entity Canada
relation diplomatic relation
['Canada', 'diplomatic relation', 'Ukraine']
ASK WHERE { resource:Canada property:diplomatic_relation resource:Ukraine }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q16,P530,Q212)
action is_in
entity Q212
action find
entity Q16
relation P530
[ANSWER]
['Q16', 'P530', 'Q212']
ASK WHERE { resource:Q16 property:P530 resource:Q212 }
Yes
action is_in
entity Ukraine
action find
entity Canada
relation diplomatic relation
['Canada', 'diplomatic relation', 'Ukraine']
ASK WHERE { resource:Canada property:diplomatic_relation resource:Ukraine }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2838349 Q26695217 Q123695
P39
Q12737077
USER
Was Allister Grosart responsible for occupying the position of mayor of Valdemorales and High Commissioner ?
(Q2838349,P39,Q26695217) (Q2838349,P39,Q123695)
action is_in
entity Q2838349
action intersection
action find_reverse
entity Q26695217
relation P39
action find_reverse
entity Q123695
relation P39
['Q2838349', 'P39', 'Q26695217'] ['Q2838349', 'P39', 'Q123695']
ASK WHERE { resource:Q2838349 property:P39 resource:Q26695217 . resource:Q2838349 property:P39 resource:Q123695 }
Allister Grosart mayor of Valdemorales High Commissioner
action is_in
entity Allister Grosart
action intersection
action find_reverse
entity mayor of Valdemorales
relation position held
action find_reverse
entity High Commissioner
relation position held
['Allister Grosart', 'position held', 'mayor of Valdemorales'] ['Allister Grosart', 'position held', 'High Commissioner']
ASK WHERE { resource:Allister_Grosart property:position_held resource:mayor_of_Valdemorales . resource:Allister_Grosart property:position_held resource:High_Commissioner }
[]
occupation
SYSTEM
NO
(Q2838349,P39,Q26695217) (Q2838349,P39,Q123695)
action is_in
entity Q2838349
action intersection
action find_reverse
entity Q26695217
relation P39
action find_reverse
entity Q123695
relation P39
[ANSWER]
['Q2838349', 'P39', 'Q26695217'] ['Q2838349', 'P39', 'Q123695']
ASK WHERE { resource:Q2838349 property:P39 resource:Q26695217 . resource:Q2838349 property:P39 resource:Q123695 }
No
action is_in
entity Allister Grosart
action intersection
action find_reverse
entity mayor of Valdemorales
relation position held
action find_reverse
entity High Commissioner
relation position held
['Allister Grosart', 'position held', 'mayor of Valdemorales'] ['Allister Grosart', 'position held', 'High Commissioner']
ASK WHERE { resource:Allister_Grosart property:position_held resource:mayor_of_Valdemorales . resource:Allister_Grosart property:position_held resource:High_Commissioner }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2838349
P39
Q12737077
USER
How many occupations were the positions held by Allister Grosart ?
(Q2838349,P39,c(Q12737077))
action count
action filter_type
action find
entity Q2838349
relation P39
type Q12737077
['Q2838349', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Q2838349 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Allister Grosart
action count
action filter_type
action find
entity Allister Grosart
relation position held
type occupation
['Allister Grosart', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Allister_Grosart property:position_held ?t . ?t rdf:type ontology:occupation }
[]
occupation
SYSTEM
1
Q18524027
(Q2838349,P39,c(Q12737077))
action count
action filter_type
action find
entity Q2838349
relation P39
type Q12737077
[ANSWER]
['Q2838349', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Q2838349 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Member of the Senate of Canada
1
action count
action filter_type
action find
entity Allister Grosart
relation position held
type occupation
['Allister Grosart', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Allister_Grosart property:position_held ?t . ?t rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q980100
P39
Q12737077
USER
And how about Antonio Saverio Gentili?
(Q980100,P39,c(Q12737077))
action count
action filter_type
action find
entity Q980100
relation P39
type Q12737077
['Q980100', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:Q12737077 . resource:Q980100 property:P39 ?n }
Antonio Saverio Gentili
action count
action filter_type
action find
entity Antonio Saverio Gentili
relation position held
type occupation
['Antonio Saverio Gentili', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:occupation . resource:Antonio_Saverio_Gentili property:position_held ?n }
[]
occupation
SYSTEM
3
Q45722 Q1813197 Q1729113
(Q980100,P39,c(Q12737077))
action count
action filter_type
action find
entity Q980100
relation P39
type Q12737077
[ANSWER]
['Q980100', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:Q12737077 . resource:Q980100 property:P39 ?n }
cardinal Camerlengo of the Sacred College of Cardinals cardinal-bishop
3
action count
action filter_type
action find
entity Antonio Saverio Gentili
relation position held
type occupation
['Antonio Saverio Gentili', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { ?n rdf:type ontology:occupation . resource:Antonio_Saverio_Gentili property:position_held ?n }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q9621111
Q12737077
USER
And how about Antônio Cambraia?
(Q9621111,P39,c(Q12737077))
action count
action filter_type
action find
entity Q9621111
relation P39
type Q12737077
['Q9621111', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q9621111 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
Antônio Cambraia
action count
action filter_type
action find
entity Antônio Cambraia
relation position held
type occupation
['Antônio Cambraia', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Antônio_Cambraia property:position_held ?h . ?h rdf:type ontology:occupation }
[]
occupation
SYSTEM
1
(Q9621111,P39,c(Q12737077))
action count
action filter_type
action find
entity Q9621111
relation P39
type Q12737077
[ANSWER]
['Q9621111', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q9621111 property:P39 ?h . ?h rdf:type ontology:Q12737077 }
1
action count
action filter_type
action find
entity Antônio Cambraia
relation position held
type occupation
['Antônio Cambraia', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Antônio_Cambraia property:position_held ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9621111
P21
Q290
USER
What is the sex of that person ?
action filter_type
action find
entity Q9621111
relation P21
type Q290
SELECT DISTINCT ?p WHERE { resource:Q9621111 property:P21 ?p . ?p rdf:type ontology:Q290 }
Antônio Cambraia
action filter_type
action find
entity Antônio Cambraia
relation gender
type sex
SELECT DISTINCT ?p WHERE { resource:Antônio_Cambraia property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
action filter_type
action find
entity Q9621111
relation P21
type Q290
The sex of that person is a [ANSWER]
SELECT DISTINCT ?p WHERE { resource:Q9621111 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Antônio Cambraia
relation gender
type sex
SELECT DISTINCT ?p WHERE { resource:Antônio_Cambraia property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of Poland ?
(Q36,P1313,c(Q12737077))
action filter_type
action find
entity Q36
relation P1313
type Q12737077
['Q36', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q36 property:P1313 ?h . ?h rdf:type ontology:Q12737077 }
Poland
action filter_type
action find
entity Poland
relation office held by head of government
type occupation
['Poland', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Poland property:office_held_by_head_of_government ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q1054799
SYSTEM
President of Poland
Q1054799
(Q36,P1313,c(Q12737077))
action filter_type
action find
entity Q36
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of Poland
['Q36', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q36 property:P1313 ?h . ?h rdf:type ontology:Q12737077 }
President of Poland
The President of Poland serves as the political office that is fulfilled by the head of the government of Poland
President of Poland
action filter_type
action find
entity Poland
relation office held by head of government
type occupation
['Poland', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Poland property:office_held_by_head_of_government ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1054799
P748
Q40231
USER
Who appointed that occupation ?
(Q1054799,P748,c(Q40231))
action filter_type
action find
entity Q1054799
relation P748
type Q40231
['Q1054799', 'P748', {'concept': 'Q40231'}]
SELECT DISTINCT ?b WHERE { resource:Q1054799 property:P748 ?b . ?b rdf:type ontology:Q40231 }
President of Poland
action filter_type
action find
entity President of Poland
relation appointed by
type election
['President of Poland', 'appointed by', {'concept': 'election'}]
SELECT DISTINCT ?b WHERE { resource:President_of_Poland property:appointed_by ?b . ?b rdf:type ontology:election }
[]
election
Q18698522
SYSTEM
Polish presidential election
Q18698522
(Q1054799,P748,c(Q40231))
action filter_type
action find
entity Q1054799
relation P748
type Q40231
[ANSWER] appointed that occupation
['Q1054799', 'P748', {'concept': 'Q40231'}]
SELECT DISTINCT ?b WHERE { resource:Q1054799 property:P748 ?b . ?b rdf:type ontology:Q40231 }
Polish presidential election
Polish presidential election appointed that occupation
Polish presidential election
action filter_type
action find
entity President of Poland
relation appointed by
type election
['President of Poland', 'appointed by', {'concept': 'election'}]
SELECT DISTINCT ?b WHERE { resource:President_of_Poland property:appointed_by ?b . ?b rdf:type ontology:election }
[]