Simple Question (Direct)
Simple Question
Q6222621
P21
Q290
USER
Which sex does John Bovill possess ?
(Q6222621,P21,c(Q290))
action filter_type
action find
entity Q6222621
relation P21
type Q290
['Q6222621', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q6222621 property:P21 ?n . ?n rdf:type ontology:Q290 }
John Bovill
action filter_type
action find
entity John Bovill
relation gender
type sex
['John Bovill', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:John_Bovill property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6222621,P21,c(Q290))
action filter_type
action find
entity Q6222621
relation P21
type Q290
John Bovill possesses un [ANSWER]
['Q6222621', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q6222621 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
John Bovill possesses un male
male
action filter_type
action find
entity John Bovill
relation gender
type sex
['John Bovill', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:John_Bovill property:gender ?n . ?n rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q272857 Q6222621
P106
Q12737077
USER
Which occupations have John Bovill or Rita Gam as his/her as a career ?
OR((Q6222621,P106,c(Q12737077)), (Q272857,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6222621
relation P106
action find
entity Q272857
relation P106
type Q12737077
{'OR': [['Q6222621', 'P106', {'concept': 'Q12737077'}], ['Q272857', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?y ) { ( resource:Q6222621 ) ( resource:Q272857 ) } . ?y property:P106 ?g } . ?g rdf:type ontology:Q12737077 }
Rita Gam John Bovill
action filter_type
action union
action find
entity John Bovill
relation occupation
action find
entity Rita Gam
relation occupation
type occupation
{'OR': [['John Bovill', 'occupation', {'concept': 'occupation'}], ['Rita Gam', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?y ) { ( resource:John_Bovill ) ( resource:Rita_Gam ) } . ?y property:occupation ?g } . ?g rdf:type ontology:occupation }
[]
occupation
Q628099 Q10798782 Q937857 Q33999 Q2259451
SYSTEM
association football manager, television actor, association football player, actor, stage actor
Q628099 Q10798782 Q937857 Q33999 Q2259451
OR((Q6222621,P106,c(Q12737077)), (Q272857,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q6222621
relation P106
action find
entity Q272857
relation P106
type Q12737077
The [ANSWERS] have John Bovill or Rita Gam as his/her as a career
{'OR': [['Q6222621', 'P106', {'concept': 'Q12737077'}], ['Q272857', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?y ) { ( resource:Q6222621 ) ( resource:Q272857 ) } . ?y property:P106 ?g } . ?g rdf:type ontology:Q12737077 }
association football manager television actor association football player actor stage actor
The association football manager, television actor, association football player, actor and stage actor have John Bovill or Rita Gam as his/her as a career
association football manager television actor association football player actor stage actor
action filter_type
action union
action find
entity John Bovill
relation occupation
action find
entity Rita Gam
relation occupation
type occupation
{'OR': [['John Bovill', 'occupation', {'concept': 'occupation'}], ['Rita Gam', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?y ) { ( resource:John_Bovill ) ( resource:Rita_Gam ) } . ?y property:occupation ?g } . ?g rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q272857
P106
Q28640 Q12737077
USER
How many professions or occupations do Rita Gam do for a living ?
(Q272857,P106,c(Q28640)) (Q272857,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q272857
relation P106
type Q28640
action filter_type
action find
entity Q272857
relation P106
type Q12737077
['Q272857', 'P106', {'concept': 'Q28640'}] ['Q272857', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v rdf:type ?o . VALUES ( ?o ) { ( ontology:Q28640 ) ( ontology:Q12737077 ) } }
Rita Gam
action count
action union
action filter_type
action find
entity Rita Gam
relation occupation
type profession
action filter_type
action find
entity Rita Gam
relation occupation
type occupation
['Rita Gam', 'occupation', {'concept': 'profession'}] ['Rita Gam', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v rdf:type ?o . VALUES ( ?o ) { ( ontology:profession ) ( ontology:occupation ) } }
[]
profession occupation
SYSTEM
4
Q10800557 Q33999 Q10798782 Q2259451
(Q272857,P106,c(Q28640)) (Q272857,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q272857
relation P106
type Q28640
action filter_type
action find
entity Q272857
relation P106
type Q12737077
[ANSWER]
['Q272857', 'P106', {'concept': 'Q28640'}] ['Q272857', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v rdf:type ?o . VALUES ( ?o ) { ( ontology:Q28640 ) ( ontology:Q12737077 ) } }
film actor actor television actor stage actor
4
action count
action union
action filter_type
action find
entity Rita Gam
relation occupation
type profession
action filter_type
action find
entity Rita Gam
relation occupation
type occupation
['Rita Gam', 'occupation', {'concept': 'profession'}] ['Rita Gam', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { ?v rdf:type ?o . VALUES ( ?o ) { ( ontology:profession ) ( ontology:occupation ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q3922154
P417
Q502895 Q12737077
USER
How many people are the names of the patron saint of greater number of occupations than Prisco di Nocera ?
(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 Q3922154
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?k ) WHERE { ?u rdf:type ontology:Q502895 . ?w rdf:type ontology:Q12737077 . ?w property:P417 ?u } GROUP BY ?u } . FILTER ( ?k > ?x ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Q3922154 property:P417 ?z . ?z rdf:type ontology:Q502895 } } }
Prisco di Nocera
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 Prisco di Nocera
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?k ) WHERE { ?u rdf:type ontology:common_name . ?w rdf:type ontology:occupation . ?w property:patron_saint ?u } GROUP BY ?u } . FILTER ( ?k > ?x ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Prisco_di_Nocera property:patron_saint ?z . ?z rdf:type ontology:common_name } } }
[]
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 Q3922154
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?k ) WHERE { ?u rdf:type ontology:Q502895 . ?w rdf:type ontology:Q12737077 . ?w property:P417 ?u } GROUP BY ?u } . FILTER ( ?k > ?x ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Q3922154 property:P417 ?z . ?z rdf:type ontology:Q502895 } } }
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 Prisco di Nocera
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?k ) WHERE { ?u rdf:type ontology:common_name . ?w rdf:type ontology:occupation . ?w property:patron_saint ?u } GROUP BY ?u } . FILTER ( ?k > ?x ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { resource:Prisco_di_Nocera property:patron_saint ?z . ?z rdf:type ontology:common_name } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q628099
P425
Q349
USER
Who has association football manager as the associated field of occupation ?
(Q628099,P425,c(Q349))
action filter_type
action find
entity Q628099
relation P425
type Q349
['Q628099', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { resource:Q628099 property:P425 ?w . ?w rdf:type ontology:Q349 }
association football manager
action filter_type
action find
entity association football manager
relation field of this occupation
type sport
['association football manager', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { resource:association_football_manager property:field_of_this_occupation ?w . ?w rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q628099,P425,c(Q349))
action filter_type
action find
entity Q628099
relation P425
type Q349
Has [ANSWER] has [ANSWER] manager as the associated field of occupation
['Q628099', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?w WHERE { resource:Q628099 property:P425 ?w . ?w rdf:type ontology:Q349 }
association football
Has association football has association football manager as the associated field of occupation
association football
action filter_type
action find
entity association football manager
relation field of this occupation
type sport
['association football manager', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?w WHERE { resource:association_football_manager property:field_of_this_occupation ?w . ?w rdf:type ontology:sport }
[]