Simple Question (Direct)
Simple Question
Q16931880
P734
Q82799
USER
Who is associated with Frank Smith ?
(Q16931880,P734,c(Q82799))
action filter_type
action find
entity Q16931880
relation P734
type Q82799
['Q16931880', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q16931880 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Frank Smith
action filter_type
action find
entity Frank Smith
relation family name
type name
['Frank Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Frank_Smith property:family_name ?w . ?w rdf:type ontology:name }
[]
name
Q1158446
SYSTEM
Smith
Q1158446
(Q16931880,P734,c(Q82799))
action filter_type
action find
entity Q16931880
relation P734
type Q82799
Sp [ANSWER] is associated with Frank [ANSWER]
['Q16931880', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q16931880 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Smith
Sp Smith is associated with Frank Smith
Smith
action filter_type
action find
entity Frank Smith
relation family name
type name
['Frank Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Frank_Smith property:family_name ?w . ?w rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16931880
P39
Q12737077
USER
Which occupation was a position held by Frank Smith ?
(Q16931880,P39,c(Q12737077))
action filter_type
action find
entity Q16931880
relation P39
type Q12737077
['Q16931880', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q16931880 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Frank Smith
action filter_type
action find
entity Frank Smith
relation position held
type occupation
['Frank Smith', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Frank_Smith property:position_held ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q18342844
SYSTEM
Member of the Florida House of Representatives
Q18342844
(Q16931880,P39,c(Q12737077))
action filter_type
action find
entity Q16931880
relation P39
type Q12737077
The [ANSWER] was a position held by Frank Smith
['Q16931880', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q16931880 property:P39 ?t . ?t rdf:type ontology:Q12737077 }
Member of the Florida House of Representatives
The Member of the Florida House of Representatives was a position held by Frank Smith
Member of the Florida House of Representatives
action filter_type
action find
entity Frank Smith
relation position held
type occupation
['Frank Smith', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Frank_Smith property:position_held ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q881267
Q12737077
USER
And how about Harvey Parnell?
(Q881267,P39,c(Q12737077))
action filter_type
action find
entity Q881267
relation P39
type Q12737077
['Q881267', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q881267 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Harvey Parnell
action filter_type
action find
entity Harvey Parnell
relation position held
type occupation
['Harvey Parnell', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Harvey_Parnell property:position_held ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q20765963 Q21361754
SYSTEM
Governor of Arkansas, member of the State Senate of Arkansas
Q20765963 Q21361754
(Q881267,P39,c(Q12737077))
action filter_type
action find
entity Q881267
relation P39
type Q12737077
[ANSWERS]
['Q881267', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q881267 property:P39 ?f . ?f rdf:type ontology:Q12737077 }
Governor of Arkansas member of the State Senate of Arkansas
Governor of Arkansas member of the State Senate of Arkansas
action filter_type
action find
entity Harvey Parnell
relation position held
type occupation
['Harvey Parnell', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Harvey_Parnell property:position_held ?f . ?f rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q349086
P417
Q502895 Q12737077
USER
Which people are the patron saint of more number of occupations than Leopold III, Margrave of Austria ?
(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 Q349086
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:P417 ?d . ?d rdf:type ontology:Q502895 . ?s rdf:type ontology:Q12737077 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Q349086 property:P417 ?a . ?a rdf:type ontology:Q502895 } } . FILTER ( ?y > ?h ) }
Leopold III, Margrave of Austria
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Leopold III, Margrave of Austria
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:patron_saint ?d . ?d rdf:type ontology:common_name . ?s rdf:type ontology:occupation } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Leopold_III,_Margrave_of_Austria property:patron_saint ?a . ?a rdf:type ontology:common_name } } . FILTER ( ?y > ?h ) }
[]
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 Q349086
relation P417
type Q502895
[ANSWERS] are the patron saint of more number of occupations than Leopold III, Margrave of Austria
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:P417 ?d . ?d rdf:type ontology:Q502895 . ?s rdf:type ontology:Q12737077 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Q349086 property:P417 ?a . ?a rdf:type ontology:Q502895 } } . FILTER ( ?y > ?h ) }
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 Leopold III, Margrave of Austria
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 Leopold III, Margrave of Austria
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:patron_saint ?d . ?d rdf:type ontology:common_name . ?s rdf:type ontology:occupation } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Leopold_III,_Margrave_of_Austria property:patron_saint ?a . ?a rdf:type ontology:common_name } } . FILTER ( ?y > ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q537686
P417
Q502895 Q12737077
USER
And how about Angelus of Jerusalem?
(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 Q537686
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:P417 ?f . ?f rdf:type ontology:Q502895 . ?v rdf:type ontology:Q12737077 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Q537686 property:P417 ?b . ?b rdf:type ontology:Q502895 } } . FILTER ( ?a > ?u ) }
Angelus of Jerusalem
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Angelus of Jerusalem
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:patron_saint ?f . ?f rdf:type ontology:common_name . ?v rdf:type ontology:occupation } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Angelus_of_Jerusalem property:patron_saint ?b . ?b rdf:type ontology:common_name } } . FILTER ( ?a > ?u ) }
[]
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 Q537686
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:P417 ?f . ?f rdf:type ontology:Q502895 . ?v rdf:type ontology:Q12737077 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Q537686 property:P417 ?b . ?b rdf:type ontology:Q502895 } } . FILTER ( ?a > ?u ) }
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 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 Angelus of Jerusalem
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:patron_saint ?f . ?f rdf:type ontology:common_name . ?v rdf:type ontology:occupation } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { resource:Angelus_of_Jerusalem property:patron_saint ?b . ?b rdf:type ontology:common_name } } . FILTER ( ?a > ?u ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q9438
P138
Q163740 Q502895
USER
How many nonprofit organizations or people come from Thomas Aquinas ?
(c(Q163740),P138,Q9438) (c(Q502895),P138,Q9438)
action count
action union
action filter_type
action find_reverse
entity Q9438
relation P138
type Q163740
action filter_type
action find_reverse
entity Q9438
relation P138
type Q502895
[{'concept': 'Q163740'}, 'P138', 'Q9438'] [{'concept': 'Q502895'}, 'P138', 'Q9438']
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { ?u property:P138 resource:Q9438 . ?u rdf:type ontology:Q502895 } UNION { ?u rdf:type ontology:Q163740 . ?u property:P138 resource:Q9438 } }
Thomas Aquinas
action count
action union
action filter_type
action find_reverse
entity Thomas Aquinas
relation named after
type nonprofit organization
action filter_type
action find_reverse
entity Thomas Aquinas
relation named after
type common name
[{'concept': 'nonprofit organization'}, 'named after', 'Thomas Aquinas'] [{'concept': 'common name'}, 'named after', 'Thomas Aquinas']
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { ?u property:named_after resource:Thomas_Aquinas . ?u rdf:type ontology:common_name } UNION { ?u rdf:type ontology:nonprofit_organization . ?u property:named_after resource:Thomas_Aquinas } }
[]
nonprofit organization common name
SYSTEM
2
Q1164229 Q18925150
(c(Q163740),P138,Q9438) (c(Q502895),P138,Q9438)
action count
action union
action filter_type
action find_reverse
entity Q9438
relation P138
type Q163740
action filter_type
action find_reverse
entity Q9438
relation P138
type Q502895
[ANSWER]
[{'concept': 'Q163740'}, 'P138', 'Q9438'] [{'concept': 'Q502895'}, 'P138', 'Q9438']
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { ?u property:P138 resource:Q9438 . ?u rdf:type ontology:Q502895 } UNION { ?u rdf:type ontology:Q163740 . ?u property:P138 resource:Q9438 } }
University of St. Thomas Pseudo-Aquinas
2
action count
action union
action filter_type
action find_reverse
entity Thomas Aquinas
relation named after
type nonprofit organization
action filter_type
action find_reverse
entity Thomas Aquinas
relation named after
type common name
[{'concept': 'nonprofit organization'}, 'named after', 'Thomas Aquinas'] [{'concept': 'common name'}, 'named after', 'Thomas Aquinas']
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { ?u property:named_after resource:Thomas_Aquinas . ?u rdf:type ontology:common_name } UNION { ?u rdf:type ontology:nonprofit_organization . ?u property:named_after resource:Thomas_Aquinas } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q272764 Q16931880
P27 P17
Q15617994
USER
Which administrative territories are Frank Smith an inhabitant of or are Çelenuşağı, Kozan a part of ?
OR((Q16931880,P27,c(Q15617994)), (Q272764,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16931880
relation P27
action find
entity Q272764
relation P17
type Q15617994
{'OR': [['Q16931880', 'P27', {'concept': 'Q15617994'}], ['Q272764', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q16931880 property:P27 ?k } UNION { resource:Q272764 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
Çelenuşağı, Kozan Frank Smith
action filter_type
action union
action find
entity Frank Smith
relation country of citizenship
action find
entity Çelenuşağı, Kozan
relation country
type designation for an administrative territorial entity
{'OR': [['Frank Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Çelenuşağı, Kozan', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Frank_Smith property:country_of_citizenship ?k } UNION { resource:Çelenuşağı,_Kozan property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q43
SYSTEM
United States of America, Turkey
Q30 Q43
OR((Q16931880,P27,c(Q15617994)), (Q272764,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16931880
relation P27
action find
entity Q272764
relation P17
type Q15617994
[ANSWERS] are Frank Smith an inhabitant of or are Çelenuşağı, Kozan a part of
{'OR': [['Q16931880', 'P27', {'concept': 'Q15617994'}], ['Q272764', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q16931880 property:P27 ?k } UNION { resource:Q272764 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
United States of America Turkey
United States of America and Turkey are Frank Smith an inhabitant of or are Çelenuşağı, Kozan a part of
United States of America Turkey
action filter_type
action union
action find
entity Frank Smith
relation country of citizenship
action find
entity Çelenuşağı, Kozan
relation country
type designation for an administrative territorial entity
{'OR': [['Frank Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Çelenuşağı, Kozan', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Frank_Smith property:country_of_citizenship ?k } UNION { resource:Çelenuşağı,_Kozan property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5361288
P27
Q502895
USER
Are Eliphalet Pearson civilians of those administrative territories ?
(Q5361288,P27,Q30) (Q5361288,P27,Q43)
action is_in
entity prev_answer
action find
entity Q5361288
relation P27
['Q5361288', 'P27', 'Q30'] ['Q5361288', 'P27', 'Q43']
ASK WHERE { resource:Q5361288 property:P27 ?d . VALUES ( ?d ) { ( resource:Q30 ) ( resource:Q43 ) } }
Eliphalet Pearson
action is_in
entity prev_answer
action find
entity Eliphalet Pearson
relation country of citizenship
['Eliphalet Pearson', 'country of citizenship', 'United States of America'] ['Eliphalet Pearson', 'country of citizenship', 'Turkey']
ASK WHERE { resource:Eliphalet_Pearson property:country_of_citizenship ?d . VALUES ( ?d ) { ( resource:United_States_of_America ) ( resource:Turkey ) } }
[]
common name
SYSTEM
NO
(Q5361288,P27,Q30) (Q5361288,P27,Q43)
action is_in
entity prev_answer
action find
entity Q5361288
relation P27
[ANSWER]
['Q5361288', 'P27', 'Q30'] ['Q5361288', 'P27', 'Q43']
ASK WHERE { resource:Q5361288 property:P27 ?d . VALUES ( ?d ) { ( resource:Q30 ) ( resource:Q43 ) } }
No
action is_in
entity prev_answer
action find
entity Eliphalet Pearson
relation country of citizenship
['Eliphalet Pearson', 'country of citizenship', 'United States of America'] ['Eliphalet Pearson', 'country of citizenship', 'Turkey']
ASK WHERE { resource:Eliphalet_Pearson property:country_of_citizenship ?d . VALUES ( ?d ) { ( resource:United_States_of_America ) ( resource:Turkey ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q18342844 Q4066290
P17
Q15617994
USER
Is Member of the Florida House of Representatives a part of Anino ?
(Q18342844,P17,Q4066290)
action is_in
entity Q4066290
action find
entity Q18342844
relation P17
['Q18342844', 'P17', 'Q4066290']
ASK WHERE { resource:Q18342844 property:P17 resource:Q4066290 }
Member of the Florida House of Representatives Anino
action is_in
entity Anino
action find
entity Member of the Florida House of Representatives
relation country
['Member of the Florida House of Representatives', 'country', 'Anino']
ASK WHERE { resource:Member_of_the_Florida_House_of_Representatives property:country resource:Anino }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q18342844,P17,Q4066290)
action is_in
entity Q4066290
action find
entity Q18342844
relation P17
[ANSWER]
['Q18342844', 'P17', 'Q4066290']
ASK WHERE { resource:Q18342844 property:P17 resource:Q4066290 }
No
action is_in
entity Anino
action find
entity Member of the Florida House of Representatives
relation country
['Member of the Florida House of Representatives', 'country', 'Anino']
ASK WHERE { resource:Member_of_the_Florida_House_of_Representatives property:country resource:Anino }
[]