Simple Question (Direct)
Simple Question
Q20950354
P22
Q502895
USER
Which male person was the parent of Thomas Cartwright ?
(Q20950354,P22,c(Q502895))
action filter_type
action find
entity Q20950354
relation P22
type Q502895
['Q20950354', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q20950354 property:P22 ?g }
Thomas Cartwright
action filter_type
action find
entity Thomas Cartwright
relation father
type common name
['Thomas Cartwright', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Thomas_Cartwright property:father ?g }
[]
common name
Q8006609
SYSTEM
William Cartwright
Q8006609
(Q20950354,P22,c(Q502895))
action filter_type
action find
entity Q20950354
relation P22
type Q502895
[ANSWER] was the parent of Thomas Cartwright
['Q20950354', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q20950354 property:P22 ?g }
William Cartwright
William Cartwright was the parent of Thomas Cartwright
William Cartwright
action filter_type
action find
entity Thomas Cartwright
relation father
type common name
['Thomas Cartwright', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Thomas_Cartwright property:father ?g }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P825
Q502895 Q16970 Q482994
USER
How many people are approximately 2 churches or albums dedicated to ?
(c(Q16970)|c(Q482994),P825,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q482994
value 2
[[{'concept': 'Q16970'}, {'concept': 'Q482994'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?t WHERE { { ?x property:P825 ?t . ?x rdf:type ontology:Q482994 . ?t rdf:type ontology:Q502895 } UNION { ?x property:P825 ?t . ?t rdf:type ontology:Q502895 . ?x rdf:type ontology:Q16970 } } GROUP BY ?t } . FILTER ( ?s = 2 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type church
action find_reverse_tuple_counts
relation dedicated to
type common name
type album
value 2
[[{'concept': 'church'}, {'concept': 'album'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?t WHERE { { ?x property:dedicated_to ?t . ?x rdf:type ontology:album . ?t rdf:type ontology:common_name } UNION { ?x property:dedicated_to ?t . ?t rdf:type ontology:common_name . ?x rdf:type ontology:church } } GROUP BY ?t } . FILTER ( ?s = 2 ) }
[]
common name church album
SYSTEM
3
Q44269 Q346 Q133704
(c(Q16970)|c(Q482994),P825,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P825
type Q502895
type Q482994
value 2
[ANSWER]
[[{'concept': 'Q16970'}, {'concept': 'Q482994'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?t WHERE { { ?x property:P825 ?t . ?x rdf:type ontology:Q482994 . ?t rdf:type ontology:Q502895 } UNION { ?x property:P825 ?t . ?t rdf:type ontology:Q502895 . ?x rdf:type ontology:Q16970 } } GROUP BY ?t } . FILTER ( ?s = 2 ) }
Saint Nicholas Louis IX of France Martin of Tours
3
action count
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type church
action find_reverse_tuple_counts
relation dedicated to
type common name
type album
value 2
[[{'concept': 'church'}, {'concept': 'album'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?t WHERE { { ?x property:dedicated_to ?t . ?x rdf:type ontology:album . ?t rdf:type ontology:common_name } UNION { ?x property:dedicated_to ?t . ?t rdf:type ontology:common_name . ?x rdf:type ontology:church } } GROUP BY ?t } . FILTER ( ?s = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20950354
P1412
Q34770
USER
Which language can Thomas Cartwright understand ?
(Q20950354,P1412,c(Q34770))
action filter_type
action find
entity Q20950354
relation P1412
type Q34770
['Q20950354', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q20950354 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Thomas Cartwright
action filter_type
action find
entity Thomas Cartwright
relation languages spoken, written or signed
type language
['Thomas Cartwright', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Thomas_Cartwright property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q20950354,P1412,c(Q34770))
action filter_type
action find
entity Q20950354
relation P1412
type Q34770
Thomas Cartwright can understand [ANSWER]
['Q20950354', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q20950354 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
English
Thomas Cartwright can understand English
English
action filter_type
action find
entity Thomas Cartwright
relation languages spoken, written or signed
type language
['Thomas Cartwright', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Thomas_Cartwright property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20950354
P21
Q290
USER
Which sex does that person possess ?
(Q1860,P21,c(Q290))
action filter_type
action find
entity Q20950354
relation P21
type Q290
['Q1860', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q20950354 property:P21 ?m }
Thomas Cartwright
action filter_type
action find
entity Thomas Cartwright
relation gender
type sex
['English', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Thomas_Cartwright property:gender ?m }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1860,P21,c(Q290))
action filter_type
action find
entity Q20950354
relation P21
type Q290
That person possesses a [ANSWER]
['Q1860', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q20950354 property:P21 ?m }
male
That person possesses a male
male
action filter_type
action find
entity Thomas Cartwright
relation gender
type sex
['English', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Thomas_Cartwright property:gender ?m }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q12117682
P21
Q502895
USER
Does Leopold Marcin Karasiński have that sex as the sex ?
(Q12117682,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q12117682
relation P21
['Q12117682', 'P21', 'Q6581097']
ASK WHERE { resource:Q12117682 property:P21 resource:Q6581097 }
male Leopold Marcin Karasiński
action is_in
entity male
action find
entity Leopold Marcin Karasiński
relation gender
['Leopold Marcin Karasiński', 'gender', 'male']
ASK WHERE { resource:Leopold_Marcin_Karasiński property:gender resource:male }
[]
common name
SYSTEM
YES
(Q12117682,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q12117682
relation P21
[ANSWER]
['Q12117682', 'P21', 'Q6581097']
ASK WHERE { resource:Q12117682 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Leopold Marcin Karasiński
relation gender
['Leopold Marcin Karasiński', 'gender', 'male']
ASK WHERE { resource:Leopold_Marcin_Karasiński property:gender resource:male }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q436723
P841
Q573 Q186081 Q502895
USER
Which people have less number of days and time intervals as principal feast day than Virginia Centurione Bracelli ?
(c(Q502895),P841,c(Q573)|c(Q186081))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
action count
action filter_multi_types
action find
entity Q436723
relation P841
type Q573
type Q186081
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?p ) WHERE { { ?e property:P841 ?z . ?e rdf:type ontology:Q502895 . ?z rdf:type ontology:Q186081 } UNION { ?e property:P841 ?z . ?e rdf:type ontology:Q502895 . ?z rdf:type ontology:Q573 } } GROUP BY ?e } . FILTER ( ?p < ?y ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { resource:Q436723 property:P841 ?o . { { ?o rdf:type ontology:Q573 } UNION { ?o rdf:type ontology:Q186081 } } } } }
Virginia Centurione Bracelli
action less
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
action count
action filter_multi_types
action find
entity Virginia Centurione Bracelli
relation feast day
type day
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?p ) WHERE { { ?e property:feast_day ?z . ?e rdf:type ontology:common_name . ?z rdf:type ontology:time_interval } UNION { ?e property:feast_day ?z . ?e rdf:type ontology:common_name . ?z rdf:type ontology:day } } GROUP BY ?e } . FILTER ( ?p < ?y ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { resource:Virginia_Centurione_Bracelli property:feast_day ?o . { { ?o rdf:type ontology:day } UNION { ?o rdf:type ontology:time_interval } } } } }
[]
day time interval common name
Q679784 Q3047912 Q167477
SYSTEM
Pier Giorgio Frassati, Seraphina Sforza, Anthony of Padua
Q384117 Q365797 Q3483257 Q679784 Q3483161 Q3483259 Q3483263 Q167477 Q3047912 Q269889 Q2701365
(c(Q502895),P841,c(Q573)|c(Q186081))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
action count
action filter_multi_types
action find
entity Q436723
relation P841
type Q573
type Q186081
[ANSWERS] have less number of days and time intervals as principal feast day than Virginia Centurione Bracelli
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?p ) WHERE { { ?e property:P841 ?z . ?e rdf:type ontology:Q502895 . ?z rdf:type ontology:Q186081 } UNION { ?e property:P841 ?z . ?e rdf:type ontology:Q502895 . ?z rdf:type ontology:Q573 } } GROUP BY ?e } . FILTER ( ?p < ?y ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { resource:Q436723 property:P841 ?o . { { ?o rdf:type ontology:Q573 } UNION { ?o rdf:type ontology:Q186081 } } } } }
Aignan of Orleans Ahmad al-Tijani Sidi M'hamed Bou Qobrine Pier Giorgio Frassati Sidi Abder Rahman El Thaelebi Sidi M'hand Oumalek Sidi Mansour Anthony of Padua Seraphina Sforza Joanna, wife of Chuza Thomas Percy, 7th Earl of Northumberland
Pier Giorgio Frassati, Seraphina Sforza and Anthony of Padua have less number of days and time intervals as principal feast day than Virginia Centurione Bracelli
Pier Giorgio Frassati Seraphina Sforza Anthony of Padua
action less
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
action count
action filter_multi_types
action find
entity Virginia Centurione Bracelli
relation feast day
type day
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?p ) WHERE { { ?e property:feast_day ?z . ?e rdf:type ontology:common_name . ?z rdf:type ontology:time_interval } UNION { ?e property:feast_day ?z . ?e rdf:type ontology:common_name . ?z rdf:type ontology:day } } GROUP BY ?e } . FILTER ( ?p < ?y ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { resource:Virginia_Centurione_Bracelli property:feast_day ?o . { { ?o rdf:type ontology:day } UNION { ?o rdf:type ontology:time_interval } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1284483
P841
Q573 Q186081 Q502895
USER
And how about Bernard of Vienne?
(c(Q502895),P841,c(Q573)|c(Q186081))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
action count
action filter_multi_types
action find
entity Q1284483
relation P841
type Q573
type Q186081
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?c WHERE { VALUES ( ?q ) { ( ontology:Q573 ) ( ontology:Q186081 ) } . ?f rdf:type ?q } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { resource:Q1284483 property:P841 ?j . { ?j rdf:type ?w . VALUES ( ?w ) { ( ontology:Q573 ) ( ontology:Q186081 ) } } } } . FILTER ( ?o < ?x ) }
Bernard of Vienne
action less
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
action count
action filter_multi_types
action find
entity Bernard of Vienne
relation feast day
type day
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?c WHERE { VALUES ( ?q ) { ( ontology:day ) ( ontology:time_interval ) } . ?f rdf:type ?q } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { resource:Bernard_of_Vienne property:feast_day ?j . { ?j rdf:type ?w . VALUES ( ?w ) { ( ontology:day ) ( ontology:time_interval ) } } } } . FILTER ( ?o < ?x ) }
[]
day time interval common name
Q679784 Q3047912 Q167477
SYSTEM
Pier Giorgio Frassati, Seraphina Sforza, Anthony of Padua
Q384117 Q365797 Q3483257 Q679784 Q3483161 Q3483259 Q3483263 Q167477 Q3047912 Q269889 Q2701365
(c(Q502895),P841,c(Q573)|c(Q186081))
action less
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
action count
action filter_multi_types
action find
entity Q1284483
relation P841
type Q573
type Q186081
[ANSWERS]
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?c WHERE { VALUES ( ?q ) { ( ontology:Q573 ) ( ontology:Q186081 ) } . ?f rdf:type ?q } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { resource:Q1284483 property:P841 ?j . { ?j rdf:type ?w . VALUES ( ?w ) { ( ontology:Q573 ) ( ontology:Q186081 ) } } } } . FILTER ( ?o < ?x ) }
Aignan of Orleans Ahmad al-Tijani Sidi M'hamed Bou Qobrine Pier Giorgio Frassati Sidi Abder Rahman El Thaelebi Sidi M'hand Oumalek Sidi Mansour Anthony of Padua Seraphina Sforza Joanna, wife of Chuza Thomas Percy, 7th Earl of Northumberland
Pier Giorgio Frassati Seraphina Sforza Anthony of Padua
action less
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
action count
action filter_multi_types
action find
entity Bernard of Vienne
relation feast day
type day
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) ?c WHERE { VALUES ( ?q ) { ( ontology:day ) ( ontology:time_interval ) } . ?f rdf:type ?q } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { resource:Bernard_of_Vienne property:feast_day ?j . { ?j rdf:type ?w . VALUES ( ?w ) { ( ontology:day ) ( ontology:time_interval ) } } } } . FILTER ( ?o < ?x ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P417
Q56061
USER
How many administrative territories have adopted that person as their patron saint ?
(c(Q56061),P417,Q167477)
[{'concept': 'Q56061'}, 'P417', 'Q167477']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q28914 resource:Q16975105 . ?z rdf:type ontology:Q56061 }
[{'concept': 'administrative territorial entity'}, 'patron saint', 'Anthony of Padua']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:patron_saint resource:Anthony_of_Padua . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q167477
SYSTEM
Did you mean Anthony of Padua ?
(c(Q56061),P417,Q679784) (c(Q56061),P417,Q3047912) (c(Q56061),P417,Q167477)
[ANSWER]
[{'concept': 'Q56061'}, 'P417', 'Q679784'] [{'concept': 'Q56061'}, 'P417', 'Q3047912'] [{'concept': 'Q56061'}, 'P417', 'Q167477']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q28914 resource:Q16975105 . ?z rdf:type ontology:Q56061 }
Did you mean Anthony of Padua ?
Anthony of Padua
[{'concept': 'administrative territorial entity'}, 'patron saint', 'Pier Giorgio Frassati'] [{'concept': 'administrative territorial entity'}, 'patron saint', 'Seraphina Sforza'] [{'concept': 'administrative territorial entity'}, 'patron saint', 'Anthony of Padua']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:patron_saint resource:Anthony_of_Padua . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q56061),P417,Q167477)
[{'concept': 'Q56061'}, 'P417', 'Q167477']
[{'concept': 'administrative territorial entity'}, 'patron saint', 'Anthony of Padua']
[]
SYSTEM
2
Q617 Q53265
(c(Q56061),P417,Q167477)
[ANSWER]
[{'concept': 'Q56061'}, 'P417', 'Q167477']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q28914 resource:Q16975105 . ?z rdf:type ontology:Q56061 }
Padua Gemona del Friuli
2
[{'concept': 'administrative territorial entity'}, 'patron saint', 'Anthony of Padua']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:patron_saint resource:Anthony_of_Padua . ?z rdf:type ontology:administrative_territorial_entity }
[]