Simple Question (Direct)
Simple Question
Q1498104
P19
Q56061
USER
Where was Renato Mambor born ?
(Q1498104,P19,c(Q56061))
action filter_type
action find
entity Q1498104
relation P19
type Q56061
['Q1498104', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q1498104 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Renato Mambor
action filter_type
action find
entity Renato Mambor
relation place of birth
type administrative territorial entity
['Renato Mambor', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Renato_Mambor property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q1498104,P19,c(Q56061))
action filter_type
action find
entity Q1498104
relation P19
type Q56061
Renato Mambor was born [ANSWER]
['Q1498104', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q1498104 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Rome
Renato Mambor was born Rome
Rome
action filter_type
action find
entity Renato Mambor
relation place of birth
type administrative territorial entity
['Renato Mambor', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Renato_Mambor property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1498104
P161
Q838948
USER
Which works of art do Renato Mambor star in ?
(c(Q838948),P161,Q1498104)
action filter_type
action find_reverse
entity Q1498104
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q1498104']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q838948 . ?k property:P161 resource:Q1498104 }
Renato Mambor
action filter_type
action find_reverse
entity Renato Mambor
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Renato Mambor']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:work_of_art . ?k property:cast_member resource:Renato_Mambor }
[]
work of art
Q18407 Q3880579 Q4006469
SYSTEM
La Dolce Vita, Obiettivo ragazze, Howlers in the Dock
Q1281004 Q1997274 Q3794551 Q3880579 Q4006469 Q934063 Q1147808 Q2496771 Q3821439 Q742203 Q3822184 Q893214 Q18407
(c(Q838948),P161,Q1498104)
action filter_type
action find_reverse
entity Q1498104
relation P161
type Q838948
[ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q1498104']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q838948 . ?k property:P161 resource:Q1498104 }
Disorder Cleopatra's Daughter His Women Obiettivo ragazze Howlers in the Dock The Stranger Returns Son of Django Il rossetto La bellezza di Ippolita Ragazzi del Juke-Box La donnaccia Due once di piombo La Dolce Vita
Which works of art Renato Mambor star in
La Dolce Vita Obiettivo ragazze Howlers in the Dock
action filter_type
action find_reverse
entity Renato Mambor
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Renato Mambor']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:work_of_art . ?k property:cast_member resource:Renato_Mambor }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4006469
P58
Q502895
USER
Who wrote the screenplay for that work of art ?
(Q4006469,P58,c(Q502895))
action filter_type
action find
entity Q4006469
relation P58
type Q502895
['Q4006469', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q4006469 property:P58 ?f . ?f rdf:type ontology:Q502895 }
Howlers in the Dock
action filter_type
action find
entity Howlers in the Dock
relation screenwriter
type common name
['Howlers in the Dock', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Howlers_in_the_Dock property:screenwriter ?f . ?f rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q18407
SYSTEM
Did you mean La Dolce Vita ?
Q18407 Q3880579 Q4006469
(Q18407,P58,c(Q502895)) (Q3880579,P58,c(Q502895)) (Q4006469,P58,c(Q502895))
[ANSWER]
['Q18407', 'P58', {'concept': 'Q502895'}] ['Q3880579', 'P58', {'concept': 'Q502895'}] ['Q4006469', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q4006469 property:P58 ?f . ?f rdf:type ontology:Q502895 }
La Dolce Vita Obiettivo ragazze Howlers in the Dock
Did you mean La Dolce Vita ?
La Dolce Vita
['La Dolce Vita', 'screenwriter', {'concept': 'common name'}] ['Obiettivo ragazze', 'screenwriter', {'concept': 'common name'}] ['Howlers in the Dock', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Howlers_in_the_Dock property:screenwriter ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Howlers in the Dock. Could you tell me the answer for that?
(Q4006469,P58,c(Q502895))
Q4006469
['Q4006469', 'P58', {'concept': 'Q502895'}]
['Howlers in the Dock', 'screenwriter', {'concept': 'common name'}]
[]
Q2092907 Q345217
SYSTEM
Piero Vivarelli, Lucio Fulci
Q2092907 Q345217
(Q4006469,P58,c(Q502895))
action filter_type
action find
entity Q4006469
relation P58
type Q502895
[ANSWERS] wrote the screenplay for that work of art
['Q4006469', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q4006469 property:P58 ?f . ?f rdf:type ontology:Q502895 }
Piero Vivarelli Lucio Fulci
Piero Vivarelli and Lucio Fulci wrote the screenplay for that work of art
Piero Vivarelli Lucio Fulci
action filter_type
action find
entity Howlers in the Dock
relation screenwriter
type common name
['Howlers in the Dock', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Howlers_in_the_Dock property:screenwriter ?f . ?f rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q838948 Q838948 Q201658
USER
Which works of art are atleast 9 works of art and film genres considered a copy of ?
(c(Q838948)|c(Q201658),P144,c(Q838948))
action atleast
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P144
type Q838948
type Q201658
value 9
[[{'concept': 'Q838948'}, {'concept': 'Q201658'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) ?x WHERE { { ?m property:P144 ?x . ?x rdf:type ontology:Q838948 . ?m rdf:type ontology:Q838948 } UNION { ?m property:P144 ?x . ?x rdf:type ontology:Q838948 . ?m rdf:type ontology:Q201658 } } GROUP BY ?x } . FILTER ( ?s >= 9 ) }
action atleast
action union
action find_reverse_tuple_counts
relation based on
type work of art
type work of art
action find_reverse_tuple_counts
relation based on
type work of art
type film genre
value 9
[[{'concept': 'work of art'}, {'concept': 'film genre'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) ?x WHERE { { ?m property:based_on ?x . ?x rdf:type ontology:work_of_art . ?m rdf:type ontology:work_of_art } UNION { ?m property:based_on ?x . ?x rdf:type ontology:work_of_art . ?m rdf:type ontology:film_genre } } GROUP BY ?x } . FILTER ( ?s >= 9 ) }
[]
work of art work of art film genre
Q83186 Q41567 Q669694
SYSTEM
Romeo and Juliet, Hamlet, A Doll's House
Q83186 Q41567 Q669694
(c(Q838948)|c(Q201658),P144,c(Q838948))
action atleast
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P144
type Q838948
type Q201658
value 9
[ANSWERS] are atleast 9 works of art and film genres considered a copy of
[[{'concept': 'Q838948'}, {'concept': 'Q201658'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) ?x WHERE { { ?m property:P144 ?x . ?x rdf:type ontology:Q838948 . ?m rdf:type ontology:Q838948 } UNION { ?m property:P144 ?x . ?x rdf:type ontology:Q838948 . ?m rdf:type ontology:Q201658 } } GROUP BY ?x } . FILTER ( ?s >= 9 ) }
Romeo and Juliet Hamlet A Doll's House
Romeo and Juliet, Hamlet and A Doll's House are atleast 9 works of art and film genres considered a copy of
Romeo and Juliet Hamlet A Doll's House
action atleast
action union
action find_reverse_tuple_counts
relation based on
type work of art
type work of art
action find_reverse_tuple_counts
relation based on
type work of art
type film genre
value 9
[[{'concept': 'work of art'}, {'concept': 'film genre'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) ?x WHERE { { ?m property:based_on ?x . ?x rdf:type ontology:work_of_art . ?m rdf:type ontology:work_of_art } UNION { ?m property:based_on ?x . ?x rdf:type ontology:work_of_art . ?m rdf:type ontology:film_genre } } GROUP BY ?x } . FILTER ( ?s >= 9 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q5956739
P50
Q2342494
USER
How many collectables are written by Hasan Amid ?
(c(Q2342494),P50,Q5956739)
action count
action filter_type
action find_reverse
entity Q5956739
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q5956739']
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:P50 resource:Q5956739 . ?p rdf:type ontology:Q2342494 }
Hasan Amid
action count
action filter_type
action find_reverse
entity Hasan Amid
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Hasan Amid']
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:author resource:Hasan_Amid . ?p rdf:type ontology:collectable }
[]
collectable
SYSTEM
1
Q5939960
(c(Q2342494),P50,Q5956739)
action count
action filter_type
action find_reverse
entity Q5956739
relation P50
type Q2342494
[ANSWER]
[{'concept': 'Q2342494'}, 'P50', 'Q5956739']
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:P50 resource:Q5956739 . ?p rdf:type ontology:Q2342494 }
Amid dictionary
1
action count
action filter_type
action find_reverse
entity Hasan Amid
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Hasan Amid']
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:author resource:Hasan_Amid . ?p rdf:type ontology:collectable }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q41567
P800
Q502895
USER
Whose notable work were Hamlet ?
(c(Q502895),P800,Q41567)
action filter_type
action find_reverse
entity Q41567
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q41567']
SELECT DISTINCT ?v WHERE { ?v property:P800 resource:Q41567 . ?v rdf:type ontology:Q502895 }
Hamlet
action filter_type
action find_reverse
entity Hamlet
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Hamlet']
SELECT DISTINCT ?v WHERE { ?v property:notable_work resource:Hamlet . ?v rdf:type ontology:common_name }
[]
common name
Q692 Q16066303
SYSTEM
William Shakespeare, Mary Warner
Q692 Q16066303
(c(Q502895),P800,Q41567)
action filter_type
action find_reverse
entity Q41567
relation P800
type Q502895
The [ANSWERS] were Hamlet
[{'concept': 'Q502895'}, 'P800', 'Q41567']
SELECT DISTINCT ?v WHERE { ?v property:P800 resource:Q41567 . ?v rdf:type ontology:Q502895 }
William Shakespeare Mary Warner
The William Shakespeare and Mary Warner were Hamlet
William Shakespeare Mary Warner
action filter_type
action find_reverse
entity Hamlet
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Hamlet']
SELECT DISTINCT ?v WHERE { ?v property:notable_work resource:Hamlet . ?v rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q692 Q16066303
P921
Q191067
USER
Which articles have those people as their principal topic ?
(c(Q191067),P921,Q692) (c(Q191067),P921,Q16066303)
action filter_type
action find_reverse
entity prev_answer
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q692'] [{'concept': 'Q191067'}, 'P921', 'Q16066303']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q191067 . ?g property:P921 ?x . VALUES ( ?x ) { ( resource:Q692 ) ( resource:Q16066303 ) } }
William Shakespeare Mary Warner
action filter_type
action find_reverse
entity prev_answer
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'William Shakespeare'] [{'concept': 'article'}, 'main subject', 'Mary Warner']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:article . ?g property:main_subject ?x . VALUES ( ?x ) { ( resource:William_Shakespeare ) ( resource:Mary_Warner ) } }
[]
article
Q19031722 Q19953363 Q19115038
SYSTEM
Shakespeare, William (DNB00), EB-11 / Shakespeare, William, Warner, Mary Amelia (DNB00)
Q19031722 Q19953363 Q19115038
(c(Q191067),P921,Q692) (c(Q191067),P921,Q16066303)
action filter_type
action find_reverse
entity prev_answer
relation P921
type Q191067
[ANSWERS]
[{'concept': 'Q191067'}, 'P921', 'Q692'] [{'concept': 'Q191067'}, 'P921', 'Q16066303']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q191067 . ?g property:P921 ?x . VALUES ( ?x ) { ( resource:Q692 ) ( resource:Q16066303 ) } }
Shakespeare, William (DNB00) EB-11 / Shakespeare, William Warner, Mary Amelia (DNB00)
Shakespeare, William (DNB00), EB-11 / Shakespeare, William and Warner, Mary Amelia (DNB00) have those people as their principal topic
Shakespeare, William (DNB00) EB-11 / Shakespeare, William Warner, Mary Amelia (DNB00)
action filter_type
action find_reverse
entity prev_answer
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'William Shakespeare'] [{'concept': 'article'}, 'main subject', 'Mary Warner']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:article . ?g property:main_subject ?x . VALUES ( ?x ) { ( resource:William_Shakespeare ) ( resource:Mary_Warner ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q19953363
P1433
Q571
USER
Which book published that article ?
(Q19953363,P1433,c(Q571))
action filter_type
action find
entity Q19953363
relation P1433
type Q571
['Q19953363', 'P1433', {'concept': 'Q571'}]
SELECT DISTINCT ?m WHERE { resource:Q19953363 property:P1433 ?m . ?m rdf:type ontology:Q571 }
EB-11 / Shakespeare, William
action filter_type
action find
entity EB-11 / Shakespeare, William
relation published in
type book
['EB-11 / Shakespeare, William', 'published in', {'concept': 'book'}]
SELECT DISTINCT ?m WHERE { resource:EB-11_/_Shakespeare,_William property:published_in ?m . ?m rdf:type ontology:book }
[]
book
Clarification for simple ques.
Q19115038
SYSTEM
Did you mean Warner, Mary Amelia (DNB00) ?
Q19031722 Q19953363 Q19115038
(Q19031722,P1433,c(Q571)) (Q19953363,P1433,c(Q571)) (Q19115038,P1433,c(Q571))
[ANSWER]
['Q19031722', 'P1433', {'concept': 'Q571'}] ['Q19953363', 'P1433', {'concept': 'Q571'}] ['Q19115038', 'P1433', {'concept': 'Q571'}]
SELECT DISTINCT ?m WHERE { resource:Q19953363 property:P1433 ?m . ?m rdf:type ontology:Q571 }
Shakespeare, William (DNB00) EB-11 / Shakespeare, William Warner, Mary Amelia (DNB00)
Did you mean Warner, Mary Amelia (DNB00) ?
Warner, Mary Amelia (DNB00)
['Shakespeare, William (DNB00)', 'published in', {'concept': 'book'}] ['EB-11 / Shakespeare, William', 'published in', {'concept': 'book'}] ['Warner, Mary Amelia (DNB00)', 'published in', {'concept': 'book'}]
SELECT DISTINCT ?m WHERE { resource:EB-11_/_Shakespeare,_William property:published_in ?m . ?m rdf:type ontology:book }
[]
Simple Question (Coreferenced)
USER
No, I meant EB-11 / Shakespeare, William. Could you tell me the answer for that?
(Q19953363,P1433,c(Q571))
Q19953363
['Q19953363', 'P1433', {'concept': 'Q571'}]
['EB-11 / Shakespeare, William', 'published in', {'concept': 'book'}]
[]
Q867541
SYSTEM
1911 Encyclopædia Britannica
Q867541
(Q19953363,P1433,c(Q571))
action filter_type
action find
entity Q19953363
relation P1433
type Q571
The [ANSWER] published that article
['Q19953363', 'P1433', {'concept': 'Q571'}]
SELECT DISTINCT ?m WHERE { resource:Q19953363 property:P1433 ?m . ?m rdf:type ontology:Q571 }
1911 Encyclopædia Britannica
The 1911 Encyclopædia Britannica published that article
1911 Encyclopædia Britannica
action filter_type
action find
entity EB-11 / Shakespeare, William
relation published in
type book
['EB-11 / Shakespeare, William', 'published in', {'concept': 'book'}]
SELECT DISTINCT ?m WHERE { resource:EB-11_/_Shakespeare,_William property:published_in ?m . ?m rdf:type ontology:book }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q690783 Q669694
P161 P50
Q502895
USER
Which people were the writers of A Doll's House or starred in Topper Takes a Trip ?
OR((Q669694,P50,c(Q502895)), (Q690783,P161,c(Q502895)))
action filter_type
action union
action find
entity Q669694
relation P50
action find
entity Q690783
relation P161
type Q502895
{'OR': [['Q669694', 'P50', {'concept': 'Q502895'}], ['Q690783', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q690783 property:P161 ?z } UNION { resource:Q669694 property:P50 ?z } } . ?z rdf:type ontology:Q502895 }
Topper Takes a Trip A Doll's House
action filter_type
action union
action find
entity A Doll's House
relation author
action find
entity Topper Takes a Trip
relation cast member
type common name
{'OR': [["A Doll's House", 'author', {'concept': 'common name'}], ['Topper Takes a Trip', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Topper_Takes_a_Trip property:cast_member ?z } UNION { resource:A_Doll's_House property:author ?z } } . ?z rdf:type ontology:common_name }
[]
common name
Q3103406 Q4792672 Q1668336 Q3371485 Q36661 Q3556073 Q6524510 Q7360827 Q1371212 Q3082947
SYSTEM
Some of them are Georges Renavent, Armand Kaliz, Irving Pichel, Paul Hurst, Henrik Ibsen, Verree Teasdale, Leon Belasco, Rolfe Sedan, Roland Young, Franklin Pangborn
Q1668336 Q1371212 Q2603039 Q7360827 Q4792672 Q36661 Q1758264 Q3493013 Q8004706 Q3564975 Q6524510 Q235639 Q265358 Q3371485 Q3103406 Q3556073 Q3082947 Q3335641 Q7152983
OR((Q669694,P50,c(Q502895)), (Q690783,P161,c(Q502895)))
action filter_type
action union
action find
entity Q669694
relation P50
action find
entity Q690783
relation P161
type Q502895
[ANSWERS] were the writers of A Doll's House or starred in Topper Takes a Trip
{'OR': [['Q669694', 'P50', {'concept': 'Q502895'}], ['Q690783', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q690783 property:P161 ?z } UNION { resource:Q669694 property:P50 ?z } } . ?z rdf:type ontology:Q502895 }
Irving Pichel Roland Young Alexander D'Arcy Rolfe Sedan Armand Kaliz Henrik Ibsen Alan Mowbray Spencer Charters William Austin Wade Boteler Leon Belasco Billie Burke Constance Bennett Paul Hurst Georges Renavent Verree Teasdale Franklin Pangborn Nanette Bordeaux Paul Porcasi
Georges Renavent, Armand Kaliz, Irving Pichel, Paul Hurst, Henrik Ibsen, Verree Teasdale, Leon Belasco, Rolfe Sedan, Roland Young and Franklin Pangborn were the writers of A Doll's House or starred in Topper Takes a Trip
Georges Renavent Armand Kaliz Irving Pichel Paul Hurst Henrik Ibsen Verree Teasdale Leon Belasco Rolfe Sedan Roland Young Franklin Pangborn
action filter_type
action union
action find
entity A Doll's House
relation author
action find
entity Topper Takes a Trip
relation cast member
type common name
{'OR': [["A Doll's House", 'author', {'concept': 'common name'}], ['Topper Takes a Trip', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Topper_Takes_a_Trip property:cast_member ?z } UNION { resource:A_Doll's_House property:author ?z } } . ?z rdf:type ontology:common_name }
[]