Simple Question (Direct)
Simple Question
Q129929
P495
Q15617994
USER
Where did The Amber Spyglass originate ?
(Q129929,P495,c(Q15617994))
action filter_type
action find
entity Q129929
relation P495
type Q15617994
['Q129929', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q129929 property:P495 ?x }
The Amber Spyglass
action filter_type
action find
entity The Amber Spyglass
relation country of origin
type designation for an administrative territorial entity
['The Amber Spyglass', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:The_Amber_Spyglass property:country_of_origin ?x }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q129929,P495,c(Q15617994))
action filter_type
action find
entity Q129929
relation P495
type Q15617994
The Amber Spyglass originated in [ANSWER]
['Q129929', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q129929 property:P495 ?x }
United Kingdom
The Amber Spyglass originated in United Kingdom
United Kingdom
action filter_type
action find
entity The Amber Spyglass
relation country of origin
type designation for an administrative territorial entity
['The Amber Spyglass', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:The_Amber_Spyglass property:country_of_origin ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q129929
P1441
Q6619679
USER
Which fictional humanoid is from the works of that collectable ?
(c(Q6619679),P1441,Q145)
action filter_type
action find_reverse
entity Q129929
relation P1441
type Q6619679
[{'concept': 'Q6619679'}, 'P1441', 'Q145']
SELECT DISTINCT ?p WHERE { ?p property:P1441 resource:Q129929 . ?p rdf:type ontology:Q6619679 }
The Amber Spyglass
action filter_type
action find_reverse
entity The Amber Spyglass
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', 'United Kingdom']
SELECT DISTINCT ?p WHERE { ?p property:present_in_work resource:The_Amber_Spyglass . ?p rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q2091177
SYSTEM
Lyra Belacqua
Q2091177
(c(Q6619679),P1441,Q145)
action filter_type
action find_reverse
entity Q129929
relation P1441
type Q6619679
[ANSWER] is from the works of that collectable
[{'concept': 'Q6619679'}, 'P1441', 'Q145']
SELECT DISTINCT ?p WHERE { ?p property:P1441 resource:Q129929 . ?p rdf:type ontology:Q6619679 }
Lyra Belacqua
Lyra Belacqua is from the works of that collectable
Lyra Belacqua
action filter_type
action find_reverse
entity The Amber Spyglass
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', 'United Kingdom']
SELECT DISTINCT ?p WHERE { ?p property:present_in_work resource:The_Amber_Spyglass . ?p rdf:type ontology:fictional_humanoid }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P674
Q2342494
USER
How many collectables have the character that fictional humanoid ?
(c(Q2342494),P674,Q2091177)
action count
action filter_type
action find_reverse
entity Q2091177
relation P674
type Q2342494
[{'concept': 'Q2342494'}, 'P674', 'Q2091177']
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w property:P674 resource:Q2091177 . ?w rdf:type ontology:Q2342494 }
action count
action filter_type
action find_reverse
entity Lyra Belacqua
relation characters
type collectable
[{'concept': 'collectable'}, 'characters', 'Lyra Belacqua']
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w property:characters resource:Lyra_Belacqua . ?w rdf:type ontology:collectable }
[]
collectable
SYSTEM
3
Q2261853 Q18578 Q129929
(c(Q2342494),P674,Q2091177)
action count
action filter_type
action find_reverse
entity Q2091177
relation P674
type Q2342494
[ANSWER]
[{'concept': 'Q2342494'}, 'P674', 'Q2091177']
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w property:P674 resource:Q2091177 . ?w rdf:type ontology:Q2342494 }
Lyra's Oxford The Book of Dust The Amber Spyglass
3
action count
action filter_type
action find_reverse
entity Lyra Belacqua
relation characters
type collectable
[{'concept': 'collectable'}, 'characters', 'Lyra Belacqua']
SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) WHERE { ?w property:characters resource:Lyra_Belacqua . ?w rdf:type ontology:collectable }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P530
Q1048835
USER
Which political territories are known to have diplomatic connections with United Kingdom ?
(c(Q1048835),P530,Q145)
action filter_type
action find
entity Q145
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q145']
SELECT DISTINCT ?u WHERE { resource:Q145 property:P530 ?u . ?u rdf:type ontology:Q1048835 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'United Kingdom']
SELECT DISTINCT ?u WHERE { resource:United_Kingdom property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q408 Q183
SYSTEM
Canada, Australia, Germany
Q16 Q408 Q183
(c(Q1048835),P530,Q145)
action filter_type
action find
entity Q145
relation P530
type Q1048835
[ANSWERS] are known to have diplomatic connections with United Kingdom
[{'concept': 'Q1048835'}, 'P530', 'Q145']
SELECT DISTINCT ?u WHERE { resource:Q145 property:P530 ?u . ?u rdf:type ontology:Q1048835 }
Canada Australia Germany
Canada, Australia and Germany are known to have diplomatic connections with United Kingdom
Canada Australia Germany
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'United Kingdom']
SELECT DISTINCT ?u WHERE { resource:United_Kingdom property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16
P137
Q3084961
USER
Which product linings can be described as facility operator of that political territory ?
(c(Q3084961),P137,Q16)
action filter_type
action find_reverse
entity Q16
relation P137
type Q3084961
[{'concept': 'Q3084961'}, 'P137', 'Q16']
SELECT DISTINCT ?v WHERE { ?v property:P137 resource:Q16 . ?v rdf:type ontology:Q3084961 }
Canada
action filter_type
action find_reverse
entity Canada
relation operator
type product lining
[{'concept': 'product lining'}, 'operator', 'Canada']
SELECT DISTINCT ?v WHERE { ?v property:operator resource:Canada . ?v rdf:type ontology:product_lining }
[]
product lining
Clarification for simple ques.
Q183
SYSTEM
Did you mean Germany ?
Q16 Q408 Q183
(c(Q3084961),P137,Q16) (c(Q3084961),P137,Q408) (c(Q3084961),P137,Q183)
[ANSWER]
[{'concept': 'Q3084961'}, 'P137', 'Q16'] [{'concept': 'Q3084961'}, 'P137', 'Q408'] [{'concept': 'Q3084961'}, 'P137', 'Q183']
SELECT DISTINCT ?v WHERE { ?v property:P137 resource:Q16 . ?v rdf:type ontology:Q3084961 }
Canada Australia Germany
Did you mean Germany ?
Germany
[{'concept': 'product lining'}, 'operator', 'Canada'] [{'concept': 'product lining'}, 'operator', 'Australia'] [{'concept': 'product lining'}, 'operator', 'Germany']
SELECT DISTINCT ?v WHERE { ?v property:operator resource:Canada . ?v rdf:type ontology:product_lining }
[]
Simple Question (Coreferenced)
USER
No, I meant Canada. Could you tell me the answer for that?
(c(Q3084961),P137,Q16)
Q16
[{'concept': 'Q3084961'}, 'P137', 'Q16']
[{'concept': 'product lining'}, 'operator', 'Canada']
[]
Q58725 Q791488
SYSTEM
T-33 Shooting Star, CF-100 Canuck
Q58725 Q791488
(c(Q3084961),P137,Q16)
action filter_type
action find_reverse
entity Q16
relation P137
type Q3084961
[ANSWERS] can be described as facility operator of that political territory
[{'concept': 'Q3084961'}, 'P137', 'Q16']
SELECT DISTINCT ?v WHERE { ?v property:P137 resource:Q16 . ?v rdf:type ontology:Q3084961 }
T-33 Shooting Star CF-100 Canuck
T-33 Shooting Star and CF-100 Canuck can be described as facility operator of that political territory
T-33 Shooting Star CF-100 Canuck
action filter_type
action find_reverse
entity Canada
relation operator
type product lining
[{'concept': 'product lining'}, 'operator', 'Canada']
SELECT DISTINCT ?v WHERE { ?v property:operator resource:Canada . ?v rdf:type ontology:product_lining }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q16 Q20
P530
Q1048835
USER
How many political territories have diplomatic relationships with Canada and Norway ?
(Q16,P530,c(Q1048835)) (Q20,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q16
relation P530
type Q1048835
action filter_type
action find
entity Q20
relation P530
type Q1048835
['Q16', 'P530', {'concept': 'Q1048835'}] ['Q20', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Q16 property:P530 ?t . ?t rdf:type ontology:Q1048835 . resource:Q20 property:P530 ?t . ?t rdf:type ontology:Q1048835 }
Canada Norway
action count
action intersection
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Norway
relation diplomatic relation
type political territorial entity
['Canada', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Canada property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity . resource:Norway property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(Q16,P530,c(Q1048835)) (Q20,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q16
relation P530
type Q1048835
action filter_type
action find
entity Q20
relation P530
type Q1048835
[ANSWER]
['Q16', 'P530', {'concept': 'Q1048835'}] ['Q20', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Q16 property:P530 ?t . ?t rdf:type ontology:Q1048835 . resource:Q20 property:P530 ?t . ?t rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Norway
relation diplomatic relation
type political territorial entity
['Canada', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Canada property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity . resource:Norway property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity }
[]