Simple Question (Direct)
Simple Question
Q1440987
P21
Q290
USER
Which sex does Francesco Ciampi have ?
(Q1440987,P21,c(Q290))
action filter_type
action find
entity Q1440987
relation P21
type Q290
['Q1440987', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q1440987 property:P21 ?y . ?y rdf:type ontology:Q290 }
Francesco Ciampi
action filter_type
action find
entity Francesco Ciampi
relation gender
type sex
['Francesco Ciampi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Francesco_Ciampi property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1440987,P21,c(Q290))
action filter_type
action find
entity Q1440987
relation P21
type Q290
Francesco Ciampi has a [ANSWER]
['Q1440987', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q1440987 property:P21 ?y . ?y rdf:type ontology:Q290 }
male
Francesco Ciampi has a male
male
action filter_type
action find
entity Francesco Ciampi
relation gender
type sex
['Francesco Ciampi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Francesco_Ciampi property:gender ?y . ?y rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P21
Q290 Q502895
USER
How many sexes are the sex of approximately the same number of people as that sex ?
(c(Q502895),P21,c(Q290))
action count
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P21 ?h . ?h rdf:type ontology:Q290 . ?u rdf:type ontology:Q502895 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { resource:Q6581097 property:P21 ?j . ?j rdf:type ontology:Q290 } } . FILTER ( ?m = ?e ) }
action count
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:gender ?h . ?h rdf:type ontology:sex . ?u rdf:type ontology:common_name } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { resource:male property:gender ?j . ?j rdf:type ontology:sex } } . FILTER ( ?m = ?e ) }
[]
sex common name
SYSTEM
1
Q6581097
(c(Q502895),P21,c(Q290))
action count
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[ANSWER]
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P21 ?h . ?h rdf:type ontology:Q290 . ?u rdf:type ontology:Q502895 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { resource:Q6581097 property:P21 ?j . ?j rdf:type ontology:Q290 } } . FILTER ( ?m = ?e ) }
male
1
action count
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:gender ?h . ?h rdf:type ontology:sex . ?u rdf:type ontology:common_name } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { resource:male property:gender ?j . ?j rdf:type ontology:sex } } . FILTER ( ?m = ?e ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1440987
P106
Q12737077
USER
What are the job of Francesco Ciampi ?
(Q1440987,P106,c(Q12737077))
action filter_type
action find
entity Q1440987
relation P106
type Q12737077
['Q1440987', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1440987 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Francesco Ciampi
action filter_type
action find
entity Francesco Ciampi
relation occupation
type occupation
['Francesco Ciampi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Francesco_Ciampi property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q158852 Q1259917 Q36834
SYSTEM
conductor, violinist, composer
Q158852 Q1259917 Q36834
(Q1440987,P106,c(Q12737077))
action filter_type
action find
entity Q1440987
relation P106
type Q12737077
The job of Francesco Ciampi are the [ANSWERS]
['Q1440987', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1440987 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
conductor violinist composer
The job of Francesco Ciampi are the conductor, violinist and composer
conductor violinist composer
action filter_type
action find
entity Francesco Ciampi
relation occupation
type occupation
['Francesco Ciampi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Francesco_Ciampi property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5234655
Q12737077
USER
And also tell me about David Halliwell?
(Q5234655,P106,c(Q12737077))
action filter_type
action find
entity Q5234655
relation P106
type Q12737077
['Q5234655', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q5234655 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
David Halliwell
action filter_type
action find
entity David Halliwell
relation occupation
type occupation
['David Halliwell', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:David_Halliwell property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q33999
SYSTEM
actor
Q33999
(Q5234655,P106,c(Q12737077))
action filter_type
action find
entity Q5234655
relation P106
type Q12737077
[ANSWER]
['Q5234655', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q5234655 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
actor
actor
action filter_type
action find
entity David Halliwell
relation occupation
type occupation
['David Halliwell', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:David_Halliwell property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q9438
P417
Q502895 Q12737077
USER
How many people are the patron saint of greater number of occupations than Thomas Aquinas ?
(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 Q9438
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:P417 ?q . ?h rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q502895 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Q9438 property:P417 ?v . ?v rdf:type ontology:Q502895 } } . FILTER ( ?p > ?k ) }
Thomas Aquinas
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 Thomas Aquinas
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:patron_saint ?q . ?h rdf:type ontology:occupation . ?q rdf:type ontology:common_name } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Thomas_Aquinas property:patron_saint ?v . ?v rdf:type ontology:common_name } } . FILTER ( ?p > ?k ) }
[]
common name occupation
SYSTEM
16
Q229190 Q328804 Q166876 Q170547 Q128538 Q183240 Q196653 Q44265 Q192816 Q43982 Q179718 Q43600 Q744884 Q151967 Q200895 Q44248
(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 Q9438
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:P417 ?q . ?h rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q502895 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Q9438 property:P417 ?v . ?v rdf:type ontology:Q502895 } } . FILTER ( ?p > ?k ) }
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
16
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 Thomas Aquinas
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:patron_saint ?q . ?h rdf:type ontology:occupation . ?q rdf:type ontology:common_name } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Thomas_Aquinas property:patron_saint ?v . ?v rdf:type ontology:common_name } } . FILTER ( ?p > ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q443392
P417
Q502895 Q12737077
USER
And how about Saint Bibiana?
(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 Q443392
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:P417 ?r . ?r rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Q443392 property:P417 ?y . ?y rdf:type ontology:Q502895 } } . FILTER ( ?n > ?q ) }
Saint Bibiana
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 Saint Bibiana
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:patron_saint ?r . ?r rdf:type ontology:common_name . ?c rdf:type ontology:occupation } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Saint_Bibiana property:patron_saint ?y . ?y rdf:type ontology:common_name } } . FILTER ( ?n > ?q ) }
[]
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 Q443392
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:P417 ?r . ?r rdf:type ontology:Q502895 . ?c rdf:type ontology:Q12737077 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Q443392 property:P417 ?y . ?y rdf:type ontology:Q502895 } } . FILTER ( ?n > ?q ) }
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 Saint Bibiana
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?n ) WHERE { ?c property:patron_saint ?r . ?r rdf:type ontology:common_name . ?c rdf:type ontology:occupation } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Saint_Bibiana property:patron_saint ?y . ?y rdf:type ontology:common_name } } . FILTER ( ?n > ?q ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33999
P425
Q1914636
USER
Which activity is associated with the field of occupation actor ?
(Q33999,P425,c(Q1914636))
action filter_type
action find
entity Q33999
relation P425
type Q1914636
['Q33999', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?y WHERE { resource:Q33999 property:P425 ?y . ?y rdf:type ontology:Q1914636 }
actor
action filter_type
action find
entity actor
relation field of this occupation
type activity
['actor', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?y WHERE { resource:actor property:field_of_this_occupation ?y . ?y rdf:type ontology:activity }
[]
activity
Q222749
SYSTEM
acting
Q222749
(Q33999,P425,c(Q1914636))
action filter_type
action find
entity Q33999
relation P425
type Q1914636
Is [ANSWER] is associated with the field of occupation actor
['Q33999', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?y WHERE { resource:Q33999 property:P425 ?y . ?y rdf:type ontology:Q1914636 }
acting
Is acting is associated with the field of occupation actor
acting
action filter_type
action find
entity actor
relation field of this occupation
type activity
['actor', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?y WHERE { resource:actor property:field_of_this_occupation ?y . ?y rdf:type ontology:activity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q33999
P20
Q502895
USER
Which people expired at that occupation ?
(c(Q502895),P20,Q222749)
action filter_type
action find_reverse
entity Q33999
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q222749']
SELECT DISTINCT ?n WHERE { ?n property:P20 resource:Q33999 . ?n rdf:type ontology:Q502895 }
actor
action filter_type
action find_reverse
entity actor
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'acting']
SELECT DISTINCT ?n WHERE { ?n property:place_of_death resource:actor . ?n rdf:type ontology:common_name }
[]
common name
Q6688701 Q4766357 Q7490763
SYSTEM
Louise Currie, Ann Davies, Shaukat Kaifi
Q6688701 Q4766357 Q7490763
(c(Q502895),P20,Q222749)
action filter_type
action find_reverse
entity Q33999
relation P20
type Q502895
[ANSWERS] expired at that occupation
[{'concept': 'Q502895'}, 'P20', 'Q222749']
SELECT DISTINCT ?n WHERE { ?n property:P20 resource:Q33999 . ?n rdf:type ontology:Q502895 }
Louise Currie Ann Davies Shaukat Kaifi
Louise Currie, Ann Davies and Shaukat Kaifi expired at that occupation
Louise Currie Ann Davies Shaukat Kaifi
action filter_type
action find_reverse
entity actor
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'acting']
SELECT DISTINCT ?n WHERE { ?n property:place_of_death resource:actor . ?n rdf:type ontology:common_name }
[]