Simple Question (Direct)
Simple Question
Q6252055
P39
Q12737077
USER
Which occupation was a position for which Herman Zetterberg was appointed ?
(Q6252055,P39,c(Q12737077))
action filter_type
action find
entity Q6252055
relation P39
type Q12737077
['Q6252055', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q6252055 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
Herman Zetterberg
action filter_type
action find
entity Herman Zetterberg
relation position held
type occupation
['Herman Zetterberg', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Herman_Zetterberg property:position_held ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q3315958
SYSTEM
Minister for Justice
Q3315958
(Q6252055,P39,c(Q12737077))
action filter_type
action find
entity Q6252055
relation P39
type Q12737077
[ANSWER] was a position for which Herman Zetterberg was appointed
['Q6252055', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q6252055 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
Minister for Justice
Minister for Justice was a position for which Herman Zetterberg was appointed
Minister for Justice
action filter_type
action find
entity Herman Zetterberg
relation position held
type occupation
['Herman Zetterberg', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Herman_Zetterberg property:position_held ?r . ?r rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q3315958 Q34
P1001
Q15617994
USER
Is Sweden linked to that occupation ?
(Q3315958,P1001,Q34)
action is_in
entity Q34
action find
entity Q3315958
relation P1001
['Q3315958', 'P1001', 'Q34']
ASK WHERE { resource:Q3315958 property:P1001 resource:Q34 }
Minister for Justice Sweden
action is_in
entity Sweden
action find
entity Minister for Justice
relation applies to jurisdiction
['Minister for Justice', 'applies to jurisdiction', 'Sweden']
ASK WHERE { resource:Minister_for_Justice property:applies_to_jurisdiction resource:Sweden }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q3315958,P1001,Q34)
action is_in
entity Q34
action find
entity Q3315958
relation P1001
[ANSWER]
['Q3315958', 'P1001', 'Q34']
ASK WHERE { resource:Q3315958 property:P1001 resource:Q34 }
Yes
action is_in
entity Sweden
action find
entity Minister for Justice
relation applies to jurisdiction
['Minister for Justice', 'applies to jurisdiction', 'Sweden']
ASK WHERE { resource:Minister_for_Justice property:applies_to_jurisdiction resource:Sweden }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q6252055 Q4855932
P20
Q56061
USER
Did Herman Zetterberg expire Bank Houses ?
(Q6252055,P20,Q4855932)
action is_in
entity Q4855932
action find
entity Q6252055
relation P20
['Q6252055', 'P20', 'Q4855932']
ASK WHERE { resource:Q6252055 property:P20 resource:Q4855932 }
Herman Zetterberg Bank Houses
action is_in
entity Bank Houses
action find
entity Herman Zetterberg
relation place of death
['Herman Zetterberg', 'place of death', 'Bank Houses']
ASK WHERE { resource:Herman_Zetterberg property:place_of_death resource:Bank_Houses }
[]
administrative territorial entity
SYSTEM
NO
(Q6252055,P20,Q4855932)
action is_in
entity Q4855932
action find
entity Q6252055
relation P20
[ANSWER]
['Q6252055', 'P20', 'Q4855932']
ASK WHERE { resource:Q6252055 property:P20 resource:Q4855932 }
No
action is_in
entity Bank Houses
action find
entity Herman Zetterberg
relation place of death
['Herman Zetterberg', 'place of death', 'Bank Houses']
ASK WHERE { resource:Herman_Zetterberg property:place_of_death resource:Bank_Houses }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q6252055 Q720076
P39
Q12737077
USER
How many occupations were the positions for which Herman Zetterberg or Clement were appointed ?
(Q6252055,P39,c(Q12737077)) (Q720076,P39,c(Q12737077))
action count
action union
action filter_type
action find
entity Q6252055
relation P39
type Q12737077
action filter_type
action find
entity Q720076
relation P39
type Q12737077
['Q6252055', 'P39', {'concept': 'Q12737077'}] ['Q720076', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { resource:Q6252055 property:P39 ?t . ?t rdf:type ontology:Q12737077 } UNION { resource:Q720076 property:P39 ?t . ?t rdf:type ontology:Q12737077 } }
Herman Zetterberg Clement
action count
action union
action filter_type
action find
entity Herman Zetterberg
relation position held
type occupation
action filter_type
action find
entity Clement
relation position held
type occupation
['Herman Zetterberg', 'position held', {'concept': 'occupation'}] ['Clement', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { resource:Herman_Zetterberg property:position_held ?t . ?t rdf:type ontology:occupation } UNION { resource:Clement property:position_held ?t . ?t rdf:type ontology:occupation } }
[]
occupation
SYSTEM
3
Q29182 Q3315958 Q15729481
(Q6252055,P39,c(Q12737077)) (Q720076,P39,c(Q12737077))
action count
action union
action filter_type
action find
entity Q6252055
relation P39
type Q12737077
action filter_type
action find
entity Q720076
relation P39
type Q12737077
[ANSWER]
['Q6252055', 'P39', {'concept': 'Q12737077'}] ['Q720076', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { resource:Q6252055 property:P39 ?t . ?t rdf:type ontology:Q12737077 } UNION { resource:Q720076 property:P39 ?t . ?t rdf:type ontology:Q12737077 } }
bishop Minister for Justice Bishop of Metz
3
action count
action union
action filter_type
action find
entity Herman Zetterberg
relation position held
type occupation
action filter_type
action find
entity Clement
relation position held
type occupation
['Herman Zetterberg', 'position held', {'concept': 'occupation'}] ['Clement', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { resource:Herman_Zetterberg property:position_held ?t . ?t rdf:type ontology:occupation } UNION { resource:Clement property:position_held ?t . ?t rdf:type ontology:occupation } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1553720
P417
Q502895 Q12737077
USER
Which people are the patron saint of greater number of occupations than Guy of Anderlecht ?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q1553720
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?f ) WHERE { ?v property:P417 ?c . ?c rdf:type ontology:Q502895 . ?v rdf:type ontology:Q12737077 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { resource:Q1553720 property:P417 ?w . ?w rdf:type ontology:Q502895 } } . FILTER ( ?f > ?z ) }
Guy of Anderlecht
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Guy of Anderlecht
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?f ) WHERE { ?v property:patron_saint ?c . ?c rdf:type ontology:common_name . ?v rdf:type ontology:occupation } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { resource:Guy_of_Anderlecht property:patron_saint ?w . ?w rdf:type ontology:common_name } } . FILTER ( ?f > ?z ) }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
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 greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q1553720
relation P417
type Q502895
[ANSWERS] are the patron saint of greater number of occupations than Guy of Anderlecht
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?f ) WHERE { ?v property:P417 ?c . ?c rdf:type ontology:Q502895 . ?v rdf:type ontology:Q12737077 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { resource:Q1553720 property:P417 ?w . ?w rdf:type ontology:Q502895 } } . FILTER ( ?f > ?z ) }
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
Thomas Aquinas, Albertus Magnus and Isidore of Seville are the patron saint of greater number of occupations than Guy of Anderlecht
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Guy of Anderlecht
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?f ) WHERE { ?v property:patron_saint ?c . ?c rdf:type ontology:common_name . ?v rdf:type ontology:occupation } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { resource:Guy_of_Anderlecht property:patron_saint ?w . ?w rdf:type ontology:common_name } } . FILTER ( ?f > ?z ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q236974
P417
Q502895 Q12737077
USER
And how about Radegund?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q236974
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Q236974 property:P417 ?y . ?y rdf:type ontology:Q502895 } } . FILTER ( ?o > ?k ) . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:P417 ?d . ?j rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q502895 } GROUP BY ?d } }
Radegund
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Radegund
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Radegund property:patron_saint ?y . ?y rdf:type ontology:common_name } } . FILTER ( ?o > ?k ) . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:patron_saint ?d . ?j rdf:type ontology:occupation . ?d rdf:type ontology:common_name } GROUP BY ?d } }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
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 greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q236974
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Q236974 property:P417 ?y . ?y rdf:type ontology:Q502895 } } . FILTER ( ?o > ?k ) . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:P417 ?d . ?j rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q502895 } GROUP BY ?d } }
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
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Radegund
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Radegund property:patron_saint ?y . ?y rdf:type ontology:common_name } } . FILTER ( ?o > ?k ) . { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:patron_saint ?d . ?j rdf:type ontology:occupation . ?d rdf:type ontology:common_name } GROUP BY ?d } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q9438 Q60059 Q166876
P674
Q223393
USER
Which literary genres have the character those people ?
(c(Q223393),P674,Q9438) (c(Q223393),P674,Q60059) (c(Q223393),P674,Q166876)
action filter_type
action find_reverse
entity prev_answer
relation P674
type Q223393
[{'concept': 'Q223393'}, 'P674', 'Q9438'] [{'concept': 'Q223393'}, 'P674', 'Q60059'] [{'concept': 'Q223393'}, 'P674', 'Q166876']
SELECT DISTINCT ?r WHERE { ?r property:P674 ?g . VALUES ( ?g ) { ( resource:Q453698 ) ( resource:Q229190 ) ( resource:Q152457 ) } . ?r rdf:type ontology:Q223393 }
Thomas Aquinas Albertus Magnus Isidore of Seville
action filter_type
action find_reverse
entity prev_answer
relation characters
type literary genre
[{'concept': 'literary genre'}, 'characters', 'Thomas Aquinas'] [{'concept': 'literary genre'}, 'characters', 'Albertus Magnus'] [{'concept': 'literary genre'}, 'characters', 'Isidore of Seville']
SELECT DISTINCT ?r WHERE { ?r property:characters ?g . VALUES ( ?g ) { ( resource:Saint_Amand ) ( resource:Catherine_of_Siena ) ( resource:Saint_Roch ) } . ?r rdf:type ontology:literary_genre }
[]
literary genre
Q40185
SYSTEM
The Divine Comedy
Q40185
(c(Q223393),P674,Q9438) (c(Q223393),P674,Q60059) (c(Q223393),P674,Q166876)
action filter_type
action find_reverse
entity prev_answer
relation P674
type Q223393
[ANSWER] have the character those people
[{'concept': 'Q223393'}, 'P674', 'Q9438'] [{'concept': 'Q223393'}, 'P674', 'Q60059'] [{'concept': 'Q223393'}, 'P674', 'Q166876']
SELECT DISTINCT ?r WHERE { ?r property:P674 ?g . VALUES ( ?g ) { ( resource:Q453698 ) ( resource:Q229190 ) ( resource:Q152457 ) } . ?r rdf:type ontology:Q223393 }
The Divine Comedy
The Divine Comedy have the character those people
The Divine Comedy
action filter_type
action find_reverse
entity prev_answer
relation characters
type literary genre
[{'concept': 'literary genre'}, 'characters', 'Thomas Aquinas'] [{'concept': 'literary genre'}, 'characters', 'Albertus Magnus'] [{'concept': 'literary genre'}, 'characters', 'Isidore of Seville']
SELECT DISTINCT ?r WHERE { ?r property:characters ?g . VALUES ( ?g ) { ( resource:Saint_Amand ) ( resource:Catherine_of_Siena ) ( resource:Saint_Roch ) } . ?r rdf:type ontology:literary_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9438
P180
Q3305213
USER
What painting depicts Thomas Aquinas ?
(c(Q3305213),P180,Q40185)
action filter_type
action find_reverse
entity Q9438
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q40185']
SELECT DISTINCT ?f WHERE { ?f property:P180 resource:Q9438 . ?f rdf:type ontology:Q3305213 }
Thomas Aquinas
action filter_type
action find_reverse
entity Thomas Aquinas
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'The Divine Comedy']
SELECT DISTINCT ?f WHERE { ?f property:depicts resource:Thomas_Aquinas . ?f rdf:type ontology:painting }
[]
painting
Q1215717
SYSTEM
Coronation of the Virgin
Q1215717
(c(Q3305213),P180,Q40185)
action filter_type
action find_reverse
entity Q9438
relation P180
type Q3305213
The [ANSWER] depicts Thomas Aquinas
[{'concept': 'Q3305213'}, 'P180', 'Q40185']
SELECT DISTINCT ?f WHERE { ?f property:P180 resource:Q9438 . ?f rdf:type ontology:Q3305213 }
Coronation of the Virgin
The Coronation of the Virgin depicts Thomas Aquinas
Coronation of the Virgin
action filter_type
action find_reverse
entity Thomas Aquinas
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'The Divine Comedy']
SELECT DISTINCT ?f WHERE { ?f property:depicts resource:Thomas_Aquinas . ?f rdf:type ontology:painting }
[]