Simple Question (Direct)
Simple Question
Q2404989
P57
Q502895
USER
Who directed An Innocent Magdalene ?
(Q2404989,P57,c(Q502895))
action filter_type
action find
entity Q2404989
relation P57
type Q502895
['Q2404989', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q2404989 property:P57 ?f }
An Innocent Magdalene
action filter_type
action find
entity An Innocent Magdalene
relation director
type common name
['An Innocent Magdalene', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:An_Innocent_Magdalene property:director ?f }
[]
common name
Q959677
SYSTEM
Allan Dwan
Q959677
(Q2404989,P57,c(Q502895))
action filter_type
action find
entity Q2404989
relation P57
type Q502895
The [ANSWER] directed An Innocent Magdalene
['Q2404989', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q2404989 property:P57 ?f }
Allan Dwan
The Allan Dwan directed An Innocent Magdalene
Allan Dwan
action filter_type
action find
entity An Innocent Magdalene
relation director
type common name
['An Innocent Magdalene', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:An_Innocent_Magdalene property:director ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q959677
P58
Q201658
USER
Which film genres are that person a screwriter of ?
(c(Q201658),P58,Q959677)
action filter_type
action find_reverse
entity Q959677
relation P58
type Q201658
[{'concept': 'Q201658'}, 'P58', 'Q959677']
SELECT DISTINCT ?o WHERE { ?o property:P58 resource:Q959677 . ?o rdf:type ontology:Q201658 }
Allan Dwan
action filter_type
action find_reverse
entity Allan Dwan
relation screenwriter
type film genre
[{'concept': 'film genre'}, 'screenwriter', 'Allan Dwan']
SELECT DISTINCT ?o WHERE { ?o property:screenwriter resource:Allan_Dwan . ?o rdf:type ontology:film_genre }
[]
film genre
Q2159851 Q3866776 Q5689608
SYSTEM
Robin Hood, Mr. Fix-It, Headin' South
Q5689608 Q5234789 Q3987442 Q4019800 Q3988823 Q3866776 Q2159851 Q2198335 Q3964250 Q3934915 Q634389 Q7727813 Q3602660
(c(Q201658),P58,Q959677)
action filter_type
action find_reverse
entity Q959677
relation P58
type Q201658
[ANSWERS] are that person a screwriter of
[{'concept': 'Q201658'}, 'P58', 'Q959677']
SELECT DISTINCT ?o WHERE { ?o property:P58 resource:Q959677 . ?o rdf:type ontology:Q201658 }
Headin' South David Harum The Habit of Happiness Wildflower The Pretty Sister of Jose Mr. Fix-It Robin Hood Fifty-Fifty Soldiers of Fortune Richelieu Arizona The County Chairman A Perfect Crime
Robin Hood, Mr. Fix-It and Headin' South are that person a screwriter of
Robin Hood Mr. Fix-It Headin' South
action filter_type
action find_reverse
entity Allan Dwan
relation screenwriter
type film genre
[{'concept': 'film genre'}, 'screenwriter', 'Allan Dwan']
SELECT DISTINCT ?o WHERE { ?o property:screenwriter resource:Allan_Dwan . ?o rdf:type ontology:film_genre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q1001378
USER
How many cinematic techniques have been dubbed by atleast 16 people ?
(c(Q1001378),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 16
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { FILTER ( ?t >= 16 ) . { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ontology:Q502895 . ?o rdf:type ontology:Q1001378 . ?o property:P725 ?j } GROUP BY ?o } }
action count
action atleast
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 16
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { FILTER ( ?t >= 16 ) . { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ontology:common_name . ?o rdf:type ontology:cinematic_technique . ?o property:voice_actor ?j } GROUP BY ?o } }
[]
common name cinematic technique
SYSTEM
3
Q15270647 Q2329413 Q9321426
(c(Q1001378),P725,c(Q502895))
action count
action atleast
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 16
[ANSWER]
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { FILTER ( ?t >= 16 ) . { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ontology:Q502895 . ?o rdf:type ontology:Q1001378 . ?o property:P725 ?j } GROUP BY ?o } }
Zootopia Barbie as the Princess and the Pauper Finding Dory
3
action count
action atleast
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 16
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { FILTER ( ?t >= 16 ) . { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ontology:common_name . ?o rdf:type ontology:cinematic_technique . ?o property:voice_actor ?j } GROUP BY ?o } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4281517 Q959677
P119
Q43229
USER
Which organizations were Allan Dwan or Lyudmila Marinovich buried ?
OR((Q959677,P119,c(Q43229)), (Q4281517,P119,c(Q43229)))
action filter_type
action union
action find
entity Q959677
relation P119
action find
entity Q4281517
relation P119
type Q43229
{'OR': [['Q959677', 'P119', {'concept': 'Q43229'}], ['Q4281517', 'P119', {'concept': 'Q43229'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q959677 property:P119 ?e } UNION { resource:Q4281517 property:P119 ?e } } . ?e rdf:type ontology:Q43229 }
Lyudmila Marinovich Allan Dwan
action filter_type
action union
action find
entity Allan Dwan
relation place of burial
action find
entity Lyudmila Marinovich
relation place of burial
type organization
{'OR': [['Allan Dwan', 'place of burial', {'concept': 'organization'}], ['Lyudmila Marinovich', 'place of burial', {'concept': 'organization'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Allan_Dwan property:place_of_burial ?e } UNION { resource:Lyudmila_Marinovich property:place_of_burial ?e } } . ?e rdf:type ontology:organization }
[]
organization
Q4498622 Q7413874
SYSTEM
Khovanskoye Cemetery, San Fernando Mission Cemetery
Q4498622 Q7413874
OR((Q959677,P119,c(Q43229)), (Q4281517,P119,c(Q43229)))
action filter_type
action union
action find
entity Q959677
relation P119
action find
entity Q4281517
relation P119
type Q43229
Allan Dwan or Lyudmila Marinovich were buried in [ANSWERS]
{'OR': [['Q959677', 'P119', {'concept': 'Q43229'}], ['Q4281517', 'P119', {'concept': 'Q43229'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q959677 property:P119 ?e } UNION { resource:Q4281517 property:P119 ?e } } . ?e rdf:type ontology:Q43229 }
Khovanskoye Cemetery San Fernando Mission Cemetery
Allan Dwan or Lyudmila Marinovich were buried in Khovanskoye Cemetery and San Fernando Mission Cemetery
Khovanskoye Cemetery San Fernando Mission Cemetery
action filter_type
action union
action find
entity Allan Dwan
relation place of burial
action find
entity Lyudmila Marinovich
relation place of burial
type organization
{'OR': [['Allan Dwan', 'place of burial', {'concept': 'organization'}], ['Lyudmila Marinovich', 'place of burial', {'concept': 'organization'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Allan_Dwan property:place_of_burial ?e } UNION { resource:Lyudmila_Marinovich property:place_of_burial ?e } } . ?e rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4498622 Q7413874
P119
Q502895
USER
Which people were burried at those organizations ?
(c(Q502895),P119,Q4498622) (c(Q502895),P119,Q7413874)
action filter_type
action find_reverse
entity prev_answer
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q4498622'] [{'concept': 'Q502895'}, 'P119', 'Q7413874']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P119 ?u . VALUES ( ?u ) { ( resource:Q4498622 ) ( resource:Q7413874 ) } }
Khovanskoye Cemetery San Fernando Mission Cemetery
action filter_type
action find_reverse
entity prev_answer
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Khovanskoye Cemetery'] [{'concept': 'common name'}, 'place of burial', 'San Fernando Mission Cemetery']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:place_of_burial ?u . VALUES ( ?u ) { ( resource:Khovanskoye_Cemetery ) ( resource:San_Fernando_Mission_Cemetery ) } }
[]
common name
Q713301 Q94081 Q1657908
SYSTEM
Ray Heindorf, Bob Hope, Valeri Broshin
Q4320153 Q4495926 Q2511067 Q16674418 Q281604 Q4421976 Q4160253 Q4074395 Q4283766 Q4482142 Q4409271 Q4122800 Q4230984 Q4187444 Q4148169 Q4216652 Q4166395 Q4183330 Q4239910 Q1980501 Q4093671 Q4281948 Q4089160 Q457935 Q4204214 Q4083348 Q17428033 Q15732544 Q893737 Q253772 Q9098105 Q4443437 Q4399810 Q4089003 Q4281517 Q4079564 Q4501571 Q4257275 Q4162770 Q3710046 Q4325379 Q2443793 Q4419061 Q4171504 Q4396302 Q20030073 Q469876 Q2065710 Q3558306 Q4279740 Q16718979 Q4081011 Q4218082 Q4235835 Q978720 Q1657908 Q4282086 Q232764 Q501712 Q499566 Q4077738 Q4111823 Q941556 Q4043395 Q2635573 Q4369054 Q2497462 Q707035 Q4084775 Q4536878 Q23397669 Q4106206 Q4417007 Q1671948 Q2834312 Q4232992 Q4385553 Q984532 Q551254 Q4061575 Q4203534 Q1187114 Q4206562 Q4297291 Q4330658 Q2688749 Q1334409 Q4318251 Q3060182 Q4203925 Q4204419 Q515094 Q643831 Q19607376 Q2214877 Q15070306 Q4390040 Q609973 Q4420806 Q4426667 Q4275221 Q4499610 Q4454722 Q265610 Q4107787 Q959677 Q1992638 Q8019109 Q1209649 Q1065270 Q522582 Q309725 Q372838 Q282367 Q707717 Q778789 Q434889 Q2005629 Q459786 Q2865765 Q556502 Q234089 Q330382 Q3195059 Q6166988 Q531312 Q923250 Q3058884 Q461949 Q182834 Q16239003 Q3088215 Q3829379 Q354863 Q6836693 Q5298248 Q1033084 Q3101602 Q219521 Q352701 Q3569356 Q3218062 Q11838696 Q329163 Q1528106 Q3941460 Q3825563 Q318312 Q94081 Q268326 Q736541 Q7815664 Q292361 Q508858 Q1290248 Q16016103 Q991875 Q459556 Q15993005 Q3161480 Q705738 Q2958511 Q658614 Q31221 Q918762 Q1929752 Q952690 Q177347 Q255846 Q1928541 Q6282326 Q713301 Q2403184 Q1290968 Q522803 Q3369500
(c(Q502895),P119,Q4498622) (c(Q502895),P119,Q7413874)
action filter_type
action find_reverse
entity prev_answer
relation P119
type Q502895
[ANSWERS] were burried at those organizations
[{'concept': 'Q502895'}, 'P119', 'Q4498622'] [{'concept': 'Q502895'}, 'P119', 'Q7413874']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . ?z property:P119 ?u . VALUES ( ?u ) { ( resource:Q4498622 ) ( resource:Q7413874 ) } }
Yevgeni Nikolayev Svetlana Kharitonova Mark Krasnosel'skii Sergei Markushev Boris Morukov Vitt Fjodorovič Skobarihin Vitaly Dzhibuti Iskra Babich Alla Masevich Ivan Fedosov Vsevolod Safonov Ada Vojtsik Vitaly Konovalov Anna Zarzhitskaya Vadim Grachyov Ivan Kosykh Mikhail Donskoy Alexei Zavyalov Zoya Krakhmalnikova Mikhail Zenkevich Aleksey Borzunov Viktor Markin Petr Bogachyov Yevgeniya Sidorova Vladimir Ispravnikov Victor Beltyukov Aleksandr Yaskin Galina Samokhina Boris Delaunay Elisabeth Bykova África de las Heras Gavilán Ruslan Stratonovich Vasiliy E. Ruzhentsev Genri Boganik Lyudmila Marinovich Gennady Batygin Semyon Khromov Elsa Lezhdey Oleg Dmitriyev Oleg Lupanov Anatoly Novoseltsev Vyacheslav Ambartsumyan Nikolay Sikorsky Yevgeny Dyakonov Andrey Rozhkov Grigorij Pawłow Kira Ivanova Aslan Usoyan Viktor Kuznecov Oleg Ivanovich Mamayev Yevgeny Shabarov Vladimir Bezrukov Inna Kashezheva Viktor Kosykh Vladimir Kazantsev Valeri Broshin Vladimir Markovin Ruslana Korshunova Andrey Zhegalov Ivan Safronov Vyacheslav Baranov Marija Winogradowa Mikhail Mukasei MC Molodoy Larisa Bogoraz Nikolay Poklad Pavel Zhiburtovich Tikhon Rabotnov Valentin Berestov Wladimir Igorewitsch Jakowlew Ivan Lifanov Tatyana Velikanova Sergey Leshchina Rudolf Vyatkin Alexey Eisner Mikhail Korzhev Aleksey Pyanov Karen Ter-Martirosian Yury Volyntsev Vasily Aleksanyan Andrey Isayev Lev Naumov Konstantin Kabanov Aleksandr Mikhaylov Batyr Ovezov Moisey Markov Igor Stelnov Vera Stepanovna Nechayev Yevgeny Starostin Nina Iskrenko Valentina Istomina Mikhail Rusyayev Dmitri Bystrolyotov Anatoly Lensky Pavel Smeyan Gennadij Andreevič Košelenko Oleg Rapov Vladimir Astapovsky Nikolay Sirota Tamara Sovchi Roza Makagonova Alexei Khomich Edkhyam Tenishev Zhanna Prokhorenko Nikolay Vereshchenko Allan Dwan Harry Fox William T. Perkins, Jr. Dick Foran Charles Lamont Penny Singleton Ritchie Valens Clarence Nash Anita Garvin Henry Corden Bert Glennon Bob May William Bendix Frank Faylen Artie Ortego Bill Quinn Jane Wyatt Eddie Quillan Ken Lynch Jay Novello Gloria Talbott Jerry Colonna Estelita Rodriguez Henry O'Neill Fred Niblo, Jr. Michael Whalen Peggy Knudsen Lee Moran Lee De Forest Michele Avila Dorothea Kent Candy Candido George Gobel Walter Brennan Richard Loo Winnie Lightner Larry J. Blake Teddy Sampson Scotty Beckett Frank Wilcox Rosemary LaPlanche Philip Abbott Ed Begley Bob Hope Olga San Juan Tommy Noonan Tom Dugan Dolores Hope Alice Joyce William Frawley Italia Coppola Bruce Yarnell Carmen Dragon George Burditt James Westerfield Chuck Connors Charles Beaumont Carmine Coppola Evelyn Brent Roy Del Ruth Jobyna Ralston Edmund Lowe Paul Picerni Betty Compson Michael Maltese Joseph Crehan Ray Heindorf Trinidad Silva Ted Fio Rito Edward Arnold Patrick H. O'Malley, Jr.
Ray Heindorf, Bob Hope and Valeri Broshin were burried at those organizations
Ray Heindorf Bob Hope Valeri Broshin
action filter_type
action find_reverse
entity prev_answer
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Khovanskoye Cemetery'] [{'concept': 'common name'}, 'place of burial', 'San Fernando Mission Cemetery']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . ?z property:place_of_burial ?u . VALUES ( ?u ) { ( resource:Khovanskoye_Cemetery ) ( resource:San_Fernando_Mission_Cemetery ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q713301 Q94081 Q1657908
P106
Q12737077
USER
Which occupations are the professions of Ray Heindorf, Bob Hope and Valeri Broshin ?
(Q713301,P106,c(Q12737077)) (Q94081,P106,c(Q12737077)) (Q1657908,P106,c(Q12737077))
action union
action filter_type
action find
entity Q713301
relation P106
type Q12737077
action filter_type
action find
entity Q94081
relation P106
type Q12737077
action filter_type
action find
entity Q1657908
relation P106
type Q12737077
['Q713301', 'P106', {'concept': 'Q12737077'}] ['Q94081', 'P106', {'concept': 'Q12737077'}] ['Q1657908', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { { resource:Q713301 property:P106 ?f . ?f rdf:type ontology:Q12737077 } UNION { resource:Q94081 property:P106 ?f . ?f rdf:type ontology:Q12737077 } }
Ray Heindorf Bob Hope Valeri Broshin
action union
action filter_type
action find
entity Ray Heindorf
relation occupation
type occupation
action filter_type
action find
entity Bob Hope
relation occupation
type occupation
action filter_type
action find
entity Valeri Broshin
relation occupation
type occupation
['Ray Heindorf', 'occupation', {'concept': 'occupation'}] ['Bob Hope', 'occupation', {'concept': 'occupation'}] ['Valeri Broshin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { { resource:Ray_Heindorf property:occupation ?f . ?f rdf:type ontology:occupation } UNION { resource:Bob_Hope property:occupation ?f . ?f rdf:type ontology:occupation } }
[]
occupation
Q10798782 Q36834 Q628099
SYSTEM
television actor, composer, association football manager
Q158852 Q486748 Q36834 Q753110 Q639669 Q177220 Q10798782 Q33999 Q36180 Q2722764 Q11338576 Q628099 Q937857
(Q713301,P106,c(Q12737077)) (Q94081,P106,c(Q12737077)) (Q1657908,P106,c(Q12737077))
action union
action filter_type
action find
entity Q713301
relation P106
type Q12737077
action filter_type
action find
entity Q94081
relation P106
type Q12737077
action filter_type
action find
entity Q1657908
relation P106
type Q12737077
And [ANSWERS] are the professions of Ray Heindorf, Bob Hope and Valeri Broshin
['Q713301', 'P106', {'concept': 'Q12737077'}] ['Q94081', 'P106', {'concept': 'Q12737077'}] ['Q1657908', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { { resource:Q713301 property:P106 ?f . ?f rdf:type ontology:Q12737077 } UNION { resource:Q94081 property:P106 ?f . ?f rdf:type ontology:Q12737077 } }
conductor pianist composer songwriter musician singer television actor actor writer radio personality boxer association football manager association football player
And television actor, composer and association football manager are the professions of Ray Heindorf, Bob Hope and Valeri Broshin
television actor composer association football manager
action union
action filter_type
action find
entity Ray Heindorf
relation occupation
type occupation
action filter_type
action find
entity Bob Hope
relation occupation
type occupation
action filter_type
action find
entity Valeri Broshin
relation occupation
type occupation
['Ray Heindorf', 'occupation', {'concept': 'occupation'}] ['Bob Hope', 'occupation', {'concept': 'occupation'}] ['Valeri Broshin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { { resource:Ray_Heindorf property:occupation ?f . ?f rdf:type ontology:occupation } UNION { resource:Bob_Hope property:occupation ?f . ?f rdf:type ontology:occupation } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q36834
P175
Q7725634
USER
Who performed that occupation ?
(c(Q7725634),P175,Q36834)
action filter_type
action find_reverse
entity Q36834
relation P175
type Q7725634
[{'concept': 'Q7725634'}, 'P175', 'Q36834']
SELECT DISTINCT ?f WHERE { ?f property:P175 resource:Q36834 . ?f rdf:type ontology:Q7725634 }
composer
action filter_type
action find_reverse
entity composer
relation performer
type literary work
[{'concept': 'literary work'}, 'performer', 'composer']
SELECT DISTINCT ?f WHERE { ?f property:performer resource:composer . ?f rdf:type ontology:literary_work }
[]
literary work
Clarification for simple ques.
Q10798782
SYSTEM
Did you mean television actor ?
Q10798782 Q36834 Q628099
(c(Q7725634),P175,Q10798782) (c(Q7725634),P175,Q36834) (c(Q7725634),P175,Q628099)
[ANSWER]
[{'concept': 'Q7725634'}, 'P175', 'Q10798782'] [{'concept': 'Q7725634'}, 'P175', 'Q36834'] [{'concept': 'Q7725634'}, 'P175', 'Q628099']
SELECT DISTINCT ?f WHERE { ?f property:P175 resource:Q36834 . ?f rdf:type ontology:Q7725634 }
television actor composer association football manager
Did you mean television actor ?
television actor
[{'concept': 'literary work'}, 'performer', 'television actor'] [{'concept': 'literary work'}, 'performer', 'composer'] [{'concept': 'literary work'}, 'performer', 'association football manager']
SELECT DISTINCT ?f WHERE { ?f property:performer resource:composer . ?f rdf:type ontology:literary_work }
[]
Simple Question (Coreferenced)
USER
No, I meant composer. Could you tell me the answer for that?
(c(Q7725634),P175,Q36834)
Q36834
[{'concept': 'Q7725634'}, 'P175', 'Q36834']
[{'concept': 'literary work'}, 'performer', 'composer']
[]
Q5907189
SYSTEM
Hosanna
Q5907189
(c(Q7725634),P175,Q36834)
action filter_type
action find_reverse
entity Q36834
relation P175
type Q7725634
[ANSWER] performed that occupation
[{'concept': 'Q7725634'}, 'P175', 'Q36834']
SELECT DISTINCT ?f WHERE { ?f property:P175 resource:Q36834 . ?f rdf:type ontology:Q7725634 }
Hosanna
Hosanna performed that occupation
Hosanna
action filter_type
action find_reverse
entity composer
relation performer
type literary work
[{'concept': 'literary work'}, 'performer', 'composer']
SELECT DISTINCT ?f WHERE { ?f property:performer resource:composer . ?f rdf:type ontology:literary_work }
[]