Simple Question (Direct)
Simple Question
Q21066422
P641
Q349
USER
Which sport did Ne'emia Kaleopa participate in ?
(Q21066422,P641,c(Q349))
action filter_type
action find
entity Q21066422
relation P641
type Q349
['Q21066422', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q21066422 property:P641 ?k . ?k rdf:type ontology:Q349 }
Ne'emia Kaleopa
action filter_type
action find
entity Ne'emia Kaleopa
relation sport
type sport
["Ne'emia Kaleopa", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Ne'emia_Kaleopa property:sport ?k . ?k rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q21066422,P641,c(Q349))
action filter_type
action find
entity Q21066422
relation P641
type Q349
Ne'emia Kaleopa participated in [ANSWER]
['Q21066422', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q21066422 property:P641 ?k . ?k rdf:type ontology:Q349 }
association football
Ne'emia Kaleopa participated in association football
association football
action filter_type
action find
entity Ne'emia Kaleopa
relation sport
type sport
["Ne'emia Kaleopa", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Ne'emia_Kaleopa property:sport ?k . ?k rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21066422
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q2736,P19,c(Q56061))
action filter_type
action find
entity Q21066422
relation P19
type Q56061
['Q2736', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q21066422 property:P19 ?c }
Ne'emia Kaleopa
action filter_type
action find
entity Ne'emia Kaleopa
relation place of birth
type administrative territorial entity
['association football', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:Ne'emia_Kaleopa property:place_of_birth ?c }
[]
administrative territorial entity
Q16641
SYSTEM
American Samoa
Q16641
(Q2736,P19,c(Q56061))
action filter_type
action find
entity Q21066422
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q2736', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q21066422 property:P19 ?c }
American Samoa
American Samoa is the birthplace of that person
American Samoa
action filter_type
action find
entity Ne'emia Kaleopa
relation place of birth
type administrative territorial entity
['association football', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:Ne'emia_Kaleopa property:place_of_birth ?c }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1745774 Q21066422
P19
Q56061
USER
Or Klaus Terfloth?
OR((Q21066422,P19,c(Q56061)), (Q1745774,P19,c(Q56061)))
action filter_type
action union
action find
entity Q21066422
relation P19
action find
entity Q1745774
relation P19
type Q56061
{'OR': [['Q21066422', 'P19', {'concept': 'Q56061'}], ['Q1745774', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?w ) { ( resource:Q21066422 ) ( resource:Q1745774 ) } . ?w property:P19 ?s } . ?s rdf:type ontology:Q56061 }
Klaus Terfloth Ne'emia Kaleopa
action filter_type
action union
action find
entity Ne'emia Kaleopa
relation place of birth
action find
entity Klaus Terfloth
relation place of birth
type administrative territorial entity
{'OR': [["Ne'emia Kaleopa", 'place of birth', {'concept': 'administrative territorial entity'}], ['Klaus Terfloth', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?w ) { ( resource:Ne'emia_Kaleopa ) ( resource:Klaus_Terfloth ) } . ?w property:place_of_birth ?s } . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1718 Q16641
SYSTEM
Düsseldorf, American Samoa
Q1718 Q16641
OR((Q21066422,P19,c(Q56061)), (Q1745774,P19,c(Q56061)))
action filter_type
action union
action find
entity Q21066422
relation P19
action find
entity Q1745774
relation P19
type Q56061
[ANSWERS]
{'OR': [['Q21066422', 'P19', {'concept': 'Q56061'}], ['Q1745774', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?w ) { ( resource:Q21066422 ) ( resource:Q1745774 ) } . ?w property:P19 ?s } . ?s rdf:type ontology:Q56061 }
Düsseldorf American Samoa
Düsseldorf American Samoa
action filter_type
action union
action find
entity Ne'emia Kaleopa
relation place of birth
action find
entity Klaus Terfloth
relation place of birth
type administrative territorial entity
{'OR': [["Ne'emia Kaleopa", 'place of birth', {'concept': 'administrative territorial entity'}], ['Klaus Terfloth', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?w ) { ( resource:Ne'emia_Kaleopa ) ( resource:Klaus_Terfloth ) } . ?w property:place_of_birth ?s } . ?s rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6362242 Q21066422
P106
Q12737077
USER
Which occupations do Ne'emia Kaleopa or Kang L. Wang do for a living ?
OR((Q21066422,P106,c(Q12737077)), (Q6362242,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21066422
relation P106
action find
entity Q6362242
relation P106
type Q12737077
{'OR': [['Q21066422', 'P106', {'concept': 'Q12737077'}], ['Q6362242', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { ?u property:P106 ?j . VALUES ( ?u ) { ( resource:Q21066422 ) ( resource:Q6362242 ) } } . ?j rdf:type ontology:Q12737077 }
Kang L. Wang Ne'emia Kaleopa
action filter_type
action union
action find
entity Ne'emia Kaleopa
relation occupation
action find
entity Kang L. Wang
relation occupation
type occupation
{'OR': [["Ne'emia Kaleopa", 'occupation', {'concept': 'occupation'}], ['Kang L. Wang', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { ?u property:occupation ?j . VALUES ( ?u ) { ( resource:Ne'emia_Kaleopa ) ( resource:Kang_L._Wang ) } } . ?j rdf:type ontology:occupation }
[]
occupation
Q81096 Q937857
SYSTEM
engineer, association football player
Q81096 Q937857
OR((Q21066422,P106,c(Q12737077)), (Q6362242,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21066422
relation P106
action find
entity Q6362242
relation P106
type Q12737077
Ne'emia Kaleopa or Kang L. Wang do for a living an [ANSWERS]
{'OR': [['Q21066422', 'P106', {'concept': 'Q12737077'}], ['Q6362242', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { ?u property:P106 ?j . VALUES ( ?u ) { ( resource:Q21066422 ) ( resource:Q6362242 ) } } . ?j rdf:type ontology:Q12737077 }
engineer association football player
Ne'emia Kaleopa or Kang L. Wang do for a living an engineer and association football player
engineer association football player
action filter_type
action union
action find
entity Ne'emia Kaleopa
relation occupation
action find
entity Kang L. Wang
relation occupation
type occupation
{'OR': [["Ne'emia Kaleopa", 'occupation', {'concept': 'occupation'}], ['Kang L. Wang', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { ?u property:occupation ?j . VALUES ( ?u ) { ( resource:Ne'emia_Kaleopa ) ( resource:Kang_L._Wang ) } } . ?j rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3069433
P106
Q502895
USER
Do Fernando Bandini have a job as those occupations ?
(Q3069433,P106,Q81096) (Q3069433,P106,Q937857)
action is_in
entity prev_answer
action find
entity Q3069433
relation P106
['Q3069433', 'P106', 'Q81096'] ['Q3069433', 'P106', 'Q937857']
ASK WHERE { VALUES ( ?n ) { ( resource:Q81096 ) ( resource:Q937857 ) } . resource:Q3069433 property:P106 ?n }
Fernando Bandini
action is_in
entity prev_answer
action find
entity Fernando Bandini
relation occupation
['Fernando Bandini', 'occupation', 'engineer'] ['Fernando Bandini', 'occupation', 'association football player']
ASK WHERE { VALUES ( ?n ) { ( resource:engineer ) ( resource:association_football_player ) } . resource:Fernando_Bandini property:occupation ?n }
[]
common name
SYSTEM
NO
(Q3069433,P106,Q81096) (Q3069433,P106,Q937857)
action is_in
entity prev_answer
action find
entity Q3069433
relation P106
[ANSWER]
['Q3069433', 'P106', 'Q81096'] ['Q3069433', 'P106', 'Q937857']
ASK WHERE { VALUES ( ?n ) { ( resource:Q81096 ) ( resource:Q937857 ) } . resource:Q3069433 property:P106 ?n }
No
action is_in
entity prev_answer
action find
entity Fernando Bandini
relation occupation
['Fernando Bandini', 'occupation', 'engineer'] ['Fernando Bandini', 'occupation', 'association football player']
ASK WHERE { VALUES ( ?n ) { ( resource:engineer ) ( resource:association_football_player ) } . resource:Fernando_Bandini property:occupation ?n }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16641 Q242502 Q1165949
P163
Q14660
USER
Does American Samoa have flag named Flag of American Samoa and Flag of Ontario ?
(Q16641,P163,Q242502) (Q16641,P163,Q1165949)
action is_in
entity Q16641
action intersection
action find_reverse
entity Q242502
relation P163
action find_reverse
entity Q1165949
relation P163
['Q16641', 'P163', 'Q242502'] ['Q16641', 'P163', 'Q1165949']
ASK WHERE { resource:Q16641 property:P163 resource:Q242502 . resource:Q16641 property:P163 resource:Q1165949 }
American Samoa Flag of American Samoa Flag of Ontario
action is_in
entity American Samoa
action intersection
action find_reverse
entity Flag of American Samoa
relation flag
action find_reverse
entity Flag of Ontario
relation flag
['American Samoa', 'flag', 'Flag of American Samoa'] ['American Samoa', 'flag', 'Flag of Ontario']
ASK WHERE { resource:American_Samoa property:flag resource:Flag_of_American_Samoa . resource:American_Samoa property:flag resource:Flag_of_Ontario }
[]
flag
SYSTEM
YES and NO respectively
(Q16641,P163,Q242502) (Q16641,P163,Q1165949)
action is_in
entity Q16641
action intersection
action find_reverse
entity Q242502
relation P163
action find_reverse
entity Q1165949
relation P163
[ANSWER]
['Q16641', 'P163', 'Q242502'] ['Q16641', 'P163', 'Q1165949']
ASK WHERE { resource:Q16641 property:P163 resource:Q242502 . resource:Q16641 property:P163 resource:Q1165949 }
YES and NO respectively
action is_in
entity American Samoa
action intersection
action find_reverse
entity Flag of American Samoa
relation flag
action find_reverse
entity Flag of Ontario
relation flag
['American Samoa', 'flag', 'Flag of American Samoa'] ['American Samoa', 'flag', 'Flag of Ontario']
ASK WHERE { resource:American_Samoa property:flag resource:Flag_of_American_Samoa . resource:American_Samoa property:flag resource:Flag_of_Ontario }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16641
P6
Q502895
USER
Who is the head of the government of American Samoa ?
(Q16641,P6,c(Q502895))
action filter_type
action find
entity Q16641
relation P6
type Q502895
['Q16641', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q16641 property:P6 ?a }
American Samoa
action filter_type
action find
entity American Samoa
relation head of government
type common name
['American Samoa', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:American_Samoa property:head_of_government ?a }
[]
common name
Q3672115
SYSTEM
Lolo Letalu Matalasi Moliga
Q3672115
(Q16641,P6,c(Q502895))
action filter_type
action find
entity Q16641
relation P6
type Q502895
The head of the government of American Samoa is the [ANSWER]
['Q16641', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q16641 property:P6 ?a }
Lolo Letalu Matalasi Moliga
The head of the government of American Samoa is the Lolo Letalu Matalasi Moliga
Lolo Letalu Matalasi Moliga
action filter_type
action find
entity American Samoa
relation head of government
type common name
['American Samoa', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:American_Samoa property:head_of_government ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16641
P1313
Q12737077
USER
Which occupation is fulfilled by that administrative territory ?
(Q3672115,P1313,c(Q12737077))
action filter_type
action find
entity Q16641
relation P1313
type Q12737077
['Q3672115', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q16641 property:P1313 ?t . ?t rdf:type ontology:Q12737077 }
American Samoa
action filter_type
action find
entity American Samoa
relation office held by head of government
type occupation
['Lolo Letalu Matalasi Moliga', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:American_Samoa property:office_held_by_head_of_government ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q20804530
SYSTEM
Governor of American Samoa
Q20804530
(Q3672115,P1313,c(Q12737077))
action filter_type
action find
entity Q16641
relation P1313
type Q12737077
The [ANSWER] is fulfilled by that administrative territory
['Q3672115', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q16641 property:P1313 ?t . ?t rdf:type ontology:Q12737077 }
Governor of American Samoa
The Governor of American Samoa is fulfilled by that administrative territory
Governor of American Samoa
action filter_type
action find
entity American Samoa
relation office held by head of government
type occupation
['Lolo Letalu Matalasi Moliga', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:American_Samoa property:office_held_by_head_of_government ?t . ?t rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q16641
P85
Q484692
USER
How many hymns are the anthems for American Samoa ?
(Q16641,P85,c(Q484692))
action count
action filter_type
action find
entity Q16641
relation P85
type Q484692
['Q16641', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:Q16641 property:P85 ?m . ?m rdf:type ontology:Q484692 }
American Samoa
action count
action filter_type
action find
entity American Samoa
relation anthem
type hymn
['American Samoa', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:American_Samoa property:anthem ?m . ?m rdf:type ontology:hymn }
[]
hymn
SYSTEM
1
Q44696
(Q16641,P85,c(Q484692))
action count
action filter_type
action find
entity Q16641
relation P85
type Q484692
[ANSWER]
['Q16641', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:Q16641 property:P85 ?m . ?m rdf:type ontology:Q484692 }
The Star-Spangled Banner
1
action count
action filter_type
action find
entity American Samoa
relation anthem
type hymn
['American Samoa', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:American_Samoa property:anthem ?m . ?m rdf:type ontology:hymn }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q8646
Q484692
USER
And also tell me about Hong Kong?
(Q8646,P85,c(Q484692))
action count
action filter_type
action find
entity Q8646
relation P85
type Q484692
['Q8646', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z rdf:type ontology:Q484692 . resource:Q8646 property:P85 ?z }
Hong Kong
action count
action filter_type
action find
entity Hong Kong
relation anthem
type hymn
['Hong Kong', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z rdf:type ontology:hymn . resource:Hong_Kong property:anthem ?z }
[]
hymn
SYSTEM
1
(Q8646,P85,c(Q484692))
action count
action filter_type
action find
entity Q8646
relation P85
type Q484692
[ANSWER]
['Q8646', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z rdf:type ontology:Q484692 . resource:Q8646 property:P85 ?z }
1
action count
action filter_type
action find
entity Hong Kong
relation anthem
type hymn
['Hong Kong', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z rdf:type ontology:hymn . resource:Hong_Kong property:anthem ?z }
[]