Simple Question (Direct)
Simple Question
Q6229489
P69
Q3918
USER
Where was John Dittrich educated ?
(Q6229489,P69,c(Q3918))
action filter_type
action find
entity Q6229489
relation P69
type Q3918
['Q6229489', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?o WHERE { resource:Q6229489 property:P69 ?o . ?o rdf:type ontology:Q3918 }
John Dittrich
action filter_type
action find
entity John Dittrich
relation educated at
type university
['John Dittrich', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?o WHERE { resource:John_Dittrich property:educated_at ?o . ?o rdf:type ontology:university }
[]
university
Q838330
SYSTEM
University of Wisconsin–Madison
Q838330
(Q6229489,P69,c(Q3918))
action filter_type
action find
entity Q6229489
relation P69
type Q3918
John Dittrich was educated by [ANSWER]
['Q6229489', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?o WHERE { resource:Q6229489 property:P69 ?o . ?o rdf:type ontology:Q3918 }
University of Wisconsin–Madison
John Dittrich was educated by University of Wisconsin–Madison
University of Wisconsin–Madison
action filter_type
action find
entity John Dittrich
relation educated at
type university
['John Dittrich', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?o WHERE { resource:John_Dittrich property:educated_at ?o . ?o rdf:type ontology:university }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6229489
P19
Q56061
USER
Where was John Dittrich born ?
(Q6229489,P19,c(Q56061))
action filter_type
action find
entity Q6229489
relation P19
type Q56061
['Q6229489', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q6229489 property:P19 ?k . ?k rdf:type ontology:Q56061 }
John Dittrich
action filter_type
action find
entity John Dittrich
relation place of birth
type administrative territorial entity
['John Dittrich', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:John_Dittrich property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q984834
SYSTEM
Sheboygan
Q984834
(Q6229489,P19,c(Q56061))
action filter_type
action find
entity Q6229489
relation P19
type Q56061
John Dittrich was born in [ANSWER]
['Q6229489', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q6229489 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Sheboygan
John Dittrich was born in Sheboygan
Sheboygan
action filter_type
action find
entity John Dittrich
relation place of birth
type administrative territorial entity
['John Dittrich', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:John_Dittrich property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11451330
Q56061
USER
And also tell me about Kōsei Andō?
(Q11451330,P19,c(Q56061))
action filter_type
action find
entity Q11451330
relation P19
type Q56061
['Q11451330', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q11451330 property:P19 ?e }
Kōsei Andō
action filter_type
action find
entity Kōsei Andō
relation place of birth
type administrative territorial entity
['Kōsei Andō', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Kōsei_Andō property:place_of_birth ?e }
[]
administrative territorial entity
Q1490
SYSTEM
Tokyo
Q1490
(Q11451330,P19,c(Q56061))
action filter_type
action find
entity Q11451330
relation P19
type Q56061
[ANSWER]
['Q11451330', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q11451330 property:P19 ?e }
Tokyo
Tokyo
action filter_type
action find
entity Kōsei Andō
relation place of birth
type administrative territorial entity
['Kōsei Andō', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Kōsei_Andō property:place_of_birth ?e }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1311299 Q6229489
P106
Q12737077
USER
Which occupations are the professions of John Dittrich or Peter O'Mara ?
OR((Q6229489,P106,c(Q12737077)), (Q1311299,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6229489
relation P106
action find
entity Q1311299
relation P106
type Q12737077
{'OR': [['Q6229489', 'P106', {'concept': 'Q12737077'}], ['Q1311299', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q6229489 property:P106 ?z } UNION { resource:Q1311299 property:P106 ?z } } . ?z rdf:type ontology:Q12737077 }
Peter O'Mara John Dittrich
action filter_type
action union
action find
entity John Dittrich
relation occupation
action find
entity Peter O'Mara
relation occupation
type occupation
{'OR': [['John Dittrich', 'occupation', {'concept': 'occupation'}], ["Peter O'Mara", 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?z WHERE { { { resource:John_Dittrich property:occupation ?z } UNION { resource:Peter_O'Mara property:occupation ?z } } . ?z rdf:type ontology:occupation }
[]
occupation
Q15981151 Q16145150 Q19204627 Q6168364 Q36834
SYSTEM
jazz musician, music educator, American football player, jazz guitarist, composer
Q15981151 Q16145150 Q19204627 Q6168364 Q36834
OR((Q6229489,P106,c(Q12737077)), (Q1311299,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6229489
relation P106
action find
entity Q1311299
relation P106
type Q12737077
[ANSWERS] the professions of John Dittrich or Peter O'Mara
{'OR': [['Q6229489', 'P106', {'concept': 'Q12737077'}], ['Q1311299', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q6229489 property:P106 ?z } UNION { resource:Q1311299 property:P106 ?z } } . ?z rdf:type ontology:Q12737077 }
jazz musician music educator American football player jazz guitarist composer
Jazz musician, music educator, American football player, jazz guitarist and composer the professions of John Dittrich or Peter O'Mara
jazz musician music educator American football player jazz guitarist composer
action filter_type
action union
action find
entity John Dittrich
relation occupation
action find
entity Peter O'Mara
relation occupation
type occupation
{'OR': [['John Dittrich', 'occupation', {'concept': 'occupation'}], ["Peter O'Mara", 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?z WHERE { { { resource:John_Dittrich property:occupation ?z } UNION { resource:Peter_O'Mara property:occupation ?z } } . ?z rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q15284282
P417
Q502895 Q12737077
USER
Which people are the patron saint of more number of occupations than Adolphus ?
(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 Q15284282
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P417 ?b . ?b rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { resource:Q15284282 property:P417 ?f . ?f rdf:type ontology:Q502895 } } . FILTER ( ?j > ?o ) }
Adolphus
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Adolphus
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:patron_saint ?b . ?b rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { resource:Adolphus property:patron_saint ?f . ?f rdf:type ontology:common_name } } . FILTER ( ?j > ?o ) }
[]
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 Q15284282
relation P417
type Q502895
[ANSWERS] are the patron saint of more number of occupations than Adolphus
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P417 ?b . ?b rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { resource:Q15284282 property:P417 ?f . ?f rdf:type ontology:Q502895 } } . FILTER ( ?j > ?o ) }
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 more number of occupations than Adolphus
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 Adolphus
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:patron_saint ?b . ?b rdf:type ontology:common_name . ?x rdf:type ontology:occupation } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { resource:Adolphus property:patron_saint ?f . ?f rdf:type ontology:common_name } } . FILTER ( ?j > ?o ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q9438 Q60059 Q166876
P50
Q2342494
USER
Which collectables are those people an author of ?
(c(Q2342494),P50,Q9438) (c(Q2342494),P50,Q60059) (c(Q2342494),P50,Q166876)
action filter_type
action find_reverse
entity prev_answer
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q9438'] [{'concept': 'Q2342494'}, 'P50', 'Q60059'] [{'concept': 'Q2342494'}, 'P50', 'Q166876']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q2342494 . ?x property:P50 ?u . VALUES ( ?u ) { ( resource:Q453698 ) ( resource:Q229190 ) ( resource:Q152457 ) } }
Thomas Aquinas Albertus Magnus Isidore of Seville
action filter_type
action find_reverse
entity prev_answer
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Thomas Aquinas'] [{'concept': 'collectable'}, 'author', 'Albertus Magnus'] [{'concept': 'collectable'}, 'author', 'Isidore of Seville']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:collectable . ?x property:author ?u . VALUES ( ?u ) { ( resource:Saint_Amand ) ( resource:Catherine_of_Siena ) ( resource:Saint_Roch ) } }
[]
collectable
Q119823 Q2839792 Q1218746
SYSTEM
on being and essence, De vegetabilis et plantis libri septem, Historia de regibus Gothorum, Vandalorum et Suevorum
Q119823 Q2839792 Q1218746
(c(Q2342494),P50,Q9438) (c(Q2342494),P50,Q60059) (c(Q2342494),P50,Q166876)
action filter_type
action find_reverse
entity prev_answer
relation P50
type Q2342494
[ANSWERS]
[{'concept': 'Q2342494'}, 'P50', 'Q9438'] [{'concept': 'Q2342494'}, 'P50', 'Q60059'] [{'concept': 'Q2342494'}, 'P50', 'Q166876']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q2342494 . ?x property:P50 ?u . VALUES ( ?u ) { ( resource:Q453698 ) ( resource:Q229190 ) ( resource:Q152457 ) } }
on being and essence De vegetabilis et plantis libri septem Historia de regibus Gothorum, Vandalorum et Suevorum
On being and essence, De vegetabilis et plantis libri septem and Historia de regibus Gothorum, Vandalorum et Suevorum are those people an author of
on being and essence De vegetabilis et plantis libri septem Historia de regibus Gothorum, Vandalorum et Suevorum
action filter_type
action find_reverse
entity prev_answer
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Thomas Aquinas'] [{'concept': 'collectable'}, 'author', 'Albertus Magnus'] [{'concept': 'collectable'}, 'author', 'Isidore of Seville']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:collectable . ?x property:author ?u . VALUES ( ?u ) { ( resource:Saint_Amand ) ( resource:Catherine_of_Siena ) ( resource:Saint_Roch ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q119823
P136
Q1047113
USER
Which special field is the genre for that collectable ?
(Q119823,P136,c(Q1047113))
action filter_type
action find
entity Q119823
relation P136
type Q1047113
['Q119823', 'P136', {'concept': 'Q1047113'}]
SELECT DISTINCT ?x WHERE { resource:Q119823 property:P136 ?x . ?x rdf:type ontology:Q1047113 }
on being and essence
action filter_type
action find
entity on being and essence
relation genre
type special field
['on being and essence', 'genre', {'concept': 'special field'}]
SELECT DISTINCT ?x WHERE { resource:on_being_and_essence property:genre ?x . ?x rdf:type ontology:special_field }
[]
special field
Clarification for simple ques.
Q119823
SYSTEM
Did you mean on being and essence ?
Q119823 Q2839792 Q1218746
(Q119823,P136,c(Q1047113)) (Q2839792,P136,c(Q1047113)) (Q1218746,P136,c(Q1047113))
[ANSWER]
['Q119823', 'P136', {'concept': 'Q1047113'}] ['Q2839792', 'P136', {'concept': 'Q1047113'}] ['Q1218746', 'P136', {'concept': 'Q1047113'}]
SELECT DISTINCT ?x WHERE { resource:Q119823 property:P136 ?x . ?x rdf:type ontology:Q1047113 }
on being and essence De vegetabilis et plantis libri septem Historia de regibus Gothorum, Vandalorum et Suevorum
Did you mean on being and essence ?
on being and essence
['on being and essence', 'genre', {'concept': 'special field'}] ['De vegetabilis et plantis libri septem', 'genre', {'concept': 'special field'}] ['Historia de regibus Gothorum, Vandalorum et Suevorum', 'genre', {'concept': 'special field'}]
SELECT DISTINCT ?x WHERE { resource:on_being_and_essence property:genre ?x . ?x rdf:type ontology:special_field }
[]
Simple Question (Coreferenced)
USER
Yes
(Q119823,P136,c(Q1047113))
['Q119823', 'P136', {'concept': 'Q1047113'}]
['on being and essence', 'genre', {'concept': 'special field'}]
[]
Q5891
SYSTEM
philosophy
Q5891
(Q119823,P136,c(Q1047113))
action filter_type
action find
entity Q119823
relation P136
type Q1047113
Is [ANSWER] is the genre for that collectable
['Q119823', 'P136', {'concept': 'Q1047113'}]
SELECT DISTINCT ?x WHERE { resource:Q119823 property:P136 ?x . ?x rdf:type ontology:Q1047113 }
philosophy
Is philosophy is the genre for that collectable
philosophy
action filter_type
action find
entity on being and essence
relation genre
type special field
['on being and essence', 'genre', {'concept': 'special field'}]
SELECT DISTINCT ?x WHERE { resource:on_being_and_essence property:genre ?x . ?x rdf:type ontology:special_field }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q1914636 Q1047113
USER
Which activities are exactly 3 special fields a component of ?
(c(Q1047113),P361,c(Q1914636))
action equal
action find_reverse_tuple_counts
relation P361
type Q1914636
type Q1047113
value 3
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q1914636'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?n ) WHERE { ?y rdf:type ontology:Q1914636 . ?c rdf:type ontology:Q1047113 . ?c property:P361 ?y } GROUP BY ?y } . FILTER ( ?n = 3 ) }
action equal
action find_reverse_tuple_counts
relation part of
type activity
type special field
value 3
[{'concept': 'special field'}, 'part of', {'concept': 'activity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?n ) WHERE { ?y rdf:type ontology:activity . ?c rdf:type ontology:special_field . ?c property:part_of ?y } GROUP BY ?y } . FILTER ( ?n = 3 ) }
[]
activity special field
Q944537 Q8162
SYSTEM
Geisteswissenschaft, linguistics
Q944537 Q8162
(c(Q1047113),P361,c(Q1914636))
action equal
action find_reverse_tuple_counts
relation P361
type Q1914636
type Q1047113
value 3
[ANSWERS] are exactly 3 special fields a component of
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q1914636'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?n ) WHERE { ?y rdf:type ontology:Q1914636 . ?c rdf:type ontology:Q1047113 . ?c property:P361 ?y } GROUP BY ?y } . FILTER ( ?n = 3 ) }
Geisteswissenschaft linguistics
Geisteswissenschaft and linguistics are exactly 3 special fields a component of
Geisteswissenschaft linguistics
action equal
action find_reverse_tuple_counts
relation part of
type activity
type special field
value 3
[{'concept': 'special field'}, 'part of', {'concept': 'activity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?n ) WHERE { ?y rdf:type ontology:activity . ?c rdf:type ontology:special_field . ?c property:part_of ?y } GROUP BY ?y } . FILTER ( ?n = 3 ) }
[]