Simple Question (Direct)
Simple Question
Q7332638
P57
Q502895
USER
Who was Riders of the Purple Sage directed by ?
(Q7332638,P57,c(Q502895))
action filter_type
action find
entity Q7332638
relation P57
type Q502895
['Q7332638', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q7332638 property:P57 ?y . ?y rdf:type ontology:Q502895 }
Riders of the Purple Sage
action filter_type
action find
entity Riders of the Purple Sage
relation director
type common name
['Riders of the Purple Sage', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Riders_of_the_Purple_Sage property:director ?y . ?y rdf:type ontology:common_name }
[]
common name
Q28941
SYSTEM
Frank Lloyd
Q28941
(Q7332638,P57,c(Q502895))
action filter_type
action find
entity Q7332638
relation P57
type Q502895
Riders of the Purple Sage was directed by the [ANSWER]
['Q7332638', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q7332638 property:P57 ?y . ?y rdf:type ontology:Q502895 }
Frank Lloyd
Riders of the Purple Sage was directed by the Frank Lloyd
Frank Lloyd
action filter_type
action find
entity Riders of the Purple Sage
relation director
type common name
['Riders of the Purple Sage', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Riders_of_the_Purple_Sage property:director ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7332638
P840
Q852446
USER
What location is that work of art set in ?
(Q28941,P840,c(Q852446))
action filter_type
action find
entity Q7332638
relation P840
type Q852446
['Q28941', 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ?a WHERE { resource:Q7332638 property:P840 ?a . ?a rdf:type ontology:Q852446 }
Riders of the Purple Sage
action filter_type
action find
entity Riders of the Purple Sage
relation narrative location
type administrative territorial entity of the United States
['Frank Lloyd', 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?a WHERE { resource:Riders_of_the_Purple_Sage property:narrative_location ?a . ?a rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q816
SYSTEM
Arizona
Q816
(Q28941,P840,c(Q852446))
action filter_type
action find
entity Q7332638
relation P840
type Q852446
That work of art is set in [ANSWER]
['Q28941', 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ?a WHERE { resource:Q7332638 property:P840 ?a . ?a rdf:type ontology:Q852446 }
Arizona
That work of art is set in Arizona
Arizona
action filter_type
action find
entity Riders of the Purple Sage
relation narrative location
type administrative territorial entity of the United States
['Frank Lloyd', 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?a WHERE { resource:Riders_of_the_Purple_Sage property:narrative_location ?a . ?a rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q816 Q502378
P1313
Q12737077
USER
How many occupations serve as the political office that are fulfilled by the head of the government of Arizona or Freyung ?
(Q816,P1313,c(Q12737077)) (Q502378,P1313,c(Q12737077))
action count
action union
action filter_type
action find
entity Q816
relation P1313
type Q12737077
action filter_type
action find
entity Q502378
relation P1313
type Q12737077
['Q816', 'P1313', {'concept': 'Q12737077'}] ['Q502378', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { resource:Q816 property:P1313 ?k . ?k rdf:type ontology:Q12737077 } UNION { resource:Q502378 property:P1313 ?k . ?k rdf:type ontology:Q12737077 } }
Arizona Freyung
action count
action union
action filter_type
action find
entity Arizona
relation office held by head of government
type occupation
action filter_type
action find
entity Freyung
relation office held by head of government
type occupation
['Arizona', 'office held by head of government', {'concept': 'occupation'}] ['Freyung', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { resource:Arizona property:office_held_by_head_of_government ?k . ?k rdf:type ontology:occupation } UNION { resource:Freyung property:office_held_by_head_of_government ?k . ?k rdf:type ontology:occupation } }
[]
occupation
SYSTEM
2
Q30185 Q777288
(Q816,P1313,c(Q12737077)) (Q502378,P1313,c(Q12737077))
action count
action union
action filter_type
action find
entity Q816
relation P1313
type Q12737077
action filter_type
action find
entity Q502378
relation P1313
type Q12737077
[ANSWER]
['Q816', 'P1313', {'concept': 'Q12737077'}] ['Q502378', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { resource:Q816 property:P1313 ?k . ?k rdf:type ontology:Q12737077 } UNION { resource:Q502378 property:P1313 ?k . ?k rdf:type ontology:Q12737077 } }
mayor Governor of Arizona
2
action count
action union
action filter_type
action find
entity Arizona
relation office held by head of government
type occupation
action filter_type
action find
entity Freyung
relation office held by head of government
type occupation
['Arizona', 'office held by head of government', {'concept': 'occupation'}] ['Freyung', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { resource:Arizona property:office_held_by_head_of_government ?k . ?k rdf:type ontology:occupation } UNION { resource:Freyung property:office_held_by_head_of_government ?k . ?k rdf:type ontology:occupation } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21464682 Q28941
P27
Q15617994
USER
Which administrative territories are the native countriesof Frank Lloyd or Philip O'Reilly ?
OR((Q28941,P27,c(Q15617994)), (Q21464682,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q28941
relation P27
action find
entity Q21464682
relation P27
type Q15617994
{'OR': [['Q28941', 'P27', {'concept': 'Q15617994'}], ['Q21464682', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { ?z property:P27 ?w . VALUES ( ?z ) { ( resource:Q28941 ) ( resource:Q21464682 ) } } . ?w rdf:type ontology:Q15617994 }
Philip O'Reilly Frank Lloyd
action filter_type
action union
action find
entity Frank Lloyd
relation country of citizenship
action find
entity Philip O'Reilly
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Frank Lloyd', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ["Philip O'Reilly", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?z property:country_of_citizenship ?w . VALUES ( ?z ) { ( resource:Frank_Lloyd ) ( resource:Philip_O'Reilly ) } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q145
SYSTEM
United States of America, United Kingdom
Q30 Q145
OR((Q28941,P27,c(Q15617994)), (Q21464682,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q28941
relation P27
action find
entity Q21464682
relation P27
type Q15617994
[ANSWERS] are the native countriesof Frank Lloyd or Philip O'Reilly
{'OR': [['Q28941', 'P27', {'concept': 'Q15617994'}], ['Q21464682', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { ?z property:P27 ?w . VALUES ( ?z ) { ( resource:Q28941 ) ( resource:Q21464682 ) } } . ?w rdf:type ontology:Q15617994 }
United States of America United Kingdom
United States of America and United Kingdom are the native countriesof Frank Lloyd or Philip O'Reilly
United States of America United Kingdom
action filter_type
action union
action find
entity Frank Lloyd
relation country of citizenship
action find
entity Philip O'Reilly
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Frank Lloyd', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ["Philip O'Reilly", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?z property:country_of_citizenship ?w . VALUES ( ?z ) { ( resource:Frank_Lloyd ) ( resource:Philip_O'Reilly ) } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q17057149
P495
Q838948
USER
Does A Girl Named Mahmoud originate at those administrative territories ?
(Q17057149,P495,Q30) (Q17057149,P495,Q145)
action is_in
entity prev_answer
action find
entity Q17057149
relation P495
['Q17057149', 'P495', 'Q30'] ['Q17057149', 'P495', 'Q145']
ASK WHERE { VALUES ( ?r ) { ( resource:Q30 ) ( resource:Q145 ) } . resource:Q17057149 property:P495 ?r }
A Girl Named Mahmoud
action is_in
entity prev_answer
action find
entity A Girl Named Mahmoud
relation country of origin
['A Girl Named Mahmoud', 'country of origin', 'United States of America'] ['A Girl Named Mahmoud', 'country of origin', 'United Kingdom']
ASK WHERE { VALUES ( ?r ) { ( resource:United_States_of_America ) ( resource:United_Kingdom ) } . resource:A_Girl_Named_Mahmoud property:country_of_origin ?r }
[]
work of art
SYSTEM
NO
(Q17057149,P495,Q30) (Q17057149,P495,Q145)
action is_in
entity prev_answer
action find
entity Q17057149
relation P495
[ANSWER]
['Q17057149', 'P495', 'Q30'] ['Q17057149', 'P495', 'Q145']
ASK WHERE { VALUES ( ?r ) { ( resource:Q30 ) ( resource:Q145 ) } . resource:Q17057149 property:P495 ?r }
No
action is_in
entity prev_answer
action find
entity A Girl Named Mahmoud
relation country of origin
['A Girl Named Mahmoud', 'country of origin', 'United States of America'] ['A Girl Named Mahmoud', 'country of origin', 'United Kingdom']
ASK WHERE { VALUES ( ?r ) { ( resource:United_States_of_America ) ( resource:United_Kingdom ) } . resource:A_Girl_Named_Mahmoud property:country_of_origin ?r }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q30 Q12087483
P36
Q56061
USER
Is Valea Lungă Cricov called the capital of United States of America ?
(Q30,P36,Q12087483)
action is_in
entity Q12087483
action find
entity Q30
relation P36
['Q30', 'P36', 'Q12087483']
ASK WHERE { resource:Q30 property:P36 resource:Q12087483 }
United States of America Valea Lungă Cricov
action is_in
entity Valea Lungă Cricov
action find
entity United States of America
relation capital
['United States of America', 'capital', 'Valea Lungă Cricov']
ASK WHERE { resource:United_States_of_America property:capital resource:Valea_Lungă_Cricov }
[]
administrative territorial entity
SYSTEM
NO
(Q30,P36,Q12087483)
action is_in
entity Q12087483
action find
entity Q30
relation P36
[ANSWER]
['Q30', 'P36', 'Q12087483']
ASK WHERE { resource:Q30 property:P36 resource:Q12087483 }
No
action is_in
entity Valea Lungă Cricov
action find
entity United States of America
relation capital
['United States of America', 'capital', 'Valea Lungă Cricov']
ASK WHERE { resource:United_States_of_America property:capital resource:Valea_Lungă_Cricov }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q145 Q188822
P463
Q484652
USER
Was United Kingdom a member of Asian Development Bank ?
(Q145,P463,Q188822)
action is_in
entity Q188822
action find
entity Q145
relation P463
['Q145', 'P463', 'Q188822']
ASK WHERE { resource:Q145 property:P463 resource:Q188822 }
United Kingdom Asian Development Bank
action is_in
entity Asian Development Bank
action find
entity United Kingdom
relation member of
['United Kingdom', 'member of', 'Asian Development Bank']
ASK WHERE { resource:United_Kingdom property:member_of resource:Asian_Development_Bank }
[]
international organization
SYSTEM
YES
(Q145,P463,Q188822)
action is_in
entity Q188822
action find
entity Q145
relation P463
[ANSWER]
['Q145', 'P463', 'Q188822']
ASK WHERE { resource:Q145 property:P463 resource:Q188822 }
Yes
action is_in
entity Asian Development Bank
action find
entity United Kingdom
relation member of
['United Kingdom', 'member of', 'Asian Development Bank']
ASK WHERE { resource:United_Kingdom property:member_of resource:Asian_Development_Bank }
[]