Simple Question (Direct)
Simple Question
Q5173608
P106
Q12737077
USER
Which occupation is the profession of Cory Lekkerkerker ?
(Q5173608,P106,c(Q12737077))
action filter_type
action find
entity Q5173608
relation P106
type Q12737077
['Q5173608', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q5173608 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
Cory Lekkerkerker
action filter_type
action find
entity Cory Lekkerkerker
relation occupation
type occupation
['Cory Lekkerkerker', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Cory_Lekkerkerker property:occupation ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q19204627
SYSTEM
American football player
Q19204627
(Q5173608,P106,c(Q12737077))
action filter_type
action find
entity Q5173608
relation P106
type Q12737077
[ANSWER] is the profession of Cory Lekkerkerker
['Q5173608', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q5173608 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
American football player
American football player is the profession of Cory Lekkerkerker
American football player
action filter_type
action find
entity Cory Lekkerkerker
relation occupation
type occupation
['Cory Lekkerkerker', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Cory_Lekkerkerker property:occupation ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5173608
P735
Q82799
USER
What is the firstname of Cory Lekkerkerker ?
(Q5173608,P735,c(Q82799))
action filter_type
action find
entity Q5173608
relation P735
type Q82799
['Q5173608', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q5173608 property:P735 ?o . ?o rdf:type ontology:Q82799 }
Cory Lekkerkerker
action filter_type
action find
entity Cory Lekkerkerker
relation given name
type name
['Cory Lekkerkerker', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Cory_Lekkerkerker property:given_name ?o . ?o rdf:type ontology:name }
[]
name
Q5173529
SYSTEM
Cory
Q5173529
(Q5173608,P735,c(Q82799))
action filter_type
action find
entity Q5173608
relation P735
type Q82799
The firstname of [ANSWER] Lekkerkerker is of [ANSWER]
['Q5173608', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q5173608 property:P735 ?o . ?o rdf:type ontology:Q82799 }
Cory
The firstname of Cory Lekkerkerker is of Cory
Cory
action filter_type
action find
entity Cory Lekkerkerker
relation given name
type name
['Cory Lekkerkerker', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Cory_Lekkerkerker property:given_name ?o . ?o rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4833806
Q82799
USER
And how about B.H. Barry?
(Q4833806,P735,c(Q82799))
action filter_type
action find
entity Q4833806
relation P735
type Q82799
['Q4833806', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q82799 . resource:Q4833806 property:P735 ?c }
B.H. Barry
action filter_type
action find
entity B.H. Barry
relation given name
type name
['B.H. Barry', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:name . resource:B.H._Barry property:given_name ?c }
[]
name
Q19803497
SYSTEM
B.
Q19803497
(Q4833806,P735,c(Q82799))
action filter_type
action find
entity Q4833806
relation P735
type Q82799
[ANSWER]
['Q4833806', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q82799 . resource:Q4833806 property:P735 ?c }
B.
B.
action filter_type
action find
entity B.H. Barry
relation given name
type name
['B.H. Barry', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:name . resource:B.H._Barry property:given_name ?c }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q82799 Q3305213 Q17335294
USER
Which names are depicted in min number of paintings and coats of arms ?
(c(Q3305213)|c(Q17335294),P180,c(Q82799))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
[[{'concept': 'Q3305213'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?f ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?v ) WHERE { { ?n property:P180 ?i . ?i rdf:type ontology:Q82799 . ?n rdf:type ontology:Q3305213 } UNION { ?n property:P180 ?i . ?i rdf:type ontology:Q82799 . ?n rdf:type ontology:Q17335294 } } GROUP BY ?i } } . { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?t ) WHERE { VALUES ( ?q ) { ( ontology:Q3305213 ) ( ontology:Q17335294 ) } . ?w rdf:type ?q } GROUP BY ?d } . FILTER ( ?t = ?f ) }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
[[{'concept': 'painting'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?f ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?v ) WHERE { { ?n property:depicts ?i . ?i rdf:type ontology:name . ?n rdf:type ontology:painting } UNION { ?n property:depicts ?i . ?i rdf:type ontology:name . ?n rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?i } } . { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?t ) WHERE { VALUES ( ?q ) { ( ontology:painting ) ( ontology:flag_or_coat_of_arms ) } . ?w rdf:type ?q } GROUP BY ?d } . FILTER ( ?t = ?f ) }
[]
name painting flag or coat of arms
Q1807269 Q134609 Q11946202
SYSTEM
leek, Cynara scolymus, butterfly
Q13219075 Q134609 Q6453151 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7369 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q8331 Q846664 Q3116510 Q1865281 Q1367 Q1192868 Q9394 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q858243 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q5070208 Q10968813
(c(Q3305213)|c(Q17335294),P180,c(Q82799))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
[ANSWERS] are depicted in min number of paintings and coats of arms
[[{'concept': 'Q3305213'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?f ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?v ) WHERE { { ?n property:P180 ?i . ?i rdf:type ontology:Q82799 . ?n rdf:type ontology:Q3305213 } UNION { ?n property:P180 ?i . ?i rdf:type ontology:Q82799 . ?n rdf:type ontology:Q17335294 } } GROUP BY ?i } } . { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?t ) WHERE { VALUES ( ?q ) { ( ontology:Q3305213 ) ( ontology:Q17335294 ) } . ?w rdf:type ?q } GROUP BY ?d } . FILTER ( ?t = ?f ) }
octopus Cynara scolymus toad duck mule wolf Partridge sugarcane shrimp dolphin butterfly trout cattle goose Boy cannoneer leek fox hawk frog whale monkey clam rabbit magpie slug lizard antelope Yellow jacket Tree squirrel mouflon elephant vulture pheasant thistle snail Scipio locust wasp kangaroo jay
Leek, Cynara scolymus and butterfly are depicted in min number of paintings and coats of arms
leek Cynara scolymus butterfly
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
[[{'concept': 'painting'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?f ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?v ) WHERE { { ?n property:depicts ?i . ?i rdf:type ontology:name . ?n rdf:type ontology:painting } UNION { ?n property:depicts ?i . ?i rdf:type ontology:name . ?n rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?i } } . { SELECT DISTINCT ?d ( COUNT ( ?w ) AS ?t ) WHERE { VALUES ( ?q ) { ( ontology:painting ) ( ontology:flag_or_coat_of_arms ) } . ?w rdf:type ?q } GROUP BY ?d } . FILTER ( ?t = ?f ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11946202
P921
Q1002697
USER
Which periodical literature has butterfly as its main topic ?
(c(Q1002697),P921,Q11946202)
action filter_type
action find_reverse
entity Q11946202
relation P921
type Q1002697
[{'concept': 'Q1002697'}, 'P921', 'Q11946202']
SELECT DISTINCT ?n WHERE { ?n property:P921 resource:Q11946202 . ?n rdf:type ontology:Q1002697 }
butterfly
action filter_type
action find_reverse
entity butterfly
relation main subject
type periodical literature
[{'concept': 'periodical literature'}, 'main subject', 'butterfly']
SELECT DISTINCT ?n WHERE { ?n property:main_subject resource:butterfly . ?n rdf:type ontology:periodical_literature }
[]
periodical literature
Q4916042
SYSTEM
Birds & Blooms
Q4916042
(c(Q1002697),P921,Q11946202)
action filter_type
action find_reverse
entity Q11946202
relation P921
type Q1002697
[ANSWER] has butterfly as its main topic
[{'concept': 'Q1002697'}, 'P921', 'Q11946202']
SELECT DISTINCT ?n WHERE { ?n property:P921 resource:Q11946202 . ?n rdf:type ontology:Q1002697 }
Birds & Blooms
Birds & Blooms has butterfly as its main topic
Birds & Blooms
action filter_type
action find_reverse
entity butterfly
relation main subject
type periodical literature
[{'concept': 'periodical literature'}, 'main subject', 'butterfly']
SELECT DISTINCT ?n WHERE { ?n property:main_subject resource:butterfly . ?n rdf:type ontology:periodical_literature }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q604139
Q1002697
USER
And what about The September Issue?
(Q604139,P921,c(Q1002697))
action filter_type
action find
entity Q604139
relation P921
type Q1002697
['Q604139', 'P921', {'concept': 'Q1002697'}]
SELECT DISTINCT ?k WHERE { resource:Q604139 property:P921 ?k . ?k rdf:type ontology:Q1002697 }
The September Issue
action filter_type
action find
entity The September Issue
relation main subject
type periodical literature
['The September Issue', 'main subject', {'concept': 'periodical literature'}]
SELECT DISTINCT ?k WHERE { resource:The_September_Issue property:main_subject ?k . ?k rdf:type ontology:periodical_literature }
[]
periodical literature
Q154008
SYSTEM
Vogue
Q154008
(Q604139,P921,c(Q1002697))
action filter_type
action find
entity Q604139
relation P921
type Q1002697
[ANSWER]
['Q604139', 'P921', {'concept': 'Q1002697'}]
SELECT DISTINCT ?k WHERE { resource:Q604139 property:P921 ?k . ?k rdf:type ontology:Q1002697 }
Vogue
Vogue
action filter_type
action find
entity The September Issue
relation main subject
type periodical literature
['The September Issue', 'main subject', {'concept': 'periodical literature'}]
SELECT DISTINCT ?k WHERE { resource:The_September_Issue property:main_subject ?k . ?k rdf:type ontology:periodical_literature }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q726
P180
Q82799 Q17335294 Q15709879
USER
How many names are expressed in less number of coats of arms or artwork series than horse ?
(c(Q17335294)|c(Q15709879),P180,c(Q82799))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q726
relation P180
type Q17335294
type Q15709879
[[{'concept': 'Q17335294'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { FILTER ( ?e < ?r ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P180 resource:Q726 . { VALUES ( ?b ) { ( ontology:Q17335294 ) ( ontology:Q15709879 ) } . ?c rdf:type ?b } } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?u WHERE { ?j rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15709879 ) ( ontology:Q17335294 ) } } GROUP BY ?u } }
horse
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action count
action filter_multi_types
action find_reverse
entity horse
relation depicts
type flag or coat of arms
type artwork series
[[{'concept': 'flag or coat of arms'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { FILTER ( ?e < ?r ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:depicts resource:horse . { VALUES ( ?b ) { ( ontology:flag_or_coat_of_arms ) ( ontology:artwork_series ) } . ?c rdf:type ?b } } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?u WHERE { ?j rdf:type ?f . VALUES ( ?f ) { ( ontology:artwork_series ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?u } }
[]
name flag or coat of arms artwork series
SYSTEM
54
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q144 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q17335294)|c(Q15709879),P180,c(Q82799))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q726
relation P180
type Q17335294
type Q15709879
[ANSWER]
[[{'concept': 'Q17335294'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { FILTER ( ?e < ?r ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P180 resource:Q726 . { VALUES ( ?b ) { ( ontology:Q17335294 ) ( ontology:Q15709879 ) } . ?c rdf:type ?b } } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?u WHERE { ?j rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15709879 ) ( ontology:Q17335294 ) } } GROUP BY ?u } }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly dog trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
54
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action count
action filter_multi_types
action find_reverse
entity horse
relation depicts
type flag or coat of arms
type artwork series
[[{'concept': 'flag or coat of arms'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { FILTER ( ?e < ?r ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:depicts resource:horse . { VALUES ( ?b ) { ( ontology:flag_or_coat_of_arms ) ( ontology:artwork_series ) } . ?c rdf:type ?b } } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?u WHERE { ?j rdf:type ?f . VALUES ( ?f ) { ( ontology:artwork_series ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?u } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q154008
P108
Q502895
USER
Which people are working for Vogue ?
(c(Q502895),P108,Q154008)
action filter_type
action find_reverse
entity Q154008
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q154008']
SELECT DISTINCT ?k WHERE { ?k property:P108 resource:Q154008 . ?k rdf:type ontology:Q502895 }
Vogue
action filter_type
action find_reverse
entity Vogue
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Vogue']
SELECT DISTINCT ?k WHERE { ?k property:employer resource:Vogue . ?k rdf:type ontology:common_name }
[]
common name
Q230744 Q6377003 Q4720678
SYSTEM
Anna Wintour, Kathryn Abbe, Alexandra Kotur
Q230744 Q6377003 Q4720678
(c(Q502895),P108,Q154008)
action filter_type
action find_reverse
entity Q154008
relation P108
type Q502895
[ANSWERS] are working for Vogue
[{'concept': 'Q502895'}, 'P108', 'Q154008']
SELECT DISTINCT ?k WHERE { ?k property:P108 resource:Q154008 . ?k rdf:type ontology:Q502895 }
Anna Wintour Kathryn Abbe Alexandra Kotur
Anna Wintour, Kathryn Abbe and Alexandra Kotur are working for Vogue
Anna Wintour Kathryn Abbe Alexandra Kotur
action filter_type
action find_reverse
entity Vogue
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Vogue']
SELECT DISTINCT ?k WHERE { ?k property:employer resource:Vogue . ?k rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q230744
P26
Q502895
USER
Which people have that one as spouse ?
(c(Q502895),P26,Q230744)
action filter_type
action find
entity Q230744
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q230744']
SELECT DISTINCT ?a WHERE { resource:Q230744 property:P26 ?a . ?a rdf:type ontology:Q502895 }
Anna Wintour
action filter_type
action find
entity Anna Wintour
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Anna Wintour']
SELECT DISTINCT ?a WHERE { resource:Anna_Wintour property:spouse ?a . ?a rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q6377003
SYSTEM
Did you mean Kathryn Abbe ?
Q230744 Q6377003 Q4720678
(c(Q502895),P26,Q230744) (c(Q502895),P26,Q6377003) (c(Q502895),P26,Q4720678)
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q230744'] [{'concept': 'Q502895'}, 'P26', 'Q6377003'] [{'concept': 'Q502895'}, 'P26', 'Q4720678']
SELECT DISTINCT ?a WHERE { resource:Q230744 property:P26 ?a . ?a rdf:type ontology:Q502895 }
Anna Wintour Kathryn Abbe Alexandra Kotur
Did you mean Kathryn Abbe ?
Kathryn Abbe
[{'concept': 'common name'}, 'spouse', 'Anna Wintour'] [{'concept': 'common name'}, 'spouse', 'Kathryn Abbe'] [{'concept': 'common name'}, 'spouse', 'Alexandra Kotur']
SELECT DISTINCT ?a WHERE { resource:Anna_Wintour property:spouse ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Anna Wintour. Could you tell me the answer for that?
(c(Q502895),P26,Q230744)
Q230744
[{'concept': 'Q502895'}, 'P26', 'Q230744']
[{'concept': 'common name'}, 'spouse', 'Anna Wintour']
[]
Q2195431 Q7493353
SYSTEM
David Shaffer, Shelby Bryan
Q2195431 Q7493353
(c(Q502895),P26,Q230744)
action filter_type
action find
entity Q230744
relation P26
type Q502895
[ANSWERS] have that one as spouse
[{'concept': 'Q502895'}, 'P26', 'Q230744']
SELECT DISTINCT ?a WHERE { resource:Q230744 property:P26 ?a . ?a rdf:type ontology:Q502895 }
David Shaffer Shelby Bryan
David Shaffer and Shelby Bryan have that one as spouse
David Shaffer Shelby Bryan
action filter_type
action find
entity Anna Wintour
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Anna Wintour']
SELECT DISTINCT ?a WHERE { resource:Anna_Wintour property:spouse ?a . ?a rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7493353
P451
Q502895
USER
Who has that one as their girlfriend ?
(c(Q502895),P451,Q7493353)
action filter_type
action find
entity Q7493353
relation P451
type Q502895
[{'concept': 'Q502895'}, 'P451', 'Q7493353']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q7493353 property:P451 ?r }
Shelby Bryan
action filter_type
action find
entity Shelby Bryan
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'Shelby Bryan']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Shelby_Bryan property:partner ?r }
[]
common name
Clarification for simple ques.
Q2195431
SYSTEM
Did you mean David Shaffer ?
Q2195431 Q7493353
(c(Q502895),P451,Q2195431) (c(Q502895),P451,Q7493353)
[ANSWER]
[{'concept': 'Q502895'}, 'P451', 'Q2195431'] [{'concept': 'Q502895'}, 'P451', 'Q7493353']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q7493353 property:P451 ?r }
David Shaffer Shelby Bryan
Did you mean David Shaffer ?
David Shaffer
[{'concept': 'common name'}, 'partner', 'David Shaffer'] [{'concept': 'common name'}, 'partner', 'Shelby Bryan']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Shelby_Bryan property:partner ?r }
[]
Simple Question (Coreferenced)
USER
No, I meant Shelby Bryan. Could you tell me the answer for that?
(c(Q502895),P451,Q7493353)
Q7493353
[{'concept': 'Q502895'}, 'P451', 'Q7493353']
[{'concept': 'common name'}, 'partner', 'Shelby Bryan']
[]
Q230744
SYSTEM
Anna Wintour
Q230744
(c(Q502895),P451,Q7493353)
action filter_type
action find
entity Q7493353
relation P451
type Q502895
[ANSWER] has that one as their girlfriend
[{'concept': 'Q502895'}, 'P451', 'Q7493353']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q7493353 property:P451 ?r }
Anna Wintour
Anna Wintour has that one as their girlfriend
Anna Wintour
action filter_type
action find
entity Shelby Bryan
relation partner
type common name
[{'concept': 'common name'}, 'partner', 'Shelby Bryan']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Shelby_Bryan property:partner ?r }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1455473 Q230744
P22
Q502895
USER
Which people were the dad of Anna Wintour or Karl Justi ?
OR((Q230744,P22,c(Q502895)), (Q1455473,P22,c(Q502895)))
action filter_type
action union
action find
entity Q230744
relation P22
action find
entity Q1455473
relation P22
type Q502895
{'OR': [['Q230744', 'P22', {'concept': 'Q502895'}], ['Q1455473', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q230744 property:P22 ?z } UNION { resource:Q1455473 property:P22 ?z } } . ?z rdf:type ontology:Q502895 }
Karl Justi Anna Wintour
action filter_type
action union
action find
entity Anna Wintour
relation father
action find
entity Karl Justi
relation father
type common name
{'OR': [['Anna Wintour', 'father', {'concept': 'common name'}], ['Karl Justi', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Anna_Wintour property:father ?z } UNION { resource:Karl_Justi property:father ?z } } . ?z rdf:type ontology:common_name }
[]
common name
Q106015 Q5083664
SYSTEM
Ferdinand Justi, Charles Wintour
Q106015 Q5083664
OR((Q230744,P22,c(Q502895)), (Q1455473,P22,c(Q502895)))
action filter_type
action union
action find
entity Q230744
relation P22
action find
entity Q1455473
relation P22
type Q502895
[ANSWERS] were the dad of Anna Wintour or Karl Justi
{'OR': [['Q230744', 'P22', {'concept': 'Q502895'}], ['Q1455473', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q230744 property:P22 ?z } UNION { resource:Q1455473 property:P22 ?z } } . ?z rdf:type ontology:Q502895 }
Ferdinand Justi Charles Wintour
Ferdinand Justi and Charles Wintour were the dad of Anna Wintour or Karl Justi
Ferdinand Justi Charles Wintour
action filter_type
action union
action find
entity Anna Wintour
relation father
action find
entity Karl Justi
relation father
type common name
{'OR': [['Anna Wintour', 'father', {'concept': 'common name'}], ['Karl Justi', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Anna_Wintour property:father ?z } UNION { resource:Karl_Justi property:father ?z } } . ?z rdf:type ontology:common_name }
[]