Simple Question (Direct)
Simple Question
Q85822
P21
Q290
USER
Which sex does Emil Baehrens have ?
(Q85822,P21,c(Q290))
action filter_type
action find
entity Q85822
relation P21
type Q290
['Q85822', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q290 . resource:Q85822 property:P21 ?f }
Emil Baehrens
action filter_type
action find
entity Emil Baehrens
relation gender
type sex
['Emil Baehrens', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sex . resource:Emil_Baehrens property:gender ?f }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q85822,P21,c(Q290))
action filter_type
action find
entity Q85822
relation P21
type Q290
Emil Baehrens has a [ANSWER]
['Q85822', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q290 . resource:Q85822 property:P21 ?f }
male
Emil Baehrens has a male
male
action filter_type
action find
entity Emil Baehrens
relation gender
type sex
['Emil Baehrens', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sex . resource:Emil_Baehrens property:gender ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q85822
P106
Q12737077
USER
What are the professions of Emil Baehrens ?
(Q85822,P106,c(Q12737077))
action filter_type
action find
entity Q85822
relation P106
type Q12737077
['Q85822', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q85822 property:P106 ?v }
Emil Baehrens
action filter_type
action find
entity Emil Baehrens
relation occupation
type occupation
['Emil Baehrens', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Emil_Baehrens property:occupation ?v }
[]
occupation
Q16267607 Q1622272
SYSTEM
classical philologist, university teacher
Q16267607 Q1622272
(Q85822,P106,c(Q12737077))
action filter_type
action find
entity Q85822
relation P106
type Q12737077
The professions of Emil Baehrens are a [ANSWERS]
['Q85822', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q85822 property:P106 ?v }
classical philologist university teacher
The professions of Emil Baehrens are a classical philologist and university teacher
classical philologist university teacher
action filter_type
action find
entity Emil Baehrens
relation occupation
type occupation
['Emil Baehrens', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Emil_Baehrens property:occupation ?v }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16267607
P921
Q1047113
USER
Which special field is that occupation a main subject of ?
(c(Q1047113),P921,Q16267607)
action filter_type
action find_reverse
entity Q16267607
relation P921
type Q1047113
[{'concept': 'Q1047113'}, 'P921', 'Q16267607']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1047113 . ?t property:P921 resource:Q16267607 }
classical philologist
action filter_type
action find_reverse
entity classical philologist
relation main subject
type special field
[{'concept': 'special field'}, 'main subject', 'classical philologist']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:special_field . ?t property:main_subject resource:classical_philologist }
[]
special field
Clarification for simple ques.
Q1622272
SYSTEM
Did you mean university teacher ?
Q16267607 Q1622272
(c(Q1047113),P921,Q16267607) (c(Q1047113),P921,Q1622272)
[ANSWER]
[{'concept': 'Q1047113'}, 'P921', 'Q16267607'] [{'concept': 'Q1047113'}, 'P921', 'Q1622272']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1047113 . ?t property:P921 resource:Q16267607 }
classical philologist university teacher
Did you mean university teacher ?
university teacher
[{'concept': 'special field'}, 'main subject', 'classical philologist'] [{'concept': 'special field'}, 'main subject', 'university teacher']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:special_field . ?t property:main_subject resource:classical_philologist }
[]
Simple Question (Coreferenced)
USER
No, I meant classical philologist. Could you tell me the answer for that?
(c(Q1047113),P921,Q16267607)
Q16267607
[{'concept': 'Q1047113'}, 'P921', 'Q16267607']
[{'concept': 'special field'}, 'main subject', 'classical philologist']
[]
Q1533284
SYSTEM
Gnomon
Q1533284
(c(Q1047113),P921,Q16267607)
action filter_type
action find_reverse
entity Q16267607
relation P921
type Q1047113
[ANSWER] is that occupation a main subject of
[{'concept': 'Q1047113'}, 'P921', 'Q16267607']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1047113 . ?t property:P921 resource:Q16267607 }
Gnomon
Gnomon is that occupation a main subject of
Gnomon
action filter_type
action find_reverse
entity classical philologist
relation main subject
type special field
[{'concept': 'special field'}, 'main subject', 'classical philologist']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:special_field . ?t property:main_subject resource:classical_philologist }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1533284 Q3125314 Q1860
P364
Q34770
USER
Was that special field done in Upper Navarrese dialect and English language during its inception ?
(Q1533284,P364,Q3125314) (Q1533284,P364,Q1860)
action is_in
entity Q1533284
action intersection
action find_reverse
entity Q3125314
relation P364
action find_reverse
entity Q1860
relation P364
['Q1533284', 'P364', 'Q3125314'] ['Q1533284', 'P364', 'Q1860']
ASK WHERE { resource:Q1533284 property:P364 resource:Q1860 . resource:Q1533284 property:P364 resource:Q3125314 }
Gnomon Upper Navarrese dialect English
action is_in
entity Gnomon
action intersection
action find_reverse
entity Upper Navarrese dialect
relation original language of work
action find_reverse
entity English
relation original language of work
['Gnomon', 'original language of work', 'Upper Navarrese dialect'] ['Gnomon', 'original language of work', 'English']
ASK WHERE { resource:Gnomon property:original_language_of_work resource:English . resource:Gnomon property:original_language_of_work resource:Upper_Navarrese_dialect }
[]
language
SYSTEM
NO and YES respectively
(Q1533284,P364,Q3125314) (Q1533284,P364,Q1860)
action is_in
entity Q1533284
action intersection
action find_reverse
entity Q3125314
relation P364
action find_reverse
entity Q1860
relation P364
[ANSWER]
['Q1533284', 'P364', 'Q3125314'] ['Q1533284', 'P364', 'Q1860']
ASK WHERE { resource:Q1533284 property:P364 resource:Q1860 . resource:Q1533284 property:P364 resource:Q3125314 }
NO and YES respectively
action is_in
entity Gnomon
action intersection
action find_reverse
entity Upper Navarrese dialect
relation original language of work
action find_reverse
entity English
relation original language of work
['Gnomon', 'original language of work', 'Upper Navarrese dialect'] ['Gnomon', 'original language of work', 'English']
ASK WHERE { resource:Gnomon property:original_language_of_work resource:English . resource:Gnomon property:original_language_of_work resource:Upper_Navarrese_dialect }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1533284
P291
Q56061
USER
Where was Gnomon issued ?
(Q1533284,P291,c(Q56061))
action filter_type
action find
entity Q1533284
relation P291
type Q56061
['Q1533284', 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q1533284 property:P291 ?b . ?b rdf:type ontology:Q56061 }
Gnomon
action filter_type
action find
entity Gnomon
relation place of publication
type administrative territorial entity
['Gnomon', 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Gnomon property:place_of_publication ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726
SYSTEM
Munich
Q1726
(Q1533284,P291,c(Q56061))
action filter_type
action find
entity Q1533284
relation P291
type Q56061
Gnomon was issued in [ANSWER]
['Q1533284', 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q1533284 property:P291 ?b . ?b rdf:type ontology:Q56061 }
Munich
Gnomon was issued in Munich
Munich
action filter_type
action find
entity Gnomon
relation place of publication
type administrative territorial entity
['Gnomon', 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Gnomon property:place_of_publication ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1726 Q322909
P20
Q502895
USER
Did Konrad Knoll die in that administrative territory ?
(Q322909,P20,Q1726)
action is_in
entity Q1726
action find
entity Q322909
relation P20
['Q322909', 'P20', 'Q1726']
ASK WHERE { resource:Q322909 property:P20 resource:Q1726 }
Munich Konrad Knoll
action is_in
entity Munich
action find
entity Konrad Knoll
relation place of death
['Konrad Knoll', 'place of death', 'Munich']
ASK WHERE { resource:Konrad_Knoll property:place_of_death resource:Munich }
[]
common name
SYSTEM
YES
(Q322909,P20,Q1726)
action is_in
entity Q1726
action find
entity Q322909
relation P20
[ANSWER]
['Q322909', 'P20', 'Q1726']
ASK WHERE { resource:Q322909 property:P20 resource:Q1726 }
Yes
action is_in
entity Munich
action find
entity Konrad Knoll
relation place of death
['Konrad Knoll', 'place of death', 'Munich']
ASK WHERE { resource:Konrad_Knoll property:place_of_death resource:Munich }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1189105 Q322909
P27
Q1048835
USER
Which political territories are Konrad Knoll or Jonathan Cherry a civilian of ?
OR((Q322909,P27,c(Q1048835)), (Q1189105,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q322909
relation P27
action find
entity Q1189105
relation P27
type Q1048835
{'OR': [['Q322909', 'P27', {'concept': 'Q1048835'}], ['Q1189105', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1189105 property:P27 ?z } UNION { resource:Q322909 property:P27 ?z } } . ?z rdf:type ontology:Q1048835 }
Jonathan Cherry Konrad Knoll
action filter_type
action union
action find
entity Konrad Knoll
relation country of citizenship
action find
entity Jonathan Cherry
relation country of citizenship
type political territorial entity
{'OR': [['Konrad Knoll', 'country of citizenship', {'concept': 'political territorial entity'}], ['Jonathan Cherry', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Jonathan_Cherry property:country_of_citizenship ?z } UNION { resource:Konrad_Knoll property:country_of_citizenship ?z } } . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q183
SYSTEM
Canada, Germany
Q16 Q183
OR((Q322909,P27,c(Q1048835)), (Q1189105,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q322909
relation P27
action find
entity Q1189105
relation P27
type Q1048835
[ANSWERS] are Konrad Knoll or Jonathan Cherry a civilian of
{'OR': [['Q322909', 'P27', {'concept': 'Q1048835'}], ['Q1189105', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1189105 property:P27 ?z } UNION { resource:Q322909 property:P27 ?z } } . ?z rdf:type ontology:Q1048835 }
Canada Germany
Canada and Germany are Konrad Knoll or Jonathan Cherry a civilian of
Canada Germany
action filter_type
action union
action find
entity Konrad Knoll
relation country of citizenship
action find
entity Jonathan Cherry
relation country of citizenship
type political territorial entity
{'OR': [['Konrad Knoll', 'country of citizenship', {'concept': 'political territorial entity'}], ['Jonathan Cherry', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Jonathan_Cherry property:country_of_citizenship ?z } UNION { resource:Konrad_Knoll property:country_of_citizenship ?z } } . ?z rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q4154984
P1441
Q234460 Q15416 Q502895
USER
How many people appear in around the same number of texts and television programs as Kai Darab ?
(c(Q502895),P1441,c(Q234460)|c(Q15416))
action count
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action count
action filter_multi_types
action find
entity Q4154984
relation P1441
type Q234460
type Q15416
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?q WHERE { { ?q property:P1441 ?x . ?q rdf:type ontology:Q502895 . ?x rdf:type ontology:Q234460 } UNION { ?q property:P1441 ?x . ?x rdf:type ontology:Q15416 . ?q rdf:type ontology:Q502895 } } GROUP BY ?q } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q4154984 property:P1441 ?z . { ?z rdf:type ?j . VALUES ( ?j ) { ( ontology:Q234460 ) ( ontology:Q15416 ) } } } } }
Kai Darab
action count
action approx
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television program
action count
action filter_multi_types
action find
entity Kai Darab
relation present in work
type text
type television program
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television program'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?q WHERE { { ?q property:present_in_work ?x . ?q rdf:type ontology:common_name . ?x rdf:type ontology:text } UNION { ?q property:present_in_work ?x . ?x rdf:type ontology:television_program . ?q rdf:type ontology:common_name } } GROUP BY ?q } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Kai_Darab property:present_in_work ?z . { ?z rdf:type ?j . VALUES ( ?j ) { ( ontology:text ) ( ontology:television_program ) } } } } }
[]
text television program common name
SYSTEM
159
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(Q234460)|c(Q15416))
action count
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action count
action filter_multi_types
action find
entity Q4154984
relation P1441
type Q234460
type Q15416
[ANSWER]
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?q WHERE { { ?q property:P1441 ?x . ?q rdf:type ontology:Q502895 . ?x rdf:type ontology:Q234460 } UNION { ?q property:P1441 ?x . ?x rdf:type ontology:Q15416 . ?q rdf:type ontology:Q502895 } } GROUP BY ?q } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q4154984 property:P1441 ?z . { ?z rdf:type ?j . VALUES ( ?j ) { ( ontology:Q234460 ) ( ontology:Q15416 ) } } } } }
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
159
action count
action approx
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television program
action count
action filter_multi_types
action find
entity Kai Darab
relation present in work
type text
type television program
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television program'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?q WHERE { { ?q property:present_in_work ?x . ?q rdf:type ontology:common_name . ?x rdf:type ontology:text } UNION { ?q property:present_in_work ?x . ?x rdf:type ontology:television_program . ?q rdf:type ontology:common_name } } GROUP BY ?q } . FILTER ( ?s = ?k ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Kai_Darab property:present_in_work ?z . { ?z rdf:type ?j . VALUES ( ?j ) { ( ontology:text ) ( ontology:television_program ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q3785031
P1441
Q234460 Q15416 Q502895
USER
And how about Heoroweard?
(c(Q502895),P1441,c(Q234460)|c(Q15416))
action count
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action count
action filter_multi_types
action find
entity Q3785031
relation P1441
type Q234460
type Q15416
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?f WHERE { { ?f property:P1441 ?u . ?u rdf:type ontology:Q234460 . ?f rdf:type ontology:Q502895 } UNION { ?f rdf:type ontology:Q502895 . ?u rdf:type ontology:Q15416 . ?f property:P1441 ?u } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { { ?n rdf:type ontology:Q234460 } UNION { ?n rdf:type ontology:Q15416 } } . resource:Q3785031 property:P1441 ?n } } . FILTER ( ?a = ?c ) }
Heoroweard
action count
action approx
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television program
action count
action filter_multi_types
action find
entity Heoroweard
relation present in work
type text
type television program
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television program'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?f WHERE { { ?f property:present_in_work ?u . ?u rdf:type ontology:text . ?f rdf:type ontology:common_name } UNION { ?f rdf:type ontology:common_name . ?u rdf:type ontology:television_program . ?f property:present_in_work ?u } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { { ?n rdf:type ontology:text } UNION { ?n rdf:type ontology:television_program } } . resource:Heoroweard property:present_in_work ?n } } . FILTER ( ?a = ?c ) }
[]
text television program common name
SYSTEM
125
Q41863 Q1143157 Q1341397 Q194064 Q466687 Q321469 Q18699270 Q319116 Q18699272 Q12591 Q213633 Q221514 Q30914 Q937827 Q4057937 Q214648 Q18699312 Q211663 Q176125 Q8423 Q1938388 Q2040793 Q125102 Q954820 Q244912 Q313216 Q313214 Q645796 Q361636 Q205523 Q1281177 Q807236 Q2256348 Q1686571 Q1675214 Q188794 Q844433 Q28730 Q200902 Q3798672 Q126689 Q145746 Q463934 Q721295 Q1403627 Q1133523 Q1133337 Q200637 Q3259530 Q3187975 Q2116944 Q3783913 Q946939 Q888890 Q1771358 Q272277 Q460763 Q205372 Q717814 Q830183 Q6577515 Q63070 Q7493584 Q1300996 Q851686 Q1333225 Q40662 Q206238 Q400294 Q922184 Q156328 Q3785031 Q1768161 Q6323112 Q171724 Q550255 Q889694 Q8027483 Q816397 Q2038223 Q264699 Q313415 Q360378 Q363660 Q665541 Q1516550 Q840401 Q37085 Q109920 Q536019 Q213850 Q74891 Q45090 Q336832 Q1941782 Q1542853 Q184273 Q107626 Q205365 Q477527 Q18699310 Q62788 Q313421 Q313423 Q362021 Q262766 Q225198 Q313228 Q536485 Q273517 Q3752551 Q671872 Q16845969 Q192785 Q308320 Q1030008 Q319049 Q18699300 Q18699268 Q229702 Q574641 Q2590260 Q599907 Q282220 Q313237
(c(Q502895),P1441,c(Q234460)|c(Q15416))
action count
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action count
action filter_multi_types
action find
entity Q3785031
relation P1441
type Q234460
type Q15416
[ANSWER]
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?f WHERE { { ?f property:P1441 ?u . ?u rdf:type ontology:Q234460 . ?f rdf:type ontology:Q502895 } UNION { ?f rdf:type ontology:Q502895 . ?u rdf:type ontology:Q15416 . ?f property:P1441 ?u } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { { ?n rdf:type ontology:Q234460 } UNION { ?n rdf:type ontology:Q15416 } } . resource:Q3785031 property:P1441 ?n } } . FILTER ( ?a = ?c ) }
Halga Jair Michal Ezekiel Damaris Abishag Achim Nathan Eliud Nebuchadnezzar II Deborah Manoah Ahaz Delilah Adoniram Samson Jacob Rehoboam Gideon Cyrus the Great Miriam Reu Necho II Yael Hezekiah Uzziah Ahaziah of Judah Ibzan Amnon Zipporah Beowulf Barak Shealtiel Jehu Ithamar Isaiah Kenan Saul Shem Ingeld Jehoshaphat Joseph Athaliah Jezebel Hrethel Jephthah Abner Japheth Loretta Jones Judith Wealhþeow Heardred Phut Nahor Salomon Bathsheba Benjamin Absalom Hadadezer Eve Samuel Mary Magdalene Sheleph Ehud Mephibosheth Elon John the Baptist Elisha Ahitophel Caleb Manasseh of Judah Heoroweard Islamic views on Abraham Nahor Daniel J. William Fulbright Hygelac Wise woman of Abel Ben-Hadad I Amminadab Wil Wheaton Asa of Judah Adonijah Elimelek Hosea Shamgar Laban Solomon Jotham of Judah Ecgþeow Amos Jonathan Jesse Jehoahaz of Judah Nadabe Alphaeus Zedekiah Seth Cain Amram Matthan Jethro Abel Amon of Judah Eli Junia Belshazzar Josiah Othniel Abijah of Judah Freawaru Isaac Hygd Goliath Abdon Tamar Jeconiah Eleazar Zadok Ham Balaam Ahijah the Shilonite Baruch ben Neriah Judah Amaziah of Judah
125
action count
action approx
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television program
action count
action filter_multi_types
action find
entity Heoroweard
relation present in work
type text
type television program
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television program'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?f WHERE { { ?f property:present_in_work ?u . ?u rdf:type ontology:text . ?f rdf:type ontology:common_name } UNION { ?f rdf:type ontology:common_name . ?u rdf:type ontology:television_program . ?f property:present_in_work ?u } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { { ?n rdf:type ontology:text } UNION { ?n rdf:type ontology:television_program } } . resource:Heoroweard property:present_in_work ?n } } . FILTER ( ?a = ?c ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5287061 Q85822
P19
Q56061
USER
Which administrative territories are the places of birth of Emil Baehrens or Doc Hendley ?
OR((Q85822,P19,c(Q56061)), (Q5287061,P19,c(Q56061)))
action filter_type
action union
action find
entity Q85822
relation P19
action find
entity Q5287061
relation P19
type Q56061
{'OR': [['Q85822', 'P19', {'concept': 'Q56061'}], ['Q5287061', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { ?c property:P19 ?a . VALUES ( ?c ) { ( resource:Q85822 ) ( resource:Q5287061 ) } } . ?a rdf:type ontology:Q56061 }
Doc Hendley Emil Baehrens
action filter_type
action union
action find
entity Emil Baehrens
relation place of birth
action find
entity Doc Hendley
relation place of birth
type administrative territorial entity
{'OR': [['Emil Baehrens', 'place of birth', {'concept': 'administrative territorial entity'}], ['Doc Hendley', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?c property:place_of_birth ?a . VALUES ( ?c ) { ( resource:Emil_Baehrens ) ( resource:Doc_Hendley ) } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q365 Q181962
SYSTEM
Cologne, Augusta
Q365 Q181962
OR((Q85822,P19,c(Q56061)), (Q5287061,P19,c(Q56061)))
action filter_type
action union
action find
entity Q85822
relation P19
action find
entity Q5287061
relation P19
type Q56061
[ANSWERS] are the places of birth of Emil Baehrens or Doc Hendley
{'OR': [['Q85822', 'P19', {'concept': 'Q56061'}], ['Q5287061', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { ?c property:P19 ?a . VALUES ( ?c ) { ( resource:Q85822 ) ( resource:Q5287061 ) } } . ?a rdf:type ontology:Q56061 }
Cologne Augusta
Cologne and Augusta are the places of birth of Emil Baehrens or Doc Hendley
Cologne Augusta
action filter_type
action union
action find
entity Emil Baehrens
relation place of birth
action find
entity Doc Hendley
relation place of birth
type administrative territorial entity
{'OR': [['Emil Baehrens', 'place of birth', {'concept': 'administrative territorial entity'}], ['Doc Hendley', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?c property:place_of_birth ?a . VALUES ( ?c ) { ( resource:Emil_Baehrens ) ( resource:Doc_Hendley ) } } . ?a rdf:type ontology:administrative_territorial_entity }
[]