Simple Question (Direct)
Simple Question
Q1976461
P19
Q56061
USER
Which administrative territory is the birthplace of Gilbert Fitz Richard ?
(Q1976461,P19,c(Q56061))
action filter_type
action find
entity Q1976461
relation P19
type Q56061
['Q1976461', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q1976461 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Gilbert Fitz Richard
action filter_type
action find
entity Gilbert Fitz Richard
relation place of birth
type administrative territorial entity
['Gilbert Fitz Richard', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Gilbert_Fitz_Richard property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2559341
SYSTEM
Clare, Suffolk
Q2559341
(Q1976461,P19,c(Q56061))
action filter_type
action find
entity Q1976461
relation P19
type Q56061
[ANSWER] is the birthplace of Gilbert Fitz Richard
['Q1976461', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q1976461 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Clare, Suffolk
Clare, Suffolk is the birthplace of Gilbert Fitz Richard
Clare, Suffolk
action filter_type
action find
entity Gilbert Fitz Richard
relation place of birth
type administrative territorial entity
['Gilbert Fitz Richard', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Gilbert_Fitz_Richard property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2559341
P17
Q15617994
USER
Which administrative territory does that administrative territory belong to ?
(Q2559341,P17,c(Q15617994))
action filter_type
action find
entity Q2559341
relation P17
type Q15617994
['Q2559341', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q2559341 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Clare, Suffolk
action filter_type
action find
entity Clare, Suffolk
relation country
type designation for an administrative territorial entity
['Clare, Suffolk', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Clare,_Suffolk property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q2559341,P17,c(Q15617994))
action filter_type
action find
entity Q2559341
relation P17
type Q15617994
That administrative territory belongs to [ANSWER]
['Q2559341', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q2559341 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
United Kingdom
That administrative territory belongs to United Kingdom
United Kingdom
action filter_type
action find
entity Clare, Suffolk
relation country
type designation for an administrative territorial entity
['Clare, Suffolk', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Clare,_Suffolk property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1655981 Q2559341
P17
Q15617994
USER
Or Piedras?
OR((Q2559341,P17,c(Q15617994)), (Q1655981,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2559341
relation P17
action find
entity Q1655981
relation P17
type Q15617994
{'OR': [['Q2559341', 'P17', {'concept': 'Q15617994'}], ['Q1655981', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q2559341 property:P17 ?b } UNION { resource:Q1655981 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
Piedras Clare, Suffolk
action filter_type
action union
action find
entity Clare, Suffolk
relation country
action find
entity Piedras
relation country
type designation for an administrative territorial entity
{'OR': [['Clare, Suffolk', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Piedras', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Clare,_Suffolk property:country ?b } UNION { resource:Piedras property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q739 Q145
SYSTEM
Colombia, United Kingdom
Q739 Q145
OR((Q2559341,P17,c(Q15617994)), (Q1655981,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2559341
relation P17
action find
entity Q1655981
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q2559341', 'P17', {'concept': 'Q15617994'}], ['Q1655981', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q2559341 property:P17 ?b } UNION { resource:Q1655981 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
Colombia United Kingdom
Colombia United Kingdom
action filter_type
action union
action find
entity Clare, Suffolk
relation country
action find
entity Piedras
relation country
type designation for an administrative territorial entity
{'OR': [['Clare, Suffolk', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Piedras', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Clare,_Suffolk property:country ?b } UNION { resource:Piedras property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Are Australia known to have diplomatic connections with those administrative territories ?
(Q408,P530,Q739) (Q408,P530,Q145)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q739'] ['Q408', 'P530', 'Q145']
ASK WHERE { resource:Q408 property:P530 ?f . VALUES ( ?f ) { ( resource:Q739 ) ( resource:Q145 ) } }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Colombia'] ['Australia', 'diplomatic relation', 'United Kingdom']
ASK WHERE { resource:Australia property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Colombia ) ( resource:United_Kingdom ) } }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q739) (Q408,P530,Q145)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q739'] ['Q408', 'P530', 'Q145']
ASK WHERE { resource:Q408 property:P530 ?f . VALUES ( ?f ) { ( resource:Q739 ) ( resource:Q145 ) } }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Colombia'] ['Australia', 'diplomatic relation', 'United Kingdom']
ASK WHERE { resource:Australia property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Colombia ) ( resource:United_Kingdom ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?k ) WHERE { ?t property:P530 ?r . ?t rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?k = ?x ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?x ) { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?d ) WHERE { ?h property:P530 ?q . ?h rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?h } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?k ) WHERE { ?t property:diplomatic_relation ?r . ?t rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?k = ?x ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?x ) { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?d ) WHERE { ?h property:diplomatic_relation ?q . ?h rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } } }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic associations with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?k ) WHERE { ?t property:P530 ?r . ?t rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?k = ?x ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?x ) { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?d ) WHERE { ?h property:P530 ?q . ?h rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?h } } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have diplomatic associations with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?k ) WHERE { ?t property:diplomatic_relation ?r . ?t rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?k = ?x ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?x ) { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?d ) WHERE { ?h property:diplomatic_relation ?q . ?h rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q691
P463
Q484652
USER
Which international organizations were that political territory a member of ?
(Q691,P463,c(Q484652))
action filter_type
action find
entity Q691
relation P463
type Q484652
['Q691', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?x WHERE { resource:Q691 property:P463 ?x . ?x rdf:type ontology:Q484652 }
Papua New Guinea
action filter_type
action find
entity Papua New Guinea
relation member of
type international organization
['Papua New Guinea', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?x WHERE { resource:Papua_New_Guinea property:member_of ?x . ?x rdf:type ontology:international_organization }
[]
international organization
Clarification for simple ques.
Q691
SYSTEM
Did you mean Papua New Guinea ?
Q1000 Q769 Q691
(Q1000,P463,c(Q484652)) (Q769,P463,c(Q484652)) (Q691,P463,c(Q484652))
[ANSWER]
['Q1000', 'P463', {'concept': 'Q484652'}] ['Q769', 'P463', {'concept': 'Q484652'}] ['Q691', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?x WHERE { resource:Q691 property:P463 ?x . ?x rdf:type ontology:Q484652 }
Gabon Grenada Papua New Guinea
Did you mean Papua New Guinea ?
Papua New Guinea
['Gabon', 'member of', {'concept': 'international organization'}] ['Grenada', 'member of', {'concept': 'international organization'}] ['Papua New Guinea', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?x WHERE { resource:Papua_New_Guinea property:member_of ?x . ?x rdf:type ontology:international_organization }
[]
Simple Question (Coreferenced)
USER
Yes
(Q691,P463,c(Q484652))
['Q691', 'P463', {'concept': 'Q484652'}]
['Papua New Guinea', 'member of', {'concept': 'international organization'}]
[]
Q496967 Q7785 Q1065
SYSTEM
Alliance of Small Island States, Commonwealth of Nations, United Nations
Q496967 Q7785 Q1065 Q188822 Q294278 Q1043527
(Q691,P463,c(Q484652))
action filter_type
action find
entity Q691
relation P463
type Q484652
[ANSWERS] were that political territory a member of
['Q691', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?x WHERE { resource:Q691 property:P463 ?x . ?x rdf:type ontology:Q484652 }
Alliance of Small Island States Commonwealth of Nations United Nations Asian Development Bank African, Caribbean and Pacific Group of States Multilateral Investment Guarantee Agency
Alliance of Small Island States, Commonwealth of Nations and United Nations were that political territory a member of
Alliance of Small Island States Commonwealth of Nations United Nations
action filter_type
action find
entity Papua New Guinea
relation member of
type international organization
['Papua New Guinea', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?x WHERE { resource:Papua_New_Guinea property:member_of ?x . ?x rdf:type ontology:international_organization }
[]