Simple Question (Direct)
Simple Question
Q95545
P21
Q290
USER
Which sex does Wilhelm Drumann belong to ?
(Q95545,P21,c(Q290))
action filter_type
action find
entity Q95545
relation P21
type Q290
['Q95545', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q95545 property:P21 ?g . ?g rdf:type ontology:Q290 }
Wilhelm Drumann
action filter_type
action find
entity Wilhelm Drumann
relation gender
type sex
['Wilhelm Drumann', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Wilhelm_Drumann property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q95545,P21,c(Q290))
action filter_type
action find
entity Q95545
relation P21
type Q290
Wilhelm Drumann belongs to [ANSWER]
['Q95545', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q95545 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
Wilhelm Drumann belongs to male
male
action filter_type
action find
entity Wilhelm Drumann
relation gender
type sex
['Wilhelm Drumann', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Wilhelm_Drumann property:gender ?g . ?g rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q95545
P512
Q3412758
USER
Which qualification does Wilhelm Drumann hold ?
(Q95545,P512,c(Q3412758))
action filter_type
action find
entity Q95545
relation P512
type Q3412758
['Q95545', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?d WHERE { resource:Q95545 property:P512 ?d . ?d rdf:type ontology:Q3412758 }
Wilhelm Drumann
action filter_type
action find
entity Wilhelm Drumann
relation academic degree
type qualification
['Wilhelm Drumann', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?d WHERE { resource:Wilhelm_Drumann property:academic_degree ?d . ?d rdf:type ontology:qualification }
[]
qualification
Q12101789
SYSTEM
Doktor Nauk in History
Q12101789
(Q95545,P512,c(Q3412758))
action filter_type
action find
entity Q95545
relation P512
type Q3412758
Wilhelm Drumann holds a [ANSWER]
['Q95545', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?d WHERE { resource:Q95545 property:P512 ?d . ?d rdf:type ontology:Q3412758 }
Doktor Nauk in History
Wilhelm Drumann holds a Doktor Nauk in History
Doktor Nauk in History
action filter_type
action find
entity Wilhelm Drumann
relation academic degree
type qualification
['Wilhelm Drumann', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?d WHERE { resource:Wilhelm_Drumann property:academic_degree ?d . ?d rdf:type ontology:qualification }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q95545
P106
Q12737077
USER
What are the professions of Wilhelm Drumann ?
(Q95545,P106,c(Q12737077))
action filter_type
action find
entity Q95545
relation P106
type Q12737077
['Q95545', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q95545 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Wilhelm Drumann
action filter_type
action find
entity Wilhelm Drumann
relation occupation
type occupation
['Wilhelm Drumann', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Wilhelm_Drumann property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q201788 Q1622272
SYSTEM
historian, university teacher
Q201788 Q1622272
(Q95545,P106,c(Q12737077))
action filter_type
action find
entity Q95545
relation P106
type Q12737077
The professions of Wilhelm Drumann are [ANSWERS]
['Q95545', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q95545 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
historian university teacher
The professions of Wilhelm Drumann are historian and university teacher
historian university teacher
action filter_type
action find
entity Wilhelm Drumann
relation occupation
type occupation
['Wilhelm Drumann', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Wilhelm_Drumann property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7919371
P106
Q502895
USER
Do Velvel Pasternak have those occupations as his/her means of employment ?
(Q7919371,P106,Q201788) (Q7919371,P106,Q1622272)
action is_in
entity prev_answer
action find
entity Q7919371
relation P106
['Q7919371', 'P106', 'Q201788'] ['Q7919371', 'P106', 'Q1622272']
ASK WHERE { VALUES ( ?w ) { ( resource:Q201788 ) ( resource:Q1622272 ) } . resource:Q7919371 property:P106 ?w }
Velvel Pasternak
action is_in
entity prev_answer
action find
entity Velvel Pasternak
relation occupation
['Velvel Pasternak', 'occupation', 'historian'] ['Velvel Pasternak', 'occupation', 'university teacher']
ASK WHERE { VALUES ( ?w ) { ( resource:historian ) ( resource:university_teacher ) } . resource:Velvel_Pasternak property:occupation ?w }
[]
common name
SYSTEM
NO
(Q7919371,P106,Q201788) (Q7919371,P106,Q1622272)
action is_in
entity prev_answer
action find
entity Q7919371
relation P106
[ANSWER]
['Q7919371', 'P106', 'Q201788'] ['Q7919371', 'P106', 'Q1622272']
ASK WHERE { VALUES ( ?w ) { ( resource:Q201788 ) ( resource:Q1622272 ) } . resource:Q7919371 property:P106 ?w }
No
action is_in
entity prev_answer
action find
entity Velvel Pasternak
relation occupation
['Velvel Pasternak', 'occupation', 'historian'] ['Velvel Pasternak', 'occupation', 'university teacher']
ASK WHERE { VALUES ( ?w ) { ( resource:historian ) ( resource:university_teacher ) } . resource:Velvel_Pasternak property:occupation ?w }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q221522
P417
Q502895 Q12737077
USER
How many people are the names of person who are the patron saints of more number of occupations than John of Nepomuk ?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q221522
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P417 ?w . ?q rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q502895 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { resource:Q221522 property:P417 ?t . ?t rdf:type ontology:Q502895 } } . FILTER ( ?y > ?l ) }
John of Nepomuk
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity John of Nepomuk
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:patron_saint ?w . ?q rdf:type ontology:occupation . ?w rdf:type ontology:common_name } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { resource:John_of_Nepomuk property:patron_saint ?t . ?t rdf:type ontology:common_name } } . FILTER ( ?y > ?l ) }
[]
common name occupation
SYSTEM
54
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q221522
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P417 ?w . ?q rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q502895 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { resource:Q221522 property:P417 ?t . ?t rdf:type ontology:Q502895 } } . FILTER ( ?y > ?l ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity John of Nepomuk
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:patron_saint ?w . ?q rdf:type ontology:occupation . ?w rdf:type ontology:common_name } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { resource:John_of_Nepomuk property:patron_saint ?t . ?t rdf:type ontology:common_name } } . FILTER ( ?y > ?l ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q544424 Q7919371
P106
Q12737077
USER
Which occupations are the professions of Velvel Pasternak or Leo Joseph Suenens ?
OR((Q7919371,P106,c(Q12737077)), (Q544424,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7919371
relation P106
action find
entity Q544424
relation P106
type Q12737077
{'OR': [['Q7919371', 'P106', {'concept': 'Q12737077'}], ['Q544424', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . { { resource:Q7919371 property:P106 ?a } UNION { resource:Q544424 property:P106 ?a } } }
Leo Joseph Suenens Velvel Pasternak
action filter_type
action union
action find
entity Velvel Pasternak
relation occupation
action find
entity Leo Joseph Suenens
relation occupation
type occupation
{'OR': [['Velvel Pasternak', 'occupation', {'concept': 'occupation'}], ['Leo Joseph Suenens', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . { { resource:Velvel_Pasternak property:occupation ?a } UNION { resource:Leo_Joseph_Suenens property:occupation ?a } } }
[]
occupation
Q250867 Q1234713 Q36834 Q36180
SYSTEM
Catholic priest, theologian, composer, writer
Q250867 Q1234713 Q36834 Q36180
OR((Q7919371,P106,c(Q12737077)), (Q544424,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7919371
relation P106
action find
entity Q544424
relation P106
type Q12737077
The [ANSWERS] are the professions of Velvel Pasternak or Leo Joseph Suenens
{'OR': [['Q7919371', 'P106', {'concept': 'Q12737077'}], ['Q544424', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . { { resource:Q7919371 property:P106 ?a } UNION { resource:Q544424 property:P106 ?a } } }
Catholic priest theologian composer writer
The Catholic priest, theologian, composer and writer are the professions of Velvel Pasternak or Leo Joseph Suenens
Catholic priest theologian composer writer
action filter_type
action union
action find
entity Velvel Pasternak
relation occupation
action find
entity Leo Joseph Suenens
relation occupation
type occupation
{'OR': [['Velvel Pasternak', 'occupation', {'concept': 'occupation'}], ['Leo Joseph Suenens', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . { { resource:Velvel_Pasternak property:occupation ?a } UNION { resource:Leo_Joseph_Suenens property:occupation ?a } } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q16533 Q201788
P106
Q502895
USER
Which people have a job as historian and judge ?
AND((c(Q502895),P106,Q201788), (c(Q502895),P106,Q16533))
action filter_type
action intersection
action find_reverse
entity Q201788
relation P106
action find_reverse
entity Q16533
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q201788'], [{'concept': 'Q502895'}, 'P106', 'Q16533']]}
SELECT DISTINCT ?l WHERE { ?l property:P106 resource:Q201788 . ?l property:P106 resource:Q16533 . ?l rdf:type ontology:Q502895 }
judge historian
action filter_type
action intersection
action find_reverse
entity historian
relation occupation
action find_reverse
entity judge
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'historian'], [{'concept': 'common name'}, 'occupation', 'judge']]}
SELECT DISTINCT ?l WHERE { ?l property:occupation resource:historian . ?l property:occupation resource:judge . ?l rdf:type ontology:common_name }
[]
common name
Q96595 Q2175002 Q947230 Q15450857 Q1818753 Q5497168 Q440607 Q639344 Q5947618 Q3897158
SYSTEM
Some of them are Karl Gustav Homeyer, Edward Shepherd Creasy, Tyge Jesper Rothe, Karl Friedrich Bege, Leo Sternberg, Frederic William Howay, Emory Washburn, Viglius, Juan B. Terán, Pasquale Tola
Q537519 Q6115274 Q5174259 Q1176586 Q2833114 Q5232806 Q1956419 Q5564769 Q337453 Q5984286 Q1541349 Q12312154 Q1080992 Q3101035 Q979099 Q18113372 Q16863324 Q12736644 Q1693095 Q15450857 Q440576 Q457088 Q5998691 Q426776 Q65087 Q5947618 Q7087751 Q3181683 Q977261 Q42544 Q2343833 Q1403238 Q824954 Q768165 Q18527518 Q3362635 Q12884632 Q17515618 Q283471 Q2575630 Q15872772 Q639344 Q5703252 Q2508286 Q18655152 Q6913873 Q1818753 Q19959187 Q8005023 Q2599351 Q2947113 Q4696030 Q1297081 Q540418 Q3428607 Q1907982 Q726327 Q5548450 Q8962435 Q9073085 Q19959088 Q3563112 Q15994378 Q1118765 Q96595 Q11749681 Q6226786 Q5487127 Q89121 Q5075251 Q1079683 Q70026 Q14053447 Q2045522 Q6768996 Q980587 Q3387585 Q6257984 Q2698450 Q6238430 Q20733705 Q18674443 Q16495525 Q584197 Q16019247 Q947230 Q12792187 Q15975 Q3309018 Q2129488 Q9294 Q425592 Q517508 Q3379927 Q335173 Q318365 Q63483 Q14644051 Q139478 Q440607 Q2511268 Q110461 Q1346720 Q4670409 Q4664590 Q1695816 Q1692415 Q103778 Q16118740 Q15452077 Q311562 Q8017485 Q1313582 Q1356786 Q11766615 Q7406464 Q17362357 Q103276 Q2175002 Q1249060 Q3897158 Q5750019 Q9250879 Q828073 Q12882543 Q6216002 Q12792016 Q1341370 Q2156926 Q2369205 Q6301411 Q10133 Q5497168 Q351964
AND((c(Q502895),P106,Q201788), (c(Q502895),P106,Q16533))
action filter_type
action intersection
action find_reverse
entity Q201788
relation P106
action find_reverse
entity Q16533
relation P106
type Q502895
[ANSWERS] have a job as historian and judge
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q201788'], [{'concept': 'Q502895'}, 'P106', 'Q16533']]}
SELECT DISTINCT ?l WHERE { ?l property:P106 resource:Q201788 . ?l property:P106 resource:Q16533 . ?l rdf:type ontology:Q502895 }
Friedrich Martens Jack Speer Cosmo Innes David Sellar Alexander Fraser Tytler David Dalrymple, Lord Hailes François-Xavier Wurth-Paquet Girolamo Maggi Chris Grayling Ibn abd al-Malik al-Marrakushi Karl Georg Bockenheimer Frands de Thestrup Christian Magnus Falsen Qadi Ayyad Jacob van Manen Jan Šantl Ibn al-Khabbaza Nicolae Docan Johann Christoph von Aretin Karl Friedrich Bege Wyndham Robertson Jens Christian Berg Mario García-Oliva Peder Hansen Resen Justus Möser Juan B. Terán Oliver Perry Temple Sir John Dalrymple, 4th Baronet Peter Frederik Suhm Thomas More Evrard Raskin Stephan Alexander Würdtwein Bernhard Emanuel von Rodt Augustin von Balthasar David Chalmers Paolo Grossi Spyridon Vellinis Zdzisław Łukaszkiewicz Arild Huitfeldt Wilhelm Werner Zimmern Auguste De Portemont Viglius Helen Taft Manning Valentin Ferdinand Gudenus Napoleon de Pauw Morris S. Arnold Leo Sternberg Gustav Christ William Bannatyne, Lord Bannatyne Barthold Jacob Lintelo de Geer van Jutphaas Jabez Delano Hammond Ahmed Skirej Hsu Mo Samuel Whitaker Pennypacker Andreas Hojer Johann Frederik Mauritz Herbell Francis William Reitz Georgios Tertsetis Francisco J. Santamaría Salvador Vázquez de Parga Chueca Gerhard Buchda Anastasios Polyzoidis Homersham Cox José Cabanis Karl Gustav Homeyer Krzysztof Sidorkiewicz John Colville Frank Harris Patterson Johann Franz Bessel Charles Augustus Kincaid Christian Friedrich Strackerjan Albert Krantz Paul Joseph Verhaegen Milan Piroćanac Mark Napier William W. Campbell Pierre de La Gorce John Sinclair Sir Archibald Alison, 1st Baronet John Haywood Thomas Artemus Jones Marcial Catalán Avelino Teixeira da Mota Joaquín V. González Maria Trzcińska Tyge Jesper Rothe Janko Polec Montesquieu Michel Bibaud Jean-Joseph Raikem Ibn Khaldun Rafael Altamira y Crevea François Albert-Buisson Philippe Godding Edward Hyde, 1st Earl of Clarendon George Pachymeres Jonathan Sumption Pavlos Kalligas Zacharias Gartz Emory Washburn Justo Sierra Méndez Johann Christoph von Dreyhaupt Thomas Chandler Haliburton Abu Yahya ibn al-Sakkak Abd al-Rahman al-Tamanarti Johann Peter Willebrand Anton Tillier Felix Boehmer Mohammed al-Abdari al-Hihi Georg Melchior Ludolf William Rehnquist William Renwick Riddell Georges Picot Ernesto Quesada Maksymilian Baruch Salvador Sanfuentes Kazimierz Rudnicki Friedrich von Dreger Edward Shepherd Creasy Ehrhardt Bödecker Pasquale Tola Hezekiah Lord Hosmer Edward Giergielewicz Berthold Vallentin Petros Paparrigopoulos Johann Jakob Blumer Johann Gregor Thalnitscher Henry Home, Lord Kames Robert Durrer Hoca Sadeddin Efendi Juan Álvarez Suetonius Frederic William Howay Jens Kragh Høst
Karl Gustav Homeyer, Edward Shepherd Creasy, Tyge Jesper Rothe, Karl Friedrich Bege, Leo Sternberg, Frederic William Howay, Emory Washburn, Viglius, Juan B. Terán and Pasquale Tola have a job as historian and judge
Karl Gustav Homeyer Edward Shepherd Creasy Tyge Jesper Rothe Karl Friedrich Bege Leo Sternberg Frederic William Howay Emory Washburn Viglius Juan B. Terán Pasquale Tola
action filter_type
action intersection
action find_reverse
entity historian
relation occupation
action find_reverse
entity judge
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'historian'], [{'concept': 'common name'}, 'occupation', 'judge']]}
SELECT DISTINCT ?l WHERE { ?l property:occupation resource:historian . ?l property:occupation resource:judge . ?l rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q22343694 Q15450857
P27 P551
Q1048835
USER
Which political territories are Karl Friedrich Bege a civilian of or did Rinat Gutman live ?
OR((Q15450857,P27,c(Q1048835)), (Q22343694,P551,c(Q1048835)))
action filter_type
action union
action find
entity Q15450857
relation P27
action find
entity Q22343694
relation P551
type Q1048835
{'OR': [['Q15450857', 'P27', {'concept': 'Q1048835'}], ['Q22343694', 'P551', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1048835 . { { resource:Q22343694 property:P551 ?p } UNION { resource:Q15450857 property:P27 ?p } } }
Rinat Gutman Karl Friedrich Bege
action filter_type
action union
action find
entity Karl Friedrich Bege
relation country of citizenship
action find
entity Rinat Gutman
relation residence
type political territorial entity
{'OR': [['Karl Friedrich Bege', 'country of citizenship', {'concept': 'political territorial entity'}], ['Rinat Gutman', 'residence', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:political_territorial_entity . { { resource:Rinat_Gutman property:residence ?p } UNION { resource:Karl_Friedrich_Bege property:country_of_citizenship ?p } } }
[]
political territorial entity
Q16 Q183
SYSTEM
Canada, Germany
Q16 Q183
OR((Q15450857,P27,c(Q1048835)), (Q22343694,P551,c(Q1048835)))
action filter_type
action union
action find
entity Q15450857
relation P27
action find
entity Q22343694
relation P551
type Q1048835
[ANSWERS] are Karl Friedrich Bege a civilian of or did Rinat Gutman live
{'OR': [['Q15450857', 'P27', {'concept': 'Q1048835'}], ['Q22343694', 'P551', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1048835 . { { resource:Q22343694 property:P551 ?p } UNION { resource:Q15450857 property:P27 ?p } } }
Canada Germany
Canada and Germany are Karl Friedrich Bege a civilian of or did Rinat Gutman live
Canada Germany
action filter_type
action union
action find
entity Karl Friedrich Bege
relation country of citizenship
action find
entity Rinat Gutman
relation residence
type political territorial entity
{'OR': [['Karl Friedrich Bege', 'country of citizenship', {'concept': 'political territorial entity'}], ['Rinat Gutman', 'residence', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:political_territorial_entity . { { resource:Rinat_Gutman property:residence ?p } UNION { resource:Karl_Friedrich_Bege property:country_of_citizenship ?p } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q16 Q183
P17
Q1048835
USER
Which political territories are Canada and Germany present in ?
(Q16,P17,c(Q1048835)) (Q183,P17,c(Q1048835))
action union
action filter_type
action find
entity Q16
relation P17
type Q1048835
action filter_type
action find
entity Q183
relation P17
type Q1048835
['Q16', 'P17', {'concept': 'Q1048835'}] ['Q183', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { resource:Q16 property:P17 ?s . ?s rdf:type ontology:Q1048835 } UNION { resource:Q183 property:P17 ?s . ?s rdf:type ontology:Q1048835 } }
Canada Germany
action union
action filter_type
action find
entity Canada
relation country
type political territorial entity
action filter_type
action find
entity Germany
relation country
type political territorial entity
['Canada', 'country', {'concept': 'political territorial entity'}] ['Germany', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { resource:Canada property:country ?s . ?s rdf:type ontology:political_territorial_entity } UNION { resource:Germany property:country ?s . ?s rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
Q16 Q183
SYSTEM
Canada, Germany
Q16 Q183
(Q16,P17,c(Q1048835)) (Q183,P17,c(Q1048835))
action union
action filter_type
action find
entity Q16
relation P17
type Q1048835
action filter_type
action find
entity Q183
relation P17
type Q1048835
Which political territories are [ANSWERS] present in
['Q16', 'P17', {'concept': 'Q1048835'}] ['Q183', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { resource:Q16 property:P17 ?s . ?s rdf:type ontology:Q1048835 } UNION { resource:Q183 property:P17 ?s . ?s rdf:type ontology:Q1048835 } }
Canada Germany
Which political territories are Canada and Germany present in
Canada Germany
action union
action filter_type
action find
entity Canada
relation country
type political territorial entity
action filter_type
action find
entity Germany
relation country
type political territorial entity
['Canada', 'country', {'concept': 'political territorial entity'}] ['Germany', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { resource:Canada property:country ?s . ?s rdf:type ontology:political_territorial_entity } UNION { resource:Germany property:country ?s . ?s rdf:type ontology:political_territorial_entity } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q16 Q183
P530
Q1048835
USER
Who have a diplomatic relationship with those ones ?
(Q16,P530,c(Q1048835)) (Q183,P530,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
['Q16', 'P530', {'concept': 'Q1048835'}] ['Q183', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { ?f property:P530 ?e . ?e rdf:type ontology:Q1048835 . VALUES ( ?f ) { ( resource:Q16 ) ( resource:Q183 ) } }
Canada Germany
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
['Canada', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { ?f property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . VALUES ( ?f ) { ( resource:Canada ) ( resource:Germany ) } }
[]
political territorial entity
Q183 Q408 Q408
SYSTEM
Australia for 2nd, 3rd, Germany for 1st
Q183 Q664 Q35 Q408 Q664 Q408 Q40 Q35 Q16 Q1000
(Q16,P530,c(Q1048835)) (Q183,P530,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
[ANSWERS]
['Q16', 'P530', {'concept': 'Q1048835'}] ['Q183', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { ?f property:P530 ?e . ?e rdf:type ontology:Q1048835 . VALUES ( ?f ) { ( resource:Q16 ) ( resource:Q183 ) } }
Germany New Zealand Denmark Australia New Zealand Australia Austria Denmark Canada Gabon
Germany, Australia and Australia have a diplomatic relationship with those ones
Germany Australia Australia
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
['Canada', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { ?f property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . VALUES ( ?f ) { ( resource:Canada ) ( resource:Germany ) } }
[]