Simple Question (Direct)
Simple Question
Q11905804
P106
Q12737077
USER
What is the profession of Antoni Botey i Badia ?
(Q11905804,P106,c(Q12737077))
action filter_type
action find
entity Q11905804
relation P106
type Q12737077
['Q11905804', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q11905804 property:P106 ?j }
Antoni Botey i Badia
action filter_type
action find
entity Antoni Botey i Badia
relation occupation
type occupation
['Antoni Botey i Badia', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Antoni_Botey_i_Badia property:occupation ?j }
[]
occupation
Q36834
SYSTEM
composer
Q36834
(Q11905804,P106,c(Q12737077))
action filter_type
action find
entity Q11905804
relation P106
type Q12737077
The profession of Antoni Botey i Badia is a [ANSWER]
['Q11905804', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q11905804 property:P106 ?j }
composer
The profession of Antoni Botey i Badia is a composer
composer
action filter_type
action find
entity Antoni Botey i Badia
relation occupation
type occupation
['Antoni Botey i Badia', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Antoni_Botey_i_Badia property:occupation ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11905804
P136
Q838948
USER
Which work of art can be considered as genre of Antoni Botey i Badia ?
(Q11905804,P136,c(Q838948))
action filter_type
action find
entity Q11905804
relation P136
type Q838948
['Q11905804', 'P136', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q838948 . resource:Q11905804 property:P136 ?d }
Antoni Botey i Badia
action filter_type
action find
entity Antoni Botey i Badia
relation genre
type work of art
['Antoni Botey i Badia', 'genre', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:work_of_art . resource:Antoni_Botey_i_Badia property:genre ?d }
[]
work of art
Q1413570
SYSTEM
Sardana
Q1413570
(Q11905804,P136,c(Q838948))
action filter_type
action find
entity Q11905804
relation P136
type Q838948
[ANSWER] can be considered as genre of Antoni Botey i Badia
['Q11905804', 'P136', {'concept': 'Q838948'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q838948 . resource:Q11905804 property:P136 ?d }
Sardana
Sardana can be considered as genre of Antoni Botey i Badia
Sardana
action filter_type
action find
entity Antoni Botey i Badia
relation genre
type work of art
['Antoni Botey i Badia', 'genre', {'concept': 'work of art'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:work_of_art . resource:Antoni_Botey_i_Badia property:genre ?d }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11906776
Q838948
USER
And also tell me about Artur Marcet?
(Q11906776,P136,c(Q838948))
action filter_type
action find
entity Q11906776
relation P136
type Q838948
['Q11906776', 'P136', {'concept': 'Q838948'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q838948 . resource:Q11906776 property:P136 ?z }
Artur Marcet
action filter_type
action find
entity Artur Marcet
relation genre
type work of art
['Artur Marcet', 'genre', {'concept': 'work of art'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:work_of_art . resource:Artur_Marcet property:genre ?z }
[]
work of art
Q1413570
SYSTEM
Sardana
Q1413570
(Q11906776,P136,c(Q838948))
action filter_type
action find
entity Q11906776
relation P136
type Q838948
[ANSWER]
['Q11906776', 'P136', {'concept': 'Q838948'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q838948 . resource:Q11906776 property:P136 ?z }
Sardana
Sardana
action filter_type
action find
entity Artur Marcet
relation genre
type work of art
['Artur Marcet', 'genre', {'concept': 'work of art'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:work_of_art . resource:Artur_Marcet property:genre ?z }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1413570 Q492434
P17
Q15617994
USER
Does that work of art belong to Andorf ?
(Q1413570,P17,Q492434)
action is_in
entity Q492434
action find
entity Q1413570
relation P17
['Q1413570', 'P17', 'Q492434']
ASK WHERE { resource:Q1413570 property:P17 resource:Q492434 }
Sardana Andorf
action is_in
entity Andorf
action find
entity Sardana
relation country
['Sardana', 'country', 'Andorf']
ASK WHERE { resource:Sardana property:country resource:Andorf }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1413570,P17,Q492434)
action is_in
entity Q492434
action find
entity Q1413570
relation P17
[ANSWER]
['Q1413570', 'P17', 'Q492434']
ASK WHERE { resource:Q1413570 property:P17 resource:Q492434 }
No
action is_in
entity Andorf
action find
entity Sardana
relation country
['Sardana', 'country', 'Andorf']
ASK WHERE { resource:Sardana property:country resource:Andorf }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q4656518
P361
Q838948 Q482994 Q6619679
USER
How many works of art are greater number of albums or fictional humanoids a component of than A Divine Double Feature ?
(c(Q482994)|c(Q6619679),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q4656518
relation P361
type Q482994
type Q6619679
[[{'concept': 'Q482994'}, {'concept': 'Q6619679'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:P361 resource:Q4656518 . { VALUES ( ?c ) { ( ontology:Q6619679 ) ( ontology:Q482994 ) } . ?x rdf:type ?c } } } . FILTER ( ?n > ?y ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) ?b WHERE { { ?b rdf:type ontology:Q838948 . ?t rdf:type ontology:Q482994 . ?t property:P361 ?b } UNION { ?t property:P361 ?b . ?b rdf:type ontology:Q838948 . ?t rdf:type ontology:Q6619679 } } GROUP BY ?b } }
A Divine Double Feature
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type album
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity A Divine Double Feature
relation part of
type album
type fictional humanoid
[[{'concept': 'album'}, {'concept': 'fictional humanoid'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:part_of resource:A_Divine_Double_Feature . { VALUES ( ?c ) { ( ontology:fictional_humanoid ) ( ontology:album ) } . ?x rdf:type ?c } } } . FILTER ( ?n > ?y ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) ?b WHERE { { ?b rdf:type ontology:work_of_art . ?t rdf:type ontology:album . ?t property:part_of ?b } UNION { ?t property:part_of ?b . ?b rdf:type ontology:work_of_art . ?t rdf:type ontology:fictional_humanoid } } GROUP BY ?b } }
[]
work of art album fictional humanoid
SYSTEM
15
Q4143086 Q15624215 Q1209853 Q284184 Q161687 Q1534737 Q205028 Q332368 Q478748 Q103569 Q971109 Q7572454 Q463313 Q232009 Q152185
(c(Q482994)|c(Q6619679),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q4656518
relation P361
type Q482994
type Q6619679
[ANSWER]
[[{'concept': 'Q482994'}, {'concept': 'Q6619679'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:P361 resource:Q4656518 . { VALUES ( ?c ) { ( ontology:Q6619679 ) ( ontology:Q482994 ) } . ?x rdf:type ?c } } } . FILTER ( ?n > ?y ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) ?b WHERE { { ?b rdf:type ontology:Q838948 . ?t rdf:type ontology:Q482994 . ?t property:P361 ?b } UNION { ?t property:P361 ?b . ?b rdf:type ontology:Q838948 . ?t rdf:type ontology:Q6619679 } } GROUP BY ?b } }
Ride Lucy Dick Tracy Ra.One Harry Potter and the Half-Blood Prince Life Iron Man 2 A View to a Kill The Holiday Alien Inferno Space Pirate Captain Harlock Romeo + Juliet Harry Potter and the Deathly Hallows – Part 2 The Legend of Lucy Keyes
15
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type album
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity A Divine Double Feature
relation part of
type album
type fictional humanoid
[[{'concept': 'album'}, {'concept': 'fictional humanoid'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:part_of resource:A_Divine_Double_Feature . { VALUES ( ?c ) { ( ontology:fictional_humanoid ) ( ontology:album ) } . ?x rdf:type ?c } } } . FILTER ( ?n > ?y ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) ?b WHERE { { ?b rdf:type ontology:work_of_art . ?t rdf:type ontology:album . ?t property:part_of ?b } UNION { ?t property:part_of ?b . ?b rdf:type ontology:work_of_art . ?t rdf:type ontology:fictional_humanoid } } GROUP BY ?b } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q3907478
P361
Q838948 Q482994 Q6619679
USER
And how about Roverella Altarpiece?
(c(Q482994)|c(Q6619679),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q3907478
relation P361
type Q482994
type Q6619679
[[{'concept': 'Q482994'}, {'concept': 'Q6619679'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?m ) WHERE { { ?v property:P361 ?e . ?e rdf:type ontology:Q838948 . ?v rdf:type ontology:Q482994 } UNION { ?v property:P361 ?e . ?v rdf:type ontology:Q6619679 . ?e rdf:type ontology:Q838948 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { ?s property:P361 resource:Q3907478 . { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:Q482994 ) ( ontology:Q6619679 ) } } } } . FILTER ( ?m > ?x ) }
Roverella Altarpiece
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type album
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity Roverella Altarpiece
relation part of
type album
type fictional humanoid
[[{'concept': 'album'}, {'concept': 'fictional humanoid'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?m ) WHERE { { ?v property:part_of ?e . ?e rdf:type ontology:work_of_art . ?v rdf:type ontology:album } UNION { ?v property:part_of ?e . ?v rdf:type ontology:fictional_humanoid . ?e rdf:type ontology:work_of_art } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { ?s property:part_of resource:Roverella_Altarpiece . { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:album ) ( ontology:fictional_humanoid ) } } } } . FILTER ( ?m > ?x ) }
[]
work of art album fictional humanoid
SYSTEM
15
Q4143086 Q15624215 Q1209853 Q284184 Q161687 Q1534737 Q205028 Q332368 Q478748 Q103569 Q971109 Q7572454 Q463313 Q232009 Q152185
(c(Q482994)|c(Q6619679),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q3907478
relation P361
type Q482994
type Q6619679
[ANSWER]
[[{'concept': 'Q482994'}, {'concept': 'Q6619679'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?m ) WHERE { { ?v property:P361 ?e . ?e rdf:type ontology:Q838948 . ?v rdf:type ontology:Q482994 } UNION { ?v property:P361 ?e . ?v rdf:type ontology:Q6619679 . ?e rdf:type ontology:Q838948 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { ?s property:P361 resource:Q3907478 . { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:Q482994 ) ( ontology:Q6619679 ) } } } } . FILTER ( ?m > ?x ) }
Ride Lucy Dick Tracy Ra.One Harry Potter and the Half-Blood Prince Life Iron Man 2 A View to a Kill The Holiday Alien Inferno Space Pirate Captain Harlock Romeo + Juliet Harry Potter and the Deathly Hallows – Part 2 The Legend of Lucy Keyes
15
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type album
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity Roverella Altarpiece
relation part of
type album
type fictional humanoid
[[{'concept': 'album'}, {'concept': 'fictional humanoid'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?m ) WHERE { { ?v property:part_of ?e . ?e rdf:type ontology:work_of_art . ?v rdf:type ontology:album } UNION { ?v property:part_of ?e . ?v rdf:type ontology:fictional_humanoid . ?e rdf:type ontology:work_of_art } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { ?s property:part_of resource:Roverella_Altarpiece . { ?s rdf:type ?k . VALUES ( ?k ) { ( ontology:album ) ( ontology:fictional_humanoid ) } } } } . FILTER ( ?m > ?x ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q838948 Q3305213 Q15619164
USER
Which works of art are max number of paintings and abstract beings a portion of ?
(c(Q3305213)|c(Q15619164),P361,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
action find_reverse_tuple_counts
relation P361
type Q838948
type Q15619164
[[{'concept': 'Q3305213'}, {'concept': 'Q15619164'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?w WHERE { { ?w rdf:type ontology:Q838948 . ?z rdf:type ontology:Q3305213 . ?z property:P361 ?w } UNION { ?z property:P361 ?w . ?w rdf:type ontology:Q838948 . ?z rdf:type ontology:Q15619164 } } GROUP BY ?w } } . FILTER ( ?u = ?i ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) ?n WHERE { { ?q property:P361 ?n . ?n rdf:type ontology:Q838948 . ?q rdf:type ontology:Q15619164 } UNION { ?q property:P361 ?n . ?n rdf:type ontology:Q838948 . ?q rdf:type ontology:Q3305213 } } GROUP BY ?n } }
action argmax
action union
action find_reverse_tuple_counts
relation part of
type work of art
type painting
action find_reverse_tuple_counts
relation part of
type work of art
type abstract being
[[{'concept': 'painting'}, {'concept': 'abstract being'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?w WHERE { { ?w rdf:type ontology:work_of_art . ?z rdf:type ontology:painting . ?z property:part_of ?w } UNION { ?z property:part_of ?w . ?w rdf:type ontology:work_of_art . ?z rdf:type ontology:abstract_being } } GROUP BY ?w } } . FILTER ( ?u = ?i ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) ?n WHERE { { ?q property:part_of ?n . ?n rdf:type ontology:work_of_art . ?q rdf:type ontology:abstract_being } UNION { ?q property:part_of ?n . ?n rdf:type ontology:work_of_art . ?q rdf:type ontology:painting } } GROUP BY ?n } }
[]
work of art painting abstract being
Q18547944 Q24980 Q3907478
SYSTEM
The Martian, Monty Python's The Meaning of Life, Roverella Altarpiece
Q18547944 Q1411766 Q3907478 Q24980
(c(Q3305213)|c(Q15619164),P361,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
action find_reverse_tuple_counts
relation P361
type Q838948
type Q15619164
[ANSWERS] are max number of paintings and abstract beings a portion of
[[{'concept': 'Q3305213'}, {'concept': 'Q15619164'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?w WHERE { { ?w rdf:type ontology:Q838948 . ?z rdf:type ontology:Q3305213 . ?z property:P361 ?w } UNION { ?z property:P361 ?w . ?w rdf:type ontology:Q838948 . ?z rdf:type ontology:Q15619164 } } GROUP BY ?w } } . FILTER ( ?u = ?i ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) ?n WHERE { { ?q property:P361 ?n . ?n rdf:type ontology:Q838948 . ?q rdf:type ontology:Q15619164 } UNION { ?q property:P361 ?n . ?n rdf:type ontology:Q838948 . ?q rdf:type ontology:Q3305213 } } GROUP BY ?n } }
The Martian predella Roverella Altarpiece Monty Python's The Meaning of Life
The Martian, Monty Python's The Meaning of Life and Roverella Altarpiece are max number of paintings and abstract beings a portion of
The Martian Monty Python's The Meaning of Life Roverella Altarpiece
action argmax
action union
action find_reverse_tuple_counts
relation part of
type work of art
type painting
action find_reverse_tuple_counts
relation part of
type work of art
type abstract being
[[{'concept': 'painting'}, {'concept': 'abstract being'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?w WHERE { { ?w rdf:type ontology:work_of_art . ?z rdf:type ontology:painting . ?z property:part_of ?w } UNION { ?z property:part_of ?w . ?w rdf:type ontology:work_of_art . ?z rdf:type ontology:abstract_being } } GROUP BY ?w } } . FILTER ( ?u = ?i ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) ?n WHERE { { ?q property:part_of ?n . ?n rdf:type ontology:work_of_art . ?q rdf:type ontology:abstract_being } UNION { ?q property:part_of ?n . ?n rdf:type ontology:work_of_art . ?q rdf:type ontology:painting } } GROUP BY ?n } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q18547944 Q24980 Q3907478
P136
Q1792379
USER
What can be considered as category for The Martian, Monty Python's The Meaning of Life and Roverella Altarpiece ?
(Q18547944,P136,c(Q1792379)) (Q24980,P136,c(Q1792379)) (Q3907478,P136,c(Q1792379))
action union
action filter_type
action find
entity Q18547944
relation P136
type Q1792379
action filter_type
action find
entity Q24980
relation P136
type Q1792379
action filter_type
action find
entity Q3907478
relation P136
type Q1792379
['Q18547944', 'P136', {'concept': 'Q1792379'}] ['Q24980', 'P136', {'concept': 'Q1792379'}] ['Q3907478', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?k WHERE { ?p property:P136 ?k . VALUES ( ?p ) { ( resource:Q18547944 ) ( resource:Q24980 ) } }
The Martian Monty Python's The Meaning of Life Roverella Altarpiece
action union
action filter_type
action find
entity The Martian
relation genre
type art genre
action filter_type
action find
entity Monty Python's The Meaning of Life
relation genre
type art genre
action filter_type
action find
entity Roverella Altarpiece
relation genre
type art genre
['The Martian', 'genre', {'concept': 'art genre'}] ["Monty Python's The Meaning of Life", 'genre', {'concept': 'art genre'}] ['Roverella Altarpiece', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?k WHERE { ?p property:genre ?k . VALUES ( ?p ) { ( resource:The_Martian ) ( resource:Monty_Python's_The_Meaning_of_Life ) } }
[]
art genre
Q2414609 Q1257444 Q471839
SYSTEM
religious painting, film adaptation, science fiction film
Q1257444 Q471839 Q319221 Q15898171 Q130232 Q842256 Q2414609
(Q18547944,P136,c(Q1792379)) (Q24980,P136,c(Q1792379)) (Q3907478,P136,c(Q1792379))
action union
action filter_type
action find
entity Q18547944
relation P136
type Q1792379
action filter_type
action find
entity Q24980
relation P136
type Q1792379
action filter_type
action find
entity Q3907478
relation P136
type Q1792379
[ANSWERS] can be considered as category for The Martian, Monty Python's The Meaning of Life and Roverella Altarpiece
['Q18547944', 'P136', {'concept': 'Q1792379'}] ['Q24980', 'P136', {'concept': 'Q1792379'}] ['Q3907478', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?k WHERE { ?p property:P136 ?k . VALUES ( ?p ) { ( resource:Q18547944 ) ( resource:Q24980 ) } }
film adaptation science fiction film adventure film survival film drama film musical film religious painting
Religious painting, film adaptation and science fiction film can be considered as category for The Martian, Monty Python's The Meaning of Life and Roverella Altarpiece
religious painting film adaptation science fiction film
action union
action filter_type
action find
entity The Martian
relation genre
type art genre
action filter_type
action find
entity Monty Python's The Meaning of Life
relation genre
type art genre
action filter_type
action find
entity Roverella Altarpiece
relation genre
type art genre
['The Martian', 'genre', {'concept': 'art genre'}] ["Monty Python's The Meaning of Life", 'genre', {'concept': 'art genre'}] ['Roverella Altarpiece', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?k WHERE { ?p property:genre ?k . VALUES ( ?p ) { ( resource:The_Martian ) ( resource:Monty_Python's_The_Meaning_of_Life ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2414609
P101
Q502895
USER
Which person has his/her area as that art genre ?
(c(Q502895),P101,Q2414609)
action filter_type
action find_reverse
entity Q2414609
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q2414609']
SELECT DISTINCT ?o WHERE { ?o property:P101 resource:Q2414609 . ?o rdf:type ontology:Q502895 }
religious painting
action filter_type
action find_reverse
entity religious painting
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'religious painting']
SELECT DISTINCT ?o WHERE { ?o property:field_of_work resource:religious_painting . ?o rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q471839
SYSTEM
Did you mean science fiction film ?
Q2414609 Q1257444 Q471839
(c(Q502895),P101,Q2414609) (c(Q502895),P101,Q1257444) (c(Q502895),P101,Q471839)
[ANSWER]
[{'concept': 'Q502895'}, 'P101', 'Q2414609'] [{'concept': 'Q502895'}, 'P101', 'Q1257444'] [{'concept': 'Q502895'}, 'P101', 'Q471839']
SELECT DISTINCT ?o WHERE { ?o property:P101 resource:Q2414609 . ?o rdf:type ontology:Q502895 }
religious painting film adaptation science fiction film
Did you mean science fiction film ?
science fiction film
[{'concept': 'common name'}, 'field of work', 'religious painting'] [{'concept': 'common name'}, 'field of work', 'film adaptation'] [{'concept': 'common name'}, 'field of work', 'science fiction film']
SELECT DISTINCT ?o WHERE { ?o property:field_of_work resource:religious_painting . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant religious painting. Could you tell me the answer for that?
(c(Q502895),P101,Q2414609)
Q2414609
[{'concept': 'Q502895'}, 'P101', 'Q2414609']
[{'concept': 'common name'}, 'field of work', 'religious painting']
[]
Q335617
SYSTEM
Onufri
Q335617
(c(Q502895),P101,Q2414609)
action filter_type
action find_reverse
entity Q2414609
relation P101
type Q502895
[ANSWER] has his/her area as that art genre
[{'concept': 'Q502895'}, 'P101', 'Q2414609']
SELECT DISTINCT ?o WHERE { ?o property:P101 resource:Q2414609 . ?o rdf:type ontology:Q502895 }
Onufri
Onufri has his/her area as that art genre
Onufri
action filter_type
action find_reverse
entity religious painting
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'religious painting']
SELECT DISTINCT ?o WHERE { ?o property:field_of_work resource:religious_painting . ?o rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q150 Q2414609
P136 P1412
Q502895
USER
Which people have religious painting as their type and do not have language named French ?
AND((c(Q502895),P136,Q2414609), NOT((c(Q502895),P1412,Q150)))
action filter_type
action difference
action find_reverse
entity Q2414609
relation P136
action find_reverse
entity Q150
relation P1412
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P136', 'Q2414609'], {'NOT': [[{'concept': 'Q502895'}, 'P1412', 'Q150']]}]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P136 resource:Q2414609 . MINUS { ?g property:P1412 resource:Q150 } }
French religious painting
action filter_type
action difference
action find_reverse
entity religious painting
relation genre
action find_reverse
entity French
relation languages spoken, written or signed
type common name
{'AND': [[{'concept': 'common name'}, 'genre', 'religious painting'], {'NOT': [[{'concept': 'common name'}, 'languages spoken, written or signed', 'French']]}]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:genre resource:religious_painting . MINUS { ?g property:languages_spoken,_written_or_signed resource:French } }
[]
common name
Q102272 Q3130460 Q707904 Q109061 Q5599 Q4395029 Q301 Q5598 Q189117 Q21158217
SYSTEM
Some of them are Jan van Eyck, Henri-Pierre Picou, Jean-Jules-Antoine Lecomte du Nouÿ, Guido Reni, Peter Paul Rubens, Jules Richomme, El Greco, Rembrandt, Jan Matejko, Jean-Baptiste Alizard
Q21158217 Q301 Q102272 Q109061 Q47551 Q4395029 Q707904 Q3130460 Q68631 Q5599 Q5598 Q189117 Q297
AND((c(Q502895),P136,Q2414609), NOT((c(Q502895),P1412,Q150)))
action filter_type
action difference
action find_reverse
entity Q2414609
relation P136
action find_reverse
entity Q150
relation P1412
type Q502895
[ANSWERS] have religious painting as their type and do not have language named French
{'AND': [[{'concept': 'Q502895'}, 'P136', 'Q2414609'], {'NOT': [[{'concept': 'Q502895'}, 'P1412', 'Q150']]}]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P136 resource:Q2414609 . MINUS { ?g property:P1412 resource:Q150 } }
Jean-Baptiste Alizard El Greco Jan van Eyck Guido Reni Titian Jules Richomme Jean-Jules-Antoine Lecomte du Nouÿ Henri-Pierre Picou Rogier van der Weyden Peter Paul Rubens Rembrandt Jan Matejko Diego Velázquez
Jan van Eyck, Henri-Pierre Picou, Jean-Jules-Antoine Lecomte du Nouÿ, Guido Reni, Peter Paul Rubens, Jules Richomme, El Greco, Rembrandt, Jan Matejko and Jean-Baptiste Alizard have religious painting as their type and do not have language named French
Jan van Eyck Henri-Pierre Picou Jean-Jules-Antoine Lecomte du Nouÿ Guido Reni Peter Paul Rubens Jules Richomme El Greco Rembrandt Jan Matejko Jean-Baptiste Alizard
action filter_type
action difference
action find_reverse
entity religious painting
relation genre
action find_reverse
entity French
relation languages spoken, written or signed
type common name
{'AND': [[{'concept': 'common name'}, 'genre', 'religious painting'], {'NOT': [[{'concept': 'common name'}, 'languages spoken, written or signed', 'French']]}]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:genre resource:religious_painting . MINUS { ?g property:languages_spoken,_written_or_signed resource:French } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q102272 Q3130460 Q707904 Q109061 Q5599 Q4395029 Q301 Q5598 Q189117 Q21158217
P21
Q290
USER
What are the sex of those people ?
(Q102272,P21,c(Q290)) (Q3130460,P21,c(Q290)) (Q707904,P21,c(Q290)) (Q109061,P21,c(Q290)) (Q5599,P21,c(Q290)) (Q4395029,P21,c(Q290)) (Q301,P21,c(Q290)) (Q5598,P21,c(Q290)) (Q189117,P21,c(Q290)) (Q21158217,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q102272', 'P21', {'concept': 'Q290'}] ['Q3130460', 'P21', {'concept': 'Q290'}] ['Q707904', 'P21', {'concept': 'Q290'}] ['Q109061', 'P21', {'concept': 'Q290'}] ['Q5599', 'P21', {'concept': 'Q290'}] ['Q4395029', 'P21', {'concept': 'Q290'}] ['Q301', 'P21', {'concept': 'Q290'}] ['Q5598', 'P21', {'concept': 'Q290'}] ['Q189117', 'P21', {'concept': 'Q290'}] ['Q21158217', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?f property:P21 ?t . ?t rdf:type ontology:Q290 . VALUES ( ?f ) { ( resource:Q21158217 ) ( resource:Q301 ) ( resource:Q102272 ) } }
Jan van Eyck Henri-Pierre Picou Jean-Jules-Antoine Lecomte du Nouÿ Guido Reni Peter Paul Rubens Jules Richomme El Greco Rembrandt Jan Matejko Jean-Baptiste Alizard
action filter_type
action find
entity prev_answer
relation gender
type sex
['Jan van Eyck', 'gender', {'concept': 'sex'}] ['Henri-Pierre Picou', 'gender', {'concept': 'sex'}] ['Jean-Jules-Antoine Lecomte du Nouÿ', 'gender', {'concept': 'sex'}] ['Guido Reni', 'gender', {'concept': 'sex'}] ['Peter Paul Rubens', 'gender', {'concept': 'sex'}] ['Jules Richomme', 'gender', {'concept': 'sex'}] ['El Greco', 'gender', {'concept': 'sex'}] ['Rembrandt', 'gender', {'concept': 'sex'}] ['Jan Matejko', 'gender', {'concept': 'sex'}] ['Jean-Baptiste Alizard', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?f property:gender ?t . ?t rdf:type ontology:sex . VALUES ( ?f ) { ( resource:Jean-Baptiste_Alizard ) ( resource:El_Greco ) ( resource:Jan_van_Eyck ) } }
[]
sex
Q6581097 Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097 Q6581097 Q6581097 Q6581097 Q6581097 Q6581097 Q6581097 Q6581097 Q6581097
(Q102272,P21,c(Q290)) (Q3130460,P21,c(Q290)) (Q707904,P21,c(Q290)) (Q109061,P21,c(Q290)) (Q5599,P21,c(Q290)) (Q4395029,P21,c(Q290)) (Q301,P21,c(Q290)) (Q5598,P21,c(Q290)) (Q189117,P21,c(Q290)) (Q21158217,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
The sex of those people are [ANSWER], [ANSWER] and [ANSWER]
['Q102272', 'P21', {'concept': 'Q290'}] ['Q3130460', 'P21', {'concept': 'Q290'}] ['Q707904', 'P21', {'concept': 'Q290'}] ['Q109061', 'P21', {'concept': 'Q290'}] ['Q5599', 'P21', {'concept': 'Q290'}] ['Q4395029', 'P21', {'concept': 'Q290'}] ['Q301', 'P21', {'concept': 'Q290'}] ['Q5598', 'P21', {'concept': 'Q290'}] ['Q189117', 'P21', {'concept': 'Q290'}] ['Q21158217', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?f property:P21 ?t . ?t rdf:type ontology:Q290 . VALUES ( ?f ) { ( resource:Q21158217 ) ( resource:Q301 ) ( resource:Q102272 ) } }
male male male male male male male male male male
The sex of those people are male, male and male
male male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Jan van Eyck', 'gender', {'concept': 'sex'}] ['Henri-Pierre Picou', 'gender', {'concept': 'sex'}] ['Jean-Jules-Antoine Lecomte du Nouÿ', 'gender', {'concept': 'sex'}] ['Guido Reni', 'gender', {'concept': 'sex'}] ['Peter Paul Rubens', 'gender', {'concept': 'sex'}] ['Jules Richomme', 'gender', {'concept': 'sex'}] ['El Greco', 'gender', {'concept': 'sex'}] ['Rembrandt', 'gender', {'concept': 'sex'}] ['Jan Matejko', 'gender', {'concept': 'sex'}] ['Jean-Baptiste Alizard', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?f property:gender ?t . ?t rdf:type ontology:sex . VALUES ( ?f ) { ( resource:Jean-Baptiste_Alizard ) ( resource:El_Greco ) ( resource:Jan_van_Eyck ) } }
[]