Simple Question (Direct)
Simple Question
Q1707930
P102
Q7210356
USER
Which party is Joseph Rucker Lamar affiliated with ?
(Q1707930,P102,c(Q7210356))
action filter_type
action find
entity Q1707930
relation P102
type Q7210356
['Q1707930', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q1707930 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
Joseph Rucker Lamar
action filter_type
action find
entity Joseph Rucker Lamar
relation member of political party
type political organization
['Joseph Rucker Lamar', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:Joseph_Rucker_Lamar property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q1707930,P102,c(Q7210356))
action filter_type
action find
entity Q1707930
relation P102
type Q7210356
Joseph Rucker Lamar is affiliated with [ANSWER]
['Q1707930', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q1707930 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
Democratic Party
Joseph Rucker Lamar is affiliated with Democratic Party
Democratic Party
action filter_type
action find
entity Joseph Rucker Lamar
relation member of political party
type political organization
['Joseph Rucker Lamar', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:Joseph_Rucker_Lamar property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29552
P462
Q1075
USER
Which color is that political organization associated with ?
(Q29552,P462,c(Q1075))
action filter_type
action find
entity Q29552
relation P462
type Q1075
['Q29552', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?z WHERE { resource:Q29552 property:P462 ?z . ?z rdf:type ontology:Q1075 }
Democratic Party
action filter_type
action find
entity Democratic Party
relation color
type color
['Democratic Party', 'color', {'concept': 'color'}]
SELECT DISTINCT ?z WHERE { resource:Democratic_Party property:color ?z . ?z rdf:type ontology:color }
[]
color
Q1088
SYSTEM
blue
Q1088
(Q29552,P462,c(Q1075))
action filter_type
action find
entity Q29552
relation P462
type Q1075
That political organization is associated with [ANSWER]
['Q29552', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?z WHERE { resource:Q29552 property:P462 ?z . ?z rdf:type ontology:Q1075 }
blue
That political organization is associated with blue
blue
action filter_type
action find
entity Democratic Party
relation color
type color
['Democratic Party', 'color', {'concept': 'color'}]
SELECT DISTINCT ?z WHERE { resource:Democratic_Party property:color ?z . ?z rdf:type ontology:color }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3282048
Q1075
USER
And what about Planet B-Boy?
(Q3282048,P462,c(Q1075))
action filter_type
action find
entity Q3282048
relation P462
type Q1075
['Q3282048', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1075 . resource:Q3282048 property:P462 ?u }
Planet B-Boy
action filter_type
action find
entity Planet B-Boy
relation color
type color
['Planet B-Boy', 'color', {'concept': 'color'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:color . resource:Planet_B-Boy property:color ?u }
[]
color
Q22006653
SYSTEM
color
Q22006653
(Q3282048,P462,c(Q1075))
action filter_type
action find
entity Q3282048
relation P462
type Q1075
[ANSWER]
['Q3282048', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1075 . resource:Q3282048 property:P462 ?u }
color
color
action filter_type
action find
entity Planet B-Boy
relation color
type color
['Planet B-Boy', 'color', {'concept': 'color'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:color . resource:Planet_B-Boy property:color ?u }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q22006653 Q385309
P462
Q838948
USER
Is Naked Gun 33⅓: The Final Insult that one in color ?
(Q385309,P462,Q22006653)
action is_in
entity Q22006653
action find
entity Q385309
relation P462
['Q385309', 'P462', 'Q22006653']
ASK WHERE { resource:Q385309 property:P462 resource:Q22006653 }
color Naked Gun 33⅓: The Final Insult
action is_in
entity color
action find
entity Naked Gun 33⅓: The Final Insult
relation color
['Naked Gun 33⅓: The Final Insult', 'color', 'color']
ASK WHERE { resource:Naked_Gun_33⅓:_The_Final_Insult property:color resource:color }
[]
work of art
SYSTEM
YES
(Q385309,P462,Q22006653)
action is_in
entity Q22006653
action find
entity Q385309
relation P462
[ANSWER]
['Q385309', 'P462', 'Q22006653']
ASK WHERE { resource:Q385309 property:P462 resource:Q22006653 }
Yes
action is_in
entity color
action find
entity Naked Gun 33⅓: The Final Insult
relation color
['Naked Gun 33⅓: The Final Insult', 'color', 'color']
ASK WHERE { resource:Naked_Gun_33⅓:_The_Final_Insult property:color resource:color }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q22915291
P180
Q1075 Q3305213
USER
Which paintings depict greater number of colors than Long Pond, Foot of Red Hill ?
(c(Q3305213),P180,c(Q1075))
action greater
action find_tuple_counts
relation P180
type Q3305213
type Q1075
action count
action filter_type
action find
entity Q22915291
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?y ) WHERE { ?b property:P180 ?v . ?b rdf:type ontology:Q3305213 . ?v rdf:type ontology:Q1075 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { ?w rdf:type ontology:Q3305213 . resource:Q22915291 property:P180 ?w } } . FILTER ( ?y > ?n ) }
Long Pond, Foot of Red Hill
action greater
action find_tuple_counts
relation depicts
type painting
type color
action count
action filter_type
action find
entity Long Pond, Foot of Red Hill
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', {'concept': 'color'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?y ) WHERE { ?b property:depicts ?v . ?b rdf:type ontology:painting . ?v rdf:type ontology:color } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { ?w rdf:type ontology:painting . resource:Long_Pond,_Foot_of_Red_Hill property:depicts ?w } } . FILTER ( ?y > ?n ) }
[]
color painting
Q326503 Q17315852 Q25541633
SYSTEM
The Sleepers, Pygmalion, Le Goût
Q19962483 Q19968488 Q17334682 Q20064897 Q25541307 Q20058526 Q3898510 Q19962651 Q19962653 Q17315852 Q2574202 Q19887156 Q20017510 Q20064638 Q20099498 Q10638843 Q20064546 Q17189257 Q16845412 Q18720074 Q25541633 Q10543635 Q25541602 Q17334699 Q469722 Q326503 Q17627562 Q19962648 Q18599215
(c(Q3305213),P180,c(Q1075))
action greater
action find_tuple_counts
relation P180
type Q3305213
type Q1075
action count
action filter_type
action find
entity Q22915291
relation P180
type Q3305213
[ANSWERS] depict greater number of colors than Long Pond, Foot of Red Hill
[{'concept': 'Q3305213'}, 'P180', {'concept': 'Q1075'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?y ) WHERE { ?b property:P180 ?v . ?b rdf:type ontology:Q3305213 . ?v rdf:type ontology:Q1075 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { ?w rdf:type ontology:Q3305213 . resource:Q22915291 property:P180 ?w } } . FILTER ( ?y > ?n ) }
Lady with fur cape The Embrace Two Girls Blowing Bubbles Lisbeth fishing La Vue Johann Anton Sarg and three friends playing whist by candlelight. The Fall and Expulsion from Paradise The misses Salomon Girl playing mandolin Pygmalion Tennis Girl Tuvstarr is still sitting there wistfully looking into the water Holy Communion of Mary Magdalene A studio idyll Girl in White Dress The Princess and the Trolls Portrait of Roseta Mauri Brita at the Piano Boy Cutting Grass with a Sickle The Tub Le Goût Karin Peeling Apples Le Toucher A Girl with Flowers on the Grass Severan Tondo The Sleepers Woman's head with ram horns Banker Ludvig Arosenius Untitled (Woman Walking)
The Sleepers, Pygmalion and Le Goût depict greater number of colors than Long Pond, Foot of Red Hill
The Sleepers Pygmalion Le Goût
action greater
action find_tuple_counts
relation depicts
type painting
type color
action count
action filter_type
action find
entity Long Pond, Foot of Red Hill
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', {'concept': 'color'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?y ) WHERE { ?b property:depicts ?v . ?b rdf:type ontology:painting . ?v rdf:type ontology:color } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { ?w rdf:type ontology:painting . resource:Long_Pond,_Foot_of_Red_Hill property:depicts ?w } } . FILTER ( ?y > ?n ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q25541633
P136
Q483394
USER
What can be considered as category for that painting ?
(Q25541633,P136,c(Q483394))
action filter_type
action find
entity Q25541633
relation P136
type Q483394
['Q25541633', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?k WHERE { resource:Q25541633 property:P136 ?k . ?k rdf:type ontology:Q483394 }
Le Goût
action filter_type
action find
entity Le Goût
relation genre
type genre
['Le Goût', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?k WHERE { resource:Le_Goût property:genre ?k . ?k rdf:type ontology:genre }
[]
genre
Clarification for simple ques.
Q326503
SYSTEM
Did you mean The Sleepers ?
Q326503 Q17315852 Q25541633
(Q326503,P136,c(Q483394)) (Q17315852,P136,c(Q483394)) (Q25541633,P136,c(Q483394))
[ANSWER]
['Q326503', 'P136', {'concept': 'Q483394'}] ['Q17315852', 'P136', {'concept': 'Q483394'}] ['Q25541633', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?k WHERE { resource:Q25541633 property:P136 ?k . ?k rdf:type ontology:Q483394 }
The Sleepers Pygmalion Le Goût
Did you mean The Sleepers ?
The Sleepers
['The Sleepers', 'genre', {'concept': 'genre'}] ['Pygmalion', 'genre', {'concept': 'genre'}] ['Le Goût', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?k WHERE { resource:Le_Goût property:genre ?k . ?k rdf:type ontology:genre }
[]
Simple Question (Coreferenced)
USER
No, I meant Le Goût. Could you tell me the answer for that?
(Q25541633,P136,c(Q483394))
Q25541633
['Q25541633', 'P136', {'concept': 'Q483394'}]
['Le Goût', 'genre', {'concept': 'genre'}]
[]
Q2839016 Q40446
SYSTEM
allegory, nude
Q2839016 Q40446
(Q25541633,P136,c(Q483394))
action filter_type
action find
entity Q25541633
relation P136
type Q483394
[ANSWERS] can be considered as category for that painting
['Q25541633', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?k WHERE { resource:Q25541633 property:P136 ?k . ?k rdf:type ontology:Q483394 }
allegory nude
Allegory and nude can be considered as category for that painting
allegory nude
action filter_type
action find
entity Le Goût
relation genre
type genre
['Le Goût', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?k WHERE { resource:Le_Goût property:genre ?k . ?k rdf:type ontology:genre }
[]