Simple Question (Direct)
Simple Question
Q3036109
P734
Q82799
USER
Who has the surname Donald Williams ?
(Q3036109,P734,c(Q82799))
action filter_type
action find
entity Q3036109
relation P734
type Q82799
['Q3036109', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q3036109 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Donald Williams
action filter_type
action find
entity Donald Williams
relation family name
type name
['Donald Williams', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Donald_Williams property:family_name ?s . ?s rdf:type ontology:name }
[]
name
Q1688722
SYSTEM
Williams
Q1688722
(Q3036109,P734,c(Q82799))
action filter_type
action find
entity Q3036109
relation P734
type Q82799
[ANSWER] has the surname Donald [ANSWER]
['Q3036109', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q3036109 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Williams
Williams has the surname Donald Williams
Williams
action filter_type
action find
entity Donald Williams
relation family name
type name
['Donald Williams', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Donald_Williams property:family_name ?s . ?s rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3036109
P21
Q290
USER
Which sex does that person belong to ?
(Q1688722,P21,c(Q290))
action filter_type
action find
entity Q3036109
relation P21
type Q290
['Q1688722', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q3036109 property:P21 ?l }
Donald Williams
action filter_type
action find
entity Donald Williams
relation gender
type sex
['Williams', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Donald_Williams property:gender ?l }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1688722,P21,c(Q290))
action filter_type
action find
entity Q3036109
relation P21
type Q290
That person belongs to [ANSWER]
['Q1688722', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q3036109 property:P21 ?l }
male
That person belongs to male
male
action filter_type
action find
entity Donald Williams
relation gender
type sex
['Williams', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Donald_Williams property:gender ?l }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q4999862 Q1688722
P407
Q34770
USER
Which languages are the languages of work for Williams and Burning Lights ?
AND((Q1688722,P407,c(Q34770)), (Q4999862,P407,c(Q34770)))
action filter_type
action intersection
action find
entity Q1688722
relation P407
action find
entity Q4999862
relation P407
type Q34770
{'AND': [['Q1688722', 'P407', {'concept': 'Q34770'}], ['Q4999862', 'P407', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?x WHERE { resource:Q4999862 property:P407 ?x . resource:Q1688722 property:P407 ?x . ?x rdf:type ontology:Q34770 }
Burning Lights Williams
action filter_type
action intersection
action find
entity Williams
relation language of work or name
action find
entity Burning Lights
relation language of work or name
type language
{'AND': [['Williams', 'language of work or name', {'concept': 'language'}], ['Burning Lights', 'language of work or name', {'concept': 'language'}]]}
SELECT DISTINCT ?x WHERE { resource:Burning_Lights property:language_of_work_or_name ?x . resource:Williams property:language_of_work_or_name ?x . ?x rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
AND((Q1688722,P407,c(Q34770)), (Q4999862,P407,c(Q34770)))
action filter_type
action intersection
action find
entity Q1688722
relation P407
action find
entity Q4999862
relation P407
type Q34770
[ANSWER] is the languages of work for Williams and Burning Lights
{'AND': [['Q1688722', 'P407', {'concept': 'Q34770'}], ['Q4999862', 'P407', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?x WHERE { resource:Q4999862 property:P407 ?x . resource:Q1688722 property:P407 ?x . ?x rdf:type ontology:Q34770 }
English
English is the languages of work for Williams and Burning Lights
English
action filter_type
action intersection
action find
entity Williams
relation language of work or name
action find
entity Burning Lights
relation language of work or name
type language
{'AND': [['Williams', 'language of work or name', {'concept': 'language'}], ['Burning Lights', 'language of work or name', {'concept': 'language'}]]}
SELECT DISTINCT ?x WHERE { resource:Burning_Lights property:language_of_work_or_name ?x . resource:Williams property:language_of_work_or_name ?x . ?x rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q696908
P37
Q34770 Q7275
USER
How many states are around the same number of languages the official language of as Kingdom of Poland ?
(c(Q7275),P37,c(Q34770))
action count
action approx
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q696908
relation P37
type Q7275
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?g ) WHERE { ?h property:P37 ?y . ?y rdf:type ontology:Q34770 . ?h rdf:type ontology:Q7275 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { ?j rdf:type ontology:Q7275 . resource:Q696908 property:P37 ?j } } . FILTER ( ?g = ?i ) }
Kingdom of Poland
action count
action approx
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Kingdom of Poland
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?g ) WHERE { ?h property:official_language ?y . ?y rdf:type ontology:language . ?h rdf:type ontology:state } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { ?j rdf:type ontology:state . resource:Kingdom_of_Poland property:official_language ?j } } . FILTER ( ?g = ?i ) }
[]
language state
SYSTEM
47
Q2444884 Q2145397 Q8146595 Q552157 Q4461035 Q218023 Q1493843 Q271570 Q303421 Q36704 Q23541302 Q3456417 Q75613 Q1269234 Q10874967 Q15180 Q696908 Q550374 Q14934927 Q220167 Q330988 Q842091 Q877579 Q147909 Q76236 Q319881 Q1136259 Q112558 Q1142179 Q7382038 Q7318 Q729768 Q212056 Q940741 Q21203 Q12490507 Q600018 Q107299 Q1029847 Q1044668 Q139319 Q1483430 Q11876909 Q150981 Q1362278 Q623751 Q633573
(c(Q7275),P37,c(Q34770))
action count
action approx
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q696908
relation P37
type Q7275
[ANSWER]
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?g ) WHERE { ?h property:P37 ?y . ?y rdf:type ontology:Q34770 . ?h rdf:type ontology:Q7275 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { ?j rdf:type ontology:Q7275 . resource:Q696908 property:P37 ?j } } . FILTER ( ?g = ?i ) }
Tibet Goshen (South Africa) Upingtonia Nieuwe Republiek Akkadian empire Orange Free State Klein Vrystaat Kingdom of Araucanía and Patagonia Kingdom of Galicia Yugoslavia Kaluga Soviet Republic Republic of Saint-Malo Almoravid dynasty Stellaland People's Republic of Zhongtai Soviet Union Kingdom of Poland South African Republic Murrawarri Republic Lydenburg Republic Democratic Kampuchea Duchy of Normandy Kugelmugel Kingdom of Bulgaria Lithuanian–Belorussian Soviet Socialist Republic Republic of Taiwan Southwestern Somalia Republic of Saugeais Orange River Colony Imperial Throne Nazi Germany Zulu Kingdom Mongolian People's Republic Republic of Hungary Aruba Rashidun Caliphate Kingdom of Hungary Kingdom of Northumbria Natalia Republic Republic of Rose Island Russian Republic Principality of Kiev State of Brazil North German Confederation United States of Stellaland Kingdom of Bernicia Kingdom of Rheged
47
action count
action approx
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Kingdom of Poland
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?g ) WHERE { ?h property:official_language ?y . ?y rdf:type ontology:language . ?h rdf:type ontology:state } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { ?j rdf:type ontology:state . resource:Kingdom_of_Poland property:official_language ?j } } . FILTER ( ?g = ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1136259
P37
Q34770 Q7275
USER
And also tell me about Southwestern Somalia?
(c(Q7275),P37,c(Q34770))
action count
action approx
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q1136259
relation P37
type Q7275
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?s ) WHERE { ?g property:P37 ?z . ?z rdf:type ontology:Q34770 . ?g rdf:type ontology:Q7275 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Q1136259 property:P37 ?u . ?u rdf:type ontology:Q7275 } } . FILTER ( ?s = ?h ) }
Southwestern Somalia
action count
action approx
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Southwestern Somalia
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?s ) WHERE { ?g property:official_language ?z . ?z rdf:type ontology:language . ?g rdf:type ontology:state } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Southwestern_Somalia property:official_language ?u . ?u rdf:type ontology:state } } . FILTER ( ?s = ?h ) }
[]
language state
SYSTEM
47
Q2444884 Q2145397 Q8146595 Q552157 Q4461035 Q218023 Q1493843 Q271570 Q303421 Q36704 Q23541302 Q3456417 Q75613 Q1269234 Q10874967 Q15180 Q696908 Q550374 Q14934927 Q220167 Q330988 Q842091 Q877579 Q147909 Q76236 Q319881 Q1136259 Q112558 Q1142179 Q7382038 Q7318 Q729768 Q212056 Q940741 Q21203 Q12490507 Q600018 Q107299 Q1029847 Q1044668 Q139319 Q1483430 Q11876909 Q150981 Q1362278 Q623751 Q633573
(c(Q7275),P37,c(Q34770))
action count
action approx
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q1136259
relation P37
type Q7275
[ANSWER]
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?s ) WHERE { ?g property:P37 ?z . ?z rdf:type ontology:Q34770 . ?g rdf:type ontology:Q7275 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Q1136259 property:P37 ?u . ?u rdf:type ontology:Q7275 } } . FILTER ( ?s = ?h ) }
Tibet Goshen (South Africa) Upingtonia Nieuwe Republiek Akkadian empire Orange Free State Klein Vrystaat Kingdom of Araucanía and Patagonia Kingdom of Galicia Yugoslavia Kaluga Soviet Republic Republic of Saint-Malo Almoravid dynasty Stellaland People's Republic of Zhongtai Soviet Union Kingdom of Poland South African Republic Murrawarri Republic Lydenburg Republic Democratic Kampuchea Duchy of Normandy Kugelmugel Kingdom of Bulgaria Lithuanian–Belorussian Soviet Socialist Republic Republic of Taiwan Southwestern Somalia Republic of Saugeais Orange River Colony Imperial Throne Nazi Germany Zulu Kingdom Mongolian People's Republic Republic of Hungary Aruba Rashidun Caliphate Kingdom of Hungary Kingdom of Northumbria Natalia Republic Republic of Rose Island Russian Republic Principality of Kiev State of Brazil North German Confederation United States of Stellaland Kingdom of Bernicia Kingdom of Rheged
47
action count
action approx
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Southwestern Somalia
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?s ) WHERE { ?g property:official_language ?z . ?z rdf:type ontology:language . ?g rdf:type ontology:state } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Southwestern_Somalia property:official_language ?u . ?u rdf:type ontology:state } } . FILTER ( ?s = ?h ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3036109
P106
Q12737077
USER
What is the profession of Donald Williams ?
(Q3036109,P106,c(Q12737077))
action filter_type
action find
entity Q3036109
relation P106
type Q12737077
['Q3036109', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q3036109 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Donald Williams
action filter_type
action find
entity Donald Williams
relation occupation
type occupation
['Donald Williams', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Donald_Williams property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q10843263
SYSTEM
field hockey player
Q10843263
(Q3036109,P106,c(Q12737077))
action filter_type
action find
entity Q3036109
relation P106
type Q12737077
The profession of Donald Williams is a [ANSWER]
['Q3036109', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q3036109 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
field hockey player
The profession of Donald Williams is a field hockey player
field hockey player
action filter_type
action find
entity Donald Williams
relation occupation
type occupation
['Donald Williams', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Donald_Williams property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q3036109
P27
Q15617994
USER
How many administrative territories are Donald Williams an inhabitant of ?
(Q3036109,P27,c(Q15617994))
action count
action filter_type
action find
entity Q3036109
relation P27
type Q15617994
['Q3036109', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Q3036109 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Donald Williams
action count
action filter_type
action find
entity Donald Williams
relation country of citizenship
type designation for an administrative territorial entity
['Donald Williams', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Donald_Williams property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q145
(Q3036109,P27,c(Q15617994))
action count
action filter_type
action find
entity Q3036109
relation P27
type Q15617994
[ANSWER]
['Q3036109', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Q3036109 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
United Kingdom
1
action count
action filter_type
action find
entity Donald Williams
relation country of citizenship
type designation for an administrative territorial entity
['Donald Williams', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Donald_Williams property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1702019
Q15617994
USER
And how about John Vincent?
(Q1702019,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1702019
relation P27
type Q15617994
['Q1702019', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:Q1702019 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
John Vincent
action count
action filter_type
action find
entity John Vincent
relation country of citizenship
type designation for an administrative territorial entity
['John Vincent', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:John_Vincent property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q1702019,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1702019
relation P27
type Q15617994
[ANSWER]
['Q1702019', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:Q1702019 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity John Vincent
relation country of citizenship
type designation for an administrative territorial entity
['John Vincent', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:John_Vincent property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q81634
P417
Q502895 Q12737077
USER
How many people are the names of the patron saint of more number of occupations than Sixtus I ?
(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 Q81634
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:P417 ?d . ?i rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q502895 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { resource:Q81634 property:P417 ?e . ?e rdf:type ontology:Q502895 } } . FILTER ( ?k > ?l ) }
Sixtus I
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 Sixtus I
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:patron_saint ?d . ?i rdf:type ontology:occupation . ?d rdf:type ontology:common_name } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { resource:Sixtus_I property:patron_saint ?e . ?e rdf:type ontology:common_name } } . FILTER ( ?k > ?l ) }
[]
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 Q81634
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:P417 ?d . ?i rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q502895 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { resource:Q81634 property:P417 ?e . ?e rdf:type ontology:Q502895 } } . FILTER ( ?k > ?l ) }
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 Sixtus I
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:patron_saint ?d . ?i rdf:type ontology:occupation . ?d rdf:type ontology:common_name } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { resource:Sixtus_I property:patron_saint ?e . ?e rdf:type ontology:common_name } } . FILTER ( ?k > ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q44015
P417
Q502895 Q12737077
USER
And what about John the Apostle?
(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 Q44015
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { resource:Q44015 property:P417 ?i . ?i rdf:type ontology:Q502895 } } . FILTER ( ?g > ?b ) . { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?g ) WHERE { ?e property:P417 ?s . ?s rdf:type ontology:Q502895 . ?e rdf:type ontology:Q12737077 } GROUP BY ?s } }
John the Apostle
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 John the Apostle
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { resource:John_the_Apostle property:patron_saint ?i . ?i rdf:type ontology:common_name } } . FILTER ( ?g > ?b ) . { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?g ) WHERE { ?e property:patron_saint ?s . ?s rdf:type ontology:common_name . ?e rdf:type ontology:occupation } GROUP BY ?s } }
[]
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 Q44015
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { resource:Q44015 property:P417 ?i . ?i rdf:type ontology:Q502895 } } . FILTER ( ?g > ?b ) . { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?g ) WHERE { ?e property:P417 ?s . ?s rdf:type ontology:Q502895 . ?e rdf:type ontology:Q12737077 } GROUP BY ?s } }
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 John the Apostle
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { resource:John_the_Apostle property:patron_saint ?i . ?i rdf:type ontology:common_name } } . FILTER ( ?g > ?b ) . { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?g ) WHERE { ?e property:patron_saint ?s . ?s rdf:type ontology:common_name . ?e rdf:type ontology:occupation } GROUP BY ?s } }
[]