Simple Question (Direct)
Simple Question
Q3123639
P734
Q82799
USER
Which name is associated with Gérald Martin ?
(Q3123639,P734,c(Q82799))
action filter_type
action find
entity Q3123639
relation P734
type Q82799
['Q3123639', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { resource:Q3123639 property:P734 ?c . ?c rdf:type ontology:Q82799 }
Gérald Martin
action filter_type
action find
entity Gérald Martin
relation family name
type name
['Gérald Martin', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { resource:Gérald_Martin property:family_name ?c . ?c rdf:type ontology:name }
[]
name
Q17744604
SYSTEM
Martin
Q17744604
(Q3123639,P734,c(Q82799))
action filter_type
action find
entity Q3123639
relation P734
type Q82799
[ANSWER] is associated with Gérald [ANSWER]
['Q3123639', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { resource:Q3123639 property:P734 ?c . ?c rdf:type ontology:Q82799 }
Martin
Martin is associated with Gérald Martin
Martin
action filter_type
action find
entity Gérald Martin
relation family name
type name
['Gérald Martin', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { resource:Gérald_Martin property:family_name ?c . ?c rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3123639
P106
Q12737077
USER
Which occupation is the profession of Gérald Martin ?
(Q3123639,P106,c(Q12737077))
action filter_type
action find
entity Q3123639
relation P106
type Q12737077
['Q3123639', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q3123639 property:P106 ?y }
Gérald Martin
action filter_type
action find
entity Gérald Martin
relation occupation
type occupation
['Gérald Martin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Gérald_Martin property:occupation ?y }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q3123639,P106,c(Q12737077))
action filter_type
action find
entity Q3123639
relation P106
type Q12737077
Player [ANSWER] is the profession of Gérald Martin
['Q3123639', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q3123639 property:P106 ?y }
association football player
Player association football player is the profession of Gérald Martin
association football player
action filter_type
action find
entity Gérald Martin
relation occupation
type occupation
['Gérald Martin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Gérald_Martin property:occupation ?y }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q937857
P106
Q15619164 Q6619679
USER
How many abstract beings or fictional humanoids have a job as association football player ?
(c(Q15619164),P106,Q937857) (c(Q6619679),P106,Q937857)
action count
action union
action filter_type
action find_reverse
entity Q937857
relation P106
type Q15619164
action filter_type
action find_reverse
entity Q937857
relation P106
type Q6619679
[{'concept': 'Q15619164'}, 'P106', 'Q937857'] [{'concept': 'Q6619679'}, 'P106', 'Q937857']
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { VALUES ( ?f ) { ( ontology:Q6619679 ) ( ontology:Q15619164 ) } . ?o rdf:type ?f }
association football player
action count
action union
action filter_type
action find_reverse
entity association football player
relation occupation
type abstract being
action filter_type
action find_reverse
entity association football player
relation occupation
type fictional humanoid
[{'concept': 'abstract being'}, 'occupation', 'association football player'] [{'concept': 'fictional humanoid'}, 'occupation', 'association football player']
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { VALUES ( ?f ) { ( ontology:fictional_humanoid ) ( ontology:abstract_being ) } . ?o rdf:type ?f }
[]
abstract being fictional humanoid
SYSTEM
31
Q746996 Q3810827 Q8994224 Q6371793 Q2248090 Q1000043 Q2754813 Q7626893 Q2484120 Q3482197 Q5292194 Q3498435 Q10303719 Q5220860 Q5049092 Q5246215 Q2567460 Q2939461 Q7937796 Q5136888 Q3482651 Q7384370 Q6701906 Q5195672 Q6163280 Q10279728 Q1000560 Q6782491 Q4913115 Q5360264 Q5489814
(c(Q15619164),P106,Q937857) (c(Q6619679),P106,Q937857)
action count
action union
action filter_type
action find_reverse
entity Q937857
relation P106
type Q15619164
action filter_type
action find_reverse
entity Q937857
relation P106
type Q6619679
[ANSWER]
[{'concept': 'Q15619164'}, 'P106', 'Q937857'] [{'concept': 'Q6619679'}, 'P106', 'Q937857']
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { VALUES ( ?f ) { ( ontology:Q6619679 ) ( ontology:Q15619164 ) } . ?o rdf:type ?f }
Kojirō Hyūga Juan Diaz Lee Presley Karl Fletcher Genzō Wakabayashi Ken Wakashimazu Tarō Misaki Stuart Naysmith Tsubasa Oozora Shingo Aoi Don Barker Stephan Levin Tachibana brothers Danny Sullivan Casper Rose Dean Hocknell Santiago Muñez Cardona Carlos Santana Vivian Wright Clyde Connelly Shun Nitta Ryan Naysmith Luke Davenport Curtis Alexander Jason Porter Fago Hikaru Matsuyama Masal Bugduv Billy O'Neil Eli Knox Frank Stone
31
action count
action union
action filter_type
action find_reverse
entity association football player
relation occupation
type abstract being
action filter_type
action find_reverse
entity association football player
relation occupation
type fictional humanoid
[{'concept': 'abstract being'}, 'occupation', 'association football player'] [{'concept': 'fictional humanoid'}, 'occupation', 'association football player']
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { VALUES ( ?f ) { ( ontology:fictional_humanoid ) ( ontology:abstract_being ) } . ?o rdf:type ?f }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16995134 Q937857
P425 P641
Q349
USER
Which sports are associated with the field of occupation association football player or did 2014 Isle of Man TT participate in ?
OR((Q937857,P425,c(Q349)), (Q16995134,P641,c(Q349)))
action filter_type
action union
action find
entity Q937857
relation P425
action find
entity Q16995134
relation P641
type Q349
{'OR': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q16995134', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q937857 property:P425 ?o } UNION { resource:Q16995134 property:P641 ?o } } . ?o rdf:type ontology:Q349 }
2014 Isle of Man TT association football player
action filter_type
action union
action find
entity association football player
relation field of this occupation
action find
entity 2014 Isle of Man TT
relation sport
type sport
{'OR': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['2014 Isle of Man TT', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?o WHERE { { { resource:association_football_player property:field_of_this_occupation ?o } UNION { resource:2014_Isle_of_Man_TT property:sport ?o } } . ?o rdf:type ontology:sport }
[]
sport
Q328716 Q2736
SYSTEM
motorcycle sport, association football
Q328716 Q2736
OR((Q937857,P425,c(Q349)), (Q16995134,P641,c(Q349)))
action filter_type
action union
action find
entity Q937857
relation P425
action find
entity Q16995134
relation P641
type Q349
[ANSWERS] are associated with the field of occupation association football player or did 2014 Isle of Man TT participate in
{'OR': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q16995134', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q937857 property:P425 ?o } UNION { resource:Q16995134 property:P641 ?o } } . ?o rdf:type ontology:Q349 }
motorcycle sport association football
Motorcycle sport and association football are associated with the field of occupation association football player or did 2014 Isle of Man TT participate in
motorcycle sport association football
action filter_type
action union
action find
entity association football player
relation field of this occupation
action find
entity 2014 Isle of Man TT
relation sport
type sport
{'OR': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['2014 Isle of Man TT', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?o WHERE { { { resource:association_football_player property:field_of_this_occupation ?o } UNION { resource:2014_Isle_of_Man_TT property:sport ?o } } . ?o rdf:type ontology:sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q385253
P417
Q502895 Q12737077 Q56061
USER
How many people are the patron saint of more number of occupations or administrative territories than Agostino Novello ?
(c(Q12737077)|c(Q56061),P417,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q385253
relation P417
type Q12737077
type Q56061
[[{'concept': 'Q12737077'}, {'concept': 'Q56061'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:P417 ?p . ?p rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } UNION { ?x property:P417 ?p . ?p rdf:type ontology:Q502895 . ?x rdf:type ontology:Q56061 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l property:P417 resource:Q385253 . { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q12737077 ) } } } } . FILTER ( ?y > ?n ) }
Agostino Novello
action count
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Agostino Novello
relation patron saint
type occupation
type administrative territorial entity
[[{'concept': 'occupation'}, {'concept': 'administrative territorial entity'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:patron_saint ?p . ?p rdf:type ontology:common_name . ?x rdf:type ontology:occupation } UNION { ?x property:patron_saint ?p . ?p rdf:type ontology:common_name . ?x rdf:type ontology:administrative_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l property:patron_saint resource:Agostino_Novello . { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:occupation ) } } } } . FILTER ( ?y > ?n ) }
[]
common name occupation administrative territorial entity
SYSTEM
102
Q453698 Q133704 Q229190 Q152457 Q516729 Q3893243 Q732865 Q320199 Q43689 Q3776432 Q328804 Q1284098 Q166876 Q163900 Q31966 Q170547 Q44024 Q676555 Q287916 Q212850 Q1346958 Q51885 Q234697 Q1284971 Q374822 Q357093 Q9438 Q558148 Q130997 Q312758 Q5575577 Q379685 Q42887 Q191107 Q4210004 Q2697247 Q457903 Q315312 Q242274 Q33923 Q128538 Q183240 Q119289 Q360798 Q298845 Q167477 Q288295 Q297742 Q218921 Q183332 Q48438 Q119512 Q44281 Q170164 Q43399 Q189776 Q336731 Q196653 Q4161703 Q508214 Q9200 Q235863 Q193507 Q463600 Q1747656 Q1393825 Q12871 Q43669 Q44269 Q2456500 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q1976199 Q320171 Q137947 Q534691 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q11905449 Q4026158 Q232427 Q164294 Q3561124 Q60059 Q17590 Q271474 Q200895 Q284323 Q59071 Q1383532 Q44248 Q276148 Q310633
(c(Q12737077)|c(Q56061),P417,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action find_reverse_tuple_counts
relation P417
type Q502895
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q385253
relation P417
type Q12737077
type Q56061
[ANSWER]
[[{'concept': 'Q12737077'}, {'concept': 'Q56061'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:P417 ?p . ?p rdf:type ontology:Q502895 . ?x rdf:type ontology:Q12737077 } UNION { ?x property:P417 ?p . ?p rdf:type ontology:Q502895 . ?x rdf:type ontology:Q56061 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l property:P417 resource:Q385253 . { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q12737077 ) } } } } . FILTER ( ?y > ?n ) }
Saint Amand Martin of Tours Catherine of Siena Saint Roch Sebaldus Pamphilus of Sulmona Vitalis of Milan Apollinaris of Ravenna Ambrose Gonçalo de Amarante John the Evangelist Turibius of Astorga Isidore of Seville Saint Francis Xavier Mark the Evangelist Anthony the Great Athanasius of Alexandria Francis of Assisi Finbarr of Cork Vitus Judas Cyriacus Thecla Maria Goretti La Mosca Victor Maurus Adrian of Nicomedia Saint Spyridon Thomas Aquinas Leonard of Noblac Damasus I Jean-Baptiste de La Salle Gobnait Isidore the Laborer Clement I Clare of Assisi Venantius of Camerino Catellus of Castellammare Saint Bavo Januarius Dorothea of Caesarea Peter Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Anthony of Padua Justina of Padua Margaret the Virgin Saint Eustace Saint Sebastian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Zeno of Verona Pancras of Rome Saint Veronica Dimitry Prilutsky Cyriacus Paul Genevieve Saint Christopher Saint Petronilla Saturninus of Cagliari Valerius of Saragossa Simon the Zealot Thomas the Apostle Saint Nicholas Eulalia of Barcelona Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis Gaudentius of Novara John of God Alexius of Rome Paschal Baylon Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Anastasi de Lleida Possidonio Saint Apollonia Saint Anna Acisclus Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Eulalia of Mérida Peter de Regalado Rainerius Jerome Charalampus Demetrius of Thessaloniki
102
action count
action greater
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action find_reverse_tuple_counts
relation patron saint
type common name
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Agostino Novello
relation patron saint
type occupation
type administrative territorial entity
[[{'concept': 'occupation'}, {'concept': 'administrative territorial entity'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:patron_saint ?p . ?p rdf:type ontology:common_name . ?x rdf:type ontology:occupation } UNION { ?x property:patron_saint ?p . ?p rdf:type ontology:common_name . ?x rdf:type ontology:administrative_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l property:patron_saint resource:Agostino_Novello . { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:occupation ) } } } } . FILTER ( ?y > ?n ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2736
P495
Q1496967
USER
What is the country of origin of association football ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?r WHERE { resource:Q2736 property:P495 ?r . ?r rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:association_football property:country_of_origin ?r . ?r rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
The country of origin of association football is from [ANSWER]
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?r WHERE { resource:Q2736 property:P495 ?r . ?r rdf:type ontology:Q1496967 }
England
The country of origin of association football is from England
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:association_football property:country_of_origin ?r . ?r rdf:type ontology:territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21
P172
Q502895
USER
Which people have that territory as his/her ethnicity ?
(c(Q502895),P172,Q21)
action filter_type
action find_reverse
entity Q21
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q21']
SELECT DISTINCT ?m WHERE { ?m property:P172 resource:Q21 . ?m rdf:type ontology:Q502895 }
England
action filter_type
action find_reverse
entity England
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'England']
SELECT DISTINCT ?m WHERE { ?m property:ethnic_group resource:England . ?m rdf:type ontology:common_name }
[]
common name
Q21151748 Q7341902 Q5730252
SYSTEM
Rosemary Stjernstedt, Robert Barrington-Ward, Henry William Wilberforce
Q6829817 Q7683973 Q4767120 Q5424077 Q5107509 Q7519325 Q8006577 Q7341902 Q5730252 Q21151748
(c(Q502895),P172,Q21)
action filter_type
action find_reverse
entity Q21
relation P172
type Q502895
[ANSWERS] have that territory as his/her ethnicity
[{'concept': 'Q502895'}, 'P172', 'Q21']
SELECT DISTINCT ?m WHERE { ?m property:P172 resource:Q21 . ?m rdf:type ontology:Q502895 }
Michael Derrick Tanya Beckett Anna Jones F. W. Micklethwaite Chris Morris Simon McCoy William Carpenter Robert Barrington-Ward Henry William Wilberforce Rosemary Stjernstedt
Rosemary Stjernstedt, Robert Barrington-Ward and Henry William Wilberforce have that territory as his/her ethnicity
Rosemary Stjernstedt Robert Barrington-Ward Henry William Wilberforce
action filter_type
action find_reverse
entity England
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'England']
SELECT DISTINCT ?m WHERE { ?m property:ethnic_group resource:England . ?m rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5730252
P7
Q502895
USER
Who have that one as their sibling ?
(Q5730252,P7,c(Q502895))
action filter_type
action find
entity Q5730252
relation P7
type Q502895
['Q5730252', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q5730252 property:P7 ?t . ?t rdf:type ontology:Q502895 }
Henry William Wilberforce
action filter_type
action find
entity Henry William Wilberforce
relation brother
type common name
['Henry William Wilberforce', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Henry_William_Wilberforce property:brother ?t . ?t rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q7341902
SYSTEM
Did you mean Robert Barrington-Ward ?
Q21151748 Q7341902 Q5730252
(Q21151748,P7,c(Q502895)) (Q7341902,P7,c(Q502895)) (Q5730252,P7,c(Q502895))
[ANSWER]
['Q21151748', 'P7', {'concept': 'Q502895'}] ['Q7341902', 'P7', {'concept': 'Q502895'}] ['Q5730252', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q5730252 property:P7 ?t . ?t rdf:type ontology:Q502895 }
Rosemary Stjernstedt Robert Barrington-Ward Henry William Wilberforce
Did you mean Robert Barrington-Ward ?
Robert Barrington-Ward
['Rosemary Stjernstedt', 'brother', {'concept': 'common name'}] ['Robert Barrington-Ward', 'brother', {'concept': 'common name'}] ['Henry William Wilberforce', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Henry_William_Wilberforce property:brother ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Henry William Wilberforce. Could you tell me the answer for that?
(Q5730252,P7,c(Q502895))
Q5730252
['Q5730252', 'P7', {'concept': 'Q502895'}]
['Henry William Wilberforce', 'brother', {'concept': 'common name'}]
[]
Q984399 Q3435495
SYSTEM
Samuel Wilberforce, Robert Isaac Wilberforce
Q984399 Q3435495
(Q5730252,P7,c(Q502895))
action filter_type
action find
entity Q5730252
relation P7
type Q502895
[ANSWERS] have that one as their sibling
['Q5730252', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q5730252 property:P7 ?t . ?t rdf:type ontology:Q502895 }
Samuel Wilberforce Robert Isaac Wilberforce
Samuel Wilberforce and Robert Isaac Wilberforce have that one as their sibling
Samuel Wilberforce Robert Isaac Wilberforce
action filter_type
action find
entity Henry William Wilberforce
relation brother
type common name
['Henry William Wilberforce', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Henry_William_Wilberforce property:brother ?t . ?t rdf:type ontology:common_name }
[]