Simple Question (Direct)
Simple Question
Q18127563
P21
Q290
USER
What is the sex of John Robson ?
(Q18127563,P21,c(Q290))
action filter_type
action find
entity Q18127563
relation P21
type Q290
['Q18127563', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q290 . resource:Q18127563 property:P21 ?x }
John Robson
action filter_type
action find
entity John Robson
relation gender
type sex
['John Robson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:sex . resource:John_Robson property:gender ?x }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18127563,P21,c(Q290))
action filter_type
action find
entity Q18127563
relation P21
type Q290
The sex of John Robson is a [ANSWER]
['Q18127563', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q290 . resource:Q18127563 property:P21 ?x }
male
The sex of John Robson is a male
male
action filter_type
action find
entity John Robson
relation gender
type sex
['John Robson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:sex . resource:John_Robson property:gender ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18127563
P106
Q12737077
USER
What is the job of John Robson ?
(Q18127563,P106,c(Q12737077))
action filter_type
action find
entity Q18127563
relation P106
type Q12737077
['Q18127563', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q18127563 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
John Robson
action filter_type
action find
entity John Robson
relation occupation
type occupation
['John Robson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:John_Robson property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q18127563,P106,c(Q12737077))
action filter_type
action find
entity Q18127563
relation P106
type Q12737077
The job of John Robson is an [ANSWER]
['Q18127563', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q18127563 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
association football player
The job of John Robson is an association football player
association football player
action filter_type
action find
entity John Robson
relation occupation
type occupation
['John Robson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:John_Robson property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6178452
Q12737077
USER
And how about Bo Sjögren?
(Q6178452,P106,c(Q12737077))
action filter_type
action find
entity Q6178452
relation P106
type Q12737077
['Q6178452', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q6178452 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Bo Sjögren
action filter_type
action find
entity Bo Sjögren
relation occupation
type occupation
['Bo Sjögren', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Bo_Sjögren property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
(Q6178452,P106,c(Q12737077))
action filter_type
action find
entity Q6178452
relation P106
type Q12737077
[ANSWER]
['Q6178452', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q6178452 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
writer
writer
action filter_type
action find
entity Bo Sjögren
relation occupation
type occupation
['Bo Sjögren', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Bo_Sjögren property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q316295
P417
Q502895 Q12737077
USER
Which people are the patron saints of greater number of occupations than Bernardino of Siena ?
(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 Q316295
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q316295 property:P417 ?e . ?e rdf:type ontology:Q502895 } } . FILTER ( ?y > ?f ) . { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P417 ?h . ?h rdf:type ontology:Q502895 . ?q rdf:type ontology:Q12737077 } GROUP BY ?h } }
Bernardino of Siena
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Bernardino of Siena
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Bernardino_of_Siena property:patron_saint ?e . ?e rdf:type ontology:common_name } } . FILTER ( ?y > ?f ) . { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:patron_saint ?h . ?h rdf:type ontology:common_name . ?q rdf:type ontology:occupation } GROUP BY ?h } }
[]
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 Q316295
relation P417
type Q502895
[ANSWERS] are the patron saints of greater number of occupations than Bernardino of Siena
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q316295 property:P417 ?e . ?e rdf:type ontology:Q502895 } } . FILTER ( ?y > ?f ) . { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P417 ?h . ?h rdf:type ontology:Q502895 . ?q rdf:type ontology:Q12737077 } GROUP BY ?h } }
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 saints of greater number of occupations than Bernardino of Siena
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 Bernardino of Siena
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Bernardino_of_Siena property:patron_saint ?e . ?e rdf:type ontology:common_name } } . FILTER ( ?y > ?f ) . { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:patron_saint ?h . ?h rdf:type ontology:common_name . ?q rdf:type ontology:occupation } GROUP BY ?h } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q163900
P417
Q502895 Q12737077
USER
And what about Saint Francis Xavier?
(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 Q163900
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { ?r rdf:type ontology:Q502895 . resource:Q163900 property:P417 ?r } } . FILTER ( ?w > ?v ) . { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?w ) WHERE { ?a property:P417 ?l . ?l rdf:type ontology:Q502895 . ?a rdf:type ontology:Q12737077 } GROUP BY ?l } }
Saint Francis Xavier
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Francis Xavier
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { ?r rdf:type ontology:common_name . resource:Saint_Francis_Xavier property:patron_saint ?r } } . FILTER ( ?w > ?v ) . { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?w ) WHERE { ?a property:patron_saint ?l . ?l rdf:type ontology:common_name . ?a rdf:type ontology:occupation } GROUP BY ?l } }
[]
common name occupation
Q166876 Q229190 Q44248
SYSTEM
Isidore of Seville, Catherine of Siena, Jerome
Q229190 Q328804 Q166876 Q170547 Q128538 Q183240 Q196653 Q44265 Q192816 Q43982 Q179718 Q43600 Q744884 Q151967 Q200895 Q44248
(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 Q163900
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { ?r rdf:type ontology:Q502895 . resource:Q163900 property:P417 ?r } } . FILTER ( ?w > ?v ) . { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?w ) WHERE { ?a property:P417 ?l . ?l rdf:type ontology:Q502895 . ?a rdf:type ontology:Q12737077 } GROUP BY ?l } }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Luke the Evangelist Saint Lucy Saint Veronica Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle Zita Saint Blaise Agatha of Sicily Jerome
Isidore of Seville Catherine of Siena Jerome
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Francis Xavier
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { ?r rdf:type ontology:common_name . resource:Saint_Francis_Xavier property:patron_saint ?r } } . FILTER ( ?w > ?v ) . { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?w ) WHERE { ?a property:patron_saint ?l . ?l rdf:type ontology:common_name . ?a rdf:type ontology:occupation } GROUP BY ?l } }
[]