Simple Question (Direct)
Simple Question
Q3303778
P21
Q290
USER
Which sex does Brian Barron belong to ?
(Q3303778,P21,c(Q290))
action filter_type
action find
entity Q3303778
relation P21
type Q290
['Q3303778', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q3303778 property:P21 ?u . ?u rdf:type ontology:Q290 }
Brian Barron
action filter_type
action find
entity Brian Barron
relation gender
type sex
['Brian Barron', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Brian_Barron property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3303778,P21,c(Q290))
action filter_type
action find
entity Q3303778
relation P21
type Q290
Brian Barron belongs to [ANSWER]
['Q3303778', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q3303778 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
Brian Barron belongs to male
male
action filter_type
action find
entity Brian Barron
relation gender
type sex
['Brian Barron', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Brian_Barron property:gender ?u . ?u rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3303778
P1412
Q34770
USER
Which language can Brian Barron understand ?
(Q3303778,P1412,c(Q34770))
action filter_type
action find
entity Q3303778
relation P1412
type Q34770
['Q3303778', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { resource:Q3303778 property:P1412 ?f . ?f rdf:type ontology:Q34770 }
Brian Barron
action filter_type
action find
entity Brian Barron
relation languages spoken, written or signed
type language
['Brian Barron', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { resource:Brian_Barron property:languages_spoken,_written_or_signed ?f . ?f rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q3303778,P1412,c(Q34770))
action filter_type
action find
entity Q3303778
relation P1412
type Q34770
Brian Barron can understand [ANSWER]
['Q3303778', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { resource:Q3303778 property:P1412 ?f . ?f rdf:type ontology:Q34770 }
English
Brian Barron can understand English
English
action filter_type
action find
entity Brian Barron
relation languages spoken, written or signed
type language
['Brian Barron', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { resource:Brian_Barron property:languages_spoken,_written_or_signed ?f . ?f rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5941468
Q34770
USER
And also tell me about José Luis Martínez?
(Q5941468,P1412,c(Q34770))
action filter_type
action find
entity Q5941468
relation P1412
type Q34770
['Q5941468', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q34770 . resource:Q5941468 property:P1412 ?e }
José Luis Martínez
action filter_type
action find
entity José Luis Martínez
relation languages spoken, written or signed
type language
['José Luis Martínez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:language . resource:José_Luis_Martínez property:languages_spoken,_written_or_signed ?e }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q5941468,P1412,c(Q34770))
action filter_type
action find
entity Q5941468
relation P1412
type Q34770
[ANSWER]
['Q5941468', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q34770 . resource:Q5941468 property:P1412 ?e }
Spanish
Spanish
action filter_type
action find
entity José Luis Martínez
relation languages spoken, written or signed
type language
['José Luis Martínez', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:language . resource:José_Luis_Martínez property:languages_spoken,_written_or_signed ?e }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q25167
P282
Q8192 Q9779 Q34770
USER
Which languages adopt greater number of writing systems or alphabets as the writing system than Bokmål ?
(c(Q34770),P282,c(Q8192)|c(Q9779))
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q25167
relation P282
type Q8192
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q25167 property:P282 ?n . { { ?n rdf:type ontology:Q8192 } UNION { ?n rdf:type ontology:Q9779 } } } } . FILTER ( ?a > ?r ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) ?m WHERE { { ?m property:P282 ?e . ?m rdf:type ontology:Q34770 . ?e rdf:type ontology:Q8192 } UNION { ?m property:P282 ?e . ?m rdf:type ontology:Q34770 . ?e rdf:type ontology:Q9779 } } GROUP BY ?m } }
Bokmål
action greater
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Bokmål
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Bokmål property:writing_system ?n . { { ?n rdf:type ontology:writing_system } UNION { ?n rdf:type ontology:alphabet } } } } . FILTER ( ?a > ?r ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) ?m WHERE { { ?m property:writing_system ?e . ?m rdf:type ontology:language . ?e rdf:type ontology:writing_system } UNION { ?m property:writing_system ?e . ?m rdf:type ontology:language . ?e rdf:type ontology:alphabet } } GROUP BY ?m } }
[]
writing system alphabet language
Q182695 Q35499 Q1669994
SYSTEM
Late Old Japanese, Old Church Slavonic, Minoan language
Q182695 Q13211 Q35499 Q1669994 Q33251 Q21161942 Q1639124 Q36464 Q652
(c(Q34770),P282,c(Q8192)|c(Q9779))
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q25167
relation P282
type Q8192
type Q9779
[ANSWERS] adopt greater number of writing systems or alphabets as the writing system than Bokmål
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q25167 property:P282 ?n . { { ?n rdf:type ontology:Q8192 } UNION { ?n rdf:type ontology:Q9779 } } } } . FILTER ( ?a > ?r ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) ?m WHERE { { ?m property:P282 ?e . ?m rdf:type ontology:Q34770 . ?e rdf:type ontology:Q8192 } UNION { ?m property:P282 ?e . ?m rdf:type ontology:Q34770 . ?e rdf:type ontology:Q9779 } } GROUP BY ?m } }
Late Old Japanese Ruthenian Old Church Slavonic Minoan language Church Slavonic Serbian written in Cyrillic Slavoserbian Nivkh language Italian
Late Old Japanese, Old Church Slavonic and Minoan language adopt greater number of writing systems or alphabets as the writing system than Bokmål
Late Old Japanese Old Church Slavonic Minoan language
action greater
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Bokmål
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Bokmål property:writing_system ?n . { { ?n rdf:type ontology:writing_system } UNION { ?n rdf:type ontology:alphabet } } } } . FILTER ( ?a > ?r ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) ?m WHERE { { ?m property:writing_system ?e . ?m rdf:type ontology:language . ?e rdf:type ontology:writing_system } UNION { ?m property:writing_system ?e . ?m rdf:type ontology:language . ?e rdf:type ontology:alphabet } } GROUP BY ?m } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q56512
P282
Q8192 Q9779 Q34770
USER
And also tell me about Anêm language?
(c(Q34770),P282,c(Q8192)|c(Q9779))
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q56512
relation P282
type Q8192
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Q56512 property:P282 ?b . { { ?b rdf:type ontology:Q8192 } UNION { ?b rdf:type ontology:Q9779 } } } } . FILTER ( ?j > ?u ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) ?d WHERE { ?v rdf:type ?x . VALUES ( ?x ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } } GROUP BY ?d } }
Anêm language
action greater
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Anêm language
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Anêm_language property:writing_system ?b . { { ?b rdf:type ontology:writing_system } UNION { ?b rdf:type ontology:alphabet } } } } . FILTER ( ?j > ?u ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) ?d WHERE { ?v rdf:type ?x . VALUES ( ?x ) { ( ontology:writing_system ) ( ontology:alphabet ) } } GROUP BY ?d } }
[]
writing system alphabet language
Q182695 Q35499 Q1669994
SYSTEM
Late Old Japanese, Old Church Slavonic, Minoan language
Q182695 Q13211 Q35499 Q1669994 Q33251 Q21161942 Q1639124 Q36464 Q652
(c(Q34770),P282,c(Q8192)|c(Q9779))
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q56512
relation P282
type Q8192
type Q9779
[ANSWERS]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Q56512 property:P282 ?b . { { ?b rdf:type ontology:Q8192 } UNION { ?b rdf:type ontology:Q9779 } } } } . FILTER ( ?j > ?u ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) ?d WHERE { ?v rdf:type ?x . VALUES ( ?x ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } } GROUP BY ?d } }
Late Old Japanese Ruthenian Old Church Slavonic Minoan language Church Slavonic Serbian written in Cyrillic Slavoserbian Nivkh language Italian
Late Old Japanese Old Church Slavonic Minoan language
action greater
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Anêm language
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Anêm_language property:writing_system ?b . { { ?b rdf:type ontology:writing_system } UNION { ?b rdf:type ontology:alphabet } } } } . FILTER ( ?j > ?u ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) ?d WHERE { ?v rdf:type ?x . VALUES ( ?x ) { ( ontology:writing_system ) ( ontology:alphabet ) } } GROUP BY ?d } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q5941468
P19
Q56061
USER
How many administrative territories are the birthplace of José Luis Martínez ?
(Q5941468,P19,c(Q56061))
action count
action filter_type
action find
entity Q5941468
relation P19
type Q56061
['Q5941468', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { resource:Q5941468 property:P19 ?c . ?c rdf:type ontology:Q56061 }
José Luis Martínez
action count
action filter_type
action find
entity José Luis Martínez
relation place of birth
type administrative territorial entity
['José Luis Martínez', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { resource:José_Luis_Martínez property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q10305
(Q5941468,P19,c(Q56061))
action count
action filter_type
action find
entity Q5941468
relation P19
type Q56061
[ANSWER]
['Q5941468', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { resource:Q5941468 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Zaragoza
1
action count
action filter_type
action find
entity José Luis Martínez
relation place of birth
type administrative territorial entity
['José Luis Martínez', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { resource:José_Luis_Martínez property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q5066348
Q56061
USER
And also tell me about Chad Severs?
(Q5066348,P19,c(Q56061))
action count
action filter_type
action find
entity Q5066348
relation P19
type Q56061
['Q5066348', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { resource:Q5066348 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Chad Severs
action count
action filter_type
action find
entity Chad Severs
relation place of birth
type administrative territorial entity
['Chad Severs', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { resource:Chad_Severs property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
(Q5066348,P19,c(Q56061))
action count
action filter_type
action find
entity Q5066348
relation P19
type Q56061
[ANSWER]
['Q5066348', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { resource:Q5066348 property:P19 ?n . ?n rdf:type ontology:Q56061 }
1
action count
action filter_type
action find
entity Chad Severs
relation place of birth
type administrative territorial entity
['Chad Severs', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { resource:Chad_Severs property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5066348
P106
Q12737077
USER
What is the profession of that person ?
action filter_type
action find
entity Q5066348
relation P106
type Q12737077
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q5066348 property:P106 ?i }
Chad Severs
action filter_type
action find
entity Chad Severs
relation occupation
type occupation
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:Chad_Severs property:occupation ?i }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
action filter_type
action find
entity Q5066348
relation P106
type Q12737077
The profession of that person is an [ANSWER]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q5066348 property:P106 ?i }
association football player
The profession of that person is an association football player
association football player
action filter_type
action find
entity Chad Severs
relation occupation
type occupation
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:Chad_Severs property:occupation ?i }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q469978
P417
Q502895 Q12737077
USER
Which people are the patron saint of more number of occupations than Devota ?
(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 Q469978
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q469978 property:P417 ?x . ?x rdf:type ontology:Q502895 } } . FILTER ( ?j > ?n ) . { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?j ) WHERE { ?z rdf:type ontology:Q502895 . ?i rdf:type ontology:Q12737077 . ?i property:P417 ?z } GROUP BY ?z } }
Devota
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Devota
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Devota property:patron_saint ?x . ?x rdf:type ontology:common_name } } . FILTER ( ?j > ?n ) . { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?j ) WHERE { ?z rdf:type ontology:common_name . ?i rdf:type ontology:occupation . ?i property:patron_saint ?z } GROUP BY ?z } }
[]
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 Q469978
relation P417
type Q502895
[ANSWERS] are the patron saint of more number of occupations than Devota
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q469978 property:P417 ?x . ?x rdf:type ontology:Q502895 } } . FILTER ( ?j > ?n ) . { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?j ) WHERE { ?z rdf:type ontology:Q502895 . ?i rdf:type ontology:Q12737077 . ?i property:P417 ?z } GROUP BY ?z } }
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 saint of more number of occupations than Devota
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 Devota
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Devota property:patron_saint ?x . ?x rdf:type ontology:common_name } } . FILTER ( ?j > ?n ) . { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?j ) WHERE { ?z rdf:type ontology:common_name . ?i rdf:type ontology:occupation . ?i property:patron_saint ?z } GROUP BY ?z } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q44248
P417
Q502895 Q12737077
USER
And what about Jerome?
(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 Q44248
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?q ) WHERE { ?e property:P417 ?u . ?u rdf:type ontology:Q502895 . ?e rdf:type ontology:Q12737077 } GROUP BY ?u } . FILTER ( ?q > ?v ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Q44248 property:P417 ?l . ?l rdf:type ontology:Q502895 } } }
Jerome
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Jerome
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?q ) WHERE { ?e property:patron_saint ?u . ?u rdf:type ontology:common_name . ?e rdf:type ontology:occupation } GROUP BY ?u } . FILTER ( ?q > ?v ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Jerome property:patron_saint ?l . ?l rdf:type ontology:common_name } } }
[]
common name occupation
Q128538 Q43982 Q43600
SYSTEM
Luke the Evangelist, Bartholomew the Apostle, Matthew the Apostle
Q128538 Q192816 Q43982 Q179718 Q43600 Q200895
(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 Q44248
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?q ) WHERE { ?e property:P417 ?u . ?u rdf:type ontology:Q502895 . ?e rdf:type ontology:Q12737077 } GROUP BY ?u } . FILTER ( ?q > ?v ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Q44248 property:P417 ?l . ?l rdf:type ontology:Q502895 } } }
Luke the Evangelist Saint Barbara Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle Agatha of Sicily
Luke the Evangelist Bartholomew the Apostle Matthew the Apostle
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Jerome
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?q ) WHERE { ?e property:patron_saint ?u . ?u rdf:type ontology:common_name . ?e rdf:type ontology:occupation } GROUP BY ?u } . FILTER ( ?q > ?v ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Jerome property:patron_saint ?l . ?l rdf:type ontology:common_name } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P37
Q34770 Q7275 Q13220204
USER
Which languages are recognized as the official language of min number of states and administrative country subdivisions ?
(c(Q7275)|c(Q13220204),P37,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
[[{'concept': 'Q7275'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?p ) WHERE { ?s rdf:type ?m . VALUES ( ?m ) { ( ontology:Q7275 ) ( ontology:Q13220204 ) } } GROUP BY ?c } . FILTER ( ?p = ?t ) . { SELECT DISTINCT ( MIN ( ?l ) AS ?t ) { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?l ) WHERE { { ?x rdf:type ontology:Q34770 . ?i rdf:type ontology:Q7275 . ?i property:P37 ?x } UNION { ?x rdf:type ontology:Q34770 . ?i rdf:type ontology:Q13220204 . ?i property:P37 ?x } } GROUP BY ?x } } }
action argmin
action union
action find_reverse_tuple_counts
relation official language
type language
type state
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
[[{'concept': 'state'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?p ) WHERE { ?s rdf:type ?m . VALUES ( ?m ) { ( ontology:state ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?c } . FILTER ( ?p = ?t ) . { SELECT DISTINCT ( MIN ( ?l ) AS ?t ) { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?l ) WHERE { { ?x rdf:type ontology:language . ?i rdf:type ontology:state . ?i property:official_language ?x } UNION { ?x rdf:type ontology:language . ?i rdf:type ontology:second-level_administrative_country_subdivision . ?i property:official_language ?x } } GROUP BY ?x } } }
[]
language state second-level administrative country subdivision
Q33251 Q8752 Q35499
SYSTEM
Church Slavonic, Basque, Old Church Slavonic
Q33251 Q3110592 Q36206 Q8752 Q35499 Q35726
(c(Q7275)|c(Q13220204),P37,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
[ANSWERS] are recognized as the official language of min number of states and administrative country subdivisions
[[{'concept': 'Q7275'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?p ) WHERE { ?s rdf:type ?m . VALUES ( ?m ) { ( ontology:Q7275 ) ( ontology:Q13220204 ) } } GROUP BY ?c } . FILTER ( ?p = ?t ) . { SELECT DISTINCT ( MIN ( ?l ) AS ?t ) { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?l ) WHERE { { ?x rdf:type ontology:Q34770 . ?i rdf:type ontology:Q7275 . ?i property:P37 ?x } UNION { ?x rdf:type ontology:Q34770 . ?i rdf:type ontology:Q13220204 . ?i property:P37 ?x } } GROUP BY ?x } } }
Church Slavonic written Chinese Lak Basque Old Church Slavonic Etruscan
Church Slavonic, Basque and Old Church Slavonic are recognized as the official language of min number of states and administrative country subdivisions
Church Slavonic Basque Old Church Slavonic
action argmin
action union
action find_reverse_tuple_counts
relation official language
type language
type state
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
[[{'concept': 'state'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?p ) WHERE { ?s rdf:type ?m . VALUES ( ?m ) { ( ontology:state ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?c } . FILTER ( ?p = ?t ) . { SELECT DISTINCT ( MIN ( ?l ) AS ?t ) { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?l ) WHERE { { ?x rdf:type ontology:language . ?i rdf:type ontology:state . ?i property:official_language ?x } UNION { ?x rdf:type ontology:language . ?i rdf:type ontology:second-level_administrative_country_subdivision . ?i property:official_language ?x } } GROUP BY ?x } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P282
Q9779
USER
How many alphabets are the writing systems used for that language ?
(Q33251,P282,c(Q9779))
['Q33251', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q33251 property:Q8192 ?z . ?z rdf:type ontology:Q9779 }
['Church Slavonic', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Church_Slavonic property:writing_system ?z . ?z rdf:type ontology:alphabet }
[]
alphabet
Quantitative|Count|Single entity type|Clarification
Q35499
SYSTEM
Did you mean Old Church Slavonic ?
(Q33251,P282,c(Q9779)) (Q8752,P282,c(Q9779)) (Q35499,P282,c(Q9779))
[ANSWER]
['Q33251', 'P282', {'concept': 'Q9779'}] ['Q8752', 'P282', {'concept': 'Q9779'}] ['Q35499', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q33251 property:Q8192 ?z . ?z rdf:type ontology:Q9779 }
Did you mean Old Church Slavonic ?
Old Church Slavonic
['Church Slavonic', 'writing system', {'concept': 'alphabet'}] ['Basque', 'writing system', {'concept': 'alphabet'}] ['Old Church Slavonic', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Church_Slavonic property:writing_system ?z . ?z rdf:type ontology:alphabet }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Church Slavonic. Could you tell me the answer for that?
(Q33251,P282,c(Q9779))
Q33251
['Q33251', 'P282', {'concept': 'Q9779'}]
['Church Slavonic', 'writing system', {'concept': 'alphabet'}]
[]
SYSTEM
1
Q8209
(Q33251,P282,c(Q9779))
[ANSWER]
['Q33251', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q33251 property:Q8192 ?z . ?z rdf:type ontology:Q9779 }
Cyrillic script
1
['Church Slavonic', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Church_Slavonic property:writing_system ?z . ?z rdf:type ontology:alphabet }
[]