Simple Question (Direct)
Simple Question
Q5982668
P641
Q349
USER
What did Ian Rankin participate in ?
(Q5982668,P641,c(Q349))
action filter_type
action find
entity Q5982668
relation P641
type Q349
['Q5982668', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q5982668 property:P641 ?q . ?q rdf:type ontology:Q349 }
Ian Rankin
action filter_type
action find
entity Ian Rankin
relation sport
type sport
['Ian Rankin', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Ian_Rankin property:sport ?q . ?q rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5982668,P641,c(Q349))
action filter_type
action find
entity Q5982668
relation P641
type Q349
Ian Rankin participated in [ANSWER]
['Q5982668', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q5982668 property:P641 ?q . ?q rdf:type ontology:Q349 }
association football
Ian Rankin participated in association football
association football
action filter_type
action find
entity Ian Rankin
relation sport
type sport
['Ian Rankin', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Ian_Rankin property:sport ?q . ?q rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5982668
P21
Q290
USER
Which sex does that person belong to ?
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q5982668
relation P21
type Q290
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q290 . resource:Q5982668 property:P21 ?x }
Ian Rankin
action filter_type
action find
entity Ian Rankin
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:sex . resource:Ian_Rankin property:gender ?x }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q5982668
relation P21
type Q290
That person belongs to [ANSWER]
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q290 . resource:Q5982668 property:P21 ?x }
male
That person belongs to male
male
action filter_type
action find
entity Ian Rankin
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:sex . resource:Ian_Rankin property:gender ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5982668
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q5982668
relation P19
type Q56061
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q5982668 property:P19 ?g }
Ian Rankin
action filter_type
action find
entity Ian Rankin
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Ian_Rankin property:place_of_birth ?g }
[]
administrative territorial entity
Q680984
SYSTEM
Bellshill
Q680984
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q5982668
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q5982668 property:P19 ?g }
Bellshill
Bellshill is the place of birth of that person
Bellshill
action filter_type
action find
entity Ian Rankin
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Ian_Rankin property:place_of_birth ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5982668
P106
Q12737077
USER
Which occupation has that person as his/her 's career ?
(Q680984,P106,c(Q12737077))
action filter_type
action find
entity Q5982668
relation P106
type Q12737077
['Q680984', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q5982668 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Ian Rankin
action filter_type
action find
entity Ian Rankin
relation occupation
type occupation
['Bellshill', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Ian_Rankin property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q680984,P106,c(Q12737077))
action filter_type
action find
entity Q5982668
relation P106
type Q12737077
Player [ANSWER] has that person as his/her 's career
['Q680984', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q5982668 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
association football player
Player association football player has that person as his/her 's career
association football player
action filter_type
action find
entity Ian Rankin
relation occupation
type occupation
['Bellshill', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Ian_Rankin property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1441
Q15416 Q234460 Q502895
USER
Which people are featured in min number of television programs or texts ?
(c(Q502895),P1441,c(Q15416)|c(Q234460))
action argmin
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action find_tuple_counts
relation P1441
type Q502895
type Q234460
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15416'}, {'concept': 'Q234460'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?k ) { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?g ) WHERE { VALUES ( ?a ) { ( ontology:Q15416 ) ( ontology:Q234460 ) } . ?z rdf:type ?a } GROUP BY ?e } } . { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?w ) WHERE { ?d rdf:type ?h . VALUES ( ?h ) { ( ontology:Q15416 ) ( ontology:Q234460 ) } } GROUP BY ?b } . FILTER ( ?w = ?k ) }
action argmin
action union
action find_tuple_counts
relation present in work
type common name
type television program
action find_tuple_counts
relation present in work
type common name
type text
[{'concept': 'common name'}, 'present in work', [{'concept': 'television program'}, {'concept': 'text'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?k ) { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?g ) WHERE { VALUES ( ?a ) { ( ontology:television_program ) ( ontology:text ) } . ?z rdf:type ?a } GROUP BY ?e } } . { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?w ) WHERE { ?d rdf:type ?h . VALUES ( ?h ) { ( ontology:television_program ) ( ontology:text ) } } GROUP BY ?b } . FILTER ( ?w = ?k ) }
[]
television program text common name
Q17457 Q110436 Q270438
SYSTEM
Donald Knuth, Cory Doctorow, Charles of Valois
Q603233 Q660359 Q2447493 Q80048 Q529984 Q23885172 Q4430779 Q249381 Q232525 Q240258 Q24579400 Q7307192 Q131195 Q2426699 Q24624067 Q2574151 Q160116 Q785349 Q2052042 Q318912 Q3858588 Q4154984 Q4006447 Q363623 Q3343834 Q2451581 Q2046277 Q715713 Q24577230 Q494455 Q673959 Q185801 Q6239779 Q34428 Q2033697 Q24622402 Q20656752 Q311556 Q294192 Q19975705 Q560559 Q25885222 Q1867479 Q134646 Q879668 Q2170784 Q181538 Q24623408 Q8413 Q2600794 Q2282686 Q459606 Q437417 Q3778878 Q3774081 Q1348720 Q24624893 Q1396131 Q3591188 Q716237 Q2264125 Q608841 Q2124082 Q24625686 Q2137929 Q315276 Q3148218 Q24577318 Q515828 Q24625326 Q25858050 Q26858752 Q923021 Q24633210 Q715547 Q3745274 Q3867479 Q1446 Q1641601 Q19348839 Q2073479 Q2723049 Q1093885 Q1346246 Q2578955 Q3010053 Q1851709 Q164889 Q24625073 Q27621044 Q1380878 Q16879711 Q24623579 Q366070 Q1377025 Q2276030 Q270438 Q2711883 Q886399 Q1341779 Q326585 Q972487 Q313395 Q2304442 Q8581 Q2651263 Q24577238 Q209793 Q24632700 Q1808889 Q587893 Q24626363 Q2685920 Q256076 Q24633126 Q1091513 Q3658171 Q2601106 Q4804479 Q26721185 Q2292243 Q2448083 Q633681 Q24623790 Q2296791 Q200947 Q24083251 Q1947936 Q211396 Q25923184 Q2075711 Q312311 Q2361344 Q3275910 Q169329 Q2477603 Q110436 Q23906252 Q2519772 Q879088 Q302322 Q183089 Q7734 Q3761044 Q2168182 Q878882 Q76721 Q26858995 Q2487300 Q283466 Q9441 Q372783 Q16006746 Q17457 Q786748 Q24626010 Q26858919 Q2047062 Q1227361
(c(Q502895),P1441,c(Q15416)|c(Q234460))
action argmin
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action find_tuple_counts
relation P1441
type Q502895
type Q234460
[ANSWERS] are featured in min number of television programs or texts
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15416'}, {'concept': 'Q234460'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?k ) { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?g ) WHERE { VALUES ( ?a ) { ( ontology:Q15416 ) ( ontology:Q234460 ) } . ?z rdf:type ?a } GROUP BY ?e } } . { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?w ) WHERE { ?d rdf:type ?h . VALUES ( ?h ) { ( ontology:Q15416 ) ( ontology:Q234460 ) } } GROUP BY ?b } . FILTER ( ?w = ?k ) }
Julius Asclepiodotus Cecco Angiolieri Ferrex Al Capone Eric Anundsson Victor Petit Immanuel Markandeya Theodelinda Olof Björnsson Jebidiah Farnsworth Refil Constantius Chlorus Dyfnwal Moelmud Bea Hansen Sisillius III Alexander III Cangrande I della Scala Mempricius Eric the Victorious Mino da San Quirico Kai Darab Urianus Cassivellaunus Norman Winther Cordelia of Britain Parikshit Salvatore Maranzano Harriet Mutesi Orville Wright Leil Mikhail Kutuzov John Hooper Philip Sisillius I Frank Fauteux Bernard C. Webber Allectus Guy of Lusignan Daniel Webster Cluff Constans II James Harcourt Jago of Britain Boniface VIII Björn Ironside Anund Uppsale Rudolf Abel Eldon Hanan Constantine the Great Erik Björnsson Locrinus Ambrosius Aurelianus Cunobeline Guglielmo Borsiere Gracianus Municeps Guy de Montfort, Count of Nola Raymond Sybert Wilbur Wright Erik Refilsson Song Jiang Bladud Arvirargus Azzo VIII d'Este, Marquis of Ferrara Andy Fitzgerald Gurgustius Agilulf Ignacy Przybyszewski Sara Katende Tasciovanus Miriam Webber Helen Kingsleigh Sarah Katende Gorboduc George "Tiny" Myers Mandubracius Filippo Minutolo Musciatto Franzesi Caracalla Tattenai Salammbô Shaunaka Mayasura Hathi Johnny Ringo Porrex I Céleste de Chateaubriand Rud Hud Hudibras Manfred, King of Sicily Richard Livesey Davy Brown Vortimer Sage Animandaya Wallace Quirey George William Russell Bharata Archmail Charles of Valois Gurguit Barbtruc Maelgwn Gwynedd Kai Lohrasp Vortigern Buonamico Buffalmacco Authari Coel Hen Saladin Trahern Robert Katende Constantine III John Stello Kimarcus Sisillius II Mel Gouthro Bledudo Cunedagius Donald Bangs Son of Gorbonianus Phiona Mutesi Rukmi Ash Vasudevan Lena Gogan Rivallo Brutus Greenshield Björn Eriksson D.A. Brown Molly Bloom Ahmad ibn Fadlan Stan the Man Beldgabred Magnus Maximus Elizabeth Ham Andragius Peter III of Aragon Durvasa Anne Françoise Elisabeth Lange Conrad of Montferrat Vaisampayana Cory Doctorow Caf' Francisco Sawyl Penuchel Björn at Haugi Calandrino Publius Septimius Geta Joshua Geri Spini Ebraucus Togodumnus Godfrey of Bouillon Aloysius Kyazze Cunedda Roger of Lauria Gautama Buddha Adrian Cronauer James B. Donovan Donald Knuth Pedro González de Mendoza Ervin Maske Hope Katende Marius of Britain John of Procida
Donald Knuth, Cory Doctorow and Charles of Valois are featured in min number of television programs or texts
Donald Knuth Cory Doctorow Charles of Valois
action argmin
action union
action find_tuple_counts
relation present in work
type common name
type television program
action find_tuple_counts
relation present in work
type common name
type text
[{'concept': 'common name'}, 'present in work', [{'concept': 'television program'}, {'concept': 'text'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?k ) { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?g ) WHERE { VALUES ( ?a ) { ( ontology:television_program ) ( ontology:text ) } . ?z rdf:type ?a } GROUP BY ?e } } . { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?w ) WHERE { ?d rdf:type ?h . VALUES ( ?h ) { ( ontology:television_program ) ( ontology:text ) } } GROUP BY ?b } . FILTER ( ?w = ?k ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q17457 Q110436 Q270438
P21
Q290
USER
Which sexes do those people possess ?
(Q17457,P21,c(Q290)) (Q110436,P21,c(Q290)) (Q270438,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q17457', 'P21', {'concept': 'Q290'}] ['Q110436', 'P21', {'concept': 'Q290'}] ['Q270438', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?m ) { ( resource:Q603233 ) ( resource:Q660359 ) ( resource:Q2447493 ) } . ?m property:P21 ?i . ?i rdf:type ontology:Q290 }
Donald Knuth Cory Doctorow Charles of Valois
action filter_type
action find
entity prev_answer
relation gender
type sex
['Donald Knuth', 'gender', {'concept': 'sex'}] ['Cory Doctorow', 'gender', {'concept': 'sex'}] ['Charles of Valois', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?m ) { ( resource:Julius_Asclepiodotus ) ( resource:Cecco_Angiolieri ) ( resource:Ferrex ) } . ?m property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097 Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097 Q6581097
(Q17457,P21,c(Q290)) (Q110436,P21,c(Q290)) (Q270438,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people possess a [ANSWER], [ANSWER] and [ANSWER]
['Q17457', 'P21', {'concept': 'Q290'}] ['Q110436', 'P21', {'concept': 'Q290'}] ['Q270438', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?m ) { ( resource:Q603233 ) ( resource:Q660359 ) ( resource:Q2447493 ) } . ?m property:P21 ?i . ?i rdf:type ontology:Q290 }
male male male
Those people possess a male, male and male
male male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Donald Knuth', 'gender', {'concept': 'sex'}] ['Cory Doctorow', 'gender', {'concept': 'sex'}] ['Charles of Valois', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?m ) { ( resource:Julius_Asclepiodotus ) ( resource:Cecco_Angiolieri ) ( resource:Ferrex ) } . ?m property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q270438
P119
Q16970
USER
Which church is the place of burial of Charles of Valois ?
(Q270438,P119,c(Q16970))
action filter_type
action find
entity Q270438
relation P119
type Q16970
['Q270438', 'P119', {'concept': 'Q16970'}]
SELECT DISTINCT ?l WHERE { resource:Q270438 property:P119 ?l . ?l rdf:type ontology:Q16970 }
Charles of Valois
action filter_type
action find
entity Charles of Valois
relation place of burial
type church
['Charles of Valois', 'place of burial', {'concept': 'church'}]
SELECT DISTINCT ?l WHERE { resource:Charles_of_Valois property:place_of_burial ?l . ?l rdf:type ontology:church }
[]
church
Q184407
SYSTEM
Saint Denis Basilica
Q184407
(Q270438,P119,c(Q16970))
action filter_type
action find
entity Q270438
relation P119
type Q16970
[ANSWER] is the place of burial of Charles of Valois
['Q270438', 'P119', {'concept': 'Q16970'}]
SELECT DISTINCT ?l WHERE { resource:Q270438 property:P119 ?l . ?l rdf:type ontology:Q16970 }
Saint Denis Basilica
Saint Denis Basilica is the place of burial of Charles of Valois
Saint Denis Basilica
action filter_type
action find
entity Charles of Valois
relation place of burial
type church
['Charles of Valois', 'place of burial', {'concept': 'church'}]
SELECT DISTINCT ?l WHERE { resource:Charles_of_Valois property:place_of_burial ?l . ?l rdf:type ontology:church }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q152549
Q16970
USER
And how about Marie Thérèse of Austria?
(Q152549,P119,c(Q16970))
action filter_type
action find
entity Q152549
relation P119
type Q16970
['Q152549', 'P119', {'concept': 'Q16970'}]
SELECT DISTINCT ?t WHERE { resource:Q152549 property:P119 ?t . ?t rdf:type ontology:Q16970 }
Marie Thérèse of Austria
action filter_type
action find
entity Marie Thérèse of Austria
relation place of burial
type church
['Marie Thérèse of Austria', 'place of burial', {'concept': 'church'}]
SELECT DISTINCT ?t WHERE { resource:Marie_Thérèse_of_Austria property:place_of_burial ?t . ?t rdf:type ontology:church }
[]
church
Q184407
SYSTEM
Saint Denis Basilica
Q184407
(Q152549,P119,c(Q16970))
action filter_type
action find
entity Q152549
relation P119
type Q16970
[ANSWER]
['Q152549', 'P119', {'concept': 'Q16970'}]
SELECT DISTINCT ?t WHERE { resource:Q152549 property:P119 ?t . ?t rdf:type ontology:Q16970 }
Saint Denis Basilica
Saint Denis Basilica
action filter_type
action find
entity Marie Thérèse of Austria
relation place of burial
type church
['Marie Thérèse of Austria', 'place of burial', {'concept': 'church'}]
SELECT DISTINCT ?t WHERE { resource:Marie_Thérèse_of_Austria property:place_of_burial ?t . ?t rdf:type ontology:church }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q270438
P22
Q502895
USER
How many people have Charles of Valois as a father ?
(c(Q502895),P22,Q270438)
action count
action filter_type
action find_reverse
entity Q270438
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q270438']
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:P22 resource:Q270438 . ?t rdf:type ontology:Q502895 }
Charles of Valois
action count
action filter_type
action find_reverse
entity Charles of Valois
relation father
type common name
[{'concept': 'common name'}, 'father', 'Charles of Valois']
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:father resource:Charles_of_Valois . ?t rdf:type ontology:common_name }
[]
common name
SYSTEM
11
Q1384129 Q2363495 Q3263567 Q237501 Q260269 Q768737 Q1034017 Q772606 Q916305 Q3087225 Q170586
(c(Q502895),P22,Q270438)
action count
action filter_type
action find_reverse
entity Q270438
relation P22
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q270438']
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:P22 resource:Q270438 . ?t rdf:type ontology:Q502895 }
Charles II, Count of Alençon Isabella of Valois, Duchess of Bourbon Lluís de Valois Blanche of Valois Catherine of Valois Marie of Valois, Duchess of Calabria Margaret of Valois, Countess of Blois Isabelle of Valois, Duchess of Brittany Joan of Valois, Countess of Hainaut Joan of Valois, Countess of Beaumont Philip VI of France
11
action count
action filter_type
action find_reverse
entity Charles of Valois
relation father
type common name
[{'concept': 'common name'}, 'father', 'Charles of Valois']
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:father resource:Charles_of_Valois . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q270438
P22
Q502895
USER
Who was the dad of that one ?
action filter_type
action find
entity Q270438
relation P22
type Q502895
SELECT DISTINCT ?f WHERE { resource:Q270438 property:P22 ?f . ?f rdf:type ontology:Q502895 }
Charles of Valois
action filter_type
action find
entity Charles of Valois
relation father
type common name
SELECT DISTINCT ?f WHERE { resource:Charles_of_Valois property:father ?f . ?f rdf:type ontology:common_name }
[]
common name
Q172203
SYSTEM
Philip III of France
Q172203
action filter_type
action find
entity Q270438
relation P22
type Q502895
The dad of that one was King [ANSWER]
SELECT DISTINCT ?f WHERE { resource:Q270438 property:P22 ?f . ?f rdf:type ontology:Q502895 }
Philip III of France
The dad of that one was King Philip III of France
Philip III of France
action filter_type
action find
entity Charles of Valois
relation father
type common name
SELECT DISTINCT ?f WHERE { resource:Charles_of_Valois property:father ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172203
P1196
Q1931388
USER
What situation did that person die in ?
(Q172203,P1196,c(Q1931388))
action filter_type
action find
entity Q172203
relation P1196
type Q1931388
['Q172203', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?b WHERE { resource:Q172203 property:P1196 ?b . ?b rdf:type ontology:Q1931388 }
Philip III of France
action filter_type
action find
entity Philip III of France
relation manner of death
type cause of death
['Philip III of France', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?b WHERE { resource:Philip_III_of_France property:manner_of_death ?b . ?b rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q172203,P1196,c(Q1931388))
action filter_type
action find
entity Q172203
relation P1196
type Q1931388
That person died in [ANSWER]
['Q172203', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?b WHERE { resource:Q172203 property:P1196 ?b . ?b rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Philip III of France
relation manner of death
type cause of death
['Philip III of France', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?b WHERE { resource:Philip_III_of_France property:manner_of_death ?b . ?b rdf:type ontology:cause_of_death }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q5485276 Q172203
P1196
Q1931388
USER
And also Frank Bender
AND((Q172203,P1196,c(Q1931388)), (Q5485276,P1196,c(Q1931388)))
action filter_type
action intersection
action find
entity Q172203
relation P1196
action find
entity Q5485276
relation P1196
type Q1931388
{'AND': [['Q172203', 'P1196', {'concept': 'Q1931388'}], ['Q5485276', 'P1196', {'concept': 'Q1931388'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1931388 . resource:Q172203 property:P1196 ?b . resource:Q5485276 property:P1196 ?b }
Frank Bender Philip III of France
action filter_type
action intersection
action find
entity Philip III of France
relation manner of death
action find
entity Frank Bender
relation manner of death
type cause of death
{'AND': [['Philip III of France', 'manner of death', {'concept': 'cause of death'}], ['Frank Bender', 'manner of death', {'concept': 'cause of death'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:cause_of_death . resource:Philip_III_of_France property:manner_of_death ?b . resource:Frank_Bender property:manner_of_death ?b }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
AND((Q172203,P1196,c(Q1931388)), (Q5485276,P1196,c(Q1931388)))
action filter_type
action intersection
action find
entity Q172203
relation P1196
action find
entity Q5485276
relation P1196
type Q1931388
[ANSWER]
{'AND': [['Q172203', 'P1196', {'concept': 'Q1931388'}], ['Q5485276', 'P1196', {'concept': 'Q1931388'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1931388 . resource:Q172203 property:P1196 ?b . resource:Q5485276 property:P1196 ?b }
natural causes
natural causes
action filter_type
action intersection
action find
entity Philip III of France
relation manner of death
action find
entity Frank Bender
relation manner of death
type cause of death
{'AND': [['Philip III of France', 'manner of death', {'concept': 'cause of death'}], ['Frank Bender', 'manner of death', {'concept': 'cause of death'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:cause_of_death . resource:Philip_III_of_France property:manner_of_death ?b . resource:Frank_Bender property:manner_of_death ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5485276
P509
Q2057971
USER
What lead to the death of Frank Bender?
(Q3739104,P509,c(Q2057971))
action filter_type
action find
entity Q5485276
relation P509
type Q2057971
['Q3739104', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q2057971 . resource:Q5485276 property:P509 ?c }
Frank Bender
action filter_type
action find
entity Frank Bender
relation cause of death
type health problem
['natural causes', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:health_problem . resource:Frank_Bender property:cause_of_death ?c }
[]
health problem
Q1077603
SYSTEM
malignant mesothelioma
Q1077603
(Q3739104,P509,c(Q2057971))
action filter_type
action find
entity Q5485276
relation P509
type Q2057971
[ANSWER] lead to the death of Frank Bender
['Q3739104', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q2057971 . resource:Q5485276 property:P509 ?c }
malignant mesothelioma
Malignant mesothelioma lead to the death of Frank Bender
malignant mesothelioma
action filter_type
action find
entity Frank Bender
relation cause of death
type health problem
['natural causes', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:health_problem . resource:Frank_Bender property:cause_of_death ?c }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P780
Q2057971 Q12136 Q2057971
USER
How many health problems does presence of approximately the same number of health problems or diseases indicate as that health problem ?
(c(Q2057971),P780,c(Q2057971)|c(Q12136))
action count
action approx
action union
action find_tuple_counts
relation P780
type Q2057971
type Q2057971
action find_tuple_counts
relation P780
type Q2057971
type Q12136
action count
action filter_multi_types
action find
entity Q1077603
relation P780
type Q2057971
type Q12136
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q2057971'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { resource:Q1077603 property:P780 ?e . { { ?e rdf:type ontology:Q2057971 } UNION { ?e rdf:type ontology:Q12136 } } } } . FILTER ( ?j = ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) ?t WHERE { { ?t property:P780 ?n . ?t rdf:type ontology:Q2057971 . ?n rdf:type ontology:Q2057971 } UNION { ?t property:P780 ?n . ?n rdf:type ontology:Q12136 . ?t rdf:type ontology:Q2057971 } } GROUP BY ?t } }
action count
action approx
action union
action find_tuple_counts
relation symptoms
type health problem
type health problem
action find_tuple_counts
relation symptoms
type health problem
type disease
action count
action filter_multi_types
action find
entity malignant mesothelioma
relation symptoms
type health problem
type disease
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'health problem'}, {'concept': 'disease'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { resource:malignant_mesothelioma property:symptoms ?e . { { ?e rdf:type ontology:health_problem } UNION { ?e rdf:type ontology:disease } } } } . FILTER ( ?j = ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) ?t WHERE { { ?t property:symptoms ?n . ?t rdf:type ontology:health_problem . ?n rdf:type ontology:health_problem } UNION { ?t property:symptoms ?n . ?n rdf:type ontology:disease . ?t rdf:type ontology:health_problem } } GROUP BY ?t } }
[]
health problem disease health problem
SYSTEM
41
Q4813631 Q154869 Q19000456 Q7080278 Q2070695 Q836356 Q721073 Q623031 Q3843800 Q6853 Q191779 Q18553762 Q205214 Q5526844 Q12252367 Q1432717 Q18556319 Q3298999 Q180266 Q6668132 Q124604 Q799615 Q18557231 Q145790 Q2845978 Q221668 Q281928 Q4676384 Q506433 Q959457 Q332293 Q1117652 Q1077139 Q4865826 Q5032577 Q17089792 Q265936 Q18555385 Q2106232 Q664174 Q14509067
(c(Q2057971),P780,c(Q2057971)|c(Q12136))
action count
action approx
action union
action find_tuple_counts
relation P780
type Q2057971
type Q2057971
action find_tuple_counts
relation P780
type Q2057971
type Q12136
action count
action filter_multi_types
action find
entity Q1077603
relation P780
type Q2057971
type Q12136
[ANSWER]
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q2057971'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { resource:Q1077603 property:P780 ?e . { { ?e rdf:type ontology:Q2057971 } UNION { ?e rdf:type ontology:Q12136 } } } } . FILTER ( ?j = ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) ?t WHERE { { ?t property:P780 ?n . ?t rdf:type ontology:Q2057971 . ?n rdf:type ontology:Q2057971 } UNION { ?t property:P780 ?n . ?n rdf:type ontology:Q12136 . ?t rdf:type ontology:Q2057971 } } GROUP BY ?t } }
dyskinetic cerebral palsy hepatitis C syphilitic alopecia Oguchi disease macrocytic anemia croup delusional disorder liver cancer chronic congestive splenomegaly hepatitis B Gilles de la Tourette syndrome migraine with aura Guillain–Barré syndrome Gastrojejunocolic fistula atherosclerosis Catatonic schizophrenia sea-blue histiocyte syndrome microcytic anemia scarlet fever Loin pain hematuria syndrome portal hypertension osteitis fibrosa hypersplenism iridocyclitis stereotypic movement disorder acute cystitis social phobia Acroosteolysis Trimethylaminuria inappropriate ADH syndrome carpal tunnel syndrome Thygeson's superficial punctate keratopathy tic disorder Bart-Pumphrey syndrome Cannabinoid hyperemesis syndrome Psoriatic erythroderma Kawasaki disease xanthomatosis Postanesthetic shivering asbestosis exanthem
41
action count
action approx
action union
action find_tuple_counts
relation symptoms
type health problem
type health problem
action find_tuple_counts
relation symptoms
type health problem
type disease
action count
action filter_multi_types
action find
entity malignant mesothelioma
relation symptoms
type health problem
type disease
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'health problem'}, {'concept': 'disease'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { resource:malignant_mesothelioma property:symptoms ?e . { { ?e rdf:type ontology:health_problem } UNION { ?e rdf:type ontology:disease } } } } . FILTER ( ?j = ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) ?t WHERE { { ?t property:symptoms ?n . ?t rdf:type ontology:health_problem . ?n rdf:type ontology:health_problem } UNION { ?t property:symptoms ?n . ?n rdf:type ontology:disease . ?t rdf:type ontology:health_problem } } GROUP BY ?t } }
[]