Simple Question (Direct)
Simple Question
Q7332770
P19
Q56061
USER
Which administrative territory is the birthplace of Ridgely Gaither ?
(Q7332770,P19,c(Q56061))
action filter_type
action find
entity Q7332770
relation P19
type Q56061
['Q7332770', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q7332770 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Ridgely Gaither
action filter_type
action find
entity Ridgely Gaither
relation place of birth
type administrative territorial entity
['Ridgely Gaither', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Ridgely_Gaither property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5092
SYSTEM
Baltimore
Q5092
(Q7332770,P19,c(Q56061))
action filter_type
action find
entity Q7332770
relation P19
type Q56061
[ANSWER] is the birthplace of Ridgely Gaither
['Q7332770', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q7332770 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Baltimore
Baltimore is the birthplace of Ridgely Gaither
Baltimore
action filter_type
action find
entity Ridgely Gaither
relation place of birth
type administrative territorial entity
['Ridgely Gaither', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Ridgely_Gaither property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7332770
P166
Q618779
USER
Which awards were received by that person ?
(Q5092,P166,c(Q618779))
action filter_type
action find
entity Q7332770
relation P166
type Q618779
['Q5092', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?f WHERE { resource:Q7332770 property:P166 ?f . ?f rdf:type ontology:Q618779 }
Ridgely Gaither
action filter_type
action find
entity Ridgely Gaither
relation award received
type award
['Baltimore', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?f WHERE { resource:Ridgely_Gaither property:award_received ?f . ?f rdf:type ontology:award }
[]
award
Q852071 Q724443 Q928314
SYSTEM
Silver Star, Legion of Merit, Bronze Star Medal
Q852071 Q724443 Q928314
(Q5092,P166,c(Q618779))
action filter_type
action find
entity Q7332770
relation P166
type Q618779
[ANSWERS] were received by that person
['Q5092', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?f WHERE { resource:Q7332770 property:P166 ?f . ?f rdf:type ontology:Q618779 }
Silver Star Legion of Merit Bronze Star Medal
Silver Star, Legion of Merit and Bronze Star Medal were received by that person
Silver Star Legion of Merit Bronze Star Medal
action filter_type
action find
entity Ridgely Gaither
relation award received
type award
['Baltimore', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?f WHERE { resource:Ridgely_Gaither property:award_received ?f . ?f rdf:type ontology:award }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20289132 Q852071
P17
Q15617994
USER
Which administrative territories are Silver Star or San Francisco de Asís located in ?
OR((Q852071,P17,c(Q15617994)), (Q20289132,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q852071
relation P17
action find
entity Q20289132
relation P17
type Q15617994
{'OR': [['Q852071', 'P17', {'concept': 'Q15617994'}], ['Q20289132', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?s ) { ( resource:Q852071 ) ( resource:Q20289132 ) } . ?s property:P17 ?x } . ?x rdf:type ontology:Q15617994 }
San Francisco de Asís Silver Star
action filter_type
action union
action find
entity Silver Star
relation country
action find
entity San Francisco de Asís
relation country
type designation for an administrative territorial entity
{'OR': [['Silver Star', 'country', {'concept': 'designation for an administrative territorial entity'}], ['San Francisco de Asís', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?s ) { ( resource:Silver_Star ) ( resource:San_Francisco_de_Asís ) } . ?s property:country ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96 Q30
SYSTEM
Mexico, United States of America
Q96 Q30
OR((Q852071,P17,c(Q15617994)), (Q20289132,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q852071
relation P17
action find
entity Q20289132
relation P17
type Q15617994
Silver Star or San Francisco de Asís are located in [ANSWERS]
{'OR': [['Q852071', 'P17', {'concept': 'Q15617994'}], ['Q20289132', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?s ) { ( resource:Q852071 ) ( resource:Q20289132 ) } . ?s property:P17 ?x } . ?x rdf:type ontology:Q15617994 }
Mexico United States of America
Silver Star or San Francisco de Asís are located in Mexico and United States of America
Mexico United States of America
action filter_type
action union
action find
entity Silver Star
relation country
action find
entity San Francisco de Asís
relation country
type designation for an administrative territorial entity
{'OR': [['Silver Star', 'country', {'concept': 'designation for an administrative territorial entity'}], ['San Francisco de Asís', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?s ) { ( resource:Silver_Star ) ( resource:San_Francisco_de_Asís ) } . ?s property:country ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?r ) { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?f ) WHERE { ?q property:P530 ?j . ?q rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?q } } . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?n ) WHERE { ?y property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } GROUP BY ?y } . FILTER ( ?n = ?r ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?r ) { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?f ) WHERE { ?q property:diplomatic_relation ?j . ?q rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?n ) WHERE { ?y property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?y } . FILTER ( ?n = ?r ) }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] hold diplomatic relationship with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?r ) { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?f ) WHERE { ?q property:P530 ?j . ?q rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?q } } . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?n ) WHERE { ?y property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } GROUP BY ?y } . FILTER ( ?n = ?r ) }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea hold diplomatic relationship with min number of administrative territories
Solomon Islands Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?r ) { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?f ) WHERE { ?q property:diplomatic_relation ?j . ?q rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } } . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?n ) WHERE { ?y property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?y } . FILTER ( ?n = ?r ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q15631931
P1001
Q4677783
USER
Does Constitution Act, 1907 preside the jurisdiction over those political territories ?
(Q15631931,P1001,Q685) (Q15631931,P1001,Q691)
action is_in
entity prev_answer
action find
entity Q15631931
relation P1001
['Q15631931', 'P1001', 'Q685'] ['Q15631931', 'P1001', 'Q691']
ASK WHERE { VALUES ( ?d ) { ( resource:Q685 ) ( resource:Q691 ) } . resource:Q15631931 property:P1001 ?d }
Constitution Act, 1907
action is_in
entity prev_answer
action find
entity Constitution Act, 1907
relation applies to jurisdiction
['Constitution Act, 1907', 'applies to jurisdiction', 'Solomon Islands'] ['Constitution Act, 1907', 'applies to jurisdiction', 'Papua New Guinea']
ASK WHERE { VALUES ( ?d ) { ( resource:Solomon_Islands ) ( resource:Papua_New_Guinea ) } . resource:Constitution_Act,_1907 property:applies_to_jurisdiction ?d }
[]
Act of Parliament of the United Kingdom
SYSTEM
NO
(Q15631931,P1001,Q685) (Q15631931,P1001,Q691)
action is_in
entity prev_answer
action find
entity Q15631931
relation P1001
[ANSWER]
['Q15631931', 'P1001', 'Q685'] ['Q15631931', 'P1001', 'Q691']
ASK WHERE { VALUES ( ?d ) { ( resource:Q685 ) ( resource:Q691 ) } . resource:Q15631931 property:P1001 ?d }
No
action is_in
entity prev_answer
action find
entity Constitution Act, 1907
relation applies to jurisdiction
['Constitution Act, 1907', 'applies to jurisdiction', 'Solomon Islands'] ['Constitution Act, 1907', 'applies to jurisdiction', 'Papua New Guinea']
ASK WHERE { VALUES ( ?d ) { ( resource:Solomon_Islands ) ( resource:Papua_New_Guinea ) } . resource:Constitution_Act,_1907 property:applies_to_jurisdiction ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P30
Q2221906
USER
Where are United States of America located ?
(Q30,P30,c(Q2221906))
action filter_type
action find
entity Q30
relation P30
type Q2221906
['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { resource:Q30 property:P30 ?q . ?q rdf:type ontology:Q2221906 }
United States of America
action filter_type
action find
entity United States of America
relation continent
type geographic location
['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { resource:United_States_of_America property:continent ?q . ?q rdf:type ontology:geographic_location }
[]
geographic location
Q49 Q538
SYSTEM
North America, Oceania
Q49 Q538
(Q30,P30,c(Q2221906))
action filter_type
action find
entity Q30
relation P30
type Q2221906
United States of America are located in [ANSWERS]
['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?q WHERE { resource:Q30 property:P30 ?q . ?q rdf:type ontology:Q2221906 }
North America Oceania
United States of America are located in North America and Oceania
North America Oceania
action filter_type
action find
entity United States of America
relation continent
type geographic location
['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?q WHERE { resource:United_States_of_America property:continent ?q . ?q rdf:type ontology:geographic_location }
[]
Clarification
Simple Question|Single Entity|Indirect
Q49
P361
Q2221906
USER
Which geographic location is a portion of that one ?
(c(Q2221906),P361,Q49)
action filter_type
action find_reverse
entity Q49
relation P361
type Q2221906
[{'concept': 'Q2221906'}, 'P361', 'Q49']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2221906 . ?j property:P361 resource:Q49 }
North America
action filter_type
action find_reverse
entity North America
relation part of
type geographic location
[{'concept': 'geographic location'}, 'part of', 'North America']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:geographic_location . ?j property:part_of resource:North_America }
[]
geographic location
Clarification for simple ques.
Q49
SYSTEM
Did you mean North America ?
Q49 Q538
(c(Q2221906),P361,Q49) (c(Q2221906),P361,Q538)
[ANSWER]
[{'concept': 'Q2221906'}, 'P361', 'Q49'] [{'concept': 'Q2221906'}, 'P361', 'Q538']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2221906 . ?j property:P361 resource:Q49 }
North America Oceania
Did you mean North America ?
North America
[{'concept': 'geographic location'}, 'part of', 'North America'] [{'concept': 'geographic location'}, 'part of', 'Oceania']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:geographic_location . ?j property:part_of resource:North_America }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q2221906),P361,Q49)
[{'concept': 'Q2221906'}, 'P361', 'Q49']
[{'concept': 'geographic location'}, 'part of', 'North America']
[]
Q2017699
SYSTEM
Northern America
Q2017699
(c(Q2221906),P361,Q49)
action filter_type
action find_reverse
entity Q49
relation P361
type Q2221906
The [ANSWER] is a portion of that one
[{'concept': 'Q2221906'}, 'P361', 'Q49']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2221906 . ?j property:P361 resource:Q49 }
Northern America
The Northern America is a portion of that one
Northern America
action filter_type
action find_reverse
entity North America
relation part of
type geographic location
[{'concept': 'geographic location'}, 'part of', 'North America']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:geographic_location . ?j property:part_of resource:North_America }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2017699
P361
Q2221906
USER
Which geographic location is that one a part of ?
(Q2017699,P361,c(Q2221906))
action filter_type
action find
entity Q2017699
relation P361
type Q2221906
['Q2017699', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q2221906 . resource:Q2017699 property:P361 ?a }
Northern America
action filter_type
action find
entity Northern America
relation part of
type geographic location
['Northern America', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:geographic_location . resource:Northern_America property:part_of ?a }
[]
geographic location
Q49
SYSTEM
North America
Q49
(Q2017699,P361,c(Q2221906))
action filter_type
action find
entity Q2017699
relation P361
type Q2221906
The [ANSWER] is that one a part of
['Q2017699', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q2221906 . resource:Q2017699 property:P361 ?a }
North America
The North America is that one a part of
North America
action filter_type
action find
entity Northern America
relation part of
type geographic location
['Northern America', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:geographic_location . resource:Northern_America property:part_of ?a }
[]