Simple Question (Direct)
Simple Question
Q462457
P551
Q56061
USER
Which administrative territory was the place of residence of Frank Dancevic ?
(Q462457,P551,c(Q56061))
action filter_type
action find
entity Q462457
relation P551
type Q56061
['Q462457', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q462457 property:P551 ?k . ?k rdf:type ontology:Q56061 }
Frank Dancevic
action filter_type
action find
entity Frank Dancevic
relation residence
type administrative territorial entity
['Frank Dancevic', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Frank_Dancevic property:residence ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q274120
SYSTEM
Niagara Falls
Q274120
(Q462457,P551,c(Q56061))
action filter_type
action find
entity Q462457
relation P551
type Q56061
[ANSWER] was the place of residence of Frank Dancevic
['Q462457', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q462457 property:P551 ?k . ?k rdf:type ontology:Q56061 }
Niagara Falls
Niagara Falls was the place of residence of Frank Dancevic
Niagara Falls
action filter_type
action find
entity Frank Dancevic
relation residence
type administrative territorial entity
['Frank Dancevic', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Frank_Dancevic property:residence ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q462457
P106
Q12737077
USER
What is the job of Frank Dancevic ?
(Q462457,P106,c(Q12737077))
action filter_type
action find
entity Q462457
relation P106
type Q12737077
['Q462457', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q462457 property:P106 ?w }
Frank Dancevic
action filter_type
action find
entity Frank Dancevic
relation occupation
type occupation
['Frank Dancevic', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Frank_Dancevic property:occupation ?w }
[]
occupation
Q10833314
SYSTEM
tennis player
Q10833314
(Q462457,P106,c(Q12737077))
action filter_type
action find
entity Q462457
relation P106
type Q12737077
The job of Frank Dancevic is a [ANSWER]
['Q462457', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q462457 property:P106 ?w }
tennis player
The job of Frank Dancevic is a tennis player
tennis player
action filter_type
action find
entity Frank Dancevic
relation occupation
type occupation
['Frank Dancevic', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Frank_Dancevic property:occupation ?w }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15999569 Q462457
P27
Q1048835
USER
Which political territories are Frank Dancevic or William Collings a civilian of ?
OR((Q462457,P27,c(Q1048835)), (Q15999569,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q462457
relation P27
action find
entity Q15999569
relation P27
type Q1048835
{'OR': [['Q462457', 'P27', {'concept': 'Q1048835'}], ['Q15999569', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q462457 property:P27 ?n } UNION { resource:Q15999569 property:P27 ?n } } . ?n rdf:type ontology:Q1048835 }
William Collings Frank Dancevic
action filter_type
action union
action find
entity Frank Dancevic
relation country of citizenship
action find
entity William Collings
relation country of citizenship
type political territorial entity
{'OR': [['Frank Dancevic', 'country of citizenship', {'concept': 'political territorial entity'}], ['William Collings', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Frank_Dancevic property:country_of_citizenship ?n } UNION { resource:William_Collings property:country_of_citizenship ?n } } . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
OR((Q462457,P27,c(Q1048835)), (Q15999569,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q462457
relation P27
action find
entity Q15999569
relation P27
type Q1048835
[ANSWER] is Frank Dancevic or William Collings a civilian of
{'OR': [['Q462457', 'P27', {'concept': 'Q1048835'}], ['Q15999569', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q462457 property:P27 ?n } UNION { resource:Q15999569 property:P27 ?n } } . ?n rdf:type ontology:Q1048835 }
Canada
Canada is Frank Dancevic or William Collings a civilian of
Canada
action filter_type
action union
action find
entity Frank Dancevic
relation country of citizenship
action find
entity William Collings
relation country of citizenship
type political territorial entity
{'OR': [['Frank Dancevic', 'country of citizenship', {'concept': 'political territorial entity'}], ['William Collings', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Frank_Dancevic property:country_of_citizenship ?n } UNION { resource:William_Collings property:country_of_citizenship ?n } } . ?n rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with max number of political territories ?
(c(Q1048835),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?a ) { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?n ) WHERE { ?b property:P530 ?r . ?b rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?b } } . { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?t ) WHERE { ?h property:P530 ?c . ?c rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?t = ?a ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?a ) { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?n ) WHERE { ?b property:diplomatic_relation ?r . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?b } } . { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?t ) WHERE { ?h property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?t = ?a ) }
[]
designation for an administrative territorial entity political territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q1048835),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWER] have a diplomatic relationship with max number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?a ) { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?n ) WHERE { ?b property:P530 ?r . ?b rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?b } } . { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?t ) WHERE { ?h property:P530 ?c . ?c rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?t = ?a ) }
Italy
Italy have a diplomatic relationship with max number of political territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?a ) { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?n ) WHERE { ?b property:diplomatic_relation ?r . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?b } } . { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?t ) WHERE { ?h property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?t = ?a ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P6
Q502895
USER
Which people do that administrative territory serve as the head of government for ?
(Q38,P6,c(Q502895))
action filter_type
action find
entity Q38
relation P6
type Q502895
['Q38', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q38 property:P6 ?z . ?z rdf:type ontology:Q502895 }
Italy
action filter_type
action find
entity Italy
relation head of government
type common name
['Italy', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Italy property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
common name
Q47563 Q674957
SYSTEM
Matteo Renzi, Enrico Letta
Q47563 Q674957
(Q38,P6,c(Q502895))
action filter_type
action find
entity Q38
relation P6
type Q502895
[ANSWERS] that administrative territory serve as the head of government for
['Q38', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q38 property:P6 ?z . ?z rdf:type ontology:Q502895 }
Matteo Renzi Enrico Letta
Matteo Renzi and Enrico Letta that administrative territory serve as the head of government for
Matteo Renzi Enrico Letta
action filter_type
action find
entity Italy
relation head of government
type common name
['Italy', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Italy property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q47563 Q674957
P6
Q35798
USER
Which executive branches have those people as their administrative leader ?
(c(Q35798),P6,Q47563) (c(Q35798),P6,Q674957)
action filter_type
action find_reverse
entity prev_answer
relation P6
type Q35798
[{'concept': 'Q35798'}, 'P6', 'Q47563'] [{'concept': 'Q35798'}, 'P6', 'Q674957']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q35798 . VALUES ( ?x ) { ( resource:Q47563 ) ( resource:Q674957 ) } . ?h property:P6 ?x }
Matteo Renzi Enrico Letta
action filter_type
action find_reverse
entity prev_answer
relation head of government
type executive branch
[{'concept': 'executive branch'}, 'head of government', 'Matteo Renzi'] [{'concept': 'executive branch'}, 'head of government', 'Enrico Letta']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:executive_branch . VALUES ( ?x ) { ( resource:Matteo_Renzi ) ( resource:Enrico_Letta ) } . ?h property:head_of_government ?x }
[]
executive branch
Q15772498 Q12080459
SYSTEM
Renzi Cabinet, Letta Cabinet
Q15772498 Q12080459
(c(Q35798),P6,Q47563) (c(Q35798),P6,Q674957)
action filter_type
action find_reverse
entity prev_answer
relation P6
type Q35798
[ANSWERS] have those people as their administrative leader
[{'concept': 'Q35798'}, 'P6', 'Q47563'] [{'concept': 'Q35798'}, 'P6', 'Q674957']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q35798 . VALUES ( ?x ) { ( resource:Q47563 ) ( resource:Q674957 ) } . ?h property:P6 ?x }
Renzi Cabinet Letta Cabinet
Renzi Cabinet and Letta Cabinet have those people as their administrative leader
Renzi Cabinet Letta Cabinet
action filter_type
action find_reverse
entity prev_answer
relation head of government
type executive branch
[{'concept': 'executive branch'}, 'head of government', 'Matteo Renzi'] [{'concept': 'executive branch'}, 'head of government', 'Enrico Letta']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:executive_branch . VALUES ( ?x ) { ( resource:Matteo_Renzi ) ( resource:Enrico_Letta ) } . ?h property:head_of_government ?x }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q15772498 Q12080459
P6
Q502895
USER
Who are the heads of the government of those executive branches ?
(Q15772498,P6,c(Q502895)) (Q12080459,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
['Q15772498', 'P6', {'concept': 'Q502895'}] ['Q12080459', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?h property:P6 ?j . VALUES ( ?h ) { ( resource:Q15772498 ) ( resource:Q12080459 ) } . ?j rdf:type ontology:Q502895 }
Renzi Cabinet Letta Cabinet
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Renzi Cabinet', 'head of government', {'concept': 'common name'}] ['Letta Cabinet', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?h property:head_of_government ?j . VALUES ( ?h ) { ( resource:Renzi_Cabinet ) ( resource:Letta_Cabinet ) } . ?j rdf:type ontology:common_name }
[]
common name
Q47563 Q674957
SYSTEM
Matteo Renzi, Enrico Letta
Q47563 Q674957
(Q15772498,P6,c(Q502895)) (Q12080459,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
The heads of the government of those executive branches are President [ANSWERS]
['Q15772498', 'P6', {'concept': 'Q502895'}] ['Q12080459', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?h property:P6 ?j . VALUES ( ?h ) { ( resource:Q15772498 ) ( resource:Q12080459 ) } . ?j rdf:type ontology:Q502895 }
Matteo Renzi Enrico Letta
The heads of the government of those executive branches are President Matteo Renzi and Enrico Letta
Matteo Renzi Enrico Letta
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Renzi Cabinet', 'head of government', {'concept': 'common name'}] ['Letta Cabinet', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?h property:head_of_government ?j . VALUES ( ?h ) { ( resource:Renzi_Cabinet ) ( resource:Letta_Cabinet ) } . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16
P915
Q15416
USER
Which television program was filmed in the location Canada ?
(c(Q15416),P915,Q16)
action filter_type
action find_reverse
entity Q16
relation P915
type Q15416
[{'concept': 'Q15416'}, 'P915', 'Q16']
SELECT DISTINCT ?d WHERE { ?d property:P915 resource:Q16 . ?d rdf:type ontology:Q15416 }
Canada
action filter_type
action find_reverse
entity Canada
relation filming location
type television program
[{'concept': 'television program'}, 'filming location', 'Canada']
SELECT DISTINCT ?d WHERE { ?d property:filming_location resource:Canada . ?d rdf:type ontology:television_program }
[]
television program
Q1755288
SYSTEM
Higher Ground
Q1755288
(c(Q15416),P915,Q16)
action filter_type
action find_reverse
entity Q16
relation P915
type Q15416
Australia [ANSWER] was filmed in the location Canada
[{'concept': 'Q15416'}, 'P915', 'Q16']
SELECT DISTINCT ?d WHERE { ?d property:P915 resource:Q16 . ?d rdf:type ontology:Q15416 }
Higher Ground
Australia Higher Ground was filmed in the location Canada
Higher Ground
action filter_type
action find_reverse
entity Canada
relation filming location
type television program
[{'concept': 'television program'}, 'filming location', 'Canada']
SELECT DISTINCT ?d WHERE { ?d property:filming_location resource:Canada . ?d rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16
P127
Q43229
USER
Which organization belongs to Canada ?
(c(Q43229),P127,Q16)
action filter_type
action find_reverse
entity Q16
relation P127
type Q43229
[{'concept': 'Q43229'}, 'P127', 'Q16']
SELECT DISTINCT ?n WHERE { ?n property:P127 resource:Q16 . ?n rdf:type ontology:Q43229 }
Canada
action filter_type
action find_reverse
entity Canada
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Canada']
SELECT DISTINCT ?n WHERE { ?n property:owned_by resource:Canada . ?n rdf:type ontology:organization }
[]
organization
Q837893
SYSTEM
T & T Supermarket
Q837893
(c(Q43229),P127,Q16)
action filter_type
action find_reverse
entity Q16
relation P127
type Q43229
[ANSWER] belongs to Canada
[{'concept': 'Q43229'}, 'P127', 'Q16']
SELECT DISTINCT ?n WHERE { ?n property:P127 resource:Q16 . ?n rdf:type ontology:Q43229 }
T & T Supermarket
T & T Supermarket belongs to Canada
T & T Supermarket
action filter_type
action find_reverse
entity Canada
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Canada']
SELECT DISTINCT ?n WHERE { ?n property:owned_by resource:Canada . ?n rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16
P112
Q43229
USER
Which organization was founded by Canada ?
(c(Q43229),P112,Q16)
action filter_type
action find_reverse
entity Q16
relation P112
type Q43229
[{'concept': 'Q43229'}, 'P112', 'Q16']
SELECT DISTINCT ?v WHERE { ?v property:P112 resource:Q16 . ?v rdf:type ontology:Q43229 }
Canada
action filter_type
action find_reverse
entity Canada
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Canada']
SELECT DISTINCT ?v WHERE { ?v property:founder resource:Canada . ?v rdf:type ontology:organization }
[]
organization
Q7809
SYSTEM
United Nations Educational, Scientific and Cultural Organization
Q7809
(c(Q43229),P112,Q16)
action filter_type
action find_reverse
entity Q16
relation P112
type Q43229
The [ANSWER] was founded by Canada
[{'concept': 'Q43229'}, 'P112', 'Q16']
SELECT DISTINCT ?v WHERE { ?v property:P112 resource:Q16 . ?v rdf:type ontology:Q43229 }
United Nations Educational, Scientific and Cultural Organization
The United Nations Educational, Scientific and Cultural Organization was founded by Canada
United Nations Educational, Scientific and Cultural Organization
action filter_type
action find_reverse
entity Canada
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'Canada']
SELECT DISTINCT ?v WHERE { ?v property:founder resource:Canada . ?v rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7809
P488
Q502895
USER
Who chaired that organization ?
(Q7809,P488,c(Q502895))
action filter_type
action find
entity Q7809
relation P488
type Q502895
['Q7809', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q7809 property:P488 ?g . ?g rdf:type ontology:Q502895 }
United Nations Educational, Scientific and Cultural Organization
action filter_type
action find
entity United Nations Educational, Scientific and Cultural Organization
relation chairperson
type common name
['United Nations Educational, Scientific and Cultural Organization', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:United_Nations_Educational,_Scientific_and_Cultural_Organization property:chairperson ?g . ?g rdf:type ontology:common_name }
[]
common name
Q457158 Q243419 Q936897
SYSTEM
Federico Mayor Zaragoza, Julian Huxley, Luther H. Evans
Q230850 Q318985 Q457158 Q243419 Q740168 Q1491001 Q1388396 Q936897 Q1388759 Q553110
(Q7809,P488,c(Q502895))
action filter_type
action find
entity Q7809
relation P488
type Q502895
[ANSWERS] chaired that organization
['Q7809', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q7809 property:P488 ?g . ?g rdf:type ontology:Q502895 }
Irina Bokova Kōichirō Matsuura Federico Mayor Zaragoza Julian Huxley Amadou-Mahtar M'Bow John Wilkinson Taylor Vittorino Veronese Luther H. Evans René Maheu Jaime Torres Bodet
Federico Mayor Zaragoza, Julian Huxley and Luther H. Evans chaired that organization
Federico Mayor Zaragoza Julian Huxley Luther H. Evans
action filter_type
action find
entity United Nations Educational, Scientific and Cultural Organization
relation chairperson
type common name
['United Nations Educational, Scientific and Cultural Organization', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:United_Nations_Educational,_Scientific_and_Cultural_Organization property:chairperson ?g . ?g rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7809
P488
Q43229
USER
Does United Nations Educational, Scientific and Cultural Organization do those people lead ?
(Q7809,P488,Q457158) (Q7809,P488,Q243419) (Q7809,P488,Q936897)
action is_in
entity prev_answer
action find
entity Q7809
relation P488
['Q7809', 'P488', 'Q457158'] ['Q7809', 'P488', 'Q243419'] ['Q7809', 'P488', 'Q936897']
ASK WHERE { VALUES ( ?n ) { ( resource:Q230850 ) ( resource:Q318985 ) ( resource:Q457158 ) } . resource:Q7809 property:P488 ?n }
United Nations Educational, Scientific and Cultural Organization
action is_in
entity prev_answer
action find
entity United Nations Educational, Scientific and Cultural Organization
relation chairperson
['United Nations Educational, Scientific and Cultural Organization', 'chairperson', 'Federico Mayor Zaragoza'] ['United Nations Educational, Scientific and Cultural Organization', 'chairperson', 'Julian Huxley'] ['United Nations Educational, Scientific and Cultural Organization', 'chairperson', 'Luther H. Evans']
ASK WHERE { VALUES ( ?n ) { ( resource:Irina_Bokova ) ( resource:Kōichirō_Matsuura ) ( resource:Federico_Mayor_Zaragoza ) } . resource:United_Nations_Educational,_Scientific_and_Cultural_Organization property:chairperson ?n }
[]
organization
SYSTEM
YES
(Q7809,P488,Q457158) (Q7809,P488,Q243419) (Q7809,P488,Q936897)
action is_in
entity prev_answer
action find
entity Q7809
relation P488
[ANSWER]
['Q7809', 'P488', 'Q457158'] ['Q7809', 'P488', 'Q243419'] ['Q7809', 'P488', 'Q936897']
ASK WHERE { VALUES ( ?n ) { ( resource:Q230850 ) ( resource:Q318985 ) ( resource:Q457158 ) } . resource:Q7809 property:P488 ?n }
Yes
action is_in
entity prev_answer
action find
entity United Nations Educational, Scientific and Cultural Organization
relation chairperson
['United Nations Educational, Scientific and Cultural Organization', 'chairperson', 'Federico Mayor Zaragoza'] ['United Nations Educational, Scientific and Cultural Organization', 'chairperson', 'Julian Huxley'] ['United Nations Educational, Scientific and Cultural Organization', 'chairperson', 'Luther H. Evans']
ASK WHERE { VALUES ( ?n ) { ( resource:Irina_Bokova ) ( resource:Kōichirō_Matsuura ) ( resource:Federico_Mayor_Zaragoza ) } . resource:United_Nations_Educational,_Scientific_and_Cultural_Organization property:chairperson ?n }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q243419 Q145
P27
Q15617994
USER
Is United Kingdom the native country of that person ?
(Q243419,P27,Q145)
action is_in
entity Q145
action find
entity Q243419
relation P27
['Q243419', 'P27', 'Q145']
ASK WHERE { resource:Q243419 property:P27 resource:Q145 }
Julian Huxley United Kingdom
action is_in
entity United Kingdom
action find
entity Julian Huxley
relation country of citizenship
['Julian Huxley', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Julian_Huxley property:country_of_citizenship resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q243419,P27,Q145)
action is_in
entity Q145
action find
entity Q243419
relation P27
[ANSWER]
['Q243419', 'P27', 'Q145']
ASK WHERE { resource:Q243419 property:P27 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Julian Huxley
relation country of citizenship
['Julian Huxley', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Julian_Huxley property:country_of_citizenship resource:United_Kingdom }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q188813 Q462457
P47 P27
Q1048835
USER
Which political territories are Frank Dancevic a civilian of or are bordered by Maramureș County ?
OR((Q462457,P27,c(Q1048835)), (Q188813,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q462457
relation P27
action find
entity Q188813
relation P47
type Q1048835
{'OR': [['Q462457', 'P27', {'concept': 'Q1048835'}], ['Q188813', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q188813 property:P47 ?g } UNION { resource:Q462457 property:P27 ?g } } . ?g rdf:type ontology:Q1048835 }
Maramureș County Frank Dancevic
action filter_type
action union
action find
entity Frank Dancevic
relation country of citizenship
action find
entity Maramureș County
relation shares border with
type political territorial entity
{'OR': [['Frank Dancevic', 'country of citizenship', {'concept': 'political territorial entity'}], ['Maramureș County', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Maramureș_County property:shares_border_with ?g } UNION { resource:Frank_Dancevic property:country_of_citizenship ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q170213 Q178269
SYSTEM
Canada, Zakarpattia Oblast, Ivano-Frankivsk Oblast
Q16 Q170213 Q178269
OR((Q462457,P27,c(Q1048835)), (Q188813,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q462457
relation P27
action find
entity Q188813
relation P47
type Q1048835
[ANSWERS] are Frank Dancevic a civilian of or are bordered by Maramureș County
{'OR': [['Q462457', 'P27', {'concept': 'Q1048835'}], ['Q188813', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q188813 property:P47 ?g } UNION { resource:Q462457 property:P27 ?g } } . ?g rdf:type ontology:Q1048835 }
Canada Zakarpattia Oblast Ivano-Frankivsk Oblast
Canada, Zakarpattia Oblast and Ivano-Frankivsk Oblast are Frank Dancevic a civilian of or are bordered by Maramureș County
Canada Zakarpattia Oblast Ivano-Frankivsk Oblast
action filter_type
action union
action find
entity Frank Dancevic
relation country of citizenship
action find
entity Maramureș County
relation shares border with
type political territorial entity
{'OR': [['Frank Dancevic', 'country of citizenship', {'concept': 'political territorial entity'}], ['Maramureș County', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Maramureș_County property:shares_border_with ?g } UNION { resource:Frank_Dancevic property:country_of_citizenship ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]