Simple Question (Direct)
Simple Question
Q1185920
P21
Q290
USER
Which sex does José Ilson dos Santos have ?
(Q1185920,P21,c(Q290))
action filter_type
action find
entity Q1185920
relation P21
type Q290
['Q1185920', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q290 . resource:Q1185920 property:P21 ?g }
José Ilson dos Santos
action filter_type
action find
entity José Ilson dos Santos
relation gender
type sex
['José Ilson dos Santos', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sex . resource:José_Ilson_dos_Santos property:gender ?g }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1185920,P21,c(Q290))
action filter_type
action find
entity Q1185920
relation P21
type Q290
Dos José Ilson Santos has a [ANSWER]
['Q1185920', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q290 . resource:Q1185920 property:P21 ?g }
male
Dos José Ilson Santos has a male
male
action filter_type
action find
entity José Ilson dos Santos
relation gender
type sex
['José Ilson dos Santos', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sex . resource:José_Ilson_dos_Santos property:gender ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1185920
P19
Q1048835
USER
Which political territory is the birthplace of that person ?
(Q6581097,P19,c(Q1048835))
action filter_type
action find
entity Q1185920
relation P19
type Q1048835
['Q6581097', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q1185920 property:P19 ?a . ?a rdf:type ontology:Q1048835 }
José Ilson dos Santos
action filter_type
action find
entity José Ilson dos Santos
relation place of birth
type political territorial entity
['male', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:José_Ilson_dos_Santos property:place_of_birth ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q2014499
SYSTEM
Nossa Senhora da Glória
Q2014499
(Q6581097,P19,c(Q1048835))
action filter_type
action find
entity Q1185920
relation P19
type Q1048835
[ANSWER] is the birthplace of that person
['Q6581097', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q1185920 property:P19 ?a . ?a rdf:type ontology:Q1048835 }
Nossa Senhora da Glória
Nossa Senhora da Glória is the birthplace of that person
Nossa Senhora da Glória
action filter_type
action find
entity José Ilson dos Santos
relation place of birth
type political territorial entity
['male', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:José_Ilson_dos_Santos property:place_of_birth ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1185920
P106
Q12737077
USER
Which occupation has José Ilson dos Santos as his/her 's career ?
(Q1185920,P106,c(Q12737077))
action filter_type
action find
entity Q1185920
relation P106
type Q12737077
['Q1185920', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q1185920 property:P106 ?z }
José Ilson dos Santos
action filter_type
action find
entity José Ilson dos Santos
relation occupation
type occupation
['José Ilson dos Santos', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:José_Ilson_dos_Santos property:occupation ?z }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q1185920,P106,c(Q12737077))
action filter_type
action find
entity Q1185920
relation P106
type Q12737077
The [ANSWER] has José Ilson dos Santos as his/her 's career
['Q1185920', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q1185920 property:P106 ?z }
association football player
The association football player has José Ilson dos Santos as his/her 's career
association football player
action filter_type
action find
entity José Ilson dos Santos
relation occupation
type occupation
['José Ilson dos Santos', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:José_Ilson_dos_Santos property:occupation ?z }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q609965
Q12737077
USER
And what about Elio Augusto Di Carlo?
(Q609965,P106,c(Q12737077))
action filter_type
action find
entity Q609965
relation P106
type Q12737077
['Q609965', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q609965 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Elio Augusto Di Carlo
action filter_type
action find
entity Elio Augusto Di Carlo
relation occupation
type occupation
['Elio Augusto Di Carlo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Elio_Augusto_Di_Carlo property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q201788 Q39631 Q1225716
SYSTEM
historian, physician, ornithologist
Q201788 Q39631 Q1225716
(Q609965,P106,c(Q12737077))
action filter_type
action find
entity Q609965
relation P106
type Q12737077
[ANSWERS]
['Q609965', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q609965 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
historian physician ornithologist
historian physician ornithologist
action filter_type
action find
entity Elio Augusto Di Carlo
relation occupation
type occupation
['Elio Augusto Di Carlo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Elio_Augusto_Di_Carlo property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q45560 Q1185920
P27
Q15617994
USER
Which administrative territories are José Ilson dos Santos or Catherine Siachoque an inhabitant of ?
OR((Q1185920,P27,c(Q15617994)), (Q45560,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1185920
relation P27
action find
entity Q45560
relation P27
type Q15617994
{'OR': [['Q1185920', 'P27', {'concept': 'Q15617994'}], ['Q45560', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q1185920 property:P27 ?x } UNION { resource:Q45560 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
Catherine Siachoque José Ilson dos Santos
action filter_type
action union
action find
entity José Ilson dos Santos
relation country of citizenship
action find
entity Catherine Siachoque
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['José Ilson dos Santos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Catherine Siachoque', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:José_Ilson_dos_Santos property:country_of_citizenship ?x } UNION { resource:Catherine_Siachoque property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q739
SYSTEM
Brazil, Colombia
Q155 Q739
OR((Q1185920,P27,c(Q15617994)), (Q45560,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1185920
relation P27
action find
entity Q45560
relation P27
type Q15617994
[ANSWERS] are José Ilson dos Santos or Catherine Siachoque an inhabitant of
{'OR': [['Q1185920', 'P27', {'concept': 'Q15617994'}], ['Q45560', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q1185920 property:P27 ?x } UNION { resource:Q45560 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
Brazil Colombia
Brazil and Colombia are José Ilson dos Santos or Catherine Siachoque an inhabitant of
Brazil Colombia
action filter_type
action union
action find
entity José Ilson dos Santos
relation country of citizenship
action find
entity Catherine Siachoque
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['José Ilson dos Santos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Catherine Siachoque', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:José_Ilson_dos_Santos property:country_of_citizenship ?x } UNION { resource:Catherine_Siachoque property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q19828275 Q937857
P425 P641
Q349
USER
Which sports are associated with the field of occupation association football player and did Ahmed Al Saadi participate in ?
AND((Q937857,P425,c(Q349)), (Q19828275,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q19828275
relation P641
type Q349
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q19828275', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?b WHERE { resource:Q937857 property:P425 ?b . resource:Q19828275 property:P641 ?b . ?b rdf:type ontology:Q349 }
Ahmed Al Saadi association football player
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Ahmed Al Saadi
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Ahmed Al Saadi', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?b WHERE { resource:association_football_player property:field_of_this_occupation ?b . resource:Ahmed_Al_Saadi property:sport ?b . ?b rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q937857,P425,c(Q349)), (Q19828275,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q19828275
relation P641
type Q349
Team [ANSWER] is associated with the field of occupation [ANSWER] player and did Ahmed Al Saadi participate in
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q19828275', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?b WHERE { resource:Q937857 property:P425 ?b . resource:Q19828275 property:P641 ?b . ?b rdf:type ontology:Q349 }
association football
Team association football is associated with the field of occupation association football player and did Ahmed Al Saadi participate in
association football
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Ahmed Al Saadi
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Ahmed Al Saadi', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?b WHERE { resource:association_football_player property:field_of_this_occupation ?b . resource:Ahmed_Al_Saadi property:sport ?b . ?b rdf:type ontology:sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q182436
P180
Q12737077 Q15709879 Q386724
USER
Which occupations are demonstrated in greater number of artwork series and works than librarian ?
(c(Q15709879)|c(Q386724),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q182436
relation P180
type Q15709879
type Q386724
[[{'concept': 'Q15709879'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?r ) WHERE { { ?s rdf:type ontology:Q386724 . ?p rdf:type ontology:Q12737077 . ?s property:P180 ?p } UNION { ?s property:P180 ?p . ?p rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q15709879 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:P180 resource:Q182436 . { ?k rdf:type ?m . VALUES ( ?m ) { ( ontology:Q15709879 ) ( ontology:Q386724 ) } } } } . FILTER ( ?r > ?x ) }
librarian
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity librarian
relation depicts
type artwork series
type work
[[{'concept': 'artwork series'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?r ) WHERE { { ?s rdf:type ontology:work . ?p rdf:type ontology:occupation . ?s property:depicts ?p } UNION { ?s property:depicts ?p . ?p rdf:type ontology:occupation . ?s rdf:type ontology:artwork_series } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:depicts resource:librarian . { ?k rdf:type ?m . VALUES ( ?m ) { ( ontology:artwork_series ) ( ontology:work ) } } } } . FILTER ( ?r > ?x ) }
[]
occupation artwork series work
Q838811 Q47064 Q805221
SYSTEM
peasant, military personnel, ballet dancer
Q47064 Q805221 Q12059906 Q622630 Q54128 Q2730732 Q838811 Q42603 Q39631
(c(Q15709879)|c(Q386724),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q182436
relation P180
type Q15709879
type Q386724
The [ANSWERS] are demonstrated in greater number of artwork series and works than librarian
[[{'concept': 'Q15709879'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?r ) WHERE { { ?s rdf:type ontology:Q386724 . ?p rdf:type ontology:Q12737077 . ?s property:P180 ?p } UNION { ?s property:P180 ?p . ?p rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q15709879 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:P180 resource:Q182436 . { ?k rdf:type ?m . VALUES ( ?m ) { ( ontology:Q15709879 ) ( ontology:Q386724 ) } } } } . FILTER ( ?r > ?x ) }
military personnel ballet dancer herder odalisque domestic worker equestrian peasant priest physician
The peasant, military personnel and ballet dancer are demonstrated in greater number of artwork series and works than librarian
peasant military personnel ballet dancer
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity librarian
relation depicts
type artwork series
type work
[[{'concept': 'artwork series'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?r ) WHERE { { ?s rdf:type ontology:work . ?p rdf:type ontology:occupation . ?s property:depicts ?p } UNION { ?s property:depicts ?p . ?p rdf:type ontology:occupation . ?s rdf:type ontology:artwork_series } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:depicts resource:librarian . { ?k rdf:type ?m . VALUES ( ?m ) { ( ontology:artwork_series ) ( ontology:work ) } } } } . FILTER ( ?r > ?x ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q849697 Q1225716
P106 P512
Q502895
USER
Which people have ornithologist as his/her means of employment and holds the diploma doctoral degree ?
AND((c(Q502895),P106,Q1225716), (c(Q502895),P512,Q849697))
action filter_type
action intersection
action find_reverse
entity Q1225716
relation P106
action find_reverse
entity Q849697
relation P512
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q1225716'], [{'concept': 'Q502895'}, 'P512', 'Q849697']]}
SELECT DISTINCT ?l WHERE { ?l property:P106 resource:Q1225716 . ?l property:P512 resource:Q849697 . ?l rdf:type ontology:Q502895 }
doctoral degree ornithologist
action filter_type
action intersection
action find_reverse
entity ornithologist
relation occupation
action find_reverse
entity doctoral degree
relation academic degree
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'ornithologist'], [{'concept': 'common name'}, 'academic degree', 'doctoral degree']]}
SELECT DISTINCT ?l WHERE { ?l property:occupation resource:ornithologist . ?l property:academic_degree resource:doctoral_degree . ?l rdf:type ontology:common_name }
[]
common name
Q103421 Q1278927 Q216746 Q1357368 Q61993 Q73747 Q113769 Q695177 Q61390 Q1463114
SYSTEM
Some of them are Einhard Bezzel, Eberhard Curio, Kurt Floericke, Luc Hoffmann, Lorenz Oken, August Carl Eduard Baldamus, Roland Prinzinger, Arnold von Vietinghoff-Riesch, Salomon Müller, Friedrich Wilhelm Merkel
Q103421 Q15438541 Q1463114 Q87295 Q73747 Q57361 Q542265 Q1258491 Q1357368 Q58062 Q61993 Q695177 Q63962 Q1409305 Q48246 Q1278927 Q2163336 Q61546 Q113769 Q107366 Q1929839 Q61390 Q1905256 Q62357 Q216746 Q10320111 Q1446163 Q1040209 Q58053 Q89774 Q5354
AND((c(Q502895),P106,Q1225716), (c(Q502895),P512,Q849697))
action filter_type
action intersection
action find_reverse
entity Q1225716
relation P106
action find_reverse
entity Q849697
relation P512
type Q502895
[ANSWERS] have ornithologist as his/her means of employment and holds the diploma doctoral degree
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q1225716'], [{'concept': 'Q502895'}, 'P512', 'Q849697']]}
SELECT DISTINCT ?l WHERE { ?l property:P106 resource:Q1225716 . ?l property:P512 resource:Q849697 . ?l rdf:type ontology:Q502895 }
Einhard Bezzel Martin Schneider-Jacoby Friedrich Wilhelm Merkel Gustav von Hayek August Carl Eduard Baldamus Johann Friedrich von Brandt Edward Pierson Ramsay Walther Thiede Luc Hoffmann Georg Forster Lorenz Oken Arnold von Vietinghoff-Riesch Ernst Schäfer Hans-Heiner Bergmann Ernst Haeckel Eberhard Curio Rolf Dircksen Franz Meyen Roland Prinzinger Rudolf Blasius Michael Wink Salomon Müller Martin Wikelski Erwin Stresemann Kurt Floericke Loye Holmes Miller Franz Bairlein Carl Richard Hennicke Ludwig Reichenbach Wolfgang Wiltschko Ernst Mayr
Einhard Bezzel, Eberhard Curio, Kurt Floericke, Luc Hoffmann, Lorenz Oken, August Carl Eduard Baldamus, Roland Prinzinger, Arnold von Vietinghoff-Riesch, Salomon Müller and Friedrich Wilhelm Merkel have ornithologist as his/her means of employment and holds the diploma doctoral degree
Einhard Bezzel Eberhard Curio Kurt Floericke Luc Hoffmann Lorenz Oken August Carl Eduard Baldamus Roland Prinzinger Arnold von Vietinghoff-Riesch Salomon Müller Friedrich Wilhelm Merkel
action filter_type
action intersection
action find_reverse
entity ornithologist
relation occupation
action find_reverse
entity doctoral degree
relation academic degree
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'ornithologist'], [{'concept': 'common name'}, 'academic degree', 'doctoral degree']]}
SELECT DISTINCT ?l WHERE { ?l property:occupation resource:ornithologist . ?l property:academic_degree resource:doctoral_degree . ?l rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q103421
P937
Q56061
USER
What is the work location of that person ?
(Q103421,P937,c(Q56061))
action filter_type
action find
entity Q103421
relation P937
type Q56061
['Q103421', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q103421 property:P937 ?e }
Einhard Bezzel
action filter_type
action find
entity Einhard Bezzel
relation work location
type administrative territorial entity
['Einhard Bezzel', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Einhard_Bezzel property:work_location ?e }
[]
administrative territorial entity
Clarification for simple ques.
Q695177
SYSTEM
Did you mean Arnold von Vietinghoff-Riesch ?
Q103421 Q1278927 Q216746 Q1357368 Q61993 Q73747 Q113769 Q695177 Q61390 Q1463114
(Q103421,P937,c(Q56061)) (Q1278927,P937,c(Q56061)) (Q216746,P937,c(Q56061)) (Q1357368,P937,c(Q56061)) (Q61993,P937,c(Q56061)) (Q73747,P937,c(Q56061)) (Q113769,P937,c(Q56061)) (Q695177,P937,c(Q56061)) (Q61390,P937,c(Q56061)) (Q1463114,P937,c(Q56061))
[ANSWER]
['Q103421', 'P937', {'concept': 'Q56061'}] ['Q1278927', 'P937', {'concept': 'Q56061'}] ['Q216746', 'P937', {'concept': 'Q56061'}] ['Q1357368', 'P937', {'concept': 'Q56061'}] ['Q61993', 'P937', {'concept': 'Q56061'}] ['Q73747', 'P937', {'concept': 'Q56061'}] ['Q113769', 'P937', {'concept': 'Q56061'}] ['Q695177', 'P937', {'concept': 'Q56061'}] ['Q61390', 'P937', {'concept': 'Q56061'}] ['Q1463114', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q103421 property:P937 ?e }
Einhard Bezzel Eberhard Curio Kurt Floericke Luc Hoffmann Lorenz Oken August Carl Eduard Baldamus Roland Prinzinger Arnold von Vietinghoff-Riesch Salomon Müller Friedrich Wilhelm Merkel
Did you mean Arnold von Vietinghoff-Riesch ?
Arnold von Vietinghoff-Riesch
['Einhard Bezzel', 'work location', {'concept': 'administrative territorial entity'}] ['Eberhard Curio', 'work location', {'concept': 'administrative territorial entity'}] ['Kurt Floericke', 'work location', {'concept': 'administrative territorial entity'}] ['Luc Hoffmann', 'work location', {'concept': 'administrative territorial entity'}] ['Lorenz Oken', 'work location', {'concept': 'administrative territorial entity'}] ['August Carl Eduard Baldamus', 'work location', {'concept': 'administrative territorial entity'}] ['Roland Prinzinger', 'work location', {'concept': 'administrative territorial entity'}] ['Arnold von Vietinghoff-Riesch', 'work location', {'concept': 'administrative territorial entity'}] ['Salomon Müller', 'work location', {'concept': 'administrative territorial entity'}] ['Friedrich Wilhelm Merkel', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Einhard_Bezzel property:work_location ?e }
[]
Simple Question (Coreferenced)
USER
No, I meant Einhard Bezzel. Could you tell me the answer for that?
(Q103421,P937,c(Q56061))
Q103421
['Q103421', 'P937', {'concept': 'Q56061'}]
['Einhard Bezzel', 'work location', {'concept': 'administrative territorial entity'}]
[]
Q1726
SYSTEM
Munich
Q1726
(Q103421,P937,c(Q56061))
action filter_type
action find
entity Q103421
relation P937
type Q56061
The work location of that person is in [ANSWER]
['Q103421', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q103421 property:P937 ?e }
Munich
The work location of that person is in Munich
Munich
action filter_type
action find
entity Einhard Bezzel
relation work location
type administrative territorial entity
['Einhard Bezzel', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Einhard_Bezzel property:work_location ?e }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q3609298 Q19828275
P641
Q349
USER
Which sports were Ahmed Al Saadi and Aldo Raimondi a part of ?
AND((Q19828275,P641,c(Q349)), (Q3609298,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q19828275
relation P641
action find
entity Q3609298
relation P641
type Q349
{'AND': [['Q19828275', 'P641', {'concept': 'Q349'}], ['Q3609298', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?d WHERE { resource:Q19828275 property:P641 ?d . resource:Q3609298 property:P641 ?d . ?d rdf:type ontology:Q349 }
Aldo Raimondi Ahmed Al Saadi
action filter_type
action intersection
action find
entity Ahmed Al Saadi
relation sport
action find
entity Aldo Raimondi
relation sport
type sport
{'AND': [['Ahmed Al Saadi', 'sport', {'concept': 'sport'}], ['Aldo Raimondi', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?d WHERE { resource:Ahmed_Al_Saadi property:sport ?d . resource:Aldo_Raimondi property:sport ?d . ?d rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q19828275,P641,c(Q349)), (Q3609298,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q19828275
relation P641
action find
entity Q3609298
relation P641
type Q349
The [ANSWER] was Ahmed Al Saadi and Aldo Raimondi a part of
{'AND': [['Q19828275', 'P641', {'concept': 'Q349'}], ['Q3609298', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?d WHERE { resource:Q19828275 property:P641 ?d . resource:Q3609298 property:P641 ?d . ?d rdf:type ontology:Q349 }
association football
The association football was Ahmed Al Saadi and Aldo Raimondi a part of
association football
action filter_type
action intersection
action find
entity Ahmed Al Saadi
relation sport
action find
entity Aldo Raimondi
relation sport
type sport
{'AND': [['Ahmed Al Saadi', 'sport', {'concept': 'sport'}], ['Aldo Raimondi', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?d WHERE { resource:Ahmed_Al_Saadi property:sport ?d . resource:Aldo_Raimondi property:sport ?d . ?d rdf:type ontology:sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P101
Q349 Q2342494
USER
Which sports are the fields of work of more number of collectables than that sport ?
(c(Q2342494),P101,c(Q349))
action greater
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_type
action find
entity Q2736
relation P101
type Q349
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?o ) WHERE { ?g rdf:type ontology:Q349 . ?x rdf:type ontology:Q2342494 . ?x property:P101 ?g } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { resource:Q2736 property:P101 ?h . ?h rdf:type ontology:Q349 } } . FILTER ( ?o > ?u ) }
action greater
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_type
action find
entity association football
relation field of work
type sport
[{'concept': 'collectable'}, 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?o ) WHERE { ?g rdf:type ontology:sport . ?x rdf:type ontology:collectable . ?x property:field_of_work ?g } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { resource:association_football property:field_of_work ?h . ?h rdf:type ontology:sport } } . FILTER ( ?o > ?u ) }
[]
sport collectable
Q1109032
SYSTEM
college football
Q1109032
(c(Q2342494),P101,c(Q349))
action greater
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_type
action find
entity Q2736
relation P101
type Q349
[ANSWER] is the fields of work of more number of collectables than that sport
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?o ) WHERE { ?g rdf:type ontology:Q349 . ?x rdf:type ontology:Q2342494 . ?x property:P101 ?g } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { resource:Q2736 property:P101 ?h . ?h rdf:type ontology:Q349 } } . FILTER ( ?o > ?u ) }
college football
College football is the fields of work of more number of collectables than that sport
college football
action greater
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_type
action find
entity association football
relation field of work
type sport
[{'concept': 'collectable'}, 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?o ) WHERE { ?g rdf:type ontology:sport . ?x rdf:type ontology:collectable . ?x property:field_of_work ?g } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { resource:association_football property:field_of_work ?h . ?h rdf:type ontology:sport } } . FILTER ( ?o > ?u ) }
[]