Simple Question (Direct)
Simple Question
Q5082595
P69
Q163740
USER
Where was Charles Spofford educated ?
(Q5082595,P69,c(Q163740))
action filter_type
action find
entity Q5082595
relation P69
type Q163740
['Q5082595', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?m WHERE { resource:Q5082595 property:P69 ?m . ?m rdf:type ontology:Q163740 }
Charles Spofford
action filter_type
action find
entity Charles Spofford
relation educated at
type nonprofit organization
['Charles Spofford', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?m WHERE { resource:Charles_Spofford property:educated_at ?m . ?m rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49112
SYSTEM
Yale University
Q49112
(Q5082595,P69,c(Q163740))
action filter_type
action find
entity Q5082595
relation P69
type Q163740
Charles Spofford was educated [ANSWER]
['Q5082595', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?m WHERE { resource:Q5082595 property:P69 ?m . ?m rdf:type ontology:Q163740 }
Yale University
Charles Spofford was educated Yale University
Yale University
action filter_type
action find
entity Charles Spofford
relation educated at
type nonprofit organization
['Charles Spofford', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?m WHERE { resource:Charles_Spofford property:educated_at ?m . ?m rdf:type ontology:nonprofit_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5082595
P241
Q781132
USER
Which military branch did Charles Spofford belong to ?
(Q5082595,P241,c(Q781132))
action filter_type
action find
entity Q5082595
relation P241
type Q781132
['Q5082595', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?z WHERE { resource:Q5082595 property:P241 ?z . ?z rdf:type ontology:Q781132 }
Charles Spofford
action filter_type
action find
entity Charles Spofford
relation military branch
type military branch
['Charles Spofford', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?z WHERE { resource:Charles_Spofford property:military_branch ?z . ?z rdf:type ontology:military_branch }
[]
military branch
Q9212
SYSTEM
United States Army
Q9212
(Q5082595,P241,c(Q781132))
action filter_type
action find
entity Q5082595
relation P241
type Q781132
Charles Spofford belonged to [ANSWER]
['Q5082595', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?z WHERE { resource:Q5082595 property:P241 ?z . ?z rdf:type ontology:Q781132 }
United States Army
Charles Spofford belonged to United States Army
United States Army
action filter_type
action find
entity Charles Spofford
relation military branch
type military branch
['Charles Spofford', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?z WHERE { resource:Charles_Spofford property:military_branch ?z . ?z rdf:type ontology:military_branch }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P137
Q781132 Q2424752
USER
Which products were managed by max number of military branches ?
(c(Q2424752),P137,c(Q781132))
action argmax
action find_tuple_counts
relation P137
type Q2424752
type Q781132
[{'concept': 'Q2424752'}, 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?t ) { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?y ) WHERE { ?a property:P137 ?m . ?a rdf:type ontology:Q2424752 . ?m rdf:type ontology:Q781132 } GROUP BY ?a } } . FILTER ( ?z = ?t ) . { SELECT DISTINCT ?l ( COUNT ( ?i ) AS ?z ) WHERE { ?l property:P137 ?i . ?l rdf:type ontology:Q2424752 . ?i rdf:type ontology:Q781132 } GROUP BY ?l } }
action argmax
action find_tuple_counts
relation operator
type product
type military branch
[{'concept': 'product'}, 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?t ) { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?y ) WHERE { ?a property:operator ?m . ?a rdf:type ontology:product . ?m rdf:type ontology:military_branch } GROUP BY ?a } } . FILTER ( ?z = ?t ) . { SELECT DISTINCT ?l ( COUNT ( ?i ) AS ?z ) WHERE { ?l property:operator ?i . ?l rdf:type ontology:product . ?i rdf:type ontology:military_branch } GROUP BY ?l } }
[]
military branch product
Q163051 Q17364093 Q163838
SYSTEM
Albatros D.III, F-4B Phantom II, Ilyushin Il-38
Q17364093 Q163838 Q163051 Q15450518 Q15618480
(c(Q2424752),P137,c(Q781132))
action argmax
action find_tuple_counts
relation P137
type Q2424752
type Q781132
[ANSWERS] were managed by max number of military branches
[{'concept': 'Q2424752'}, 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?t ) { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?y ) WHERE { ?a property:P137 ?m . ?a rdf:type ontology:Q2424752 . ?m rdf:type ontology:Q781132 } GROUP BY ?a } } . FILTER ( ?z = ?t ) . { SELECT DISTINCT ?l ( COUNT ( ?i ) AS ?z ) WHERE { ?l property:P137 ?i . ?l rdf:type ontology:Q2424752 . ?i rdf:type ontology:Q781132 } GROUP BY ?l } }
F-4B Phantom II Ilyushin Il-38 Albatros D.III Douglas R2D-1 Beechcraft UC-12B
Albatros D.III, F-4B Phantom II and Ilyushin Il-38 were managed by max number of military branches
Albatros D.III F-4B Phantom II Ilyushin Il-38
action argmax
action find_tuple_counts
relation operator
type product
type military branch
[{'concept': 'product'}, 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?t ) { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?y ) WHERE { ?a property:operator ?m . ?a rdf:type ontology:product . ?m rdf:type ontology:military_branch } GROUP BY ?a } } . FILTER ( ?z = ?t ) . { SELECT DISTINCT ?l ( COUNT ( ?i ) AS ?z ) WHERE { ?l property:operator ?i . ?l rdf:type ontology:product . ?i rdf:type ontology:military_branch } GROUP BY ?l } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q4858826 Q5082595
P166
Q2003221
USER
Which chivalric orders were awarded to Charles Spofford and Barbara Cooper ?
AND((Q5082595,P166,c(Q2003221)), (Q4858826,P166,c(Q2003221)))
action filter_type
action intersection
action find
entity Q5082595
relation P166
action find
entity Q4858826
relation P166
type Q2003221
{'AND': [['Q5082595', 'P166', {'concept': 'Q2003221'}], ['Q4858826', 'P166', {'concept': 'Q2003221'}]]}
SELECT DISTINCT ?e WHERE { resource:Q5082595 property:P166 ?e . resource:Q4858826 property:P166 ?e . ?e rdf:type ontology:Q2003221 }
Barbara Cooper Charles Spofford
action filter_type
action intersection
action find
entity Charles Spofford
relation award received
action find
entity Barbara Cooper
relation award received
type chivalric order
{'AND': [['Charles Spofford', 'award received', {'concept': 'chivalric order'}], ['Barbara Cooper', 'award received', {'concept': 'chivalric order'}]]}
SELECT DISTINCT ?e WHERE { resource:Charles_Spofford property:award_received ?e . resource:Barbara_Cooper property:award_received ?e . ?e rdf:type ontology:chivalric_order }
[]
chivalric order
Q12201477
SYSTEM
Commander of the Order of the British Empire
Q12201477
AND((Q5082595,P166,c(Q2003221)), (Q4858826,P166,c(Q2003221)))
action filter_type
action intersection
action find
entity Q5082595
relation P166
action find
entity Q4858826
relation P166
type Q2003221
The [ANSWER] was awarded to Charles Spofford and Barbara Cooper
{'AND': [['Q5082595', 'P166', {'concept': 'Q2003221'}], ['Q4858826', 'P166', {'concept': 'Q2003221'}]]}
SELECT DISTINCT ?e WHERE { resource:Q5082595 property:P166 ?e . resource:Q4858826 property:P166 ?e . ?e rdf:type ontology:Q2003221 }
Commander of the Order of the British Empire
The Commander of the Order of the British Empire was awarded to Charles Spofford and Barbara Cooper
Commander of the Order of the British Empire
action filter_type
action intersection
action find
entity Charles Spofford
relation award received
action find
entity Barbara Cooper
relation award received
type chivalric order
{'AND': [['Charles Spofford', 'award received', {'concept': 'chivalric order'}], ['Barbara Cooper', 'award received', {'concept': 'chivalric order'}]]}
SELECT DISTINCT ?e WHERE { resource:Charles_Spofford property:award_received ?e . resource:Barbara_Cooper property:award_received ?e . ?e rdf:type ontology:chivalric_order }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4858826
P19
Q1048835
USER
Where was Barbara Cooper born ?
(Q4858826,P19,c(Q1048835))
action filter_type
action find
entity Q4858826
relation P19
type Q1048835
['Q4858826', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q4858826 property:P19 ?g . ?g rdf:type ontology:Q1048835 }
Barbara Cooper
action filter_type
action find
entity Barbara Cooper
relation place of birth
type political territorial entity
['Barbara Cooper', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Barbara_Cooper property:place_of_birth ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q4858826,P19,c(Q1048835))
action filter_type
action find
entity Q4858826
relation P19
type Q1048835
Barbara Cooper was born in [ANSWER]
['Q4858826', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q4858826 property:P19 ?g . ?g rdf:type ontology:Q1048835 }
Canada
Barbara Cooper was born in Canada
Canada
action filter_type
action find
entity Barbara Cooper
relation place of birth
type political territorial entity
['Barbara Cooper', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Barbara_Cooper property:place_of_birth ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P47
Q7275
USER
Which state is bordered by that political territory ?
(c(Q7275),P47,Q16)
action filter_type
action find_reverse
entity Q16
relation P47
type Q7275
[{'concept': 'Q7275'}, 'P47', 'Q16']
SELECT DISTINCT ?e WHERE { ?e property:P47 resource:Q16 . ?e rdf:type ontology:Q7275 }
Canada
action filter_type
action find_reverse
entity Canada
relation shares border with
type state
[{'concept': 'state'}, 'shares border with', 'Canada']
SELECT DISTINCT ?e WHERE { ?e property:shares_border_with resource:Canada . ?e rdf:type ontology:state }
[]
state
Q1152445
SYSTEM
Aerican Empire
Q1152445
(c(Q7275),P47,Q16)
action filter_type
action find_reverse
entity Q16
relation P47
type Q7275
[ANSWER] is bordered by that political territory
[{'concept': 'Q7275'}, 'P47', 'Q16']
SELECT DISTINCT ?e WHERE { ?e property:P47 resource:Q16 . ?e rdf:type ontology:Q7275 }
Aerican Empire
Aerican Empire is bordered by that political territory
Aerican Empire
action filter_type
action find_reverse
entity Canada
relation shares border with
type state
[{'concept': 'state'}, 'shares border with', 'Canada']
SELECT DISTINCT ?e WHERE { ?e property:shares_border_with resource:Canada . ?e rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1152445
P36
Q56061
USER
Which administrative territory is called the capital of that state ?
(Q1152445,P36,c(Q56061))
action filter_type
action find
entity Q1152445
relation P36
type Q56061
['Q1152445', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q1152445 property:P36 ?d . ?d rdf:type ontology:Q56061 }
Aerican Empire
action filter_type
action find
entity Aerican Empire
relation capital
type administrative territorial entity
['Aerican Empire', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Aerican_Empire property:capital ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q340
SYSTEM
Montreal
Q340
(Q1152445,P36,c(Q56061))
action filter_type
action find
entity Q1152445
relation P36
type Q56061
[ANSWER] is called the capital of that state
['Q1152445', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q1152445 property:P36 ?d . ?d rdf:type ontology:Q56061 }
Montreal
Montreal is called the capital of that state
Montreal
action filter_type
action find
entity Aerican Empire
relation capital
type administrative territorial entity
['Aerican Empire', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Aerican_Empire property:capital ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q340 Q613
P190
Q56061
USER
How many administrative territories are partner towns of Montreal and Emirate of Dubai ?
(Q340,P190,c(Q56061)) (Q613,P190,c(Q56061))
action count
action intersection
action filter_type
action find
entity Q340
relation P190
type Q56061
action filter_type
action find
entity Q613
relation P190
type Q56061
['Q340', 'P190', {'concept': 'Q56061'}] ['Q613', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Q340 property:P190 ?v . ?v rdf:type ontology:Q56061 . resource:Q613 property:P190 ?v . ?v rdf:type ontology:Q56061 }
Montreal Emirate of Dubai
action count
action intersection
action filter_type
action find
entity Montreal
relation sister city
type administrative territorial entity
action filter_type
action find
entity Emirate of Dubai
relation sister city
type administrative territorial entity
['Montreal', 'sister city', {'concept': 'administrative territorial entity'}] ['Emirate of Dubai', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Montreal property:sister_city ?v . ?v rdf:type ontology:administrative_territorial_entity . resource:Emirate_of_Dubai property:sister_city ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
2
Q3820 Q8686
(Q340,P190,c(Q56061)) (Q613,P190,c(Q56061))
action count
action intersection
action filter_type
action find
entity Q340
relation P190
type Q56061
action filter_type
action find
entity Q613
relation P190
type Q56061
[ANSWER]
['Q340', 'P190', {'concept': 'Q56061'}] ['Q613', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Q340 property:P190 ?v . ?v rdf:type ontology:Q56061 . resource:Q613 property:P190 ?v . ?v rdf:type ontology:Q56061 }
Beirut Shanghai
2
action count
action intersection
action filter_type
action find
entity Montreal
relation sister city
type administrative territorial entity
action filter_type
action find
entity Emirate of Dubai
relation sister city
type administrative territorial entity
['Montreal', 'sister city', {'concept': 'administrative territorial entity'}] ['Emirate of Dubai', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Montreal property:sister_city ?v . ?v rdf:type ontology:administrative_territorial_entity . resource:Emirate_of_Dubai property:sister_city ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]