Simple Question (Direct)
Simple Question
Q15296616
P9
Q989255
USER
Who is the sister of Goldilocks Took ?
(Q15296616,P9,c(Q989255))
action filter_type
action find
entity Q15296616
relation P9
type Q989255
['Q15296616', 'P9', {'concept': 'Q989255'}]
SELECT DISTINCT ?n WHERE { resource:Q15296616 property:P9 ?n . ?n rdf:type ontology:Q989255 }
Goldilocks Took
action filter_type
action find
entity Goldilocks Took
relation sister
type Middle-earth races
['Goldilocks Took', 'sister', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?n WHERE { resource:Goldilocks_Took property:sister ?n . ?n rdf:type ontology:Middle-earth_races }
[]
Middle-earth races
Q2251643
SYSTEM
Elanor Gardner
Q2251643
(Q15296616,P9,c(Q989255))
action filter_type
action find
entity Q15296616
relation P9
type Q989255
The sister of Goldilocks Took is the [ANSWER]
['Q15296616', 'P9', {'concept': 'Q989255'}]
SELECT DISTINCT ?n WHERE { resource:Q15296616 property:P9 ?n . ?n rdf:type ontology:Q989255 }
Elanor Gardner
The sister of Goldilocks Took is the Elanor Gardner
Elanor Gardner
action filter_type
action find
entity Goldilocks Took
relation sister
type Middle-earth races
['Goldilocks Took', 'sister', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?n WHERE { resource:Goldilocks_Took property:sister ?n . ?n rdf:type ontology:Middle-earth_races }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2251643
P25
Q989255
USER
Which Middle-earth races was the mother of that one ?
(Q2251643,P25,c(Q989255))
action filter_type
action find
entity Q2251643
relation P25
type Q989255
['Q2251643', 'P25', {'concept': 'Q989255'}]
SELECT DISTINCT ?n WHERE { resource:Q2251643 property:P25 ?n . ?n rdf:type ontology:Q989255 }
Elanor Gardner
action filter_type
action find
entity Elanor Gardner
relation mother
type Middle-earth races
['Elanor Gardner', 'mother', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?n WHERE { resource:Elanor_Gardner property:mother ?n . ?n rdf:type ontology:Middle-earth_races }
[]
Middle-earth races
Q7476340
SYSTEM
Rose Cotton
Q7476340
(Q2251643,P25,c(Q989255))
action filter_type
action find
entity Q2251643
relation P25
type Q989255
Which Middle-earth races was the mother of that one
['Q2251643', 'P25', {'concept': 'Q989255'}]
SELECT DISTINCT ?n WHERE { resource:Q2251643 property:P25 ?n . ?n rdf:type ontology:Q989255 }
Rose Cotton
Which Middle-earth races was the mother of that one
Rose Cotton
action filter_type
action find
entity Elanor Gardner
relation mother
type Middle-earth races
['Elanor Gardner', 'mother', {'concept': 'Middle-earth races'}]
SELECT DISTINCT ?n WHERE { resource:Elanor_Gardner property:mother ?n . ?n rdf:type ontology:Middle-earth_races }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7476340
P40
Q989255
USER
Which Middle-earth races has that one as a child ?
(c(Q989255),P40,Q7476340)
action filter_type
action find_reverse
entity Q7476340
relation P40
type Q989255
[{'concept': 'Q989255'}, 'P40', 'Q7476340']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q989255 . ?z property:P40 resource:Q7476340 }
Rose Cotton
action filter_type
action find_reverse
entity Rose Cotton
relation child
type Middle-earth races
[{'concept': 'Middle-earth races'}, 'child', 'Rose Cotton']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Middle-earth_races . ?z property:child resource:Rose_Cotton }
[]
Middle-earth races
Q10297064
SYSTEM
Tolman Cotton
Q10297064
(c(Q989255),P40,Q7476340)
action filter_type
action find_reverse
entity Q7476340
relation P40
type Q989255
Which Middle-earth races has that one as a child
[{'concept': 'Q989255'}, 'P40', 'Q7476340']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q989255 . ?z property:P40 resource:Q7476340 }
Tolman Cotton
Which Middle-earth races has that one as a child
Tolman Cotton
action filter_type
action find_reverse
entity Rose Cotton
relation child
type Middle-earth races
[{'concept': 'Middle-earth races'}, 'child', 'Rose Cotton']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Middle-earth_races . ?z property:child resource:Rose_Cotton }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7476340
P26
Q989255
USER
Who is the spouse of Rose Cotton ?
(c(Q989255),P26,Q7476340)
action filter_type
action find
entity Q7476340
relation P26
type Q989255
[{'concept': 'Q989255'}, 'P26', 'Q7476340']
SELECT DISTINCT ?y WHERE { resource:Q7476340 property:P26 ?y . ?y rdf:type ontology:Q989255 }
Rose Cotton
action filter_type
action find
entity Rose Cotton
relation spouse
type Middle-earth races
[{'concept': 'Middle-earth races'}, 'spouse', 'Rose Cotton']
SELECT DISTINCT ?y WHERE { resource:Rose_Cotton property:spouse ?y . ?y rdf:type ontology:Middle-earth_races }
[]
Middle-earth races
Q219473
SYSTEM
Samwise Gamgee
Q219473
(c(Q989255),P26,Q7476340)
action filter_type
action find
entity Q7476340
relation P26
type Q989255
The spouse of Rose Cotton is called [ANSWER]
[{'concept': 'Q989255'}, 'P26', 'Q7476340']
SELECT DISTINCT ?y WHERE { resource:Q7476340 property:P26 ?y . ?y rdf:type ontology:Q989255 }
Samwise Gamgee
The spouse of Rose Cotton is called Samwise Gamgee
Samwise Gamgee
action filter_type
action find
entity Rose Cotton
relation spouse
type Middle-earth races
[{'concept': 'Middle-earth races'}, 'spouse', 'Rose Cotton']
SELECT DISTINCT ?y WHERE { resource:Rose_Cotton property:spouse ?y . ?y rdf:type ontology:Middle-earth_races }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q219473
P1441
Q2342494
USER
Which collectable is that Middle-earth races present in ?
(Q219473,P1441,c(Q2342494))
action filter_type
action find
entity Q219473
relation P1441
type Q2342494
['Q219473', 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?b WHERE { resource:Q219473 property:P1441 ?b . ?b rdf:type ontology:Q2342494 }
Samwise Gamgee
action filter_type
action find
entity Samwise Gamgee
relation present in work
type collectable
['Samwise Gamgee', 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?b WHERE { resource:Samwise_Gamgee property:present_in_work ?b . ?b rdf:type ontology:collectable }
[]
collectable
Q15228
SYSTEM
The Lord of the Rings
Q15228
(Q219473,P1441,c(Q2342494))
action filter_type
action find
entity Q219473
relation P1441
type Q2342494
That Middle-earth races is [ANSWER]
['Q219473', 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?b WHERE { resource:Q219473 property:P1441 ?b . ?b rdf:type ontology:Q2342494 }
The Lord of the Rings
That Middle-earth races is The Lord of the Rings
The Lord of the Rings
action filter_type
action find
entity Samwise Gamgee
relation present in work
type collectable
['Samwise Gamgee', 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?b WHERE { resource:Samwise_Gamgee property:present_in_work ?b . ?b rdf:type ontology:collectable }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q81738 Q2251643
P1445 P1441
Q2342494
USER
Which collectables are Elanor Gardner present in and outline Tolkien's legendarium ?
AND((Q2251643,P1441,c(Q2342494)), (Q81738,P1445,c(Q2342494)))
action filter_type
action intersection
action find
entity Q2251643
relation P1441
action find
entity Q81738
relation P1445
type Q2342494
{'AND': [['Q2251643', 'P1441', {'concept': 'Q2342494'}], ['Q81738', 'P1445', {'concept': 'Q2342494'}]]}
SELECT DISTINCT ?s WHERE { resource:Q2251643 property:P1441 ?s . resource:Q81738 property:P1445 ?s . ?s rdf:type ontology:Q2342494 }
Tolkien's legendarium Elanor Gardner
action filter_type
action intersection
action find
entity Elanor Gardner
relation present in work
action find
entity Tolkien's legendarium
relation fictional universe described in
type collectable
{'AND': [['Elanor Gardner', 'present in work', {'concept': 'collectable'}], ["Tolkien's legendarium", 'fictional universe described in', {'concept': 'collectable'}]]}
SELECT DISTINCT ?s WHERE { resource:Elanor_Gardner property:present_in_work ?s . resource:Tolkien's_legendarium property:fictional_universe_described_in ?s . ?s rdf:type ontology:collectable }
[]
collectable
Q15228
SYSTEM
The Lord of the Rings
Q15228
AND((Q2251643,P1441,c(Q2342494)), (Q81738,P1445,c(Q2342494)))
action filter_type
action intersection
action find
entity Q2251643
relation P1441
action find
entity Q81738
relation P1445
type Q2342494
Elanor Gardner are present outline of [ANSWER]
{'AND': [['Q2251643', 'P1441', {'concept': 'Q2342494'}], ['Q81738', 'P1445', {'concept': 'Q2342494'}]]}
SELECT DISTINCT ?s WHERE { resource:Q2251643 property:P1441 ?s . resource:Q81738 property:P1445 ?s . ?s rdf:type ontology:Q2342494 }
The Lord of the Rings
Elanor Gardner are present outline of The Lord of the Rings
The Lord of the Rings
action filter_type
action intersection
action find
entity Elanor Gardner
relation present in work
action find
entity Tolkien's legendarium
relation fictional universe described in
type collectable
{'AND': [['Elanor Gardner', 'present in work', {'concept': 'collectable'}], ["Tolkien's legendarium", 'fictional universe described in', {'concept': 'collectable'}]]}
SELECT DISTINCT ?s WHERE { resource:Elanor_Gardner property:present_in_work ?s . resource:Tolkien's_legendarium property:fictional_universe_described_in ?s . ?s rdf:type ontology:collectable }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q2342494 Q14514600 Q989255
USER
Which Middle-earth racess are a portion of max number of collectables and groups of fictional characters ?
(c(Q989255),P361,c(Q2342494)|c(Q14514600))
action argmax
action union
action find_tuple_counts
relation P361
type Q989255
type Q2342494
action find_tuple_counts
relation P361
type Q989255
type Q14514600
[{'concept': 'Q989255'}, 'P361', [{'concept': 'Q2342494'}, {'concept': 'Q14514600'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?z WHERE { ?e rdf:type ?n . VALUES ( ?n ) { ( ontology:Q2342494 ) ( ontology:Q14514600 ) } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?w WHERE { ?c rdf:type ?x . VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q14514600 ) } } GROUP BY ?w } . FILTER ( ?m = ?v ) }
action argmax
action union
action find_tuple_counts
relation part of
type Middle-earth races
type collectable
action find_tuple_counts
relation part of
type Middle-earth races
type group of fictional characters
[{'concept': 'Middle-earth races'}, 'part of', [{'concept': 'collectable'}, {'concept': 'group of fictional characters'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?z WHERE { ?e rdf:type ?n . VALUES ( ?n ) { ( ontology:collectable ) ( ontology:group_of_fictional_characters ) } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?w WHERE { ?c rdf:type ?x . VALUES ( ?x ) { ( ontology:collectable ) ( ontology:group_of_fictional_characters ) } } GROUP BY ?w } . FILTER ( ?m = ?v ) }
[]
collectable group of fictional characters Middle-earth races
Q15285218 Q7486642 Q177329
SYSTEM
Mirabella Took, Primula Brandybuck, Frodo Baggins
Q15285165 Q7486626 Q7915700 Q12297499 Q78507 Q15285193 Q15285306 Q15285222 Q15285118 Q15285113 Q18170252 Q3751834 Q21281476 Q15285187 Q12281858 Q725898 Q7486642 Q219493 Q185737 Q219498 Q21281448 Q1051011 Q15285136 Q177329 Q1166729 Q7486999 Q15285123 Q15285216 Q15285218 Q78493 Q16524611 Q3266102 Q1131938 Q15285227 Q15285225 Q15285224 Q15285150 Q15285221 Q15285152 Q15285228 Q15285132 Q15285144 Q21281414 Q2610397 Q204274 Q15285171 Q920877 Q572434 Q6072690 Q21281487
(c(Q989255),P361,c(Q2342494)|c(Q14514600))
action argmax
action union
action find_tuple_counts
relation P361
type Q989255
type Q2342494
action find_tuple_counts
relation P361
type Q989255
type Q14514600
[ANSWERS]
[{'concept': 'Q989255'}, 'P361', [{'concept': 'Q2342494'}, {'concept': 'Q14514600'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?z WHERE { ?e rdf:type ?n . VALUES ( ?n ) { ( ontology:Q2342494 ) ( ontology:Q14514600 ) } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?w WHERE { ?c rdf:type ?x . VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q14514600 ) } } GROUP BY ?w } . FILTER ( ?m = ?v ) }
Longo Baggins Drogo Baggins Farmer Maggot Faramir Took Manwë Lobelia Bracegirdle Dudo Baggins Amaranto Brandybuck Fosco Baggins Dora Baggins Marmadoc Brandybuck Tobold Hornblower Beril Otto Sackville-Baggins Isembard Took Lúthien Primula Brandybuck Peregrin Took Bilbo Baggins Meriadoc Brandybuck Belegor Fredegar Bolger Largo Baggins Frodo Baggins Varda Lotho Sackville-Baggins Ruby Baggins Gorbadoc Brandybuck Mirabella Took Valar Adaldrida Brandybuck Boldog Forlong the Fat Asphodel Burrows Dodinas Brandybuck Saradas Brandybuck Balbo Baggins Rorimac Brandybuck Berylla Baggins Dinodas Brandibuck Tanta Hornblower Mungo Baggins Beldis Mablung Galadriel Belladonna Took Niënor Níniel Túrin Turambar Pearl Took Brandir
Which Middle-earth racess are a portion of max number of collectables and groups of fictional characters
Mirabella Took Primula Brandybuck Frodo Baggins
action argmax
action union
action find_tuple_counts
relation part of
type Middle-earth races
type collectable
action find_tuple_counts
relation part of
type Middle-earth races
type group of fictional characters
[{'concept': 'Middle-earth races'}, 'part of', [{'concept': 'collectable'}, {'concept': 'group of fictional characters'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?z WHERE { ?e rdf:type ?n . VALUES ( ?n ) { ( ontology:collectable ) ( ontology:group_of_fictional_characters ) } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?w WHERE { ?c rdf:type ?x . VALUES ( ?x ) { ( ontology:collectable ) ( ontology:group_of_fictional_characters ) } } GROUP BY ?w } . FILTER ( ?m = ?v ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q14514600 Q2342494 Q989255
USER
How many Middle-earth racess are a portion of around 1 groups of fictional characters or collectables ?
(c(Q989255),P361,c(Q14514600)|c(Q2342494))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q989255
type Q14514600
action find_tuple_counts
relation P361
type Q989255
type Q2342494
value 1
[{'concept': 'Q989255'}, 'P361', [{'concept': 'Q14514600'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?h WHERE { { ?h property:P361 ?x . ?h rdf:type ontology:Q989255 . ?x rdf:type ontology:Q2342494 } UNION { ?h property:P361 ?x . ?h rdf:type ontology:Q989255 . ?x rdf:type ontology:Q14514600 } } GROUP BY ?h } . FILTER ( ?j = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation part of
type Middle-earth races
type group of fictional characters
action find_tuple_counts
relation part of
type Middle-earth races
type collectable
value 1
[{'concept': 'Middle-earth races'}, 'part of', [{'concept': 'group of fictional characters'}, {'concept': 'collectable'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?h WHERE { { ?h property:part_of ?x . ?h rdf:type ontology:Middle-earth_races . ?x rdf:type ontology:collectable } UNION { ?h property:part_of ?x . ?h rdf:type ontology:Middle-earth_races . ?x rdf:type ontology:group_of_fictional_characters } } GROUP BY ?h } . FILTER ( ?j = 1 ) }
[]
group of fictional characters collectable Middle-earth races
SYSTEM
50
Q15285165 Q7486626 Q7915700 Q12297499 Q78507 Q15285193 Q15285306 Q15285222 Q15285118 Q15285113 Q18170252 Q3751834 Q21281476 Q15285187 Q12281858 Q725898 Q7486642 Q219493 Q185737 Q219498 Q21281448 Q1051011 Q15285136 Q177329 Q1166729 Q7486999 Q15285123 Q15285216 Q15285218 Q78493 Q16524611 Q3266102 Q1131938 Q15285227 Q15285225 Q15285224 Q15285150 Q15285221 Q15285152 Q15285228 Q15285132 Q15285144 Q21281414 Q2610397 Q204274 Q15285171 Q920877 Q572434 Q6072690 Q21281487
(c(Q989255),P361,c(Q14514600)|c(Q2342494))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q989255
type Q14514600
action find_tuple_counts
relation P361
type Q989255
type Q2342494
value 1
[ANSWER]
[{'concept': 'Q989255'}, 'P361', [{'concept': 'Q14514600'}, {'concept': 'Q2342494'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?h WHERE { { ?h property:P361 ?x . ?h rdf:type ontology:Q989255 . ?x rdf:type ontology:Q2342494 } UNION { ?h property:P361 ?x . ?h rdf:type ontology:Q989255 . ?x rdf:type ontology:Q14514600 } } GROUP BY ?h } . FILTER ( ?j = 1 ) }
Longo Baggins Drogo Baggins Farmer Maggot Faramir Took Manwë Lobelia Bracegirdle Dudo Baggins Amaranto Brandybuck Fosco Baggins Dora Baggins Marmadoc Brandybuck Tobold Hornblower Beril Otto Sackville-Baggins Isembard Took Lúthien Primula Brandybuck Peregrin Took Bilbo Baggins Meriadoc Brandybuck Belegor Fredegar Bolger Largo Baggins Frodo Baggins Varda Lotho Sackville-Baggins Ruby Baggins Gorbadoc Brandybuck Mirabella Took Valar Adaldrida Brandybuck Boldog Forlong the Fat Asphodel Burrows Dodinas Brandybuck Saradas Brandybuck Balbo Baggins Rorimac Brandybuck Berylla Baggins Dinodas Brandibuck Tanta Hornblower Mungo Baggins Beldis Mablung Galadriel Belladonna Took Niënor Níniel Túrin Turambar Pearl Took Brandir
50
action count
action approx
action union
action find_tuple_counts
relation part of
type Middle-earth races
type group of fictional characters
action find_tuple_counts
relation part of
type Middle-earth races
type collectable
value 1
[{'concept': 'Middle-earth races'}, 'part of', [{'concept': 'group of fictional characters'}, {'concept': 'collectable'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?h WHERE { { ?h property:part_of ?x . ?h rdf:type ontology:Middle-earth_races . ?x rdf:type ontology:collectable } UNION { ?h property:part_of ?x . ?h rdf:type ontology:Middle-earth_races . ?x rdf:type ontology:group_of_fictional_characters } } GROUP BY ?h } . FILTER ( ?j = 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q19852 Q7486642
P1441
Q2342494
USER
Which collectables are Primula Brandybuck and One Ring present in ?
AND((Q7486642,P1441,c(Q2342494)), (Q19852,P1441,c(Q2342494)))
action filter_type
action intersection
action find
entity Q7486642
relation P1441
action find
entity Q19852
relation P1441
type Q2342494
{'AND': [['Q7486642', 'P1441', {'concept': 'Q2342494'}], ['Q19852', 'P1441', {'concept': 'Q2342494'}]]}
SELECT DISTINCT ?d WHERE { resource:Q7486642 property:P1441 ?d . resource:Q19852 property:P1441 ?d . ?d rdf:type ontology:Q2342494 }
One Ring Primula Brandybuck
action filter_type
action intersection
action find
entity Primula Brandybuck
relation present in work
action find
entity One Ring
relation present in work
type collectable
{'AND': [['Primula Brandybuck', 'present in work', {'concept': 'collectable'}], ['One Ring', 'present in work', {'concept': 'collectable'}]]}
SELECT DISTINCT ?d WHERE { resource:Primula_Brandybuck property:present_in_work ?d . resource:One_Ring property:present_in_work ?d . ?d rdf:type ontology:collectable }
[]
collectable
Q15228
SYSTEM
The Lord of the Rings
Q15228
AND((Q7486642,P1441,c(Q2342494)), (Q19852,P1441,c(Q2342494)))
action filter_type
action intersection
action find
entity Q7486642
relation P1441
action find
entity Q19852
relation P1441
type Q2342494
[ANSWER] is Primula Brandybuck and One Ring present in
{'AND': [['Q7486642', 'P1441', {'concept': 'Q2342494'}], ['Q19852', 'P1441', {'concept': 'Q2342494'}]]}
SELECT DISTINCT ?d WHERE { resource:Q7486642 property:P1441 ?d . resource:Q19852 property:P1441 ?d . ?d rdf:type ontology:Q2342494 }
The Lord of the Rings
The Lord of the Rings is Primula Brandybuck and One Ring present in
The Lord of the Rings
action filter_type
action intersection
action find
entity Primula Brandybuck
relation present in work
action find
entity One Ring
relation present in work
type collectable
{'AND': [['Primula Brandybuck', 'present in work', {'concept': 'collectable'}], ['One Ring', 'present in work', {'concept': 'collectable'}]]}
SELECT DISTINCT ?d WHERE { resource:Primula_Brandybuck property:present_in_work ?d . resource:One_Ring property:present_in_work ?d . ?d rdf:type ontology:collectable }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q15228 Q15709637
P144
Q166142
USER
Is Middle-earth: Shadow of Mordor an extension that collectable ?
(Q15709637,P144,Q15228)
action is_in
entity Q15228
action find
entity Q15709637
relation P144
['Q15709637', 'P144', 'Q15228']
ASK WHERE { resource:Q15709637 property:P144 resource:Q15228 }
The Lord of the Rings Middle-earth: Shadow of Mordor
action is_in
entity The Lord of the Rings
action find
entity Middle-earth: Shadow of Mordor
relation based on
['Middle-earth: Shadow of Mordor', 'based on', 'The Lord of the Rings']
ASK WHERE { resource:Middle-earth:_Shadow_of_Mordor property:based_on resource:The_Lord_of_the_Rings }
[]
application
SYSTEM
YES
(Q15709637,P144,Q15228)
action is_in
entity Q15228
action find
entity Q15709637
relation P144
[ANSWER]
['Q15709637', 'P144', 'Q15228']
ASK WHERE { resource:Q15709637 property:P144 resource:Q15228 }
Yes
action is_in
entity The Lord of the Rings
action find
entity Middle-earth: Shadow of Mordor
relation based on
['Middle-earth: Shadow of Mordor', 'based on', 'The Lord of the Rings']
ASK WHERE { resource:Middle-earth:_Shadow_of_Mordor property:based_on resource:The_Lord_of_the_Rings }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15228
P674
Q989255
USER
Which Middle-earth racess plays a role in that collectable ?
action filter_type
action find
entity Q15228
relation P674
type Q989255
SELECT DISTINCT ?e WHERE { resource:Q15228 property:P674 ?e . ?e rdf:type ontology:Q989255 }
The Lord of the Rings
action filter_type
action find
entity The Lord of the Rings
relation characters
type Middle-earth races
SELECT DISTINCT ?e WHERE { resource:The_Lord_of_the_Rings property:characters ?e . ?e rdf:type ontology:Middle-earth_races }
[]
Middle-earth races
Q219473 Q208426 Q223468
SYSTEM
Samwise Gamgee, Elrond, Faramir
Q219473 Q223468 Q219493 Q185737 Q219498 Q180322 Q204274 Q213480 Q177329 Q208426 Q206818 Q219504
action filter_type
action find
entity Q15228
relation P674
type Q989255
[ANSWERS]
SELECT DISTINCT ?e WHERE { resource:Q15228 property:P674 ?e . ?e rdf:type ontology:Q989255 }
Samwise Gamgee Faramir Peregrin Took Bilbo Baggins Meriadoc Brandybuck Aragorn Galadriel Legolas Frodo Baggins Elrond Gimli Boromir
Which Middle-earth racess play a role in that collectable
Samwise Gamgee Elrond Faramir
action filter_type
action find
entity The Lord of the Rings
relation characters
type Middle-earth races
SELECT DISTINCT ?e WHERE { resource:The_Lord_of_the_Rings property:characters ?e . ?e rdf:type ontology:Middle-earth_races }
[]
Clarification
Simple Question|Single Entity|Indirect
Q219473
P520
Q23010327
USER
What is the weapon used by that Middle-earth races ?
(Q219473,P520,c(Q23010327))
action filter_type
action find
entity Q219473
relation P520
type Q23010327
['Q219473', 'P520', {'concept': 'Q23010327'}]
SELECT DISTINCT ?p WHERE { resource:Q219473 property:P520 ?p . ?p rdf:type ontology:Q23010327 }
Samwise Gamgee
action filter_type
action find
entity Samwise Gamgee
relation armament
type group of fictitious objects
['Samwise Gamgee', 'armament', {'concept': 'group of fictitious objects'}]
SELECT DISTINCT ?p WHERE { resource:Samwise_Gamgee property:armament ?p . ?p rdf:type ontology:group_of_fictitious_objects }
[]
group of fictitious objects
Clarification for simple ques.
Q208426
SYSTEM
Did you mean Elrond ?
Q219473 Q208426 Q223468
(Q219473,P520,c(Q23010327)) (Q208426,P520,c(Q23010327)) (Q223468,P520,c(Q23010327))
[ANSWER]
['Q219473', 'P520', {'concept': 'Q23010327'}] ['Q208426', 'P520', {'concept': 'Q23010327'}] ['Q223468', 'P520', {'concept': 'Q23010327'}]
SELECT DISTINCT ?p WHERE { resource:Q219473 property:P520 ?p . ?p rdf:type ontology:Q23010327 }
Samwise Gamgee Elrond Faramir
Did you mean Elrond ?
Elrond
['Samwise Gamgee', 'armament', {'concept': 'group of fictitious objects'}] ['Elrond', 'armament', {'concept': 'group of fictitious objects'}] ['Faramir', 'armament', {'concept': 'group of fictitious objects'}]
SELECT DISTINCT ?p WHERE { resource:Samwise_Gamgee property:armament ?p . ?p rdf:type ontology:group_of_fictitious_objects }
[]
Simple Question (Coreferenced)
USER
No, I meant Samwise Gamgee. Could you tell me the answer for that?
(Q219473,P520,c(Q23010327))
Q219473
['Q219473', 'P520', {'concept': 'Q23010327'}]
['Samwise Gamgee', 'armament', {'concept': 'group of fictitious objects'}]
[]
Q19852
SYSTEM
One Ring
Q19852
(Q219473,P520,c(Q23010327))
action filter_type
action find
entity Q219473
relation P520
type Q23010327
The weapon used by that Middle-earth races is the [ANSWER]
['Q219473', 'P520', {'concept': 'Q23010327'}]
SELECT DISTINCT ?p WHERE { resource:Q219473 property:P520 ?p . ?p rdf:type ontology:Q23010327 }
One Ring
The weapon used by that Middle-earth races is the One Ring
One Ring
action filter_type
action find
entity Samwise Gamgee
relation armament
type group of fictitious objects
['Samwise Gamgee', 'armament', {'concept': 'group of fictitious objects'}]
SELECT DISTINCT ?p WHERE { resource:Samwise_Gamgee property:armament ?p . ?p rdf:type ontology:group_of_fictitious_objects }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q8261 Q219473
P136 P674
Q2342494
USER
Which collectables have the character Samwise Gamgee and have novel as their type ?
AND((c(Q2342494),P674,Q219473), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q219473
relation P674
action find_reverse
entity Q8261
relation P136
type Q2342494
{'AND': [[{'concept': 'Q2342494'}, 'P674', 'Q219473'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?w WHERE { ?w property:P674 resource:Q219473 . ?w property:P136 resource:Q8261 . ?w rdf:type ontology:Q2342494 }
novel Samwise Gamgee
action filter_type
action intersection
action find_reverse
entity Samwise Gamgee
relation characters
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'characters', 'Samwise Gamgee'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?w WHERE { ?w property:characters resource:Samwise_Gamgee . ?w property:genre resource:novel . ?w rdf:type ontology:collectable }
[]
collectable
Q15228
SYSTEM
The Lord of the Rings
Q15228
AND((c(Q2342494),P674,Q219473), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q219473
relation P674
action find_reverse
entity Q8261
relation P136
type Q2342494
[ANSWER] have the character Samwise Gamgee and have novel as their type
{'AND': [[{'concept': 'Q2342494'}, 'P674', 'Q219473'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?w WHERE { ?w property:P674 resource:Q219473 . ?w property:P136 resource:Q8261 . ?w rdf:type ontology:Q2342494 }
The Lord of the Rings
The Lord of the Rings have the character Samwise Gamgee and have novel as their type
The Lord of the Rings
action filter_type
action intersection
action find_reverse
entity Samwise Gamgee
relation characters
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'characters', 'Samwise Gamgee'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?w WHERE { ?w property:characters resource:Samwise_Gamgee . ?w property:genre resource:novel . ?w rdf:type ontology:collectable }
[]